<commit_before>package com.forgeessentials.economy;

import java.util.HashMap;

import net.minecraft.entity.player.EntityPlayer;

import com.forgeessentials.api.IEconManager;
import com.forgeessentials.data.api.ClassContainer;
import com.forgeessentials.data.api.DataStorageManager;

import cpw.mods.fml.common.IPlayerTracker;

/**
 * Call these methods to modify a target's Wallet.
 */
public class WalletHandler implements IPlayerTracker, IEconManager
{
	private static ClassContainer			con		= new ClassContainer(Wallet.class);
	private static HashMap<String, Wallet>	wallets	= new HashMap<String, Wallet>();

	@Override
	public void addToWallet(int amountToAdd, String player)
	{
		wallets.get(player).amount = wallets.get(player).amount + amountToAdd;
	}

	@Override
	public int getWallet(String player)
	{
		return wallets.get(player).amount;
	}

	@Override
	public void removeFromWallet(int amountToSubtract, String player)
	{
		if (wallets.get(player).amount - amountToSubtract > 0){
		wallets.get(player).amount = wallets.get(player).amount - amountToSubtract;
		}
	}

	@Override
	public void setWallet(int setAmount, EntityPlayer player)
	{
		wallets.get(player.username).amount = setAmount;
	}

	@Override
	public String currency(int amount)
	{
		if (amount == 1)
			return ConfigEconomy.currencySingular;
		else<commit_msg>Take all the moneys<commit_after>package com.forgeessentials.economy;

import java.util.HashMap;

import net.minecraft.entity.player.EntityPlayer;

import com.forgeessentials.api.IEconManager;
import com.forgeessentials.data.api.ClassContainer;
import com.forgeessentials.data.api.DataStorageManager;

import cpw.mods.fml.common.IPlayerTracker;

/**
 * Call these methods to modify a target's Wallet.
 */
public class WalletHandler implements IPlayerTracker, IEconManager
{
	private static ClassContainer			con		= new ClassContainer(Wallet.class);
	private static HashMap<String, Wallet>	wallets	= new HashMap<String, Wallet>();

	@Override
	public void addToWallet(int amountToAdd, String player)
	{
		wallets.get(player).amount = wallets.get(player).amount + amountToAdd;
	}

	@Override
	public int getWallet(String player)
	{
		return wallets.get(player).amount;
	}

	@Override
	public void removeFromWallet(int amountToSubtract, String player)
	{
		if (wallets.get(player).amount - amountToSubtract >= 0){
		wallets.get(player).amount = wallets.get(player).amount - amountToSubtract;
		}
	}

	@Override
	public void setWallet(int setAmount, EntityPlayer player)
	{
		wallets.get(player.username).amount = setAmount;
	}

	@Override
	public String currency(int amount)
	{
		if (amount == 1)
			return ConfigEconomy.currencySingular;
		else
{'fraction_non_alphanumeric': 0.10130841121495326, 'fraction_numerical': 0.0014953271028037382, 'mean_word_length': 5.137614678899083, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, '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': '5394274', 'n_tokens_mistral': 892, 'n_tokens_neox': 859, 'n_words': 188}