[Demonstration 1]

[Buggy Method]
public Result renderEvent(String eventID) {
    return ok(views.html.layoutHtml.render("Event", views.html.Event.event.render(getEvent(eventID))));
}

[Buggy Hunk]
public Result renderEvent(String eventID){

[Patch]
public static Result renderEvent(String eventID){

[Demonstration 2]

[Buggy Method]
public static boolean isParent(Map<String, String> classGraph, Type typeInfo, Type parentTypeInfo) {
    if (typeInfo.type() == TypeEnum.NO_TYPE) {
        return true;
    } else if (typeInfo.type() == TypeEnum.SELF_TYPE && parentTypeInfo.type() == TypeEnum.SELF_TYPE) {
        return typeInfo.replace().type() == parentTypeInfo.replace().type();
    } else if (typeInfo.type() != TypeEnum.SELF_TYPE && parentTypeInfo.type() == TypeEnum.SELF_TYPE) {
        return false;
    } else if (typeInfo.type() == TypeEnum.SELF_TYPE && parentTypeInfo.type() != TypeEnum.SELF_TYPE) {
        return isParent(classGraph, typeInfo.replace(), parentTypeInfo);
    } else if (typeInfo.type() != TypeEnum.SELF_TYPE && parentTypeInfo.type() != TypeEnum.SELF_TYPE) {
        Type temp = typeInfo;
        while (temp != null) {
            if (temp.type() == parentTypeInfo.type())
                return true;
            String parentType = classGraph.get(temp.className());
            if (parentType == null)
                return false;
            temp = objectType(parentType);
        }
        return false;
    }
    return false;
}

[Buggy Hunk]
if (temp.type() == parentTypeInfo.type()) return true;

[Patch]
if (temp.className().equals(parentTypeInfo.className())) return true;

[Demonstration 3]

[Buggy Method]
private boolean isValidMoveSquare(int row, int column) {
    if (row >= 0 && row < 8 && column >= 0 && column < 8 && currentBoard.getBoardArray()[row][column] == ' ')
        return true;
    return false;
}

[Buggy Hunk]
private boolean isValidMoveSquare(int row, int column) {

[Patch]
public boolean isValidMoveSquare(int row, int column) {