[Demonstration 1]

[Buggy Method]
@Override
public void moveCenterTo(double x, double y) {
    moveTo(x - width / 2, y - height / 2);
}

[Buggy Hunk]
moveTo(x - width / 2, y - height / 2);

[Patch]
moveTo(x - width / 2 - offsetX, y - height / 2 - offsetY);

[Demonstration 2]

[Buggy Method]
@Override
public void draw(int x, int y, int width, int height, Graphics g) {
    double tWidth = (1.0f / resolutionX) * width;
    double tHeight = (1.0f / resolutionY) * height;
    double tx = x, ty = y, ptx = x - tWidth, pty;
    int w, h;
    for (int xi = 0; xi < resolutionX; xi++) {
        pty = y - tHeight;
        for (int yi = 0; yi < resolutionY; yi++) {
            colors[xi][yi] = getColor(xi, yi + seed);
            g.setColor(colors[xi][yi]);
            tx = xi * tWidth + x;
            ty = yi * tHeight + y;
            w = (int) Math.ceil(tx - ptx);
            h = (int) Math.ceil(ty - pty);
            g.fillRect((int) tx, (int) ty, w, h);
            pty = ty;
        }
        ptx = tx;
    }
}

[Buggy Hunk]
colors[xi][yi] = getColor(xi, yi + seed);

[Patch]
colors[xi][yi] = getColor(xi, yi);

[Demonstration 3]

[Buggy Method]
@Test
public void buildCollisionInstanceofcheck2() {
    assertTrue(cf.buildRopeBubbleCollision() instanceof PlayerPowerupCollision);
}

[Buggy Hunk]
assertTrue(cf.buildRopeBubbleCollision() instanceof PlayerPowerupCollision);

[Patch]
assertTrue(cf.buildRopeBubbleCollision() instanceof RopeBubbleCollision);