[Demonstration 1]

[Buggy Method]
private void showFantasticDialog() {
    AlertDialog.Builder builder = new AlertDialog.Builder(this);
    builder.setTitle(getString(R.string.fantastic_));
    NomwellListDialog nomwellListDialog = new NomwellListDialog(this);
    nomwellListDialog.setMessage(getString(R.string.where_is_your_list_located_));
    nomwellListDialog.setOptions(getResources().getStringArray(R.array.list_location_options));
    builder.setView(nomwellListDialog.getView());
    final AlertDialog dialog = builder.create();
    nomwellListDialog.setItemClickListener(new AdapterView.OnItemClickListener() {

        @Override
        public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {
            if (i == 0) {
                startActivity(new Intent(MySpotsActivity.this, ListImportActivity.class));
            } else if (i == 1) {
                showConfirmEmailDialog();
            }
            dialog.dismiss();
        }
    });
    dialog.show();
}

[Buggy Hunk]
nomwellListDialog.setMessage(getString(R.string.where_is_your_list_located_));

[Patch]
nomwellListDialog.setMessage("Where is your list located");

[Demonstration 2]

[Buggy Method]
@Override
public Component prepareRenderer(TableCellRenderer renderer, int row, int column) {
    Component comp = super.prepareRenderer(renderer, row, column);
    if (!isRowSelected(row)) {
        Color bg = getModel().getRowBackground(row);
        if (bg == null) {
            if (row % 2 == 0) {
                comp.setBackground(this.getBackground());
            } else {
                comp.setBackground(oddRowColor);
            }
        } else {
            comp.setBackground(bg);
        }
    }
    return comp;
}

[Buggy Hunk]
Color bg = getModel().getRowBackground(row);

[Patch]
Color bg = getModel().getRowBackground(convertRowIndexToModel(row));

[Demonstration 3]

[Buggy Method]
public final void emitVSTR64(int cond, int Vd, int Rn, int V) {
    boolean neg = (V < 0);
    if (neg)
        V = -V;
    if (VM.VerifyAssertions)
        VM._assert(fits_VLDR_VSTR(V), "emitVSTR64: !fits_VLDR_VSTR(" + V + ")");
    int mi = cond | b11010000 << 20 | Rn << 16 | encodeVd64(Vd) | b1011 << 8 | ((V >>> 2) & 0xFF);
    mIP++;
    mc.addInstruction(mi);
}

[Buggy Hunk]
int mi = cond | b11010000 << 20 | Rn << 16 | encodeVd64(Vd) | b1011 << 8 | ((V >>> 2) & 0xFF);

[Patch]
int mi = cond | b11010000 << 20 | (neg ? 0 : 1) << 23 | Rn << 16 | encodeVd64(Vd) | b1011 << 8 | ((V >>> 2) & 0xFF);