[Demonstration 1]

[Buggy Method]
private String makeCommaDelimitedLine(String line) {
    String result = "";
    String[] tokens = StringUtils.tokenizeToStringArray(line, " ", true, false);
    boolean isEqualFound = false;
    int counter = 0;
    for (String token : tokens) {
        if (token.equals("=")) {
            isEqualFound = true;
        } else if (!isEqualFound && counter == 0) {
            result = statsYear + "," + token;
        } else if (!isEqualFound && counter == 1) {
            result = result + DELIMITER + token;
        } else if (!isEqualFound && counter > 1) {
            result = result + " " + token;
        } else if (isEqualFound) {
            result = result + DELIMITER + token;
        }
        counter++;
    }
    return result;
}

[Buggy Hunk]
if(token.equals("=")){

[Patch]
if(token.equals("=")||token.equals("StateETS=")){

[Demonstration 2]

[Buggy Method]
private boolean canChildScrollRight() {
    return ViewCompat.canScrollHorizontally(scrollChild, -1);
}

[Buggy Hunk]
return ViewCompat.canScrollHorizontally(scrollChild, -1);

[Patch]
return ViewCompat.canScrollHorizontally(scrollChild, 1);

[Demonstration 3]

[Buggy Method]
private void commitXTable(RMTable<K> xTable) throws RemoteException {
    String tableName = xTable.getTableName();
    RMTable<K> table = getTable(tableName);
    for (K key : xTable.keySet()) {
        ResourceItem<K> item = xTable.get(key);
        if (item.isDeleted()) {
            table.remove(item);
        } else {
            table.put(item);
        }
    }
    if (!IOUtil.writeObject(myRMIName.name(), tableName, table)) {
        throw new RemoteException("Can't write table to disk");
    }
}

[Buggy Hunk]
RMTable<K> table = getTable(tableName);

[Patch]
RMTable<K> table = getMainTable(tableName);