[Demonstration 1]

[Buggy Method]
public TokenTree ParseAndBuild() {
    // Create a default state
    LiveScriptParserState state = new LiveScriptParserState(LiveScriptTypes.UNKNOWN, this.InputList);
    List<TreeToken> newTokens = state.ParseInput().GiveAddedTokens();
    this.addAll(newTokens);
    return this;
}

[Buggy Hunk]
LiveScriptParserState state = new LiveScriptParserState(LiveScriptTypes.UNKNOWN, this.InputList);

[Patch]
LiveScriptParserState state = new LiveScriptParserState(LiveScriptTypes.None, this.InputList);

[Demonstration 2]

[Buggy Method]
private void boardUpdate(Board board) {
    try {
        localBoard = board;
        JSONObject json = new JSONObject();
        try {
            json.put("message", Bluetooth.Message.SEND_BOARD_UPDATE.ordinal());
            json.put("board", JSONBoard.toJSON(board).toString());
        } catch (JSONException e) {
            e.printStackTrace();
        }
        byte[] data = json.toString().getBytes();
        outStream.write(data);
    } catch (IOException e) {
        Log.e(TAG, "Exception during boardUpdate", e);
    }
}

[Buggy Hunk]
json.put("message", Bluetooth.Message.SEND_BOARD_UPDATE.ordinal());

[Patch]
json.put("message", Message.SEND_BOARD_UPDATE.ordinal());

[Demonstration 3]

[Buggy Method]
protected void moveSelectedRight() {
    if (selected != null) {
        final List<Component> l = stackSec.getOrderedComponents();
        final int index = l.indexOf(selected);
        final int last = l.size() - 1;
        if (index < last) {
            stackSec.setComponentOrder(selected, index + 1);
            genEvents();
        }
    }
}

[Buggy Hunk]
protected void moveSelectedRight() {

[Patch]
protected final void moveSelectedRight() {