<commit_before>import argparse
from xml.etree import ElementTree
from operator import attrgetter
import bisect
import glob

# To track progress, here is how we started on Dec 31, against SQLite:
# 10 out of 704 tests took 136s out of 499s
# 17s for archive.GetCoordinatesTests.test_get_coordinates_nested_roc
# 17s for archive.GetCoordinatesTests.test_get_coordinates_nested_rsic
# 17s for archive.GetCoordinatesTests.test_get_coordinates_nested_runstep
# 17s for archive.GetCoordinatesTests.test_get_coordinates_nested_runs
# 17s for archive.TopLevelRunTests.test_deep_nested_run
# 15s for sandbox.SandboxTests.test_pipeline_execute_C_twostep_pipeline_with_subpipeline
# 14s for sandbox.ExecuteTests.test_pipeline_execute_C_twostep_pipeline_with_subpipeline
# 8s for sandbox.SandboxTests.test_pipeline_execute_B_twostep_pipeline_with_recycling
# 7s for sandbox.ExecuteTests.test_pipeline_execute_B_twostep_pipeline_with_recycling
# 7s for sandbox.ExecuteTests.test_pipeline_all_inputs_OK_nonraw

def parseOptions():
    parser = argparse.ArgumentParser()
    parser.add_argument('-f',
                        '--folder',
                        help='output folder with test report XML files to load',
                        default='.')
    parser.add_argument('-n',
                        '--count',
                        help='number of tests to report as the slowest ones',
                        type=int,
                        default=10)
    
    return parser.parse_args()

class SlowTestReport(object):
    def load(self, report_files, count):
        self.tests = []
        total_time = 0
        total_tests = 0<commit_msg>Update slow test report with new baseline for issue #296.<commit_after>import argparse
from xml.etree import ElementTree
from operator import attrgetter
import bisect
import glob

# To track progress, here is how we started on 9 Oct 2015, against SQLite:
# 10 out of 1020 tests took 68s out of 657s
# 15s for sandbox.ExecuteTests.test_pipeline_execute_C_twostep_pipeline_with_subpipeline
# 8s for sandbox.ExecuteTests.test_pipeline_execute_B_twostep_pipeline_with_recycling
# 8s for sandbox.FindSDTests.test_find_symds_subpipeline_input_and_intermediate
# 7s for sandbox.ExecuteTests.test_pipeline_all_inputs_OK_nonraw
# 7s for sandbox.ExecuteTests.test_pipeline_all_inputs_OK_raw
# 7s for sandbox.ExecuteTests.test_pipeline_execute_A_simple_onestep_pipeline
# 4s for archive.IsCompleteSuccessfulExecutionTests.test_runcomponent_unsuccessful_failed_integrity_check_during_recovery
# 4s for sandbox.FindSDTests.test_find_symds_pipeline_input_and_intermediate_custom_wire
# 4s for method.NonReusableMethodTests.test_execute_does_not_reuse
# 4s for archive.RunTests.test_Run_clean_all_complete_RunOutputCables

def parseOptions():
    parser = argparse.ArgumentParser()
    parser.add_argument('-f',
                        '--folder',
                        help='output folder with test report XML files to load',
                        default='.')
    parser.add_argument('-n',
                        '--count',
                        help='number of tests to report as the slowest ones',
                        type=int,
                        default=10)
    
    return parser.parse_args()

class SlowTestReport(object):
    def load(self, report_files, count):
        self.tests = []
        total_time = 0
        total_tests = 0
{'fraction_non_alphanumeric': 0.06085672082717873, 'fraction_numerical': 0.020088626292466764, 'mean_word_length': 3.4088541666666665, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '5771238', 'n_tokens_mistral': 1055, 'n_tokens_neox': 996, 'n_words': 227}