[Demonstration 1]

[Buggy Method]
public void main(String[] args) throws Exception {
    boolean RA = false, CA = false, SU = false, IG = false, GA = false;
    if (args[3] == "1") {
        RA = true;
    }
    if (args[5] == "1") {
        CA = true;
    }
    if (args[7] == "1") {
        SU = true;
    }
    if (args[9] == "1") {
        IG = true;
    }
    if (args[11] == "1") {
        GA = true;
    }
    // load data
    System.out.println("\n0. Loading data ...");
    DataSource source = new DataSource(args[1]);
    Instances data = source.getDataSet();
    if (data.classIndex() == -1)
        data.setClassIndex(data.numAttributes() - 1);
    // process data
    System.out.println("\n1. Processing data ...");
    if (RA) {
        ReliefFAttributeEval(data, Integer.parseInt(args[13]), args[15]);
    }
    if (CA) {
        CorrelationAttributeEval(data, Integer.parseInt(args[13]), args[15]);
    }
    if (SU) {
        SymmetricalUncertAttributeEval(data, Integer.parseInt(args[13]), args[15]);
    }
    if (IG) {
        InfoGainAttributeEval(data, Integer.parseInt(args[13]), args[15]);
    }
    if (GA) {
        InfoGainAttributeEval(data, Integer.parseInt(args[13]), args[15]);
    }
    System.out.println("\n2. Finalizing output ...");
}

[Buggy Hunk]
InfoGainAttributeEval(data, Integer.parseInt(args[13]), args[15]);

[Patch]
GainRatioAttributeEval(data, Integer.parseInt(args[13]), args[15]);

[Demonstration 2]

[Buggy Method]
@Override
public void onClick(View v) {
    TimePickerDialog time = new TimePickerDialog(context, new TimePickerDialog.OnTimeSetListener() {

        @Override
        public void onTimeSet(TimePicker view, int hourOfDay, int minute) {
            calendar.set(Calendar.HOUR_OF_DAY, hourOfDay);
            calendar.set(Calendar.MINUTE, minute);
            button.setText(additionalString + Constant.TIMEFORMATTER.format(calendar.getTime()));
        }
    }, calendar.get(Calendar.HOUR_OF_DAY), calendar.get(Calendar.MINUTE), false);
    time.show();
}

[Buggy Hunk]
button.setText(additionalString + Constant.TIMEFORMATTER.format(calendar.getTime()));

[Patch]
button.setText(additionalString + TIMEFORMATTER.format(calendar.getTime()));

[Demonstration 3]

[Buggy Method]
public static Date nextMonth(Date date) {
    Calendar calendar = Calendar.getInstance();
    calendar.setTime(date);
    calendar.add(Calendar.MONTH, 1);
    calendar.set(Calendar.HOUR, 0);
    calendar.set(Calendar.MINUTE, 0);
    calendar.set(Calendar.SECOND, 0);
    return calendar.getTime();
}

[Buggy Hunk]
calendar.set(Calendar.HOUR, 0);

[Patch]
calendar.set(Calendar.HOUR_OF_DAY, 0);