<commit_before>package com.ForgeEssentials.core.misc;

import java.util.HashMap;
import java.util.Set;

import net.minecraft.item.Item;
import net.minecraft.item.ItemBlock;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.nbt.NBTTagList;

import com.ForgeEssentials.util.OutputHandler;
import com.google.common.collect.HashBiMap;

import cpw.mods.fml.common.registry.GameData;
import cpw.mods.fml.common.registry.ItemData;

public abstract class UnfreindlyItemList
{
	private static HashBiMap<String, Integer>	map	= HashBiMap.create();

	private UnfreindlyItemList()
	{
	}

	public static void vanillaStep()
	{
		HashMap<String, Integer> duplicates = new HashMap();
		
		String name = "";
		Integer num;
		for (int i = 0; i < Item.itemsList.length; i++)
		{
			Item item = Item.itemsList[i];
			if (item == null)
				continue;

			name = item.getItemName();
			if (name == null)
				continue;

			name = name.replace("item.", "").replace("tile.", "");

			name = "vanilla." + name;
			
			num = duplicates.get(name);
			if (num == null)
			{
				duplicates.put(name, 0);
			}
			else
			{
				num++;
				duplicates.put(name, num);
				name+=num;
			}
			
			map.put(name, item.itemID);
		}
	}

	/**
	 * should be called at PostLoad.
	 */
	public static void modStep()
	{
		NBTTagList list = new NBTTagList();
		GameData.writeItemData(list);
		ItemData data;
		String name;
		for (int i = 0; i < list.tagCount(); i++)
		{
			data = new ItemData((NBTTagCompound) list.tagAt(i));<commit_msg>teeny change for vanilla Blocks<commit_after>package com.ForgeEssentials.core.misc;

import java.util.HashMap;
import java.util.Set;

import net.minecraft.item.Item;
import net.minecraft.item.ItemBlock;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.nbt.NBTTagList;

import com.ForgeEssentials.util.OutputHandler;
import com.google.common.collect.HashBiMap;

import cpw.mods.fml.common.registry.GameData;
import cpw.mods.fml.common.registry.ItemData;

public abstract class UnfreindlyItemList
{
	private static HashBiMap<String, Integer>	map	= HashBiMap.create();

	private UnfreindlyItemList()
	{
	}

	public static void vanillaStep()
	{
		HashMap<String, Integer> duplicates = new HashMap();
		
		String name = "";
		Integer num;
		for (int i = 0; i < Item.itemsList.length; i++)
		{
			Item item = Item.itemsList[i];
			if (item == null)
				continue;

			name = item.getItemName();
			if (name == null)
				continue;

			name = name.replace("tile.", "block.");

			name = "vanilla." + name;
			
			num = duplicates.get(name);
			if (num == null)
			{
				duplicates.put(name, 0);
			}
			else
			{
				num++;
				duplicates.put(name, num);
				name+=num;
			}
			
			map.put(name, item.itemID);
		}
	}

	/**
	 * should be called at PostLoad.
	 */
	public static void modStep()
	{
		NBTTagList list = new NBTTagList();
		GameData.writeItemData(list);
		ItemData data;
		String name;
		for (int i = 0; i < list.tagCount(); i++)
		{
			data = new ItemData((NBTTagCompound) list.tagAt(i));
{'fraction_non_alphanumeric': 0.13910149750415973, 'fraction_numerical': 0.0019966722129783694, 'mean_word_length': 3.4401772525849337, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 7, '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': '2016745', 'n_tokens_mistral': 1234, 'n_tokens_neox': 1071, 'n_words': 235}