<commit_before>/* 
 * Copyright 2011 <NAME> & <NAME>
 * Please see included LICENSE file
 *
 * AllSorts - 
 * Merge, Bubble, Insertion, and Quick sort all implemented
 * in Java and execution timed for different sizes.
 */

import java.util.*;
import java.io.*;
import java.lang.RuntimeException;

public class AllSorts
{
    /* 
     * main!!
     * Just call the constructor.. to get out of staticyness..
     */
    public static void main(String [] args)
    {
	PrintWriter writer;
	String csvfile = "java.csv";
	try {
	    writer = new PrintWriter(new BufferedWriter(new FileWriter(csvfile, false)));
	} catch (IOException e) {
	    throw new RuntimeException(e);
	}
	writer.print("");
	writer.close();
	AllSorts mysorts;
	String name = new String("");      // the file that will be opened
	int [] sizes = {10,50,100,500,1000,5000,10000,50000,100000,500000,1000000};
	int i;
	int j;
	String results = new String("n,quick,bubble,insertion,merge\n");
	for(i = 0; i < 11; i++) {
	    String times = new String("");
	    for(j = 1; j < 101; j++) {
		name = "../lists/size" + sizes[i] + "/list" + j;<commit_msg>gotta figure out how to do this..<commit_after>/* 
 * Copyright 2011 <NAME> & <NAME>
 * Please see included LICENSE file
 *
 * AllSorts - 
 * Merge, Bubble, Insertion, and Quick sort all implemented
 * in Java and execution timed for different sizes.
 */

import java.util.*;
import java.io.*;
import java.lang.RuntimeException;

public class AllSorts
{
    /* 
     * main!!
     * Just call the constructor.. to get out of staticyness..
     */
    public static void main(String [] args)
    {
	PrintWriter writer;
	String csvfile = "java.csv";
	try {
	    writer = new PrintWriter(new BufferedWriter(new FileWriter(csvfile, false)));
	} catch (IOException e) {
	    throw new RuntimeException(e);
	}
	writer.print("");
	writer.close();
	AllSorts mysorts;
	String name = new String("");      // the file that will be opened
	int [] sizes = {10,50,100,500,1000,5000,10000,50000,100000,500000,1000000};
	int i;
	int j;
	String results = new String("n,quick,bubble,insertion,merge\n");
	for(i = 8; i < 9; i++) {
	    String times = new String("");
	    for(j = 1; j < 101; j++) {
		name = "../lists/size" + sizes[i] + "/list" + j;
{'fraction_non_alphanumeric': 0.14725568942436412, 'fraction_numerical': 0.051316376617581434, 'mean_word_length': 3.286806883365201, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 7, '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': '1632848', 'n_tokens_mistral': 836, 'n_tokens_neox': 733, 'n_words': 231}