[Demonstration 1]

[Buggy Method]
private int getRowCount() {
    return (widgets.size() + 1) / columnCount;
}

[Buggy Hunk]
return (widgets.size() + 1) / columnCount;

[Patch]
return (int) (widgets.size() / columnCount + 0.5);

[Demonstration 2]

[Buggy Method]
@PostConstruct
public void init() {
    System.out.println(toString() + " constructed component 2.");
}

[Buggy Hunk]
System.out.println(toString() + " constructed component 2.");

[Patch]
System.out.println(toString() + " constructed component 2. " + userDao.getClass().getName());

[Demonstration 3]

[Buggy Method]
private static void serverStart() throws InterruptedException {
    component = new Component();
    component.getServers().add(Protocol.HTTP, SERVER_PORT);
    component.getClients().add(Protocol.CLAP);
    boolean serverBound = false;
    while (!serverBound) {
        try {
            logger.info("Bundle started,  webserver initializing...");
            component.start();
            if (component.isStarted())
                logger.info("Webserver Started in port {}.", SERVER_PORT);
            serverBound = true;
        } catch (Exception e) {
            try {
                component.stop();
            } catch (Exception e1) {
                e1.printStackTrace();
            }
            logger.error("Port {} is occupied! Check if a server is running already. Trying again in 15 sec.", SERVER_PORT);
            Thread.sleep(15000);
        }
    }
}

[Buggy Hunk]
component.getClients().add(Protocol.CLAP);

[Patch]
component.getClients().add(Protocol.FILE);