[Demonstration 1]

[Buggy Method]
public boolean hasNonDefaultAllocationSize() {
    return allocationSize != null && allocationSize != 1;
}

[Buggy Hunk]
return allocationSize != null && allocationSize != 1;

[Patch]
return allocationSize != null && allocationSize != 50;

[Demonstration 2]

[Buggy Method]
private synchronized void removeTask(long taskId) {
    mTasksInFlight.remove(taskId);
    if (mTasksInFlight.size() == 0) {
        onIdle();
    }
}

[Buggy Hunk]
private synchronized void removeTask(long taskId) {

[Patch]
private void removeTask(long taskId) {

[Demonstration 3]

[Buggy Method]
public SmoopeApi build() {
    return new SmoopeClient(this.restClient.build());
}

[Buggy Hunk]
return new SmoopeClient(this.restClient.build());

[Patch]
return new SmoopeClient(this.restClient);