[Demonstration 1]

[Buggy Method]
public static Player generatePlayer(int type, Constants.PlayerColors color, Set<Piece> pieceSet) {
    Player p = null;
    if (type == PlayerTypes.HUMAN.value) {
        p = new HumanPlayer(color, pieceSet);
    }
    if (type == PlayerTypes.RANDOM.value) {
        p = new RandomPlayer(color, pieceSet);
    }
    if (type == PlayerTypes.DEBUG.value) {
        p = new DebugPlayer(color, pieceSet);
    }
    if (type == PlayerTypes.NEGAMAX.value) {
        p = new AIPlayer(color, pieceSet, new NegaMax(1, color));
    }
    return p;
}

[Buggy Hunk]
p = new AIPlayer(color, pieceSet, new NegaMax(1, color));

[Patch]
p = new AIPlayer(color, pieceSet, new NegaMax(2, color));

[Demonstration 2]

[Buggy Method]
private void startTour(String transportMode, String type) {
    if (tourService != null && !tourService.isRunning()) {
        color = getTrackColor(true, type, new Date());
        tourService.beginTreatment(transportMode, type);
    }
}

[Buggy Hunk]
color = getTrackColor(true, type, new Date());

[Patch]
color = getTrackColor(false, type, new Date());

[Demonstration 3]

[Buggy Method]
private Picture create_picture() {
    Picture result = new Picture(_width, _height);
    for (int y = 0; y < _height; y++) for (int x = 0; x < _width; x++) result.set(x, y, _pixels[y][x]);
    return result;
}

[Buggy Hunk]
result.set(x, y, _pixels[y][x]);

[Patch]
result.set(x, y, new Color(_pixels[y][x]));