<commit_before>package minetweaker.mods.jei;

import mezz.jei.api.IRecipeRegistry;
import mezz.jei.api.recipe.*;
import minetweaker.api.compat.IJEIRecipeRegistry;
import net.minecraft.item.ItemStack;

import java.util.*;

public class JEIRecipeRegistry implements IJEIRecipeRegistry {
	
	private IRecipeRegistry recipeRegistry;
	
	public JEIRecipeRegistry(IRecipeRegistry recipeRegistry) {
		this.recipeRegistry = recipeRegistry;
	}
	
	@Override
	public void addRecipe(Object object) {
		recipeRegistry.addRecipe(object);
	}
	
	@Override
	public void removeRecipe(Object object) {
		recipeRegistry.removeRecipe(object);
	}
	
	@Override
	public void addFurnace(List<Object> input, Object output) {
		List<ItemStack> inputs = new ArrayList<>();
		input.forEach(in -> {
			inputs.add((ItemStack) in);
		});
		recipeRegistry.addSmeltingRecipe(inputs, (ItemStack) output);
	}
	
	
	@Override
	public void removeFurnace(Object object) {
		IFocus<ItemStack> focus = recipeRegistry.createFocus(IFocus.Mode.INPUT, (ItemStack) object);
		List<IRecipeCategory> categories = recipeRegistry.getRecipeCategories(focus);
		for(IRecipeCategory category : categories) {
			System.out.println(category.getTitle());
			if(category.getUid().equals(VanillaRecipeCategoryUid.SMELTING)) {
				List<IRecipeWrapper> wrappers = recipeRegistry.getRecipeWrappers(category, focus);
				for(IRecipeWrapper wrapper : wrappers) {
					System.out.println("removing");
					recipeRegistry.removeRecipe(wrapper);
				}
			}
		}
	}
}<commit_msg>Cleaned up a bit<commit_after>package minetweaker.mods.jei;

import mezz.jei.api.IRecipeRegistry;
import mezz.jei.api.recipe.*;
import minetweaker.api.compat.IJEIRecipeRegistry;
import net.minecraft.item.ItemStack;

import java.util.*;

public class JEIRecipeRegistry implements IJEIRecipeRegistry {
	
	private IRecipeRegistry recipeRegistry;
	
	public JEIRecipeRegistry(IRecipeRegistry recipeRegistry) {
		this.recipeRegistry = recipeRegistry;
	}
	
	@Override
	public void addRecipe(Object object) {
		recipeRegistry.addRecipe(object);
	}
	
	@Override
	public void removeRecipe(Object object) {
		recipeRegistry.removeRecipe(object);
	}
	
	@Override
	public void addFurnace(List<Object> input, Object output) {
		List<ItemStack> inputs = new ArrayList<>();
		input.forEach(in -> {
			inputs.add((ItemStack) in);
		});
		recipeRegistry.addSmeltingRecipe(inputs, (ItemStack) output);
	}
	
	
	@Override
	public void removeFurnace(Object object) {
		IFocus<ItemStack> focus = recipeRegistry.createFocus(IFocus.Mode.INPUT, (ItemStack) object);
		List<IRecipeCategory> categories = recipeRegistry.getRecipeCategories(focus);
		for(IRecipeCategory category : categories) {
			if(category.getUid().equals(VanillaRecipeCategoryUid.SMELTING)) {
				List<IRecipeWrapper> wrappers = recipeRegistry.getRecipeWrappers(category, focus);
				for(IRecipeWrapper wrapper : wrappers) {
					recipeRegistry.removeRecipe(wrapper);
				}
			}
		}
	}
}
{'fraction_non_alphanumeric': 0.10721579305650102, 'fraction_numerical': 0.0, 'mean_word_length': 5.431072210065645, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 17, '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': '2019732', 'n_tokens_mistral': 1051, 'n_tokens_neox': 947, 'n_words': 163}