<commit_before>package ixa.kaflib;

public class Target {
    private AnnotationContainer annotationContainer;
    private String id;
    private boolean head;

    Target(AnnotationContainer annotationContainer, String id, boolean head) {
	this.annotationContainer = annotationContainer;
	this.id = id;
	this.head = head;
    }

    public Term getTerm() {
	return annotationContainer.getTermById(id);
    }

    public boolean isHead() {
	return head;
    }

    public void setTerm(String id) {
	this.id = id;
	this.head = false;
    }

    public void setTerm(Term term) {
	this.id = term.getId();
	this.head = false;
    }

    public void setTerm(String id, boolean head) {
	this.id = id;
	this.head = head;
    }

    public void setTerm(Term term, boolean head) {
	this.id = term.getId();
	this.head = head;
    }

    public void setHead(boolean head) {
	this.head = head;
    }
}<commit_msg>Target class changed to allow direct references between objects instead of referencing by their IDs.<commit_after>package ixa.kaflib;

public class Target<T> {

    private AnnotationContainer annotationContainer;
    //private String id;
    private T targetObj;
    private boolean isHead;

    Target(AnnotationContainer annotationContainer, T targetObj, boolean isHead) {
	this.annotationContainer = annotationContainer;
	this.targetObj = targetObj;
	this.isHead = isHead;
    }

    public T getTarget() {
	return targetObj;
    }

    public boolean isHead() {
	return isHead;
    }

    public void setTarget(T targetObj) {
	this.targetObj = targetObj;
	this.isHead = false;
    }

    public void setTarget(T targetObj, boolean isHead) {
	this.targetObj = targetObj;
	this.isHead = isHead;
    }

    public void setHead(boolean isHead) {
	this.isHead = isHead;
    }
}
{'fraction_non_alphanumeric': 0.09111361079865017, 'fraction_numerical': 0.0, 'mean_word_length': 3.2867469879518074, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '6523365', 'n_tokens_mistral': 560, 'n_tokens_neox': 536, 'n_words': 155}