<commit_before>package edu.caravane.guitare.gitobejct;
import java.util.*;

public class GitTree extends GitObject {
	protected static String type = "tree";
	protected int size;
	protected String sha1;
	protected ArrayList<TreeEntry> lstEntr;

	public GitTree(int size, String sha1, ArrayList<TreeEntry> lstEntr) {
		this.lstEntr = lstEntr;
		this.size = size;
		this.sha1 = sha1;
	}

	/**
	 * Getter
	 *
	 * @author Sylvain
	 *
	 * @return the type of the object
	 */
	@Override
	public String getType() {
		return GitTree.type;
	}

	/**
	 * Getter
	 *
	 * @author Sylvain
	 *
	 * @return the size of the object
	 */
	@Override
	public int getSize() {
		return this.size;
	}

	/**
	 * Getter
	 *
	 * @author Sylvain
	 *
	 * @return the id of the object
	 */
	@Override
	public String getId() {
		return this.sha1;
	}

	/**
	 * Getter
	 *
	 * @author Sylvain
	 *
	 * @return The list of the entry
	 */
	public ArrayList<TreeEntry> listEntry() {
		return this.lstEntr;
	}

	public void addEntry(TreeEntry te) {
		this.lstEntr.add(te);
	}

}<commit_msg>Methode toString add in GitTree class... :octocat:<commit_after>package edu.caravane.guitare.gitobejct;
import java.util.*;

public class GitTree extends GitObject {
	protected static String type = "tree";
	protected int size;
	protected String sha1;
	protected ArrayList<TreeEntry> lstEntr;

	public GitTree(int size, String sha1, ArrayList<TreeEntry> lstEntr) {
		this.lstEntr = lstEntr;
		this.size = size;
		this.sha1 = sha1;
	}

	/**
	 * Getter
	 *
	 * @author Sylvain
	 *
	 * @return the type of the object
	 */
	@Override
	public String getType() {
		return GitTree.type;
	}

	/**
	 * Getter
	 *
	 * @author Sylvain
	 *
	 * @return the size of the object
	 */
	@Override
	public int getSize() {
		return this.size;
	}

	/**
	 * Getter
	 *
	 * @author Sylvain
	 *
	 * @return the id of the object
	 */
	@Override
	public String getId() {
		return this.sha1;
	}

	/**
	 * Getter
	 *
	 * @author Sylvain
	 *
	 * @return The list of the entry
	 */
	public ArrayList<TreeEntry> listEntry() {
		return this.lstEntr;
	}

	public void addEntry(TreeEntry te) {
		this.lstEntr.add(te);
	}
	
	public String toString() {
		String s = "Tree : " + sha1 + "\nChildren : ";
		for (TreeEntry te : lstEntr)
			s += te.toString() + "\n";
		return s;
	}

}
{'fraction_non_alphanumeric': 0.12380122057541412, 'fraction_numerical': 0.004795117698343505, 'mean_word_length': 2.9637305699481864, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '7479613', 'n_tokens_mistral': 894, 'n_tokens_neox': 819, 'n_words': 223}