<commit_before>package logic_subsystem;

import java.util.List;
import java.util.Map;

public class XiabweenInternalDatabase extends XIDECSCComponent {

	protected List<ActualPlayerClass> ourPlayers;
	/**
	 * A dictionary of names and their corresponding textures that they point
	 * to. The key is the reference while the value is the sprite sheet
	 * filename, not including the extension or the file path, e.g., "shana" =>
	 * "shana spritesheet"
	 */
	protected Map<String, String> bindingTextures;
	/**
	 * A dictionary of map names and their corresponding .tmx files.
	 */
	protected Map<String, String> data_Maps;

	public boolean isOnline;
	public final XIDType XIDType;
	/**
	 * The human's player. <code>null</code> if the XID instance is a networked
	 * server one.
	 */
	protected ActualPlayerClass humansPlayer;

	public XiabweenInternalDatabase(XIDType type) {
		this.XIDType = type;
	}

	public void queryForData() { // TODO: Might want to make XID abstract too with abstract methods for encapsulating, because
									// there might be more than one type of XID, e.g., for single player or multiplayer.
	}

	public void addPlayerToDatabase(ActualPlayerClass player) {
		this.ourPlayers.add(player);
	}

	/**
	 * Removes an {@link ActualPlayerClass} from a XID instance.
	 *
	 * @param player
	 *            The {@link ActualPlayerClass} object to remove from the XID.
	 * @return <code>true</code> if successful.
	 */
	public boolean removePlayerFromDatabase(ActualPlayerClass player) {
		return this.ourPlayers.remove(player);
	}

	public ActualPlayerClass getHumansPlayer() {
		return this.humansPlayer;
	}

	public boolean setHumansPlayer(ActualPlayerClass player) {
		if (this.XIDType == logic_subsystem.XIDType.ONLINE) {
			return false;
		}

		this.humansPlayer = player;
		return true;
	}

}
<commit_msg>Created public ArrayList<ActualPlayerClass> getPlayers().<commit_after>package logic_subsystem;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

public class XiabweenInternalDatabase extends XIDECSCComponent {

	protected List<ActualPlayerClass> ourPlayers;
	/**
	 * A dictionary of names and their corresponding textures that they point
	 * to. The key is the reference while the value is the sprite sheet
	 * filename, not including the extension or the file path, e.g., "shana" =>
	 * "shana spritesheet"
	 */
	protected Map<String, String> bindingTextures;
	/**
	 * A dictionary of map names and their corresponding .tmx files.
	 */
	protected Map<String, String> data_Maps;

	public boolean isOnline;
	public final XIDType XIDType;
	/**
	 * The human's player. <code>null</code> if the XID instance is a networked
	 * server one.
	 */
	protected ActualPlayerClass humansPlayer;

	public XiabweenInternalDatabase(XIDType type) {
		this.XIDType = type;
	}

	public void queryForData() { // TODO: Might want to make XID abstract too with abstract methods for encapsulating, because
									// there might be more than one type of XID, e.g., for single player or multiplayer.
	}

	public void addPlayerToDatabase(ActualPlayerClass player) {
		this.ourPlayers.add(player);
	}

	public ArrayList<ActualPlayerClass> getPlayers() {
		ArrayList<ActualPlayerClass> players = new ArrayList<ActualPlayerClass>();
		for (ActualPlayerClass entry : this.ourPlayers) {
			players.add(entry);
		}
		return players;
	}

	/**
	 * Removes an {@link ActualPlayerClass} from a XID instance.
	 *
	 * @param player
	 *            The {@link ActualPlayerClass} object to remove from the XID.
	 * @return <code>true</code> if successful.
	 */
	public boolean removePlayerFromDatabase(ActualPlayerClass player) {
		return this.ourPlayers.remove(player);
	}

	public ActualPlayerClass getHumansPlayer() {
		return this.humansPlayer;
	}

	public boolean setHumansPlayer(ActualPlayerClass player) {
		if (this.XIDType == logic_subsystem.XIDType.ONLINE) {
			return false;
		}

		this.humansPlayer = player;
		return true;
	}

}

{'fraction_non_alphanumeric': 0.08616060532096656, 'fraction_numerical': 0.0, 'mean_word_length': 3.4446854663774404, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 23, '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': '3134907', 'n_tokens_mistral': 1321, 'n_tokens_neox': 1162, 'n_words': 381}