[Demonstration 1]

[Buggy Method]
public static void extinguish(final Player player) {
    new BukkitRunnable() {

        @Override
        public void run() {
            player.setFireTicks(0);
        }
    }.runTaskLater(Core.getInstance(), 1L);
}

[Buggy Hunk]
public static void extinguish(final Player player) {

[Patch]
private static void extinguish(final Player player) {

[Demonstration 2]

[Buggy Method]
private void updateConfig() {
    // Get the old config settings
    int itemOpenInvItemId = plugin.getConfig().getInt("ItemOpenInvItemID", 280);
    boolean checkForUpdates = plugin.getConfig().getBoolean("CheckForUpdates", true);
    boolean notifySilentChest = plugin.getConfig().getBoolean("NotifySilentChest", true);
    boolean notifyAnyChest = plugin.getConfig().getBoolean("NotifyAnyChest", true);
    Map<UUID, Boolean> anyChestToggles = null;
    Map<UUID, Boolean> itemOpenInvToggles = null;
    Map<UUID, Boolean> silentChestToggles = null;
    if (plugin.getConfig().isSet("AnyChest")) {
        anyChestToggles = updateAnyChestToggles();
    }
    if (plugin.getConfig().isSet("ItemOpenInv")) {
        itemOpenInvToggles = updateItemOpenInvToggles();
    }
    if (plugin.getConfig().isSet("SilentChest")) {
        silentChestToggles = updateSilentChestToggles();
    }
    // Clear the old config
    for (String key : plugin.getConfig().getKeys(false)) {
        plugin.getConfig().set(key, null);
    }
    // Set the new config options
    plugin.getConfig().set("config-version", LATEST_CONFIG_VERSION);
    plugin.getConfig().set("check-for-updates", checkForUpdates);
    plugin.getConfig().set("items.open-inv", getMaterialById(itemOpenInvItemId).toString());
    plugin.getConfig().set("notify.any-chest", notifyAnyChest);
    plugin.getConfig().set("notify.silent-chest", notifySilentChest);
    if (anyChestToggles != null && !anyChestToggles.isEmpty()) {
        for (Map.Entry<UUID, Boolean> entry : anyChestToggles.entrySet()) {
            plugin.getConfig().set("toggles.any-chest." + entry.getKey(), entry.getValue());
        }
    }
    if (itemOpenInvToggles != null && !itemOpenInvToggles.isEmpty()) {
        for (Map.Entry<UUID, Boolean> entry : itemOpenInvToggles.entrySet()) {
            plugin.getConfig().set("toggles.items.open-inv." + entry.getKey(), entry.getValue());
        }
    }
    if (silentChestToggles != null && !silentChestToggles.isEmpty()) {
        for (Map.Entry<UUID, Boolean> entry : silentChestToggles.entrySet()) {
            plugin.getConfig().set("toggles.silent-chest." + entry.getKey(), entry.getValue());
        }
    }
    // Save the new config
    plugin.saveConfig();
    plugin.getLogger().info("[Config] Update complete.");
}

[Buggy Hunk]
plugin.getConfig().set("config-version", LATEST_CONFIG_VERSION);

[Patch]
plugin.getConfig().set("config-version", CONFIG_VERSION);

[Demonstration 3]

[Buggy Method]
public void render(Graphics2D g) {
    setMapPosition();
    // draw orbs
    for (int i = 0; i < orbs.size(); i++) {
        orbs.get(i).render(g);
    }
    // draw player
    if (flinching) {
        long elapsed = (System.nanoTime() - flinchTimer) / 1000000;
        if (elapsed / 100 % 2 == 0) {
            // draw explosions
            for (int i = 0; i < explosions.size(); i++) {
                explosions.get(i).setMapPosition((int) tileMap.getx(), (int) tileMap.gety());
                explosions.get(i).render(g);
            }
            return;
        }
    }
    super.render(g);
    g.drawRect((int) (x4[239] + xmap - width / 2), (int) (y4[239] + ymap - height / 2), width, height);
    for (int i = 0; i < explosions.size(); i++) {
        explosions.get(i).setMapPosition((int) tileMap.getx(), (int) tileMap.gety());
        explosions.get(i).render(g);
    }
}

[Buggy Hunk]
g.drawRect((int)(x4[239] + xmap - width / 2), (int)(y4[239] + ymap - height / 2), width, height);

[Patch]
if(rewindCd < 240) g.drawRect((int)(x4[239] + xmap - width / 2), (int)(y4[239] + ymap - height / 2), width, height);