[Demonstration 1]

[Buggy Method]
public void update() {
    if (count >= dna.genes.length) {
        Game.create();
        count = 0;
    }
    addForce(dna.genes[count++]);
    acceleration.setMagnitude(0.1);
    velocity.add(acceleration);
    position.add(velocity);
    acceleration.multiply(0);
}

[Buggy Hunk]
acceleration.setMagnitude(0.1);

[Patch]
acceleration.setMagnitude(0.15);

[Demonstration 2]

[Buggy Method]
public void showOverlay(Context ctx) {
    final Dialog dialog = new Dialog(ctx, android.R.style.Theme_Translucent_NoTitleBar);
    dialog.setContentView(R.layout.third_screen_overlay);
    RelativeLayout relativeLayout = (RelativeLayout) dialog.findViewById(R.id.thirdScreenOverlayLayout);
    relativeLayout.setOnClickListener(new View.OnClickListener() {

        @Override
        public void onClick(View arg0) {
            dialog.dismiss();
        }
    });
    SharedPreferences.Editor editor = sharedpreferences.edit();
    editor.putBoolean("runActivityDetailedOnce", false);
    editor.commit();
    dialog.show();
}

[Buggy Hunk]
editor.putBoolean("runActivityDetailedOnce",false);

[Patch]
editor.putBoolean("runActivityDetailedOnce",true);

[Demonstration 3]

[Buggy Method]
@Override
public void paintComponent(Graphics g) {
    super.paintComponent(g);
    Rectangle bounds = g.getClipBounds();
    if (cell.isLocked()) {
        g.setColor(Color.RED);
    } else {
        if (isFocusOwner()) {
            g.setColor(Color.BLUE);
        } else {
            g.setColor(Color.BLACK);
        }
    }
    g.drawOval(0, 0, bounds.width, bounds.height);
    g.setColor(getForeground());
    if (cell.isAlphabetical()) {
        String value = cell.value();
        centerText(g, value);
    } else if (cell.isPeg()) {
        g.fillOval(10, 10, bounds.width - 20, bounds.height - 20);
    } else if (cell.isBlank()) {
        g.setColor(getBackground());
        g.fillOval(2, 2, bounds.width - 4, bounds.height - 4);
    }
}

[Buggy Hunk]
Rectangle bounds = g.getClipBounds();

[Patch]
Rectangle bounds = getBounds();