<commit_before>package HxCKDMS.HxCEnchants.enchantment;

import HxCKDMS.HxCEnchants.Configurations;
import HxCKDMS.HxCCore.api.Utils.LogHelper;
import HxCKDMS.HxCEnchants.EnchantConfigHandler;
import HxCKDMS.HxCEnchants.lib.Reference;
import cpw.mods.fml.common.event.FMLInterModComms;
import net.minecraft.enchantment.Enchantment;
import net.minecraftforge.common.MinecraftForge;

@SuppressWarnings("all")
public class Enchants {
    public static short Enchs = 0;
    
    private static short[] data;

    public static Enchantment AdrenalineBoost,
            AuraDark, AuraDeadly, AuraFiery, AuraThick, AuraToxic,
            ArmorRegen, ArrowExplosive, Zeus, ArrowSeeking, Bound,
            BattleHealing, DivineIntervention, Examine, FlameTouch,
            Fly, JumpBoost, LeadFooted, LifeSteal, Poison, Piercing,
            Penetrating, Repair, Shroud, SCurse, SoulTear, Swiftness,
            Stealth, Vampirism, Venom, Vitality, Vorpal, WitherProtection,
            SpeedMine, VoidTouch, Overcharge, MeteorFall, PipeMine, EnchLeech,
            ExplosiveDischarge, FeatherFall, FlashStep, HealingAura,
            RepulsiveAura, AuraMagnetic, GaiaAura, IcyAura, LightningArrow, Gluttony, FlamingArrow;

    public static void load () {
        if (EnchantConfigHandler.isEnabled("AdrenalineBoost", "armor")) {
            data = EnchantConfigHandler.getData("AdrenalineBoost", "armor");
            AdrenalineBoost = new HxCEnchantment(data[0], "adrenalineBoost",data[2], EnumHxCEnchantType.ARMOR_HEAD, data[1], data[3], new Enchantment[]{});
            MinecraftForge.EVENT_BUS.register(AdrenalineBoost);
            Enchs++;
            if (Configurations.blacklistEnchantsFromEnchantingPlus2)
                FMLInterModComms.sendMessage("eplus", "blacklist-enchantment", AdrenalineBoost.getName());
        }
        if (EnchantConfigHandler.isEnabled("AuraDark", "armor")) {
            data = EnchantConfigHandler.getData("AuraDark", "armor");
            AuraDark = new HxCEnchantment(data[0], "darkAura", data[2], EnumHxCEnchantType.ARMOR, data[1], data[3], new Enchantment[]{});
            MinecraftForge.EVENT_BUS.register(AuraDark);
            Enchs++;
            if (Configurations.blacklistEnchantsFromEnchantingPlus2)
                FMLInterModComms.sendMessage("eplus", "blacklist-enchantment", AuraDark.getName());
        }
        if (EnchantConfigHandler.isEnabled("AuraDeadly", "armor")) {
            data = EnchantConfigHandler.getData("AuraDeadly", "armor");
            AuraDeadly = new HxCEnchantment(data[0], "deadlyAura", data[2], EnumHxCEnchantType.ARMOR, data[1], data[3], new Enchantment[]{GaiaAura, HealingAura});
            MinecraftForge.EVENT_BUS.register(AuraDeadly);
            Enchs++;
            if (Configurations.blacklistEnchantsFromEnchantingPlus2)
                FMLInterModComms.sendMessage("eplus", "blacklist-enchantment", AuraDeadly.getName());
        }
        if (EnchantConfigHandler.isEnabled("AuraFiery", "armor")) {
            data = EnchantConfigHandler.getData("AuraFiery", "armor");
            AuraFiery = new HxCEnchantment(data[0], "flameAura", data[2], EnumHxCEnchantType.ARMOR, data[1], data[3], new Enchantment[]{HealingAura, GaiaAura, IcyAura});
            MinecraftForge.EVENT_BUS.register(AuraFiery);
            Enchs++;
            if (Configurations.blacklistEnchantsFromEnchantingPlus2)
                FMLInterModComms.sendMessage("eplus", "blacklist-enchantment", AuraFiery.getName());
        }
        if (EnchantConfigHandler.isEnabled("AuraThick", "armor")) {
            data = EnchantConfigHandler.getData("AuraThick", "armor");
            AuraThick = new HxCEnchantment(data[0], "thickAura", data[2], EnumHxCEnchantType.ARMOR, data[1], data[3], new Enchantment[]{});
            MinecraftForge.EVENT_BUS.register(AuraThick);
            Enchs++;
            if (Configurations.blacklistEnchantsFromEnchantingPlus2)
                FMLInterModComms.sendMessage("eplus", "blacklist-enchantment", AuraThick.getName());
        }
        if (EnchantConfigHandler.isEnabled("AuraToxic", "armor")) {
            data = EnchantConfigHandler.getData("AuraToxic", "armor");
            AuraToxic = new HxCEnchantment(data[0], "toxicAura", data[2], EnumHxCEnchantType.ARMOR, data[1], data[3], new Enchantment[]{GaiaAura, HealingAura});
            MinecraftForge.EVENT_BUS.register(AuraToxic);
            Enchs++;
            if (Configurations.blacklistEnchantsFromEnchantingPlus2)
                FMLInterModComms.sendMessage("eplus", "blacklist-enchantment", AuraToxic.getName());
        }
        if (EnchantConfigHandler.isEnabled("Regen", "armor")) {
            data = EnchantConfigHandler.getData("Regen", "armor");
            ArmorRegen = new HxCEnchantment(data[0], "regen", data[2], EnumHxCEnchantType.ARMOR, data[1], data[3], new Enchantment[]{BattleHealing});
            MinecraftForge.EVENT_BUS.register(ArmorRegen);
            Enchs++;
            if (Configurations.blacklistEnchantsFromEnchantingPlus2)
                FMLInterModComms.sendMessage("eplus", "blacklist-enchantment", ArmorRegen.getName());
        }
        if (EnchantConfigHandler.isEnabled("ArrowExplosive", "weapon")) {
            data = EnchantConfigHandler.getData("ArrowExplosive", "weapon");
            ArrowExplosive = new HxCEnchantment(data[0], "arrowExplosive", data[2], EnumHxCEnchantType.BOW, data[1], data[3], new Enchantment[]{});
            MinecraftForge.EVENT_BUS.register(ArrowExplosive);
            Enchs++;
            if (Configurations.blacklistEnchantsFromEnchantingPlus2)
                FMLInterModComms.sendMessage("eplus", "blacklist-enchantment", ArrowExplosive.getName());
        }
        if (EnchantConfigHandler.isEnabled("Zeus", "weapon")) {
            data = EnchantConfigHandler.getData("Zeus", "weapon");
            Zeus = new HxCEnchantment(data[0], "arrowZeus", data[2], EnumHxCEnchantType.BOW, data[1], data[3], new Enchantment[]{});
            MinecraftForge.EVENT_BUS.register(Zeus);
            Enchs++;
            if (Configurations.blacklistEnchantsFromEnchantingPlus2)
                FMLInterModComms.sendMessage("eplus", "blacklist-enchantment", Zeus.getName());
        }
        if (EnchantConfigHandler.isEnabled("ArrowSeeking", "weapon")) {
            data = EnchantConfigHandler.getData("ArrowSeeking", "weapon");
            ArrowSeeking = new HxCEnchantment(data[0], "arrowSeeking", data[2], EnumHxCEnchantType.BOW, data[1], data[3], new Enchantment[]{});
            MinecraftForge.EVENT_BUS.register(ArrowSeeking);
            Enchs++;
            if (Configurations.blacklistEnchantsFromEnchantingPlus2)
                FMLInterModComms.sendMessage("eplus", "blacklist-enchantment", ArrowSeeking.getName());
        }
        if (EnchantConfigHandler.isEnabled("BattleHealing", "armor")) {
            data = EnchantConfigHandler.getData("BattleHealing", "armor");
            BattleHealing = new HxCEnchantment(data[0], "battleHeal", data[2], EnumHxCEnchantType.ARMOR_TORSO, data[1], data[3], new Enchantment[]{ArmorRegen});
            MinecraftForge.EVENT_BUS.register(BattleHealing);<commit_msg>Fixed #27<commit_after>package HxCKDMS.HxCEnchants.enchantment;

import HxCKDMS.HxCEnchants.Configurations;
import HxCKDMS.HxCCore.api.Utils.LogHelper;
import HxCKDMS.HxCEnchants.EnchantConfigHandler;
import HxCKDMS.HxCEnchants.lib.Reference;
import cpw.mods.fml.common.event.FMLInterModComms;
import net.minecraft.enchantment.Enchantment;
import net.minecraftforge.common.MinecraftForge;

@SuppressWarnings("all")
public class Enchants {
    public static short Enchs = 0;
    
    private static short[] data;

    public static Enchantment AdrenalineBoost,
            AuraDark, AuraDeadly, AuraFiery, AuraThick, AuraToxic,
            ArmorRegen, ArrowExplosive, Zeus, ArrowSeeking, Bound,
            BattleHealing, DivineIntervention, Examine, FlameTouch,
            Fly, JumpBoost, LeadFooted, LifeSteal, Poison, Piercing,
            Penetrating, Repair, Shroud, SCurse, SoulTear, Swiftness,
            Stealth, Vampirism, Venom, Vitality, Vorpal, WitherProtection,
            SpeedMine, VoidTouch, Overcharge, MeteorFall, PipeMine, EnchLeech,
            ExplosiveDischarge, FeatherFall, FlashStep, HealingAura,
            RepulsiveAura, AuraMagnetic, GaiaAura, IcyAura, LightningArrow, Gluttony, FlamingArrow;

    public static void load () {
        if (EnchantConfigHandler.isEnabled("AdrenalineBoost", "armor")) {
            data = EnchantConfigHandler.getData("AdrenalineBoost", "armor");
            AdrenalineBoost = new HxCEnchantment(data[0], "adrenalineBoost",data[2], EnumHxCEnchantType.ARMOR_HEAD, data[1], data[3], new Enchantment[]{});
            MinecraftForge.EVENT_BUS.register(AdrenalineBoost);
            Enchs++;
            if (Configurations.blacklistEnchantsFromEnchantingPlus2)
                FMLInterModComms.sendMessage("eplus", "blacklist-enchantment", AdrenalineBoost.getName());
        }
        if (EnchantConfigHandler.isEnabled("AuraDark", "armor")) {
            data = EnchantConfigHandler.getData("AuraDark", "armor");
            AuraDark = new HxCEnchantment(data[0], "darkAura", data[2], EnumHxCEnchantType.ARMOR, data[1], data[3], new Enchantment[]{});
            MinecraftForge.EVENT_BUS.register(AuraDark);
            Enchs++;
            if (Configurations.blacklistEnchantsFromEnchantingPlus2)
                FMLInterModComms.sendMessage("eplus", "blacklist-enchantment", AuraDark.getName());
        }
        if (EnchantConfigHandler.isEnabled("AuraDeadly", "armor")) {
            data = EnchantConfigHandler.getData("AuraDeadly", "armor");
            AuraDeadly = new HxCEnchantment(data[0], "deadlyAura", data[2], EnumHxCEnchantType.ARMOR, data[1], data[3], new Enchantment[]{GaiaAura, HealingAura});
            MinecraftForge.EVENT_BUS.register(AuraDeadly);
            Enchs++;
            if (Configurations.blacklistEnchantsFromEnchantingPlus2)
                FMLInterModComms.sendMessage("eplus", "blacklist-enchantment", AuraDeadly.getName());
        }
        if (EnchantConfigHandler.isEnabled("AuraFiery", "armor")) {
            data = EnchantConfigHandler.getData("AuraFiery", "armor");
            AuraFiery = new HxCEnchantment(data[0], "flameAura", data[2], EnumHxCEnchantType.ARMOR, data[1], data[3], new Enchantment[]{HealingAura, GaiaAura, IcyAura});
            MinecraftForge.EVENT_BUS.register(AuraFiery);
            Enchs++;
            if (Configurations.blacklistEnchantsFromEnchantingPlus2)
                FMLInterModComms.sendMessage("eplus", "blacklist-enchantment", AuraFiery.getName());
        }
        if (EnchantConfigHandler.isEnabled("AuraThick", "armor")) {
            data = EnchantConfigHandler.getData("AuraThick", "armor");
            AuraThick = new HxCEnchantment(data[0], "thickAura", data[2], EnumHxCEnchantType.ARMOR, data[1], data[3], new Enchantment[]{});
            MinecraftForge.EVENT_BUS.register(AuraThick);
            Enchs++;
            if (Configurations.blacklistEnchantsFromEnchantingPlus2)
                FMLInterModComms.sendMessage("eplus", "blacklist-enchantment", AuraThick.getName());
        }
        if (EnchantConfigHandler.isEnabled("AuraToxic", "armor")) {
            data = EnchantConfigHandler.getData("AuraToxic", "armor");
            AuraToxic = new HxCEnchantment(data[0], "toxicAura", data[2], EnumHxCEnchantType.ARMOR, data[1], data[3], new Enchantment[]{GaiaAura, HealingAura});
            MinecraftForge.EVENT_BUS.register(AuraToxic);
            Enchs++;
            if (Configurations.blacklistEnchantsFromEnchantingPlus2)
                FMLInterModComms.sendMessage("eplus", "blacklist-enchantment", AuraToxic.getName());
        }
        if (EnchantConfigHandler.isEnabled("Regen", "armor")) {
            data = EnchantConfigHandler.getData("Regen", "armor");
            ArmorRegen = new HxCEnchantment(data[0], "regen", data[2], EnumHxCEnchantType.ARMOR, data[1], data[3], new Enchantment[]{BattleHealing});
            MinecraftForge.EVENT_BUS.register(ArmorRegen);
            Enchs++;
            if (Configurations.blacklistEnchantsFromEnchantingPlus2)
                FMLInterModComms.sendMessage("eplus", "blacklist-enchantment", ArmorRegen.getName());
        }
        if (EnchantConfigHandler.isEnabled("ArrowExplosive", "weapon")) {
            data = EnchantConfigHandler.getData("ArrowExplosive", "weapon");
            ArrowExplosive = new HxCEnchantment(data[0], "arrowExplosive", data[2], EnumHxCEnchantType.BOW, data[1], data[3], new Enchantment[]{});
            MinecraftForge.EVENT_BUS.register(ArrowExplosive);
            Enchs++;
            if (Configurations.blacklistEnchantsFromEnchantingPlus2)
                FMLInterModComms.sendMessage("eplus", "blacklist-enchantment", ArrowExplosive.getName());
        }
        if (EnchantConfigHandler.isEnabled("Zeus", "weapon")) {
            data = EnchantConfigHandler.getData("Zeus", "weapon");
            Zeus = new HxCEnchantment(data[0], "arrowZeus", data[2], EnumHxCEnchantType.BOW, data[1], data[3], new Enchantment[]{LightningArrow});
            MinecraftForge.EVENT_BUS.register(Zeus);
            Enchs++;
            if (Configurations.blacklistEnchantsFromEnchantingPlus2)
                FMLInterModComms.sendMessage("eplus", "blacklist-enchantment", Zeus.getName());
        }
        if (EnchantConfigHandler.isEnabled("ArrowSeeking", "weapon")) {
            data = EnchantConfigHandler.getData("ArrowSeeking", "weapon");
            ArrowSeeking = new HxCEnchantment(data[0], "arrowSeeking", data[2], EnumHxCEnchantType.BOW, data[1], data[3], new Enchantment[]{});
            MinecraftForge.EVENT_BUS.register(ArrowSeeking);
            Enchs++;
            if (Configurations.blacklistEnchantsFromEnchantingPlus2)
                FMLInterModComms.sendMessage("eplus", "blacklist-enchantment", ArrowSeeking.getName());
        }
        if (EnchantConfigHandler.isEnabled("BattleHealing", "armor")) {
            data = EnchantConfigHandler.getData("BattleHealing", "armor");
            BattleHealing = new HxCEnchantment(data[0], "battleHeal", data[2], EnumHxCEnchantType.ARMOR_TORSO, data[1], data[3], new Enchantment[]{ArmorRegen});
            MinecraftForge.EVENT_BUS.register(BattleHealing);
{'fraction_non_alphanumeric': 0.12222222222222222, 'fraction_numerical': 0.007826694619147449, 'mean_word_length': 3.4749843652282677, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1562187', 'n_tokens_mistral': 4607, 'n_tokens_neox': 4581, 'n_words': 672}