[Demonstration 1]

[Buggy Method]
public int[] getSmithWatermanScoring() {
    String scoring = (String) getOptions().valueOf(SW_SCORING);
    String[] fields = scoring.split(",");
    if (fields.length != 4) {
        Logger.error("4 values record for sw scoring");
    }
    int[] scores = new int[4];
    for (int i = 0; i < 4; i++) {
        scores[i] = Integer.parseInt(fields[0].trim());
    }
    return scores;
}

[Buggy Hunk]
scores[i] = Integer.parseInt(fields[0].trim());

[Patch]
scores[i] = Integer.parseInt(fields[i].trim());

[Demonstration 2]

[Buggy Method]
public Timeslot toModelType() throws IllegalValueException {
    return new Timeslot(startDate, endDate);
}

[Buggy Hunk]
return new Timeslot(startDate, endDate);

[Patch]
return new Timeslot(startDate, endDate, Timeslot.IS_LOADING_FROM_STORAGE);

[Demonstration 3]

[Buggy Method]
private YahooUrlBuilder createBuilder(StockCompany company, Date startDate, Date endDate, StockInterval interval) {
    YahooUrlBuilder builder = new YahooUrlBuilderImpl();
    builder.setCompany(company);
    builder.setStartDate(startDate);
    builder.setEndDate(startDate);
    builder.setInterval(interval);
    return builder;
}

[Buggy Hunk]
builder.setEndDate(startDate);

[Patch]
builder.setEndDate(endDate);