[Demonstration 1]

[Buggy Method]
public boolean isVerticalAlignment(CaseState state) {
    for (int x = 0; x < this.states[0].length; x++) {
        if (areCaseStatesEquals(states[0][x], states[1][x], states[2][x]))
            return true;
    }
    return false;
}

[Buggy Hunk]
if(areCaseStatesEquals(states[0][x], states[1][x], states[2][x]))

[Patch]
if(areCaseStatesEquals(state, states[0][x], states[1][x], states[2][x]))

[Demonstration 2]

[Buggy Method]
@Override
public boolean equals(Object obj) {
    if (this == obj)
        return true;
    if (obj == null)
        return false;
    if (this.getClass() != obj.getClass())
        return false;
    Node other = (Node) obj;
    if (this.agentRow != other.agentRow || this.agentCol != other.agentCol)
        return false;
    if (!Arrays.deepEquals(this.boxes, other.boxes))
        return false;
    if (!Arrays.deepEquals(SearchClient.goals, SearchClient.goals))
        return false;
    if (!Arrays.deepEquals(SearchClient.walls, SearchClient.walls))
        return false;
    return true;
}

[Buggy Hunk]
if (!Arrays.deepEquals(SearchClient.goals, SearchClient.goals))

[Patch]
if (!Arrays.deepEquals(this.goals, this.goals))

[Demonstration 3]

[Buggy Method]
@RequestMapping(value = "/", method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_VALUE, produces = MediaType.APPLICATION_JSON_VALUE)
public ResponseEntity<GuestbookEntry> create(GuestbookEntry entry) {
    repository.save(entry);
    return ResponseEntity.ok(entry);
}

[Buggy Hunk]
public ResponseEntity<GuestbookEntry> create(GuestbookEntry entry){

[Patch]
public ResponseEntity<GuestbookEntry> create(@RequestBody GuestbookEntry entry){