[Demonstration 1]

[Buggy Method]
@EventHandler
public void postInit(FMLPostInitializationEvent event) {
    // ========== Set Current Group ==========
    ObjectManager.setCurrentGroup(group);
    ConfigBase config = ConfigBase.getConfig(group, "spawning");
    // ========== Mob Events ==========
    if (MobInfo.getFromName("nethersoul") != null) {
        MobEventBase mobEvent = new MobEventHellsFury("hellsfury", this.group).setDimensions("1");
        SpawnTypeBase eventSpawner = new SpawnTypeSky("hellsfury").setChance(1.0D).setBlockLimit(32).setMobLimit(5);
        eventSpawner.materials = new Material[] { Material.air };
        eventSpawner.ignoreBiome = true;
        eventSpawner.ignoreLight = true;
        eventSpawner.forceSpawning = true;
        eventSpawner.ignoreMobConditions = true;
        eventSpawner.addSpawn(MobInfo.getFromName("nethersoul"));
        eventSpawner.addSpawn(MobInfo.getFromName("cacodemon"));
        mobEvent.addSpawner(eventSpawner);
        MobEventManager.instance.addWorldEvent(mobEvent);
    }
    // ========== Remove Vanilla Spawns ==========
    BiomeGenBase[] biomes = group.biomes;
    if (group.controlVanillaSpawns) {
        EntityRegistry.removeSpawn(EntityPigZombie.class, EnumCreatureType.monster, biomes);
        EntityRegistry.removeSpawn(EntityGhast.class, EnumCreatureType.monster, biomes);
        EntityRegistry.addSpawn(EntityPigZombie.class, 100, 1, 4, EnumCreatureType.monster, biomes);
        EntityRegistry.addSpawn(EntityGhast.class, 50, 1, 2, EnumCreatureType.monster, biomes);
    }
    // ========== Crafting ==========
    if (ItemInfo.enableWeaponRecipes) {
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ObjectManager.getItem("doomfirescepter"), 1, 0), new Object[] { " C ", " R ", " R ", Character.valueOf('C'), ObjectManager.getItem("doomfirecharge"), Character.valueOf('R'), Items.blaze_rod }));
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ObjectManager.getItem("hellfirescepter"), 1, 0), new Object[] { "CCC", "CRC", "CRC", Character.valueOf('C'), ObjectManager.getItem("hellfirecharge"), Character.valueOf('R'), Items.blaze_rod }));
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ObjectManager.getItem("devilstarscepter"), 1, 0), new Object[] { " C ", " R ", " R ", Character.valueOf('C'), ObjectManager.getItem("devilstarcharge"), Character.valueOf('R'), Items.blaze_rod }));
        GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ObjectManager.getItem("demoniclightningscepter"), 1, 0), new Object[] { " C ", " R ", " R ", Character.valueOf('C'), ObjectManager.getItem("demoniclightningcharge"), Character.valueOf('R'), Items.blaze_rod }));
    }
    GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(ObjectManager.getItem("devillasagna"), 1, 0), new Object[] { Items.nether_wart, Items.wheat, ObjectManager.getItem("pinkymeatcooked") }));
    GameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(ObjectManager.getItem("pinkymeatcooked"), 1, 0), new Object[] { ObjectManager.getItem("devillasagna") }));
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ObjectManager.getItem("pinkytreat"), 4, 0), new Object[] { "TTT", "BBT", "TTT", Character.valueOf('T'), ObjectManager.getItem("hellfirecharge"), Character.valueOf('B'), Items.bone }));
    GameRegistry.addRecipe(new ShapedOreRecipe(new ItemStack(ObjectManager.getItem("cacodemontreat"), 4, 0), new Object[] { "TTT", "BBT", "TTT", Character.valueOf('T'), ObjectManager.getItem("pinkymeatcooked"), Character.valueOf('B'), Items.bone }));
    // ========== Smelting ==========
    GameRegistry.addSmelting(ObjectManager.getItem("pinkymeatraw"), new ItemStack(ObjectManager.getItem("pinkymeatcooked"), 1), 0.5f);
}

[Buggy Hunk]
BiomeGenBase[] biomes = group.biomes;

[Patch]
BiomeGenBase[] biomes = {BiomeGenBase.hell};

[Demonstration 2]

[Buggy Method]
@Override
public void run() {
    new HangmanFrame(new HangmanModel());
}

[Buggy Hunk]
new HangmanFrame(new HangmanModel());

[Patch]
HangmanFrame hangmanFrame = new HangmanFrame(new HangmanModel());

[Demonstration 3]

[Buggy Method]
public static Result service(String ownerName, String projectName, String service, boolean isAdvertise) throws IOException, UnsupportedOperationException, ServletException {
    if (!isSupportedService(service)) {
        return forbidden(String.format("Unsupported service: '%s'", service));
    }
    Project project = Project.findByOwnerAndProjectName(ownerName, projectName);
    if (project == null) {
        return notFound();
    }
    models.User user = UserApp.currentUser();
    if (!isAllowed(project, service)) {
        if (user.isAnonymous()) {
            return BasicAuthAction.unauthorized(response());
        } else {
            // If you want the Git client showing your custom message to
            // the user, the Content-Type should be exact "text/plain"
            // without any parameter. For more details, see the code at
            // https://github.com/git/git/commit/426e70d4a11ce3b4f70636d57c6a0ab16ae08a00#diff-eea0ad565ec5903a11b6023755d491cfR154
            response().setHeader("Content-Type", "text/plain");
            return forbidden(String.format("'%s' has no permission to '%s/%s'.", user.name, ownerName, projectName));
        }
    }
    if (isAdvertise) {
        return ok(RepositoryService.gitAdvertise(project, service, response()));
    } else {
        if (request().body().isMaxSizeExceeded()) {
            return status(REQUEST_ENTITY_TOO_LARGE);
        } else {
            user.visits(project);
            return ok(RepositoryService.gitRpc(project, service, request(), response()));
        }
    }
}

[Buggy Hunk]
user.name, ownerName, projectName));

[Patch]
user.loginId, ownerName, projectName));