<commit_before>package edu.wheaton.simulator.entity;

/**
 * BRANDON's README!!!!:
 * 
 * Today is a very busy day and I was unable to sort out the 'ideal'
 * ID interface setup. So I will give you the intended rundown:
 * 
 * Rename: Agent.getID() -> Agent.getAgentID()
 * New Method: Entity.getEntityID()
 * New Method: Prototype.getPrototypeID()
 * 
 * New class: EntityID
 * New class PrototypeID
 * 
 * These changes will allow for a clear distinction between Agents,
 * Prototypes, and other subclasses of Entity while at the same time
 * allowing for a higher level of genericness by having two ID's: an EntityID
 * and then a Prototype or Agent ID. The database aspect of Entity has been commented
 * out because it is not being used and will cause foreseeable garbage collection issues.
 * Again, sorry about the instability caused by my API changes. I will try to communicate
 * more effectively in the future.
 * /

public class AgentID implements Comparable<AgentID>{
	private static Integer nextID = 0;
	
	private final Integer value;
	
	protected AgentID(){
		value = genIDValue();
	}
	
	public final Integer getInt(){
		return value;
	}
	
	@Override
	public String toString(){
		return value.toString();
	}

	private static synchronized final Integer genIDValue() {
		Integer id = nextID;
		++nextID;
		return id;
	}

	@Override
	public int compareTo(AgentID o) {
		return this.getInt().compareTo(o.getInt());
	}
	
	public boolean equals(AgentID o){
		return this.getInt().equals(o.getInt());
	}
}<commit_msg>Closed the comment in Brandon's readme.<commit_after>package edu.wheaton.simulator.entity;

/**
 * BRANDON's README!!!!:
 * 
 * Today is a very busy day and I was unable to sort out the 'ideal'
 * ID interface setup. So I will give you the intended rundown:
 * 
 * Rename: Agent.getID() -> Agent.getAgentID()
 * New Method: Entity.getEntityID()
 * New Method: Prototype.getPrototypeID()
 * 
 * New class: EntityID
 * New class PrototypeID
 * 
 * These changes will allow for a clear distinction between Agents,
 * Prototypes, and other subclasses of Entity while at the same time
 * allowing for a higher level of genericness by having two ID's: an EntityID
 * and then a Prototype or Agent ID. The database aspect of Entity has been commented
 * out because it is not being used and will cause foreseeable garbage collection issues.
 * Again, sorry about the instability caused by my API changes. I will try to communicate
 * more effectively in the future.
 * /

public class AgentID implements Comparable<AgentID>{
	private static Integer nextID = 0;
	
	private final Integer value;
	
	protected AgentID(){
		value = genIDValue();
	}
	
	public final Integer getInt(){
		return value;
	}
	
	@Override
	public String toString(){
		return value.toString();
	}

	private static synchronized final Integer genIDValue() {
		Integer id = nextID;
		++nextID;
		return id;
	}

	@Override
	public int compareTo(AgentID o) {
		return this.getInt().compareTo(o.getInt());
	}
	
	public boolean equals(AgentID o){
		return this.getInt().equals(o.getInt());
	}
}

**/
{'fraction_non_alphanumeric': 0.08996427411497239, 'fraction_numerical': 0.0006495615459564793, 'mean_word_length': 3.9044585987261144, 'pattern_counts': {'":': 0, '<': 5, '<?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': '4635446', 'n_tokens_mistral': 926, 'n_tokens_neox': 866, 'n_words': 371}