[Demonstration 1]

[Buggy Method]
public static ArrayList<Node> getUnique(ArrayList<Node> nodes) {
    return new ArrayList<Node>(new HashSet<Node>(nodes));
}

[Buggy Hunk]
return new ArrayList<Node>(new HashSet<Node>(nodes));

[Patch]
return new ArrayList<Node>(new LinkedHashSet<Node>(nodes));

[Demonstration 2]

[Buggy Method]
public void setLocation(double x1, double y1) {
    this.x = x1;
    this.y = y1;
}

[Buggy Hunk]
public void setLocation(double x1, double y1) {

[Patch]
public void setLocation(final double x1, final double y1) {

[Demonstration 3]

[Buggy Method]
@Test
public void testCheckAllLabels() {
    MyLabelling l1 = new MyLabelling(1);
    MyLabelling l2 = new MyLabelling(2);
    Model m = new Model();
    MyVertex v1 = new MyVertex(1);
    MyVertex v2 = new MyVertex(2);
    l1.addInVertex(v1);
    l2.addInVertex(v1);
    l1.addOutVertex(v2);
    l2.addOutVertex(v2);
    LinkedHashSet<MyLabelling> set = new LinkedHashSet<MyLabelling>();
    set.add(l2);
    set.add(l1);
    assertEquals(m.checkAllLabels(set), 2);
    l2.deleteFromInVertices(v1);
    l2.addOutVertex(v1);
    v1.setLabel("IN");
    assertEquals(m.checkAllLabels(set), 1);
    v1.setLabel("OUT");
    assertEquals(m.checkAllLabels(set), 0);
}

[Buggy Hunk]
assertEquals(m.checkAllLabels(set), 0);

[Patch]
assertEquals(m.checkAllLabels(set), 1);