[Demonstration 1]

[Buggy Method]
public void loadAllAssignments(View view) {
    Log.d("DATABASE LOAD", "Loading the database");
    DBHandler dbHandler = new DBHandler(this);
    List<String[]> assignments = dbHandler.getAllAssignments();
    for (String[] i : assignments) {
        Log.d("DATABASE LOAD", i[0] + " | " + i[1] + " | " + i[2]);
    }
    dbHandler.close();
}

[Buggy Hunk]
Log.d("DATABASE LOAD",i[0]+" | "+i[1]+" | "+i[2]);

[Patch]
Log.d("DATABASE LOAD",i[0]+" | "+i[1]+" | "+i[2]+" | "+i[3]+" | "+i[4]+" | "+i[5]);

[Demonstration 2]

[Buggy Method]
@Override
public void checkTarget() {
    EntityMissile missile = (EntityMissile) target;
    if (RaytraceUtil.raytrace(getAngleFromTarget(), getTurretVector(), worldObj, InitBlocks.sentry_turret, missile, RANGE) == HitType.BLOCK) {
        target = null;
    }
    if (target.getDistance(xCoord, yCoord, zCoord) >= RANGE || missile.isDead) {
        target = null;
    }
}

[Buggy Hunk]
if (target.getDistance(xCoord, yCoord, zCoord) >= RANGE || missile.isDead) {

[Patch]
if (target == null || target.isDead || target.getDistance(xCoord, yCoord, zCoord) >= RANGE) {

[Demonstration 3]

[Buggy Method]
@Override
public void harvestBlock(World world, EntityPlayer player, BlockPos pos, IBlockState state, TileEntity te, ItemStack heldStack) {
    if (te instanceof IDataRetainingTile) {
        ItemStack stack = new ItemStack(this);
        ((IDataRetainingTile) te).writeToItemStack(stack, true);
        spawnAsEntity(world, pos, stack);
        //Remove tile to make sure no one else can mess with it and dupe its contents.
        world.removeTileEntity(pos);
    } else {
        super.harvestBlock(world, player, pos, state, te, heldStack);
    }
}

[Buggy Hunk]
ItemStack stack = new ItemStack(this);

[Patch]
ItemStack stack = new ItemStack(this, 1, damageDropped(state));