[Demonstration 1]

[Buggy Method]
protected void setDouble(String var) {
    this.argument.put(var, new Variable<Double>());
}

[Buggy Hunk]
protected void setDouble (String var) {

[Patch]
public void setDouble (String var) {

[Demonstration 2]

[Buggy Method]
public boolean mergeWithRemote(boolean leaveConflicts) throws IOException {
    ensureReposIsClean();
    try {
        transportSetter().setTransport(git.fetch().setRemote(preferences.remoteName())).call();
        RevCommit mergeTarget = getCommit(String.format("%s/%s", preferences.remoteName(), git.getRepository().getFullBranch()));
        return doMerge(mergeTarget, leaveConflicts);
    } catch (GitAPIException e) {
        e.printStackTrace();
    }
    return false;
}

[Buggy Hunk]
git.getRepository().getFullBranch()));

[Patch]
git.getRepository().getBranch()));

[Demonstration 3]

[Buggy Method]
@SuppressWarnings("rawtypes")
@RequestMapping(value = "/{collection}/{id}", method = RequestMethod.DELETE)
public ResponseEntity<Map> delete(@PathVariable String collection, @PathVariable String id) {
    try {
        Map data = metaService.get(collection, id);
        if (data == null) {
            return new ResponseEntity<Map>(HttpStatus.NOT_FOUND);
        }
        metaService.delete(collection, id);
        return new ResponseEntity<Map>(data, HttpStatus.OK);
    } catch (Exception ex) {
        if (ex instanceof CollectionNotFoundException) {
            return new ResponseEntity<Map>(HttpStatus.NOT_FOUND);
        } else {
            ex.printStackTrace();
            return new ResponseEntity<Map>(HttpStatus.INTERNAL_SERVER_ERROR);
        }
    }
}

[Buggy Hunk]
ex.printStackTrace();

[Patch]
logger.error("DELETE: /metapi/"+collection+"/"+id, ex);