[Demonstration 1]

[Buggy Method]
public static void main(String[] args) {
    LOG.info("Starting Application");
    String filePath = "/home/vishnu/projects/ml-sample/ml-sample/src/main/resources/dataSource/arduino.stackexchange.com/Posts.xml";
    LoadFile.processFile(filePath, dataSource);
    LOG.info(" posts for arduino " + dataSource.getPostsForTag("arduino").size());
    RestExpress server = null;
    try {
        server = initializeServer(args);
        LOG.info("Awaiting Server Shutdown .......");
        server.awaitShutdown();
        LOG.info("Server Is Shutting Down .......");
    } catch (IOException e) {
        LOG.info(e.getMessage());
    }
}

[Buggy Hunk]
LoadFile.processFile(filePath,dataSource);

[Patch]
LoadFile.processPostsFile(filePath, dataSource);

[Demonstration 2]

[Buggy Method]
private int getCoordinateOf(Integer celSize, Integer position) {
    //with all existant
    return (int) (celSize * position + Math.floor(celSize / 2));
}

[Buggy Hunk]
return (int) (celSize * position + Math.floor(celSize / 2));

[Patch]
return (int) (celSize * position + Math.floor((double) celSize / 2));

[Demonstration 3]

[Buggy Method]
public static void main(String[] args) throws InterruptedException {
    int birthDay = 0;
    if (args.length == 0) {
        out.println("Application for calculating the number of ways to cutting pizza! Shareware version. Full version" + " costs only 9.99$\n" + "Use the following format for command line arguments: pizza.jar MMDDYYYY.\n" + "For example: pizza.jar 21101984\n");
        System.exit(0);
    }
    try {
        birthDay = Integer.parseInt(args[0]);
        // checking for correct date of birth
        if (birthDay < 0 || (args[0].length() != 6 || args[0].length() != 8))
            throw new NumberFormatException();
    } catch (NumberFormatException e) {
        out.println("Please, enter correct birthday in format DDMMYYYY or DDMMYY. Thank you for patience!");
        System.exit(-1);
    }
    pizza.setSize(MagicBirthdayNumberGenerator.getMagicNumber(birthDay));
    int timeToSleep = 3000;
    new Thread(() -> {
        out.print("Please wait, calculating the number of ways to cutting pizza");
        int ms = timeToSleep;
        while (ms > 0) {
            out.print(".");
            try {
                Thread.sleep(250);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
            ms -= 250;
        }
    }).start();
    Thread.sleep(timeToSleep);
    out.println("done!");
    out.println(pizza.getCuttingOptions());
}

[Buggy Hunk]
if (birthDay < 0 || (args[0].length() != 6 || args[0].length() != 8))

[Patch]
if (birthDay < 0 || (args[0].length() != 6 && args[0].length() != 8))