<commit_before>package it.unito.geosummly.experiments;

import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map.Entry;
import java.util.Set;
import java.util.Vector;

import jp.ndca.similarity.distance.Jaccard;

import org.apache.commons.io.FileUtils;

public class ClusterOutputValidation {

	public static void main(String[] args) 
	{
		ClusterOutputValidation main = new ClusterOutputValidation();
		List<HashMap<String, Vector<Integer>>> holdout = 
				main.computeCrossFoldValidation("output/evaluation/clustering output validation/10-holdout/holdout_results_all_clusters.log");
	
		Jaccard jacc = new Jaccard();
		Double jaccOnLabels = 0.0;
		Double jaccOnSet = 0.0;
		HashMap<String,Vector<Double>> jaccOnSets = new HashMap<>();
		int iterations = 0;
		for (int i=0; i<holdout.size()-1; i++) 
		{
			HashMap<String, Vector<Integer>> ho1 = holdout.get(i);
			for(int j=i+1; j<holdout.size(); j++) 
			{
				System.out.printf("pair (%s,%s)\n", i,j);
				
				HashMap<String, Vector<Integer>> ho2 = holdout.get(j);
<commit_msg>minor edit to the cluster output validation<commit_after>package it.unito.geosummly.experiments;

import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map.Entry;
import java.util.Set;
import java.util.Vector;

import jp.ndca.similarity.distance.Jaccard;

import org.apache.commons.io.FileUtils;

public class ClusterOutputValidation {

	public static void main(String[] args) 
	{
		ClusterOutputValidation main = new ClusterOutputValidation();
		List<HashMap<String, Vector<Integer>>> holdout = 
				main.computeCrossFoldValidation("output/evaluation/clustering_output_validation/10-holdout/holdout_results_all_clusters.log");
	
		Jaccard jacc = new Jaccard();
		Double jaccOnLabels = 0.0;
		Double jaccOnSet = 0.0;
		HashMap<String,Vector<Double>> jaccOnSets = new HashMap<>();
		int iterations = 0;
		for (int i=0; i<holdout.size()-1; i++) 
		{
			HashMap<String, Vector<Integer>> ho1 = holdout.get(i);
			for(int j=i+1; j<holdout.size(); j++) 
			{
				System.out.printf("pair (%s,%s)\n", i,j);
				
				HashMap<String, Vector<Integer>> ho2 = holdout.get(j);

{'fraction_non_alphanumeric': 0.13671539122957868, 'fraction_numerical': 0.010318142734307825, 'mean_word_length': 4.861460957178841, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 23, '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': '2145644', 'n_tokens_mistral': 874, 'n_tokens_neox': 798, 'n_words': 162}