[Demonstration 1]

[Buggy Method]
public void testFindNonEmptyTextNodes() {
    oldCaretPos.setStart(getContainer(), 0);
    oldCaretPos.setEnd(getContainer(), 0);
    List textNodes = EditorUtils.getNonEmptyTextNodes(oldCaretPos);
    assertNotNull(textNodes);
    assertEquals("Invalid nr of text nodes", 0, textNodes.size());
}

[Buggy Hunk]
List textNodes = EditorUtils.getNonEmptyTextNodes(oldCaretPos);

[Patch]
List textNodes = EditorUtils.getTextNodes(oldCaretPos).get(EditorUtils.NON__EMPTY);

[Demonstration 2]

[Buggy Method]
private void showDemoPart(int index) {
    demoTextArea.getChildren().clear();
    demoTextArea.getChildren().add(new Text("asda"));
    _mainController.getDisplayController().setSelectedTaskByCall(_demoSelectionIndexes.get(_demoIndex), false);
}

[Buggy Hunk]
demoTextArea.getChildren().add(new Text("asda"));

[Patch]
demoTextArea.getChildren().add(new Text(_demoText.get(index)));

[Demonstration 3]

[Buggy Method]
private void playMusic(int song) {
    Log.i(TAG, "playing music");
    MediaPlayer play = MediaPlayer.create(MainActivity.this, song);
    play.start();
}

[Buggy Hunk]
MediaPlayer play = MediaPlayer.create(MainActivity.this,song);

[Patch]
play = MediaPlayer.create(MainActivity.this,song);