<commit_before>package de.qaware.chronix.client.benchmark;

import de.qaware.chronix.client.benchmark.resultpresenter.ResultPresenter;

import java.io.File;

/**
 * Created by mcqueen666 on 10.10.16.
 */
public class BenchmarkStatistics {
    public static void main(String[] args){
        if(args.length < 1){
            printUsage();
            return;
        }

        String option = args[0];
        switch (option){
            case "timeseries":
                if(args.length > 1){
                    File dir = new File(args[1]);
                    ResultPresenter.getInstance().analyzeTimeSeries(dir);
                } else {
                    ResultPresenter.getInstance().analyzeTimeSeries();
                }
                break;
            case "benchmark":
                //TODO
        }
    }

    public static void printUsage(){
        System.out.println("Stats usage: stats [option]");
        System.out.println("Options:\n");
        System.out.println("timeseries:     [optionalDirectory] Analyzes the time series located in chronixBenchmark/timeseries_records (generated from csv import)");
        System.out.println("                if no optionalDirectory is given. Otherwise the time series in optionalDirectory is analyzed.");
        System.out.println("benchmark:      Analyzes the import and benchmark records.");
    }
}<commit_msg>BenchmarkStatistics class now calls the according ResultPresenter method to analyze the benchmark records<commit_after>package de.qaware.chronix.client.benchmark;

import de.qaware.chronix.client.benchmark.resultpresenter.ResultPresenter;

import java.io.File;

/**
 * Created by mcqueen666 on 10.10.16.
 */
public class BenchmarkStatistics {
    public static void main(String[] args){
        if(args.length < 1){
            printUsage();
            return;
        }

        String option = args[0];
        switch (option){
            case "timeseries":
                if(args.length > 1){
                    File dir = new File(args[1]);
                    ResultPresenter.getInstance().analyzeTimeSeries(dir);
                } else {
                    ResultPresenter.getInstance().analyzeTimeSeries();
                }
                break;
            case "benchmark":
                ResultPresenter.getInstance().doBenchmarkRecordsAnalysis();
                break;
        }
    }

    public static void printUsage(){
        System.out.println("Stats usage: stats [option]");
        System.out.println("Options:\n");
        System.out.println("timeseries:     [optionalDirectory] Analyzes the time series located in chronixBenchmark/timeseries_records (generated from csv import)");
        System.out.println("                if no optionalDirectory is given. Otherwise the time series in optionalDirectory is analyzed.");
        System.out.println("benchmark:      Analyzes the import and benchmark records.");
    }
}
{'fraction_non_alphanumeric': 0.10034129692832765, 'fraction_numerical': 0.008873720136518772, 'mean_word_length': 2.111464968152866, 'pattern_counts': {'":': 4, '<': 5, '<?xml version=': 0, '>': 5, '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': '4233461', 'n_tokens_mistral': 770, 'n_tokens_neox': 720, 'n_words': 185}