<commit_before>import sys,os
try:
    import elementtree.ElementTree as etree
except ImportError:
    import xml.etree.ElementTree as etree

class ETreeParser(object):
    def __init__(self, directory='.', base='visdump_data.h5', suffix='xmf'):
        self._dir = directory
        self._base = base
        self._suffix = suffix
<commit_msg>missing numpy import in parse_xmf<commit_after>import sys,os
try:
    import elementtree.ElementTree as etree
except ImportError:
    import xml.etree.ElementTree as etree
import numpy as np

class ETreeParser(object):
    def __init__(self, directory='.', base='visdump_data.h5', suffix='xmf'):
        self._dir = directory
        self._base = base
        self._suffix = suffix

{'fraction_non_alphanumeric': 0.09655172413793103, 'fraction_numerical': 0.002758620689655172, 'mean_word_length': 3.624203821656051, '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': '1648912', 'n_tokens_mistral': 217, 'n_tokens_neox': 214, 'n_words': 60}