<commit_before>package dk.aau.cs.qweb.airbase.provenance;

import java.time.LocalDate;

import dk.aau.cs.qweb.airbase.types.Quad;
import dk.aau.cs.qweb.airbase.types.Tuple;

public class ProvenanceSignature {

	private Quad quad;
	private String level;
	private String file;
	private LocalDate now;
	private Tuple tuple;

	public ProvenanceSignature(Quad quad, String level, String file, LocalDate now, Tuple tuple) {
		this.tuple = tuple;
		this.setQuad(quad);
		this.setLevel(level);
		this.setFile(file);
		this.setNow(now);
	}

	public Quad getQuad() {
		return quad;
	}

	public void setQuad(Quad quad) {
		this.quad = quad;
	}

	public String getLevel() {
		return level;
	}

	public void setLevel(String level) {
		this.level = level;
	}

	public String getFilePath() {
		return file;
	}

	public void setFile(String file) {
		this.file = file;
	}

	public LocalDate getNow() {
		return now;
	}

	public void setNow(LocalDate now) {
		this.now = now;
	}
	
	public Tuple getTuple() {
		return tuple;
	}

}
<commit_msg>add more support methods<commit_after>package dk.aau.cs.qweb.airbase.provenance;

import java.time.LocalDate;

import dk.aau.cs.qweb.airbase.types.Quad;
import dk.aau.cs.qweb.airbase.types.Tuple;

public class ProvenanceSignature {

	private Quad quad;
	private String level;
	private String file;
	private LocalDate now;
	private Tuple tuple;

	public ProvenanceSignature(Quad quad, String level, String file, LocalDate now, Tuple tuple) {
		this.tuple = tuple;
		this.setQuad(quad);
		this.setLevel(level);
		this.setFile(file);
		this.setNow(now);
	}

	public Quad getQuad() {
		return quad;
	}

	public void setQuad(Quad quad) {
		this.quad = quad;
	}

	public String getLevel() {
		return level;
	}

	public void setLevel(String level) {
		this.level = level;
	}

	public String getFilePath() {
		return file;
	}

	public void setFile(String file) {
		this.file = file;
	}

	public LocalDate getNow() {
		return now;
	}

	public void setNow(LocalDate now) {
		this.now = now;
	}
	
	public Tuple getTuple() {
		return tuple;
	}

	public String getRawDataFilePath() {
		String[] split = file.split("/");
		String path = "";
		for (int i = 0; i < split.length-1; i++) {
			path += split[i]+"/"; 
		}
		path += getRawDataFileName();
		return path;
	}

	public String getRawDataFileName() {
		String[] splitPath = file.split("/");
		String[] splitName = splitPath[splitPath.length-1].split("_");
		String name = "AirBase_"+splitName[1]+"_v8Vrawdata.zip";
		return name;
	}

	public String getFileName() {
		String[] split = file.split("/");
		return split[split.length-1];
	}

}

{'fraction_non_alphanumeric': 0.12639262389550518, 'fraction_numerical': 0.002305032654629274, 'mean_word_length': 3.7345454545454544, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 3, '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': '3404621', 'n_tokens_mistral': 1012, 'n_tokens_neox': 934, 'n_words': 230}