[Demonstration 1]

[Buggy Method]
public String getResType(int resser) {
    return AminoAcid.one2three(this.getSequence().charAt(resser - 1));
    // NOTE, we used to take the residue type from the RIGNode, but this
    // causes problems
    // when there are missing RIGNodes, which happens in 2 cases:
    // a) unobserved residues
    // b) in some contact types with no atoms for some residues (e.g. ALA in
    // Cg contact type:
    // there can't be any edges for ALA in Cg and thus also no RIGNode is
    // added to the RIGraph)
    // RIGNode node = graph.getNodeFromSerial(resser);
    // if (node==null) return null;
    // return node.getResidueType();
}

[Buggy Hunk]
return AminoAcid.one2three(this.getSequence().charAt(resser - 1));

[Patch]
return AminoAcid.one2three(getRes(resser));

[Demonstration 2]

[Buggy Method]
public Vector selectTile() {
    Vector velocity = game.player.head.tileSelectVelocity;
    Vector currentPosition = new Vector(game.player.head.headCenter.x, game.player.head.headCenter.y);
    Vector mouseRounded = MathMethods.floorTo(new Vector(game.mouse.x, game.mouse.y), 64);
    Vector currentRounded = MathMethods.floorTo(currentPosition, 64);
    int times = 0;
    while (true) {
        if (existsTile(currentPosition.addReturn(startDraw))) {
            break;
        }
        if (((int) mouseRounded.x == (int) currentRounded.x && (int) mouseRounded.y == (int) currentRounded.y)) {
            break;
        }
        currentPosition.add(velocity);
        currentRounded = MathMethods.floorTo(currentPosition, 64);
        if (times > MathMethods.floorTo(Game.frameSize.x > Game.frameSize.y ? Game.frameSize.x : Game.frameSize.y, 64)) {
            currentRounded = new Vector(mouseRounded.x, mouseRounded.y);
            break;
        }
        times++;
    }
    return currentRounded;
}

[Buggy Hunk]
if (existsTile(currentPosition.addReturn(startDraw))) {

[Patch]
if (existsTile(currentPosition.subReturn(startDraw))) {

[Demonstration 3]

[Buggy Method]
public TapeChar moveRight() throws TuringException {
    currentPosition++;
    if (currentPosition >= tape.length) {
        expandTape();
    }
    return getChar();
}

[Buggy Hunk]
public TapeChar moveRight() throws TuringException {

[Patch]
public TapeChar moveRight() {