<commit_before>package ljdp.minechem.common.recipe.handlers;

import java.util.Arrays;
import java.util.logging.Level;

import ljdp.minechem.api.core.Chemical;
import ljdp.minechem.api.core.EnumMolecule;
import ljdp.minechem.api.core.Molecule;
import ljdp.minechem.api.recipe.DecomposerRecipe;
import ljdp.minechem.common.ModMinechem;
import ljdp.minechem.common.recipe.OreDictionaryHandler;
import net.minecraftforge.oredict.OreDictionary.OreRegisterEvent;

public class UndergroundBiomesOreDictionaryHandler implements
		OreDictionaryHandler {

	private enum EnumOre {
		stoneGraniteBlack, 
		stoneGraniteRed, 
		stoneRhyolite, 
		stoneAndesite, 
		stoneGabbro, 
		stoneBasalt, 
		stoneKomatiite, 
		stoneDacite, 
		stoneGneiss, 
		stoneEclogite, 
		stoneMarble, 
		stoneQuartzite, 
		stoneBlueschist, 
		stoneGreenschist, 
		stoneSoapstone, 
		stoneMigmatite, 
		stoneLimestone, 
		stoneChalk, 
		stoneShale, 
		stoneSiltstone, 
		stoneLignite, 
		stoneDolomite, 
		stoneGreywacke, 
		stoneChert
	}

	@Override
	public boolean canHandle(OreRegisterEvent event) {
		for (EnumOre ore : EnumOre.values()) {
	        if (ore.name().equals(event.Name)) {
	            return true;
	        }
	    }
		return false;
	}

	@Override
	public void handle(OreRegisterEvent event) {
		EnumOre ore = EnumOre.valueOf(event.Name);
		switch (ore) {
		case stoneGraniteBlack:
			DecomposerRecipe.add(new DecomposerRecipe(event.Ore,
					new Chemical[] { new Molecule(EnumMolecule.siliconDioxide, 20),
							new Molecule(EnumMolecule.plagioclaseAlbite, 4),
							new Molecule(EnumMolecule.plagioclaseAnorthite, 4),
							new Molecule(EnumMolecule.orthoclase, 3),
							new Molecule(EnumMolecule.biotite, 1) }));
			break;
		case stoneGraniteRed:
			DecomposerRecipe.add(new DecomposerRecipe(event.Ore,
					new Chemical[] { new Molecule(EnumMolecule.siliconDioxide, 20),
							new Molecule(EnumMolecule.plagioclaseAlbite, 3),
							new Molecule(EnumMolecule.plagioclaseAnorthite, 3),
							new Molecule(EnumMolecule.orthoclase, 4),
							new Molecule(EnumMolecule.biotite, 1),
							new Molecule(EnumMolecule.whitePigment, 1) }));
			break;
		case stoneRhyolite:
			DecomposerRecipe.add(new DecomposerRecipe(event.Ore,
					new Chemical[] { new Molecule(EnumMolecule.siliconDioxide, 18),
							new Molecule(EnumMolecule.plagioclaseAlbite, 5),
							new Molecule(EnumMolecule.plagioclaseAnorthite, 5),
							new Molecule(EnumMolecule.orthoclase, 2),
							new Molecule(EnumMolecule.biotite, 1),
							new Molecule(EnumMolecule.augite, 1) }));
			break;
		case stoneAndesite:
			DecomposerRecipe
					.add(new DecomposerRecipe(
							event.Ore,
							new Chemical[] {
									new Molecule(
											EnumMolecule.plagioclaseAlbite, 12),
									new Molecule(
											EnumMolecule.plagioclaseAnorthite,
											12),
									new Molecule(EnumMolecule.augite, 8) }));
			break;
		case stoneGabbro:
			DecomposerRecipe.add(new DecomposerRecipe(event.Ore,
					new Chemical[] {
							new Molecule(EnumMolecule.plagioclaseAlbite, 16),
							new Molecule(EnumMolecule.plagioclaseAnorthite, 8),
							new Molecule(EnumMolecule.augite, 7),
							new Molecule(EnumMolecule.olivine, 1) }));
			break;
		case stoneBasalt:
			DecomposerRecipe.add(new DecomposerRecipe(event.Ore,
					new Chemical[] {
							new Molecule(EnumMolecule.plagioclaseAlbite, 8),
							new Molecule(EnumMolecule.plagioclaseAnorthite, 8),
							new Molecule(EnumMolecule.augite, 12),
							new Molecule(EnumMolecule.olivine, 4) }));
			break;
		case stoneKomatiite:
			// TODO: find actual components (this is c/p from basalt)
			DecomposerRecipe.add(new DecomposerRecipe(event.Ore,
					new Chemical[] {
							new Molecule(EnumMolecule.plagioclaseAlbite, 8),
							new Molecule(EnumMolecule.plagioclaseAnorthite, 8),
							new Molecule(EnumMolecule.augite, 12),
							new Molecule(EnumMolecule.olivine, 4) }));
			break;
		case stoneDacite:
			DecomposerRecipe.add(new DecomposerRecipe(event.Ore,
					new Chemical[] {
							new Molecule(EnumMolecule.plagioclaseAlbite, 6),
							new Molecule(EnumMolecule.plagioclaseAnorthite, 6),
							new Molecule(EnumMolecule.biotite, 8),
							new Molecule(EnumMolecule.siliconDioxide, 8),
							new Molecule(EnumMolecule.augite, 4) }));
			break;
		case stoneGneiss:
			DecomposerRecipe.add(new DecomposerRecipe(event.Ore,
					new Chemical[] { new Molecule(EnumMolecule.orthoclase, 8),
							new Molecule(EnumMolecule.plagioclaseAlbite, 4),
							new Molecule(EnumMolecule.plagioclaseAnorthite, 6),
							new Molecule(EnumMolecule.biotite, 4),
							new Molecule(EnumMolecule.siliconDioxide, 6),
							new Molecule(EnumMolecule.augite, 4) }));
			break;
		case stoneEclogite:
			// TODO: find actual components (this is c/p from basalt)
			DecomposerRecipe.add(new DecomposerRecipe(event.Ore,
					new Chemical[] {
							new Molecule(EnumMolecule.plagioclaseAlbite, 8),
							new Molecule(EnumMolecule.plagioclaseAnorthite, 8),
							new Molecule(EnumMolecule.augite, 12),
							new Molecule(EnumMolecule.olivine, 4) }));
			break;
		case stoneMarble:
			DecomposerRecipe.add(new DecomposerRecipe(event.Ore,
					new Chemical[] { new Molecule(EnumMolecule.calcite, 32) }));
			break;
		case stonesiliconDioxideite:
			DecomposerRecipe.add(new DecomposerRecipe(event.Ore,
					new Chemical[] { new Molecule(EnumMolecule.siliconDioxide, 32) }));
			break;
		case stoneGreenschist:
		case stoneBlueschist:
			DecomposerRecipe.add(new DecomposerRecipe(event.Ore,
					new Chemical[] {
							new Molecule(EnumMolecule.plagioclaseAlbite, 8),
							new Molecule(EnumMolecule.plagioclaseAnorthite, 8),
							new Molecule(EnumMolecule.biotite, 4),
							new Molecule(EnumMolecule.siliconDioxide, 8),
							new Molecule(EnumMolecule.augite, 4) }));
			break;
		case stoneSoapstone:
			DecomposerRecipe.add(new DecomposerRecipe(event.Ore,
					new Chemical[] { new Molecule(EnumMolecule.talc, 32) }));
			break;
		default:
			DecomposerRecipe.add(new DecomposerRecipe(event.Ore,
					new Chemical[] { new Molecule(EnumMolecule.siliconDioxide, 8),
							new Molecule(EnumMolecule.plagioclaseAnorthite, 8),
							new Molecule(EnumMolecule.plagioclaseAlbite, 8),
							new Molecule(EnumMolecule.orthoclase, 8) }));
			break;
		}
	}

}
<commit_msg>Having to fight with eclipse is fun<commit_after>package ljdp.minechem.common.recipe.handlers;

import java.util.Arrays;
import java.util.logging.Level;

import ljdp.minechem.api.core.Chemical;
import ljdp.minechem.api.core.EnumMolecule;
import ljdp.minechem.api.core.Molecule;
import ljdp.minechem.api.recipe.DecomposerRecipe;
import ljdp.minechem.common.ModMinechem;
import ljdp.minechem.common.recipe.OreDictionaryHandler;
import net.minecraftforge.oredict.OreDictionary.OreRegisterEvent;

public class UndergroundBiomesOreDictionaryHandler implements
		OreDictionaryHandler {

	private enum EnumOre {
		stoneGraniteBlack, 
		stoneGraniteRed, 
		stoneRhyolite, 
		stoneAndesite, 
		stoneGabbro, 
		stoneBasalt, 
		stoneKomatiite, 
		stoneDacite, 
		stoneGneiss, 
		stoneEclogite, 
		stoneMarble, 
		stoneQuartzite, 
		stoneBlueschist, 
		stoneGreenschist, 
		stoneSoapstone, 
		stoneMigmatite, 
		stoneLimestone, 
		stoneChalk, 
		stoneShale, 
		stoneSiltstone, 
		stoneLignite, 
		stoneDolomite, 
		stoneGreywacke, 
		stoneChert
	}

	@Override
	public boolean canHandle(OreRegisterEvent event) {
		for (EnumOre ore : EnumOre.values()) {
	        if (ore.name().equals(event.Name)) {
	            return true;
	        }
	    }
		return false;
	}

	@Override
	public void handle(OreRegisterEvent event) {
		EnumOre ore = EnumOre.valueOf(event.Name);
		switch (ore) {
		case stoneGraniteBlack:
			DecomposerRecipe.add(new DecomposerRecipe(event.Ore,
					new Chemical[] { new Molecule(EnumMolecule.siliconDioxide, 20),
							new Molecule(EnumMolecule.plagioclaseAlbite, 4),
							new Molecule(EnumMolecule.plagioclaseAnorthite, 4),
							new Molecule(EnumMolecule.orthoclase, 3),
							new Molecule(EnumMolecule.biotite, 1) }));
			break;
		case stoneGraniteRed:
			DecomposerRecipe.add(new DecomposerRecipe(event.Ore,
					new Chemical[] { new Molecule(EnumMolecule.siliconDioxide, 20),
							new Molecule(EnumMolecule.plagioclaseAlbite, 3),
							new Molecule(EnumMolecule.plagioclaseAnorthite, 3),
							new Molecule(EnumMolecule.orthoclase, 4),
							new Molecule(EnumMolecule.biotite, 1),
							new Molecule(EnumMolecule.whitePigment, 1) }));
			break;
		case stoneRhyolite:
			DecomposerRecipe.add(new DecomposerRecipe(event.Ore,
					new Chemical[] { new Molecule(EnumMolecule.siliconDioxide, 18),
							new Molecule(EnumMolecule.plagioclaseAlbite, 5),
							new Molecule(EnumMolecule.plagioclaseAnorthite, 5),
							new Molecule(EnumMolecule.orthoclase, 2),
							new Molecule(EnumMolecule.biotite, 1),
							new Molecule(EnumMolecule.augite, 1) }));
			break;
		case stoneAndesite:
			DecomposerRecipe
					.add(new DecomposerRecipe(
							event.Ore,
							new Chemical[] {
									new Molecule(
											EnumMolecule.plagioclaseAlbite, 12),
									new Molecule(
											EnumMolecule.plagioclaseAnorthite,
											12),
									new Molecule(EnumMolecule.augite, 8) }));
			break;
		case stoneGabbro:
			DecomposerRecipe.add(new DecomposerRecipe(event.Ore,
					new Chemical[] {
							new Molecule(EnumMolecule.plagioclaseAlbite, 16),
							new Molecule(EnumMolecule.plagioclaseAnorthite, 8),
							new Molecule(EnumMolecule.augite, 7),
							new Molecule(EnumMolecule.olivine, 1) }));
			break;
		case stoneBasalt:
			DecomposerRecipe.add(new DecomposerRecipe(event.Ore,
					new Chemical[] {
							new Molecule(EnumMolecule.plagioclaseAlbite, 8),
							new Molecule(EnumMolecule.plagioclaseAnorthite, 8),
							new Molecule(EnumMolecule.augite, 12),
							new Molecule(EnumMolecule.olivine, 4) }));
			break;
		case stoneKomatiite:
			// TODO: find actual components (this is c/p from basalt)
			DecomposerRecipe.add(new DecomposerRecipe(event.Ore,
					new Chemical[] {
							new Molecule(EnumMolecule.plagioclaseAlbite, 8),
							new Molecule(EnumMolecule.plagioclaseAnorthite, 8),
							new Molecule(EnumMolecule.augite, 12),
							new Molecule(EnumMolecule.olivine, 4) }));
			break;
		case stoneDacite:
			DecomposerRecipe.add(new DecomposerRecipe(event.Ore,
					new Chemical[] {
							new Molecule(EnumMolecule.plagioclaseAlbite, 6),
							new Molecule(EnumMolecule.plagioclaseAnorthite, 6),
							new Molecule(EnumMolecule.biotite, 8),
							new Molecule(EnumMolecule.siliconDioxide, 8),
							new Molecule(EnumMolecule.augite, 4) }));
			break;
		case stoneGneiss:
			DecomposerRecipe.add(new DecomposerRecipe(event.Ore,
					new Chemical[] { new Molecule(EnumMolecule.orthoclase, 8),
							new Molecule(EnumMolecule.plagioclaseAlbite, 4),
							new Molecule(EnumMolecule.plagioclaseAnorthite, 6),
							new Molecule(EnumMolecule.biotite, 4),
							new Molecule(EnumMolecule.siliconDioxide, 6),
							new Molecule(EnumMolecule.augite, 4) }));
			break;
		case stoneEclogite:
			// TODO: find actual components (this is c/p from basalt)
			DecomposerRecipe.add(new DecomposerRecipe(event.Ore,
					new Chemical[] {
							new Molecule(EnumMolecule.plagioclaseAlbite, 8),
							new Molecule(EnumMolecule.plagioclaseAnorthite, 8),
							new Molecule(EnumMolecule.augite, 12),
							new Molecule(EnumMolecule.olivine, 4) }));
			break;
		case stoneMarble:
			DecomposerRecipe.add(new DecomposerRecipe(event.Ore,
					new Chemical[] { new Molecule(EnumMolecule.calcite, 32) }));
			break;
		case stoneQuartzite:
			DecomposerRecipe.add(new DecomposerRecipe(event.Ore,
					new Chemical[] { new Molecule(EnumMolecule.siliconDioxide, 32) }));
			break;
		case stoneGreenschist:
		case stoneBlueschist:
			DecomposerRecipe.add(new DecomposerRecipe(event.Ore,
					new Chemical[] {
							new Molecule(EnumMolecule.plagioclaseAlbite, 8),
							new Molecule(EnumMolecule.plagioclaseAnorthite, 8),
							new Molecule(EnumMolecule.biotite, 4),
							new Molecule(EnumMolecule.siliconDioxide, 8),
							new Molecule(EnumMolecule.augite, 4) }));
			break;
		case stoneSoapstone:
			DecomposerRecipe.add(new DecomposerRecipe(event.Ore,
					new Chemical[] { new Molecule(EnumMolecule.talc, 32) }));
			break;
		default:
			DecomposerRecipe.add(new DecomposerRecipe(event.Ore,
					new Chemical[] { new Molecule(EnumMolecule.siliconDioxide, 8),
							new Molecule(EnumMolecule.plagioclaseAnorthite, 8),
							new Molecule(EnumMolecule.plagioclaseAlbite, 8),
							new Molecule(EnumMolecule.orthoclase, 8) }));
			break;
		}
	}

}

{'fraction_non_alphanumeric': 0.09587134683779186, 'fraction_numerical': 0.01097881552497294, 'mean_word_length': 3.318864774624374, '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': '7154449', 'n_tokens_mistral': 6044, 'n_tokens_neox': 4597, 'n_words': 770}