<commit_before>import java.util.HashSet;
import java.util.Set;

public class GoTerm {

	private String id;
	private String name;
	private String namespace;
	private Set<GoTerm> parents = new HashSet<GoTerm>();
	private Set<GoTerm> children = new HashSet<GoTerm>();
	
	public GoTerm(String id, String name, String namespace){
		this.id = id;
		this.name = name;
		this.namespace = namespace;
	}
	
	public void addChild(GoTerm child){
		this.children.add(child);
	}
	
	public void addParent(GoTerm parent){
		this.parents.add(parent);
	}
	
	public String getId(){
		return id;
	}
	
	public String getName(){
		return name;	
	}
	
	public String getNamespace(){
		return namespace;	
	}
	
	public Set<GoTerm> getParents(){
		return parents;
	}
	
	public Set<GoTerm> getChildren(){
		return children;
	}

}<commit_msg>added methods hasParents(), addGene() and getGenes()<commit_after>import java.util.HashSet;
import java.util.Set;

public class GoTerm {

	private String id;
	private String name;
	private String namespace;
	private Set<GoTerm> parents = new HashSet<GoTerm>();
	private Set<GoTerm> children = new HashSet<GoTerm>();
	private Set<String> genes = new HashSet<String>();
	
	public GoTerm(String id, String name, String namespace){
		this.id = id;
		this.name = name;
		this.namespace = namespace;
	}
	
	public void addGen(String gen){
		this.genes.add(gen);
	}
	
	public Set<String> getGenes(){
		return genes;
	}
	
	public void addChild(GoTerm child){
		this.children.add(child);
	}
	
	public void addParent(GoTerm parent){
		this.parents.add(parent);
	}
	
	public String getId(){
		return id;
	}
	
	public String getName(){
		return name;	
	}
	
	public String getNamespace(){
		return namespace;	
	}
	
	public Set<GoTerm> getParents(){
		return parents;
	}
	
	public Set<GoTerm> getChildren(){
		return children;
	}

	public boolean hasParents(){
		return !parents.isEmpty();
	}
	
}
{'fraction_non_alphanumeric': 0.11833069202324353, 'fraction_numerical': 0.0, 'mean_word_length': 4.064171122994653, 'pattern_counts': {'":': 0, '<': 18, '<?xml version=': 0, '>': 18, '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': '2988054', 'n_tokens_mistral': 679, 'n_tokens_neox': 612, 'n_words': 173}