<commit_before>package inventory;

public class Bag {
	private DummyItem speedBoxes;
	private DummyItem damageBoxes;
	private DummyItem jetpackBoxes;
	private DummyItem teleportBoxes;

	public Bag() {
		speedBoxes = new DummyItem("Speed");
		damageBoxes = new DummyItem("Damage");
		teleportBoxes = new DummyItem("Teleporter");
		jetpackBoxes = new DummyItem("Jetpack");
	}

	public void addItem(Item i) {
		String checkType = i.getType();
		if (checkType.equals("Speed"))
			speedBoxes.incrementCount();
		if (checkType.equals("Jetpack"))
			jetpackBoxes.incrementCount();
		if (checkType.equals("Teleporter"))
			teleportBoxes.incrementCount();
	}

	public void useItem(String i) {
		if (i.equals("Speed")) {
			if (speedBoxes.getCount() > 0) {
				speedBoxes.decrementCount();
				speedBoxes.use();
			}
		}
		if (i.equals("Jetpack")) {
			if (jetpackBoxes.getCount() > 0) {
				jetpackBoxes.decrementCount();
				jetpackBoxes.use();
			}
		}

		if (i.equals("Damage")) {
			if (damageBoxes.getCount() > 0) {
				damageBoxes.decrementCount();
				damageBoxes.use();
			}
		}
		if (i.equals("Teleporter")) {
			if (teleportBoxes.getCount() > 0) {
				teleportBoxes.decrementCount();				
				teleportBoxes.use();
			}
		}
	}

	public String toString() {
		String listOfItems = "";
		listOfItems = "S:" + speedBoxes.getCount();
		listOfItems = listOfItems + "J:" + jetpackBoxes.getCount();
		listOfItems = listOfItems + " T: " + teleportBoxes.getCount();
		return listOfItems;
	}
}<commit_msg>Fixed spacing for the on-screen current item count representations.<commit_after>package inventory;

public class Bag {
	private DummyItem speedBoxes;
	private DummyItem damageBoxes;
	private DummyItem jetpackBoxes;
	private DummyItem teleportBoxes;

	public Bag() {
		speedBoxes = new DummyItem("Speed");
		damageBoxes = new DummyItem("Damage");
		teleportBoxes = new DummyItem("Teleporter");
		jetpackBoxes = new DummyItem("Jetpack");
	}

	public void addItem(Item i) {
		String checkType = i.getType();
		if (checkType.equals("Speed"))
			speedBoxes.incrementCount();
		if (checkType.equals("Jetpack"))
			jetpackBoxes.incrementCount();
		if (checkType.equals("Teleporter"))
			teleportBoxes.incrementCount();
	}

	public void useItem(String i) {
		if (i.equals("Speed")) {
			if (speedBoxes.getCount() > 0) {
				speedBoxes.decrementCount();
				speedBoxes.use();
			}
		}
		if (i.equals("Jetpack")) {
			if (jetpackBoxes.getCount() > 0) {
				jetpackBoxes.decrementCount();
				jetpackBoxes.use();
			}
		}

		if (i.equals("Damage")) {
			if (damageBoxes.getCount() > 0) {
				damageBoxes.decrementCount();
				damageBoxes.use();
			}
		}
		if (i.equals("Teleporter")) {
			if (teleportBoxes.getCount() > 0) {
				teleportBoxes.decrementCount();				
				teleportBoxes.use();
			}
		}
	}

	public String toString() {
		String listOfItems = "";
		listOfItems = "S:" + speedBoxes.getCount();
		listOfItems = listOfItems + " J:" + jetpackBoxes.getCount();
		listOfItems = listOfItems + " T: " + teleportBoxes.getCount();
		return listOfItems;
	}
}
{'fraction_non_alphanumeric': 0.14666228214403157, 'fraction_numerical': 0.0026307135810588623, 'mean_word_length': 4.003289473684211, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '5180141', 'n_tokens_mistral': 1242, 'n_tokens_neox': 1079, 'n_words': 202}