[Demonstration 1]

[Buggy Method]
private void buildThroneRoom(World world, Random rand, BlockPos startPos) {
    for (int y = 0; y <= height; y++) {
        for (int x = 0; x <= width; x++) {
            for (int z = 0; z <= length; z++) {
                IBlockState currentBlock = air;
                if (isWallOrFloor(y, x, z)) {
                    currentBlock = stone;
                }
                if (isEntranceStoneBrick(y, x, z)) {
                    currentBlock = stoneBrick;
                }
                if (isEntranceOpening(y, x, z)) {
                    currentBlock = air;
                }
                if (isEntranceTorchHolder(y, x, z)) {
                    currentBlock = oakFence;
                }
                if (isEntranceTorch(y, x, z)) {
                    currentBlock = torch;
                }
                if (z == 0 && y == 7 && x == 13) {
                    currentBlock = stoneBrickStairsW.withProperty(BlockStairs.HALF, EnumHalf.TOP);
                }
                if (z == 0 && y == 7 && x == 17) {
                    currentBlock = stoneBrickStairsE.withProperty(BlockStairs.HALF, EnumHalf.TOP);
                }
                if (isLavaLampSourceOrDest(y, x, z)) {
                    if (y == 0) {
                        currentBlock = air;
                    } else {
                        currentBlock = lava;
                    }
                }
                if (isInTorchGrid(y, x, z)) {
                    currentBlock = torch;
                }
                if (isAisleCarpet(y, x, z) || isThroneCarpet(y, x, z) || isEntranceCarpet(y, x, z)) {
                    currentBlock = redCarpet;
                }
                if (isAisleEdging(y, x, z)) {
                    currentBlock = stoneBrickSlabs;
                }
                if (isAisleEdging(x, y, z) && isAisleTorch(z)) {
                    currentBlock = stoneBrick;
                }
                if (y == 2 && (x == 13 || x == 17) && isAisleTorch(z)) {
                    currentBlock = torch;
                }
                if (isEntrancePlatform(y, x, z)) {
                    currentBlock = stone;
                }
                if (isEntranceStairsEast(y, x, z)) {
                    currentBlock = stoneBrickStairsE;
                }
                if (isEntranceStairsWest(y, x, z)) {
                    currentBlock = stoneBrickStairsW;
                }
                if (isEntranceStairsNorth(y, x, z)) {
                    currentBlock = stoneBrickStairsN;
                }
                if (isThronePlatform(y, x, z)) {
                    currentBlock = stone;
                }
                if (isThroneArms(y, x, z)) {
                    currentBlock = goldBlock;
                }
                if (isBackOfThrone(y, x, z)) {
                    currentBlock = redstoneBlock;
                }
                if (isThroneTorch(y, x, z) || isEntrancePlatformTorch(y, x, z)) {
                    currentBlock = torch;
                }
                if (isThroneStairsNorth(y, x, z)) {
                    currentBlock = stoneBrickStairsN;
                }
                if (isThroneStairsEast(y, x, z)) {
                    currentBlock = stoneBrickStairsE;
                }
                if (isThroneStairsWest(y, x, z)) {
                    currentBlock = stoneBrickStairsW;
                }
                if (isThroneStairsSouth(y, x, z)) {
                    currentBlock = stoneBrickStairsS;
                }
                if (isThroneSideLavaDitch(y, x, z)) {
                    currentBlock = air;
                }
                if (isThroneSideLavaFlow(y, x, z) || isEntranceLavaFlow(y, x, z)) {
                    currentBlock = lava;
                }
                if (isEntranceLavaCatcherRight(y, x, z) || isEntranceLavaCatcherLeft(y, x, z)) {
                    currentBlock = stoneBrickStairsN.withProperty(BlockStairs.HALF, EnumHalf.TOP);
                }
                if (isEntranceLavaCatcherCornerEast(y, x, z)) {
                    currentBlock = stoneBrickStairsE.withProperty(BlockStairs.HALF, EnumHalf.TOP);
                }
                if (isEntranceLavaCatcherCornerWest(y, x, z)) {
                    currentBlock = stoneBrickStairsW.withProperty(BlockStairs.HALF, EnumHalf.TOP);
                }
                setBlockAndNotifyAdequately(world, startPos.add(x, y, z), currentBlock);
            }
        }
    }
}

[Buggy Hunk]
if (isAisleEdging(x, y, z) && isAisleTorch(z)) {

[Patch]
if (isAisleEdging(y, x, z) && isAisleTorch(z)) {

[Demonstration 2]

[Buggy Method]
@Nullable
private static PsiAssignmentExpression getAssignment(PsiStatement stmt) {
    if (!(stmt instanceof PsiExpressionStatement))
        return null;
    PsiExpression expr = ((PsiExpressionStatement) stmt).getExpression();
    if (!(expr instanceof PsiAssignmentExpression))
        return null;
    return (PsiAssignmentExpression) expr;
}

[Buggy Hunk]
private static PsiAssignmentExpression getAssignment(PsiStatement stmt) {

[Patch]
public static PsiAssignmentExpression getAssignment(PsiStatement stmt) {

[Demonstration 3]

[Buggy Method]
public List<TimeStruct> getAllBoxesData() {
    LogPrint.Debug("==>>>> get the all Boxes??? memory..");
    List<TSBox> tsBoxList = TSRepository.getAllBoxes(mContext);
    List<TimeStruct> timeStructList = new ArrayList<TimeStruct>();
    for (int i = 0; i < tsBoxList.size(); i++) {
        LogPrint.Debug("===>>>i = " + i + "; tsBox = " + tsBoxList.get(i) + "; b_f = " + tsBoxList.get(i).getB_finish() + "; s_title = " + tsBoxList.get(i).getS_title() + "; i_status = " + tsBoxList.get(i).getI_status() + "; s_time = " + tsBoxList.get(i).getS_start_time());
        TimeStruct timeStruct = new TimeStruct();
        timeStruct.setId(tsBoxList.get(i).getId());
        timeStruct.setB_finish(tsBoxList.get(i).getB_finish());
        timeStruct.setS_titile(tsBoxList.get(i).getS_title());
        timeStruct.setI_status(tsBoxList.get(i).getI_status());
        timeStruct.setS_start_time(tsBoxList.get(i).getS_start_time());
        timeStructList.add(timeStruct);
    }
    return timeStructList;
}

[Buggy Hunk]
LogPrint.Debug("===>>>i = " + i + "; tsBox = " + tsBoxList.get(i)

[Patch]
LogPrint.Debug("===>>>i = " + i