[Demonstration 1]

[Buggy Method]
public static String createRootFolder(Map<NodeProperty, Object> extraParams) {
    return "" + " MATCH (user:<LABEL.USER> {id:{userId}})" + createNode("root", NodeLabel.SYSTEM_FOLDER, extraParams) + " CREATE (user)-[:<REL.OWNS>]->(root)" + " RETURN root";
}

[Buggy Hunk]
createNode("root", NodeLabel.SYSTEM_FOLDER, extraParams) +

[Patch]
createFSNode("root", NodeLabel.SYSTEM_FOLDER, extraParams) +

[Demonstration 2]

[Buggy Method]
public boolean addRecordSoftware(String software, String version, String[] tools) {
    boolean success = false;
    try {
        DBCollection collection = getCollection();
        BasicDBObject doc = new BasicDBObject();
        doc.put("title", software);
        doc.put("version", version);
        if (tools != null)
            doc.put("tools", tools);
        collection.insert(doc);
        success = true;
    } catch (MongoException e) {
        System.out.println("System could not add record " + e);
    }
    return success;
}

[Buggy Hunk]
doc.put("tools",tools);

[Patch]
{doc.put("tools",tools);}