<commit_before>#!/usr/bin/python3

# TODO: outline spelling parsing<commit_msg>outlined spelling stuff<commit_after>#!/usr/bin/python3


#map of 1 2 and 3 grams matched to the number of occurences of that n-gram



#utility functions to insert grams into maps



#xml parser to fetch names from the xml file and harvest the grams



#collect percentage statistics from the gram maps

{'fraction_non_alphanumeric': 0.06005221932114883, 'fraction_numerical': 0.013054830287206266, 'mean_word_length': 4.408450704225352, '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': '5671150', 'n_tokens_mistral': 123, 'n_tokens_neox': 104, 'n_words': 50}