[Demonstration 1]

[Buggy Method]
private boolean wasMovedBefore(Position2D pawnPosition, PlayerType owner) {
    if (owner == HexagonalPlayerType.WHITE) {
        if (pawnPosition.getX() == 1) {
            return false;
        }
    } else if (owner == HexagonalPlayerType.BLACK) {
        for (int x = 4, y = 0; y <= 8; x++, y++) {
            if (pawnPosition.getX() == x && pawnPosition.getY() == y) {
                return false;
            }
        }
    } else if (owner == HexagonalPlayerType.GRAY) {
        for (int x = 4, y = 1; x <= 12; x++) {
            if (pawnPosition.getX() == x && pawnPosition.getY() == y) {
                return false;
            }
        }
    }
    return true;
}

[Buggy Hunk]
for (int x = 4, y = 1; x <= 12; x++) {

[Patch]
for (int x = 4, y = 11; x <= 12; x++) {

[Demonstration 2]

[Buggy Method]
private String checkIfEmpty(String response) {
    while (response.compareTo("a") <= 0) {
        ChatbotMain.print(".");
        response = ChatbotMain.getInput();
    }
    return response;
}

[Buggy Hunk]
while(response.compareTo("a") <= 0 )

[Patch]
if(response.equals(" "))

[Demonstration 3]

[Buggy Method]
private static File handleDicomObject(File file, boolean anonymize) {
    try {
        DicomObject dob = new DicomObject(file);
        if (anonymize) {
            DicomAnonymizer fsa = MircConfig.getInstance().getFileServiceDicomAnonymizer();
            if (fsa != null) {
                DAScript dascript = DAScript.getInstance(fsa.getScriptFile());
                Properties script = dascript.toProperties();
                Properties lookup = LookupTable.getProperties(fsa.getLookupTableFile());
                IntegerTable intTable = fsa.getIntegerTable();
                DICOMAnonymizer.anonymize(file, file, script, lookup, intTable, false, false);
                dob = new DicomObject(dob.getFile());
                dob.renameToUID();
                file = dob.getFile();
            }
        } else
            file = dob.setStandardExtension();
    } catch (Exception ex) {
    }
    return file;
}

[Buggy Hunk]
DAScript dascript = DAScript.getInstance(fsa.getScriptFile());

[Patch]
DAScript dascript = DAScript.getInstance(fsa.getDAScriptFile());