<commit_before>package com.jenjinstudios.world;

import java.util.*;

/**
 * Used to store WorldObjects.
 * @author <NAME>
 */
public class WorldObjectMap extends TreeMap<Integer, WorldObject>
{
	@Override
	public WorldObject remove(Object key) {
		WorldObject r = super.remove(key);
		if (r != null)
		{
			r.setLocation(null);
		}
		return r;
	}

	public int getAvailableId() {
		int currentKey = 0;
		while (containsKey(currentKey))
		{
			currentKey++;
		}
		return currentKey;
	}
}<commit_msg>Added snarky and pointless FIXME comment.<commit_after>package com.jenjinstudios.world;

import java.util.*;

/**
 * Used to store WorldObjects.
 * @author <NAME>
 */
public class WorldObjectMap extends TreeMap<Integer, WorldObject>
{
	@Override
	public WorldObject remove(Object key) {
		WorldObject r = super.remove(key);
		if (r != null)
		{
			r.setLocation(null);
		}
		return r;
	}

	public int getAvailableId() {
		// FIXME This really could be a O(log(n)) method.  Someone should get on that.
		int currentKey = 0;
		while (containsKey(currentKey))
		{
			currentKey++;
		}
		return currentKey;
	}
}
{'fraction_non_alphanumeric': 0.12217194570135746, 'fraction_numerical': 0.0018099547511312218, 'mean_word_length': 3.7264957264957266, 'pattern_counts': {'":': 0, '<': 7, '<?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': '5529900', 'n_tokens_mistral': 406, 'n_tokens_neox': 372, 'n_words': 100}