<commit_before>package net.machinemuse.powersuits.common;

import cpw.mods.fml.common.Loader;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.relauncher.Side;
import net.machinemuse.api.IModularItem;
import net.machinemuse.api.ModuleManager;
import net.machinemuse.numina.general.MuseLogger;
import net.machinemuse.powersuits.powermodule.armor.ApiaristArmorModule;
import net.machinemuse.powersuits.powermodule.armor.HazmatModule;
import net.machinemuse.powersuits.powermodule.misc.AirtightSealModule;
import net.machinemuse.powersuits.powermodule.misc.ThaumGogglesModule;
import net.machinemuse.powersuits.powermodule.tool.GrafterModule;
import net.machinemuse.powersuits.powermodule.tool.MFFSFieldTeleporterModule;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraftforge.common.config.Configuration;

import java.util.Arrays;
import java.util.Collections;

public class ModCompatability {

public static boolean isGregTechLoaded() {
        return Loader.isModLoaded("gregtech_addon");
}

public static boolean isBasicComponentsLoaded() {
        return Loader.isModLoaded("BasicComponents");
}

public static boolean isIndustrialCraftLoaded() {
        return Loader.isModLoaded("IC2");
}

public static boolean isThaumCraftLoaded() {
        return Loader.isModLoaded("Thaumcraft");
}

public static boolean isThermalExpansionLoaded() {
        return Loader.isModLoaded("ThermalExpansion");
}

public static boolean isGalacticraftLoaded() {
        return Loader.isModLoaded("GalacticraftCore");
}

public static boolean isCoFHCoreLoaded() {
        return Loader.isModLoaded("CoFHCore");
}

public static boolean isEnderIOLoaded() {
        return Loader.isModLoaded("EnderIO");
}

public static boolean isMekanismLoaded(){
        return Loader.isModLoaded("Mekanism");
}

public static boolean isForestryLoaded() {
        return Loader.isModLoaded("Forestry");
}

public static boolean isOmniToolsLoaded() {
        return Loader.isModLoaded("OmniTools");
}

public static boolean isSmartMovingLoaded() {
        return Loader.isModLoaded("SmartMoving");
}

public static boolean isRenderPlayerAPILoaded() {
        if (FMLCommonHandler.instance().getEffectiveSide() == Side.CLIENT) {
                return Loader.isModLoaded("RenderPlayerAPI");
        } else {
            // We return true on the server, as RenderPlayerAPI is never necessary on the server (and this should always be called within an isSmartMovingLoaded conditional)
                return true;
        }
}

public static boolean enableThaumGogglesModule() {
        boolean defaultval = isThaumCraftLoaded();
        return Config.getConfig().get("Special Modules", "Thaumcraft Goggles Module", defaultval).getBoolean(defaultval);
}

public static boolean vanillaRecipesEnabled() {
//        boolean defaultval = (!isBasicComponentsLoaded()) && (!isIndustrialCraftLoaded());
        boolean defaultval = ((! isThermalExpansionLoaded()) && (! isIndustrialCraftLoaded()));
        return Config.getConfig().get(Configuration.CATEGORY_GENERAL, "Vanilla Recipes", defaultval).getBoolean(defaultval);
}

private static boolean isAtomicScienceLoaded() {
        return Loader.isModLoaded("AtomicScience");
}

// public static boolean UERecipesEnabled() {
//         boolean defaultval = isBasicComponentsLoaded();
//         return Config.getConfig().get(Configuration.CATEGORY_GENERAL, "Universal Electricity Recipes", defaultval).getBoolean(defaultval);
// }

public static boolean IC2RecipesEnabled() {
        boolean defaultval = (isIndustrialCraftLoaded() && (! isGregTechLoaded()) && (! isThermalExpansionLoaded));
        return Config.getConfig().get(Configuration.CATEGORY_GENERAL, "IndustrialCraft Recipes", defaultval).getBoolean(defaultval);
}
<commit_msg>Uhh, missing \'\(\)\'<commit_after>package net.machinemuse.powersuits.common;

import cpw.mods.fml.common.Loader;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.relauncher.Side;
import net.machinemuse.api.IModularItem;
import net.machinemuse.api.ModuleManager;
import net.machinemuse.numina.general.MuseLogger;
import net.machinemuse.powersuits.powermodule.armor.ApiaristArmorModule;
import net.machinemuse.powersuits.powermodule.armor.HazmatModule;
import net.machinemuse.powersuits.powermodule.misc.AirtightSealModule;
import net.machinemuse.powersuits.powermodule.misc.ThaumGogglesModule;
import net.machinemuse.powersuits.powermodule.tool.GrafterModule;
import net.machinemuse.powersuits.powermodule.tool.MFFSFieldTeleporterModule;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraftforge.common.config.Configuration;

import java.util.Arrays;
import java.util.Collections;

public class ModCompatability {

public static boolean isGregTechLoaded() {
        return Loader.isModLoaded("gregtech_addon");
}

public static boolean isBasicComponentsLoaded() {
        return Loader.isModLoaded("BasicComponents");
}

public static boolean isIndustrialCraftLoaded() {
        return Loader.isModLoaded("IC2");
}

public static boolean isThaumCraftLoaded() {
        return Loader.isModLoaded("Thaumcraft");
}

public static boolean isThermalExpansionLoaded() {
        return Loader.isModLoaded("ThermalExpansion");
}

public static boolean isGalacticraftLoaded() {
        return Loader.isModLoaded("GalacticraftCore");
}

public static boolean isCoFHCoreLoaded() {
        return Loader.isModLoaded("CoFHCore");
}

public static boolean isEnderIOLoaded() {
        return Loader.isModLoaded("EnderIO");
}

public static boolean isMekanismLoaded(){
        return Loader.isModLoaded("Mekanism");
}

public static boolean isForestryLoaded() {
        return Loader.isModLoaded("Forestry");
}

public static boolean isOmniToolsLoaded() {
        return Loader.isModLoaded("OmniTools");
}

public static boolean isSmartMovingLoaded() {
        return Loader.isModLoaded("SmartMoving");
}

public static boolean isRenderPlayerAPILoaded() {
        if (FMLCommonHandler.instance().getEffectiveSide() == Side.CLIENT) {
                return Loader.isModLoaded("RenderPlayerAPI");
        } else {
            // We return true on the server, as RenderPlayerAPI is never necessary on the server (and this should always be called within an isSmartMovingLoaded conditional)
                return true;
        }
}

public static boolean enableThaumGogglesModule() {
        boolean defaultval = isThaumCraftLoaded();
        return Config.getConfig().get("Special Modules", "Thaumcraft Goggles Module", defaultval).getBoolean(defaultval);
}

public static boolean vanillaRecipesEnabled() {
//        boolean defaultval = (!isBasicComponentsLoaded()) && (!isIndustrialCraftLoaded());
        boolean defaultval = ((! isThermalExpansionLoaded()) && (! isIndustrialCraftLoaded()));
        return Config.getConfig().get(Configuration.CATEGORY_GENERAL, "Vanilla Recipes", defaultval).getBoolean(defaultval);
}

private static boolean isAtomicScienceLoaded() {
        return Loader.isModLoaded("AtomicScience");
}

// public static boolean UERecipesEnabled() {
//         boolean defaultval = isBasicComponentsLoaded();
//         return Config.getConfig().get(Configuration.CATEGORY_GENERAL, "Universal Electricity Recipes", defaultval).getBoolean(defaultval);
// }

public static boolean IC2RecipesEnabled() {
        boolean defaultval = (isIndustrialCraftLoaded() && (! isGregTechLoaded()) && (! isThermalExpansionLoaded()));
        return Config.getConfig().get(Configuration.CATEGORY_GENERAL, "IndustrialCraft Recipes", defaultval).getBoolean(defaultval);
}

{'fraction_non_alphanumeric': 0.10522858644245928, 'fraction_numerical': 0.0005254860746190226, 'mean_word_length': 4.842670759785111, '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': '2498384', 'n_tokens_mistral': 2337, 'n_tokens_neox': 2254, 'n_words': 424}