[Demonstration 1]

[Buggy Method]
public void reset() {
    this.entityManager = new EntityManager();
    this.map = new Map("res/maps/map2.txt");
    this.entityLumi = new EntityLumi(this.map.lumiSpawnX, this.map.lumiSpawnY, this);
    this.entityPattou = new EntityPattou(this.map.pattouSpawnX, this.map.pattouSpawnY, this);
    this.map.lightManager.update();
}

[Buggy Hunk]
this.map = new Map("res/maps/map2.txt");

[Patch]
this.map = new Map("res/maps/map2.txt", this);

[Demonstration 2]

[Buggy Method]
private static void downloadFile(String url, File outputFile) {
    try {
        URL u = new URL(url);
        URLConnection conn = u.openConnection();
        int contentLength = conn.getContentLength();
        DataInputStream stream = new DataInputStream(u.openStream());
        byte[] buffer = new byte[contentLength];
        stream.readFully(buffer);
        stream.close();
        DataOutputStream fos = new DataOutputStream(new FileOutputStream(outputFile));
        fos.write(buffer);
        fos.flush();
        fos.close();
        Log.d("Download", "File Downloaded Successfully!!");
    } catch (IOException e) {
        Log.e("Download", "" + e);
    }
}

[Buggy Hunk]
Log.e("Download", "" + e);

[Patch]
Log.e("Download", e.getMessage());

[Demonstration 3]

[Buggy Method]
@Test
public void autoGeneratedMapsTest() throws JSONReaderException {
    Object result = ObjectDeserializer.getFromReader(new java.io.StringReader("{\"myString\": \"Hola mundo\", \"myBoolean\": true, \"myInteger\": 12345, \"myNull\": null, \"myDate\": \"1973-12-22T03:10:00.000Z\"}"));
    assertTrue(Map.class.isAssignableFrom(result.getClass()));
    Map map = (Map) result;
    assertEquals(true, map.get("myBoolean"));
    assertEquals("Hola mundo", map.get("myString"));
    assertEquals(new BigDecimal(12345), map.get("myInteger"));
    assertNull(map.get("myNull"));
    assertEquals("1973-12-22T03:10:00.000Z", map.get("myDate"));
}

[Buggy Hunk]
Object result = ObjectDeserializer.getFromReader(new java.io.StringReader("{\"myString\": \"Hola mundo\", \"myBoolean\": true, \"myInteger\": 12345, \"myNull\": null, \"myDate\": \"1973-12-22T03:10:00.000Z\"}"));

[Patch]
Object result = ObjectDeserializer.getFromReader(new StringReader("{\"myString\": \"Hola mundo\", \"myBoolean\": true, \"myInteger\": 12345, \"myNull\": null, \"myDate\": \"1973-12-22T03:10:00.000Z\"}"));