[Demonstration 1]

[Buggy Method]
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_headword_list);
    if (findViewById(R.id.lemma_detail_container) != null) {
        mTwoPane = true;
        ((LemmaListFragment) getSupportFragmentManager().findFragmentById(R.id.headword_list)).setActivateOnItemClick(true);
    }
}

[Buggy Hunk]
setContentView(R.layout.activity_headword_list);

[Patch]
setContentView(R.layout.activity_lemma_list);

[Demonstration 2]

[Buggy Method]
public static int challange(Peice[][] board, int startX, int startY, int type) {
    if (type == 11 && board[startX][startY].type == 3) {
        return 1;
    } else if (type == 10 && board[startX][startY].type == 1) {
        return 1;
    }
    if (board[startX][startY].type > type) {
        return 1;
    } else if (board[startX][startY].type == type) {
        return 2;
    } else {
        return 3;
    }
}

[Buggy Hunk]
if(type == 11 && board[startX][startY].type == 3){

[Patch]
if((type == 11 && board[startX][startY].getType() == 3) || (type == 3 && board[startX][startY].getType() == 11)){

[Demonstration 3]

[Buggy Method]
public static int challange(Peice[][] board, int startX, int startY, int type) {
    if ((type == 11 && board[startX][startY].getType() == 3) || (type == 3 && board[startX][startY].getType() == 11)) {
        return 1;
    } else if (type == 10 && board[startX][startY].type == 1) {
        return 1;
    }
    if (board[startX][startY].type > type) {
        return 1;
    } else if (board[startX][startY].type == type) {
        return 2;
    } else {
        return 3;
    }
}

[Buggy Hunk]
}else if(type == 10 && board[startX][startY].type == 1){

[Patch]
}else if((type == 10 && board[startX][startY].type == 1) || (type == 1 && board[startX][startY].type == 10)){