<commit_before>#!/usr/bin/python

import sys
sys.path.insert(1, "./libs")
from utils.report import Report

if __name__ == "__main__":
    Report('./results_latest')
<commit_msg>toosl/report: update script to support command line defined params<commit_after>#!/usr/bin/python

import sys
sys.path.insert(1, "./libs")
from utils.report import Report

import argparse

parser = argparse.ArgumentParser(
        description='EAS RFC Configuration Comparator.')
parser.add_argument('--bases', type=str,
        default='bases_',
        help='Regexp of BASE configurations to compare with')
parser.add_argument('--tests',  type=str,
        default='tests_',
        help='Regexp of TEST configurations to compare against')
parser.add_argument('--results', type=str,
        default='./results_latest',
        help='Folder containing experimental results')

if __name__ == "__main__":
    args = parser.parse_args()
    Report(args.results, compare=[(args.bases, args.tests)])

{'fraction_non_alphanumeric': 0.13463514902363824, 'fraction_numerical': 0.0020554984583761563, 'mean_word_length': 4.1534391534391535, 'pattern_counts': {'":': 2, '<': 3, '<?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': '6490120', 'n_tokens_mistral': 289, 'n_tokens_neox': 286, 'n_words': 73}