<commit_before>/**
 * This class was created by <Vazkii>. It's distributed as
 * part of the Botania Mod. Get the Source Code in github:
 * https://github.com/Vazkii/Botania
 *
 * Botania is Open Source and distributed under a
 * Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License
 * (http://creativecommons.org/licenses/by-nc-sa/3.0/deed.en_GB)
 *
 * File Created @ [Jan 14, 2014, 9:12:15 PM (GMT)]
 */
package pixlepix.auracascade.lexicon;


import cpw.mods.fml.common.ModAPIManager;
import net.minecraft.init.Blocks;
import net.minecraft.init.Items;
import net.minecraft.item.ItemStack;
import pixlepix.auracascade.QuestManager;
import pixlepix.auracascade.block.*;
import pixlepix.auracascade.block.entity.*;
import pixlepix.auracascade.data.EnumAura;
import pixlepix.auracascade.data.Quest;
import pixlepix.auracascade.data.recipe.PylonRecipe;
import pixlepix.auracascade.data.recipe.PylonRecipeRegistry;
import pixlepix.auracascade.item.*;
import pixlepix.auracascade.item.books.*;
import pixlepix.auracascade.lexicon.page.*;
import pixlepix.auracascade.main.Config;
import pixlepix.auracascade.registry.BlockRegistry;
import pixlepix.auracascade.registry.CraftingBenchRecipe;
import pixlepix.auracascade.registry.ITTinkererRegisterable;
import pixlepix.auracascade.registry.ThaumicTinkererRecipeMulti;

public final class LexiconData {

    public static CraftingBenchRecipe getRecipeFromFairy(Class<? extends EntityFairy> clazz) {
        int num = 0;
        for (int i = 0; i < ItemFairyCharm.fairyClasses.length; i++) {
            Class clazzCompare = ItemFairyCharm.fairyClasses[i];
            if (clazzCompare.equals(clazz)) {
                num = i;
                break;
            }
        }
        return (CraftingBenchRecipe) ((ThaumicTinkererRecipeMulti) BlockRegistry.getFirstRecipeFromItem(ItemFairyCharm.class)).recipes.get(num);

    }

    public static void init() {
        //Add categories
        LexiconCategory categoryQuest = null;
        if (Config.questline) {
            categoryQuest = CategoryManager.categoryQuest = new LexiconCategory("Quests").setIcon(new ItemStack(Items.diamond_sword));
            CategoryManager.addCategory(categoryQuest);
        }

        LexiconCategory categoryWalkthrough = CategoryManager.categoryWalkthrough = new LexiconCategory("Walkthrough").setIcon(new ItemStack(Items.wooden_pickaxe));
        CategoryManager.addCategory(categoryWalkthrough);
        
        LexiconCategory categoryBasics = CategoryManager.categoryBasics = new LexiconCategory("Basics").setIcon(new ItemStack(AuraBlock.getBlockFromName("")));
        CategoryManager.addCategory(categoryBasics);
        LexiconCategory categoryAuraColors = CategoryManager.categoryAuraColors = new LexiconCategory("Aura Colors").setIcon(new ItemStack(BlockRegistry.getFirstItemFromClass(ItemAuraCrystal.class), 1, 2));
        CategoryManager.addCategory(categoryAuraColors);
        LexiconCategory categoryAuraNodes = CategoryManager.categoryAuraNodes = new LexiconCategory("Aura Nodes").setIcon(new ItemStack(AuraBlock.getBlockFromName("capacitor")));
        CategoryManager.addCategory(categoryAuraNodes);
        LexiconCategory categoryConsumers = CategoryManager.categoryConsumers = new LexiconCategory("Consumers").setIcon(new ItemStack(ConsumerBlock.getBlockFromName("mob")));
        CategoryManager.addCategory(categoryConsumers);
        LexiconCategory categoryFairies = CategoryManager.categoryFairies = new LexiconCategory("Fairies").setIcon(new ItemStack(BlockRegistry.getFirstItemFromClass(ItemFairyCharm.class), 1, 100));
        CategoryManager.addCategory(categoryFairies);
        LexiconCategory catagoryAccessories = CategoryManager.categoryAccessories = new LexiconCategory("Accessories").setIcon(new ItemStack(BlockRegistry.getFirstItemFromClass(ItemGreenAmulet.class)));
        CategoryManager.addCategory(catagoryAccessories);


        LexiconCategory categoryEnchants = CategoryManager.categoryEnchants = new LexiconCategory("Enchantments").setIcon(new ItemStack(ConsumerBlock.getBlockFromName("enchant")));
        CategoryManager.addCategory(categoryEnchants);

        //Procedurally generate quest entries
        if (Config.questline) {
            for (Quest quest : QuestManager.quests) {
                int id = quest.id;
                new LexiconEntryQuest((id > 9 ? "" : "0") + id + "quest", categoryQuest, quest).setLexiconPages(new PageText("Desc"), new PageQuest(quest));
            }
        }
        
        // BASICS ENTRIES
        new BLexiconEntry("basics", categoryBasics).setPriority().setLexiconPages(new PageText("0"), new PageText("1"));
        ItemAuraCrystal itemAuraCrystal = (ItemAuraCrystal) BlockRegistry.getFirstItemFromClass(ItemAuraCrystal.class);
        new BLexiconEntry("auraFlow", categoryBasics).setLexiconPages(new PageText("0"), new PageText("1"),
                new PageCraftingRecipe("2", ((ThaumicTinkererRecipeMulti) BlockRegistry.getRecipe(itemAuraCrystal)).getIRecipies(0, 1)),
                new PageCraftingRecipe("3", (CraftingBenchRecipe) BlockRegistry.getRecipe(AuraBlock.getBlockFromName(""))));
        new BLexiconEntry("interactions", categoryBasics).setLexiconPages(new PageText("0"), new PageText("1"));
        new BLexiconEntry("power", categoryBasics).setLexiconPages(new PageText("0"), new PageText("1"));
        new BLexiconEntry("pumps", categoryBasics).setLexiconPages(new PageText("0"), new PageText("1"), new PageText("2"),
                new PageCraftingRecipe("3", (CraftingBenchRecipe) BlockRegistry.getRecipe(AuraBlock.getBlockFromName("pump"))));
        new BLexiconEntry("comparator", categoryBasics).setLexiconPages(new PageText("0"));<commit_msg>Some changes to lexicon categories<commit_after>/**
 * This class was created by <Vazkii>. It's distributed as
 * part of the Botania Mod. Get the Source Code in github:
 * https://github.com/Vazkii/Botania
 *
 * Botania is Open Source and distributed under a
 * Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License
 * (http://creativecommons.org/licenses/by-nc-sa/3.0/deed.en_GB)
 *
 * File Created @ [Jan 14, 2014, 9:12:15 PM (GMT)]
 */
package pixlepix.auracascade.lexicon;


import cpw.mods.fml.common.ModAPIManager;
import net.minecraft.init.Blocks;
import net.minecraft.init.Items;
import net.minecraft.item.ItemStack;
import pixlepix.auracascade.QuestManager;
import pixlepix.auracascade.block.*;
import pixlepix.auracascade.block.entity.*;
import pixlepix.auracascade.data.EnumAura;
import pixlepix.auracascade.data.Quest;
import pixlepix.auracascade.data.recipe.PylonRecipe;
import pixlepix.auracascade.data.recipe.PylonRecipeRegistry;
import pixlepix.auracascade.item.*;
import pixlepix.auracascade.item.books.*;
import pixlepix.auracascade.lexicon.page.*;
import pixlepix.auracascade.main.Config;
import pixlepix.auracascade.registry.BlockRegistry;
import pixlepix.auracascade.registry.CraftingBenchRecipe;
import pixlepix.auracascade.registry.ITTinkererRegisterable;
import pixlepix.auracascade.registry.ThaumicTinkererRecipeMulti;

public final class LexiconData {

    public static CraftingBenchRecipe getRecipeFromFairy(Class<? extends EntityFairy> clazz) {
        int num = 0;
        for (int i = 0; i < ItemFairyCharm.fairyClasses.length; i++) {
            Class clazzCompare = ItemFairyCharm.fairyClasses[i];
            if (clazzCompare.equals(clazz)) {
                num = i;
                break;
            }
        }
        return (CraftingBenchRecipe) ((ThaumicTinkererRecipeMulti) BlockRegistry.getFirstRecipeFromItem(ItemFairyCharm.class)).recipes.get(num);

    }

    public static void init() {
        //Add categories
        LexiconCategory categoryQuest = null;
        if (Config.questline) {
            categoryQuest = CategoryManager.categoryQuest = new LexiconCategory("Quests").setIcon(new ItemStack(Items.diamond_sword));
            CategoryManager.addCategory(categoryQuest);
        }

        LexiconCategory categoryWalkthrough = CategoryManager.categoryWalkthrough = new LexiconCategory("Walkthrough").setIcon(new ItemStack(Items.wooden_pickaxe));
        CategoryManager.addCategory(categoryWalkthrough);
        
        LexiconCategory categoryBasics = CategoryManager.categoryBasics = new LexiconCategory("Basics").setIcon(new ItemStack(AuraBlock.getBlockFromName("")));
        CategoryManager.addCategory(categoryBasics);
        LexiconCategory categoryAuraColors = CategoryManager.categoryAuraColors = new LexiconCategory("Special Aura Colors").setIcon(new ItemStack(BlockRegistry.getFirstItemFromClass(ItemAuraCrystal.class), 1, 2));
        CategoryManager.addCategory(categoryAuraColors);
        LexiconCategory categoryAuraNodes = CategoryManager.categoryAuraNodes = new LexiconCategory("Special Aura Nodes").setIcon(new ItemStack(AuraBlock.getBlockFromName("capacitor")));
        CategoryManager.addCategory(categoryAuraNodes);
        LexiconCategory categoryConsumers = CategoryManager.categoryConsumers = new LexiconCategory("Power Consumers").setIcon(new ItemStack(ConsumerBlock.getBlockFromName("mob")));
        CategoryManager.addCategory(categoryConsumers);
        LexiconCategory categoryFairies = CategoryManager.categoryFairies = new LexiconCategory("Fairies").setIcon(new ItemStack(BlockRegistry.getFirstItemFromClass(ItemFairyCharm.class), 1, 100));
        CategoryManager.addCategory(categoryFairies);
        LexiconCategory catagoryAccessories = CategoryManager.categoryAccessories = new LexiconCategory("Accessories").setIcon(new ItemStack(BlockRegistry.getFirstItemFromClass(ItemGreenAmulet.class)));
        CategoryManager.addCategory(catagoryAccessories);


        LexiconCategory categoryEnchants = CategoryManager.categoryEnchants = new LexiconCategory("Enchantments").setIcon(new ItemStack(ConsumerBlock.getBlockFromName("enchant")));
        CategoryManager.addCategory(categoryEnchants);

        //Procedurally generate quest entries
        if (Config.questline) {
            for (Quest quest : QuestManager.quests) {
                int id = quest.id;
                new LexiconEntryQuest((id > 9 ? "" : "0") + id + "quest", categoryQuest, quest).setLexiconPages(new PageText("Desc"), new PageQuest(quest));
            }
        }
        
        // BASICS ENTRIES
        new BLexiconEntry("basics", categoryBasics).setPriority().setLexiconPages(new PageText("0"), new PageText("1"));
        ItemAuraCrystal itemAuraCrystal = (ItemAuraCrystal) BlockRegistry.getFirstItemFromClass(ItemAuraCrystal.class);
        new BLexiconEntry("auraFlow", categoryBasics).setLexiconPages(new PageText("0"), new PageText("1"),
                new PageCraftingRecipe("2", ((ThaumicTinkererRecipeMulti) BlockRegistry.getRecipe(itemAuraCrystal)).getIRecipies(0, 1)),
                new PageCraftingRecipe("3", (CraftingBenchRecipe) BlockRegistry.getRecipe(AuraBlock.getBlockFromName(""))));
        new BLexiconEntry("interactions", categoryBasics).setLexiconPages(new PageText("0"), new PageText("1"));
        new BLexiconEntry("power", categoryBasics).setLexiconPages(new PageText("0"), new PageText("1")).setPriority();
        new BLexiconEntry("pumps", categoryBasics).setLexiconPages(new PageText("0"), new PageText("1"), new PageText("2"),
                new PageCraftingRecipe("3", (CraftingBenchRecipe) BlockRegistry.getRecipe(AuraBlock.getBlockFromName("pump"))));
        new BLexiconEntry("comparator", categoryBasics).setLexiconPages(new PageText("0"));
{'fraction_non_alphanumeric': 0.10697188615197145, 'fraction_numerical': 0.007311341282966316, 'mean_word_length': 4.6130923302393745, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 2, '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': '6645311', 'n_tokens_mistral': 3443, 'n_tokens_neox': 3312, 'n_words': 556}