<commit_before>package fr.lille1.maven_data_extraction.core;

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

/**
 * Implementation of a version for a {@link Project} object.
 * 
 * @author <NAME>
 * 
 */
public class Version {

	private final String versionNumber;
	private String parent;
	private List<Project> listDependencies; 

	/**
	 * @param version
	 */
	
	public Version(String versionNumber){
		this.versionNumber = versionNumber;
		this.parent = null;
		this.listDependencies = new ArrayList<Project>();
	}

	public String getVersionNumber() {
		return versionNumber;
	}

	@Override
	public boolean equals(Object obj) {
		Version version = (Version) obj;

		if (version == null) {
			return false;
		}

		if (!version.getVersionNumber().equals(versionNumber)) {
			return false;
		}

		return true;
	}

	public List<Project> getDependencies() {
		return listDependencies;
	}

	public void setListDependencies(List<Project> listDependencies) {
		this.listDependencies = listDependencies;
	}

	public boolean hasParent() {
		return parent != null;
	}

	public String getParentName() {
		return parent;
	}
	
	public void setParentName(String parent) {
		this.parent = parent;
	}

}
<commit_msg>Implementation of toString() in Version<commit_after>package fr.lille1.maven_data_extraction.core;

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

/**
 * Implementation of a version for a {@link Project} object.
 * 
 * @author <NAME>
 * 
 */
public class Version {

	private final String versionNumber;
	private String parent;
	private List<Project> listDependencies; 

	/**
	 * @param version
	 */
	public Version(String versionNumber){
		this.versionNumber = versionNumber;
		this.parent = null;
		this.listDependencies = new ArrayList<Project>();
	}

	public String getVersionNumber() {
		return versionNumber;
	}

	public List<Project> getDependencies() {
		return listDependencies;
	}

	public void setListDependencies(List<Project> listDependencies) {
		this.listDependencies = listDependencies;
	}

	public boolean hasParent() {
		return parent != null;
	}

	public String getParentName() {
		return parent;
	}
	
	public void setParentName(String parent) {
		this.parent = parent;
	}

	@Override
	public boolean equals(Object obj) {
		Version version = (Version) obj;

		if (version == null) {
			return false;
		}

		if (!version.getVersionNumber().equals(versionNumber)) {
			return false;
		}

		return true;
	}

	@Override
	public String toString() {
		return "Verion: " + versionNumber
				+ (hasParent() ? " - Parent: " + parent : "");
	}

}

{'fraction_non_alphanumeric': 0.11067809820732658, 'fraction_numerical': 0.000779423226812159, 'mean_word_length': 3.9941634241245136, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '1217726', 'n_tokens_mistral': 858, 'n_tokens_neox': 759, 'n_words': 204}