<commit_before><commit_msg>Added first (trivial) utility script<commit_after>#!/usr/bin/python

# Compute the mean of values from the input file 

import argparse

def parseArguments():
    parser = argparse.ArgumentParser()
    parser.add_argument("input_file", help="File with value to mean")
    # parser.add_argument("-o", "--optional", dest='o', help="Optional flag", action='store_true')
    # parser.add_argument("-d", "--default", help="SWith default", default="Hello")
    return parser.parse_args()

def computeMean(l):
    return (sum(l) / float(len(l)))
    

if __name__ == "__main__":
    args = parseArguments()
    fh = open(args.input_file)
    values_list = []
    for line in fh:
        values_list.append(float(line))
    print(computeMean(values_list))
    fh.close()
{'fraction_non_alphanumeric': 0.1482889733840304, 'fraction_numerical': 0.0, 'mean_word_length': 4.12987012987013, 'pattern_counts': {'":': 1, '<': 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': '894220', 'n_tokens_mistral': 251, 'n_tokens_neox': 245, 'n_words': 59}