<commit_before><commit_msg>feature #154: XML 1 - Find the Score<commit_after>import sys
from xml.etree import ElementTree

[_, *xml] = list(sys.stdin)
feed = ElementTree.fromstring(''.join(xml))
print(sum(len(node.attrib) for node in feed.iter()))

{'fraction_non_alphanumeric': 0.14919354838709678, 'fraction_numerical': 0.016129032258064516, 'mean_word_length': 6.323529411764706, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 3}, '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': '1206784', 'n_tokens_mistral': 88, 'n_tokens_neox': 84, 'n_words': 21}