[Demonstration 1]

[Buggy Method]
private void calculateXP() {
    // set up scanner
    Scanner scan = null;
    try {
        scan = new Scanner(new File("xpguide"));
    } catch (FileNotFoundException e) {
        e.printStackTrace();
    }
    // extract data
    String[] stats = null;
    while (scan.hasNext()) {
        stats = scan.nextLine().split(" ");
        if (stats[0].equals(name))
            break;
    }
    xp = (int) Math.round(Double.parseDouble(stats[1]) * level / 7.0);
}

[Buggy Hunk]
xp = (int)Math.round(Double.parseDouble(stats[1]) * level / 7.0);

[Patch]
xp = (int)Math.floor(Double.parseDouble(stats[1]) * level / 7.0);

[Demonstration 2]

[Buggy Method]
@Override
public GameResponse hit() {
    currentGameData.addPlayerCard();
    if (checkFinishGameAtHitPhase()) {
        gameStateHolder.setGameState(GameState.FINISHED);
        return finishGameAtHitPhase();
    }
    return new HitResponseImpl(currentGameData.getLastAddedPlayerCard(), currentGameData.calcPlayerScore(), currentGameData.calcDealerScore());
}

[Buggy Hunk]
currentGameData.calcDealerScore()

[Patch]
CardScore.getScore(currentGameData.getFirstAddedDealerCard().getGameCard())

[Demonstration 3]

[Buggy Method]
public int getHp(boolean isLeader) {
    int hp = 0;
    for (Equipment e : equipments) {
        if (e != null) {
            hp += e.stats[0];
        }
    }
    if (isLeader)
        hp += 5;
    return hp;
}

[Buggy Hunk]
int hp = 0;

[Patch]
int hp = (int)adventurerClass.stats[0];