<commit_before>package org.lumi.picalc.errorcalc;

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

/**
 * Created by <NAME> (A.K.A lumi) on 22/12/2015.
 */
public class MainMultiThreadedPICalc {
    public static void main(String[] args) {
        ThreadGroup tg = new ThreadGroup("main");
        int np;
        int i, ns=84;

        List<MultiThreadSimulation> sims = new ArrayList<>();

        long start = System.nanoTime();

        for (i=0;i<ns;i++)
            sims.add(new MultiThreadSimulation((50000),"PI" + i, tg));

        i=0;
        while (i<sims.size()) {
            np = Runtime.getRuntime().availableProcessors();
            /*do we have available CPUs?*/
            if (tg.activeCount()<np) {
                MultiThreadSimulation sim = sims.get(i);
                sim.start();
                i++;

            }
            else<commit_msg>Bob is painting<commit_after>package org.lumi.picalc.errorcalc;

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

/**
 * Created by <NAME> (A.K.A lumi) on 22/12/2015.
 */
public class MainMultiThreadedPICalc {
    public static void main(String[] args) {
        ThreadGroup tg = new ThreadGroup("main");
        int np;
        int i, ns=80;

        List<MultiThreadSimulation> sims = new ArrayList<>();

        long start = System.nanoTime();

        for (i=0;i<ns;i++)
            sims.add(new MultiThreadSimulation((50000),"PI" + i, tg));

        i=0;
        while (i<sims.size()) {
            np = Runtime.getRuntime().availableProcessors();
            /*do we have available CPUs?*/
            if (tg.activeCount()<np) {
                MultiThreadSimulation sim = sims.get(i);
                sim.start();
                i++;

            }
            else
{'fraction_non_alphanumeric': 0.13714285714285715, 'fraction_numerical': 0.019428571428571427, 'mean_word_length': 1.9527824620573355, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 9, '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': '1565848', 'n_tokens_mistral': 576, 'n_tokens_neox': 536, 'n_words': 123}