<commit_before>package closestpair;

import java.io.File;
import java.io.FileNotFoundException;
import java.util.Scanner;

public class Main {
	
	static int number_of_lines;
	static DataPoint[] dp_array;
	
	public static void main(String[] Args) throws Exception{
		readFile(Args[0]);
		for(int i = 0; i < dp_array.length; i++){
			String s = DataPoint.toString(dp_array[i]);
			System.out.println(s);
		}
	}
	
	public static void readFile(String s){
		int i = 0;
		try{
			Scanner newFile = new Scanner(new File(s));
			number_of_lines = newFile.nextInt();
			dp_array = new DataPoint[number_of_lines];
			newFile.nextLine();
			while(newFile.hasNextLine()){<commit_msg>added RadixSortY, and added in line in main for sort of dp_array. Problems with static.<commit_after>package closestpair;

import java.io.File;
import java.io.FileNotFoundException;
import java.util.Scanner;

public class Main {
	
	static int number_of_lines;
	static DataPoint[] dp_array;
	
	public static void main(String[] Args) throws Exception{
		readFile(Args[0]);
		for(int i = 0; i < dp_array.length; i++){
			String s = DataPoint.toString(dp_array[i]);
			System.out.println(s);
		}
		
		dp_array = RadixSort.radixSortX(dp_array);
	}
	
	public static void readFile(String s){
		int i = 0;
		try{
			Scanner newFile = new Scanner(new File(s));
			number_of_lines = newFile.nextInt();
			dp_array = new DataPoint[number_of_lines];
			newFile.nextLine();
			while(newFile.hasNextLine()){
{'fraction_non_alphanumeric': 0.11885245901639344, 'fraction_numerical': 0.004098360655737705, 'mean_word_length': 4.425925925925926, 'pattern_counts': {'":': 0, '<': 5, '<?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': '2819073', 'n_tokens_mistral': 557, 'n_tokens_neox': 498, 'n_words': 127}