[Demonstration 1]

[Buggy Method]
@Override
public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) {
    Component result = super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column);
    if (fontStyle != FONT_NO_CHANGE) {
        result.setFont(table.getFont().deriveFont(fontStyle));
    }
    if (isSelected) {
        result.setForeground(table.getSelectionForeground());
        result.setBackground(table.getSelectionBackground());
    } else if (isSpecialHighlightRow(row)) {
        result.setForeground(COLOR_SPECIAL_FG);
        result.setBackground(COLOR_SPECIAL_BG);
    } else if (row % 2 == 1 && doHighlight) {
        result.setForeground(table.getForeground());
        result.setBackground(COLOR_ALTERNATING_HILITE);
    } else {
        result.setForeground(table.getForeground());
        result.setBackground(table.getBackground());
    }
    if (hasFocus && result instanceof JComponent) {
        ((JComponent) result).setBorder(TABLE_FOCUS_BORDER);
    }
    return result;
}

[Buggy Hunk]
} else if (row % 2 == 1 && doHighlight) {

[Patch]
} else if (row % 2 != 0 && doHighlight) {

[Demonstration 2]

[Buggy Method]
@Override
public SuccessfulUploadCallbackUrlResponse imageUrlUpload(ImageUrlUploadCallbackUrlRequest imageUrlUploadCallbackUrlRequest) {
    final WebTarget webTarget = jerseyClient.target(imageUrl);
    final Response response = webTarget.request(MediaType.APPLICATION_JSON_TYPE).post(Entity.entity(wrapAuth(imageUrlUploadCallbackUrlRequest), MediaType.APPLICATION_JSON_TYPE));
    return handleCallbackUrlResponse(response);
}

[Buggy Hunk]
final WebTarget webTarget = jerseyClient.target(imageUrl);

[Patch]
final WebTarget webTarget = client.target(imageUrl);

[Demonstration 3]

[Buggy Method]
public void initHumanPanel() {
    JComboBox choices = new JComboBox();
    select = new JButton("Submit");
    humanFrame = new JFrame();
    humanPanel = new JPanel();
    humanFrame.setVisible(true);
    humanFrame.setTitle("Human Player");
    humanPanel.setSize(300, 300);
    humanFrame.setSize(320, 320);
    humanPanel.setAlignmentY(TOP_ALIGNMENT);
    humanPanel.setAlignmentX(RIGHT_ALIGNMENT);
    humanFrame.add(humanPanel);
    humanPanel.add(choices);
    humanPanel.add(select);
    try //try to get system look for gui interface
    {
        UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
    } catch (//error exception
    Exception ex) {
        ex.printStackTrace();
    }
}

[Buggy Hunk]
JComboBox choices = new JComboBox();

[Patch]
choices = new JComboBox<String>();