[Demonstration 1]

[Buggy Method]
private void setup() {
    ipAdress = connection.getInetAddress().getHostAddress();
    try {
        out = new DataOutputStream(connection.getOutputStream());
        in = new DataInputStream(connection.getInputStream());
    } catch (IOException e) {
        log.error("could not correctly setup connection to client: " + e);
    }
    connected = true;
    log.info("connection to client stabled");
}

[Buggy Hunk]
log.info("connection to client stabled");

[Patch]
log.info("connection to client " + ipAdress + " stabled");

[Demonstration 2]

[Buggy Method]
@Test
public void getClients_retrievesAllClientssFromDatabase_ClientsList() {
    Stylist testStylist = new Stylist("Zohan");
    testStylist.save();
    Client firstClient = new Client("Jimmy Two-Shoes", testStylist.getId());
    firstClient.save();
    Client secondClient = new Client("Renard Vulpine", testStylist.getId());
    secondClient.save();
    Client[] clients = new Client[] { firstClient, secondClient };
    assertTrue(testStylist.getClient().containsAll(Arrays.asList(clients)));
}

[Buggy Hunk]
assertTrue(testStylist.getClient().containsAll(Arrays.asList(clients)));

[Patch]
assertTrue(testStylist.getClients().containsAll(Arrays.asList(clients)));

[Demonstration 3]

[Buggy Method]
private void showStatistics(long duration) {
    long pixels = scene.getWidth() * scene.getHeight();
    long pixelPerMs = pixels / duration;
    LOG.info("pixel={}, duration={}, pixel per ms = {}, pixel per sec = {}", pixels, duration, pixelPerMs, NumberFormat.getIntegerInstance().format(pixelPerMs * 1000));
}

[Buggy Hunk]
long pixels = scene.getWidth() * scene.getHeight();

[Patch]
long pixels = (long)scene.getWidth() * scene.getHeight();