[Demonstration 1]

[Buggy Method]
private void col_push_card(final int col, final Card card) {
    Column this_col = board.get(col);
    this_col.column.push(card);
    this_col.top_color = card.get_color();
}

[Buggy Hunk]
Column this_col = board.get(col);

[Patch]
Column this_col = columns.get(col);

[Demonstration 2]

[Buggy Method]
private void checkIdOrganizationsValid(String req) throws JsonProcessingException, IOException, NumberFormatException, DCException {
    ArrayNode orgs = (ArrayNode) om.readTree(req).path(Constants.ORGANIZATIONS_FIELD);
    for (JsonNode org : orgs) {
        checkIdOrganizationValid(om.writeValueAsString(org));
    }
}

[Buggy Hunk]
checkIdOrganizationValid(om.writeValueAsString(org));

[Patch]
checkIdOrganizationValid(om.writeValueAsString(org),req);

[Demonstration 3]

[Buggy Method]
@Test
public void canComputeDBSCAN() {
    for (int n : new int[] { 100, 500 }) {
        OPTICSManager om = createOPTICSManager(size, n);
        // Keep items in memory for speed during the test
        om.setOption(OPTICSManager.Option.CACHE);
        for (int minPts : new int[] { 5, 10 }) {
            // Use default range
            OPTICSResult r1 = om.optics(0, minPts);
            DBSCANResult r2 = om.dbscan(0, minPts);
            areSameClusters(r1, r2);
        }
    }
}

[Buggy Hunk]
om.setOption(OPTICSManager.Option.CACHE);

[Patch]
om.setOptions(OPTICSManager.Option.CACHE);