[Demonstration 1]

[Buggy Method]
@Override
public ActionResult<ItemStack> onItemRightClick(World world, EntityPlayer player, EnumHand hand) {
    if (FMLCommonHandler.instance().getEffectiveSide() == Side.CLIENT) {
        PacketDispatcher.sendToServer(new UseRecipe(player.getHeldItemMainhand().getTagCompound().getString("recipe1"), player.getHeldItemMainhand().getTagCompound().getString("recipe2"), player.getHeldItemMainhand().getTagCompound().getString("recipe3")));
        return ActionResult.newResult(EnumActionResult.SUCCESS, player.getHeldItemMainhand());
    } else if (FMLCommonHandler.instance().getEffectiveSide() == Side.SERVER) {
        String recipe1 = player.getHeldItemMainhand().getTagCompound().getString("recipe1");
        String recipe2 = player.getHeldItemMainhand().getTagCompound().getString("recipe2");
        String recipe3 = player.getHeldItemMainhand().getTagCompound().getString("recipe3");
        SynthesisRecipeCapability.ISynthesisRecipe RECIPES = player.getCapability(ModCapabilities.SYNTHESIS_RECIPES, null);
        boolean consume = false;
        if (RecipeRegistry.get(recipe1) == null) {
        } else if (RecipeRegistry.isRecipeKnown(RECIPES.getKnownRecipes(), recipe1)) {
        } else
            consume = true;
        if (RecipeRegistry.get(recipe2) == null) {
        } else if (RecipeRegistry.isRecipeKnown(RECIPES.getKnownRecipes(), recipe2)) {
        } else
            consume = true;
        if (RecipeRegistry.get(recipe3) != null) {
        } else if (RecipeRegistry.isRecipeKnown(RECIPES.getKnownRecipes(), recipe3)) {
        } else
            consume = true;
        if (RecipeRegistry.isRecipeKnown(RECIPES.getKnownRecipes(), recipe1) && RecipeRegistry.isRecipeKnown(RECIPES.getKnownRecipes(), recipe2) && RecipeRegistry.isRecipeKnown(RECIPES.getKnownRecipes(), recipe3)) {
            shuffleRecipes(player.getHeldItemMainhand(), player);
        }
        if (consume)
            player.getActiveItemStack().setCount(player.getActiveItemStack().getCount() - 1);
    }
    return super.onItemRightClick(world, player, hand);
}

[Buggy Hunk]
player.getActiveItemStack().setCount(player.getActiveItemStack().getCount()-1);

[Patch]
player.getHeldItemMainhand().setCount(player.getHeldItemMainhand().getCount()-1);

[Demonstration 2]

[Buggy Method]
@Override
public ActionResult<ItemStack> onItemRightClick(World world, EntityPlayer player, EnumHand hand) {
    ItemStack stack = player.getHeldItem(hand);
    if (world.isRemote) {
        return new ActionResult<ItemStack>(EnumActionResult.FAIL, stack);
    }
    Vec3d releasePoint = this.getAirPositionInFrontOfPlayer(world, player, 0.8D);
    return this.releaseBug(stack, world, player, hand, releasePoint) ? new ActionResult<ItemStack>(EnumActionResult.SUCCESS, stack) : new ActionResult<ItemStack>(EnumActionResult.FAIL, stack);
}

[Buggy Hunk]
Vec3d releasePoint = this.getAirPositionInFrontOfPlayer(world, player, 0.8D);

[Patch]
Vec3d releasePoint = this.getAirPositionInFrontOfPlayer(world, player, 2D);

[Demonstration 3]

[Buggy Method]
public void doSomethingWithImage(sensor_msgs.Image image) {
    this.image = image;
    ChannelBuffer buffer = this.image.getData();
    byte[] byteArray = buffer.array();
    System.out.println("Doing something");
}

[Buggy Hunk]
System.out.println("Doing something");

[Patch]
Log.d("Tagggggggg", "Here's the byte array's first element: " + byteArray[0]);