<commit_before># -*- coding: utf-8 -*-

import sys

PY_VERSION = sys.version_info[:2]

if PY_VERSION == (2, 6):  # pragma: no cover
    import zipfile
    class ZipFile(zipfile.ZipFile):
        
        def __enter__(self):
            return self

        def __exit__(self, *exc_inf):
            return True
else:
    from zipfile import ZipFile<commit_msg>we need StringIO for testing<commit_after># -*- coding: utf-8 -*-

import sys

PY_VERSION = sys.version_info[:2]

if PY_VERSION == (2, 6):  # pragma: no cover
    import zipfile
    class ZipFile(zipfile.ZipFile):
        
        def __enter__(self):
            return self

        def __exit__(self, *exc_inf):
            return True
else:
    from zipfile import ZipFile

try:
    from StringIO import StringIO
except ImportError:  # pragma: no cover
    from io import StringIO
{'fraction_non_alphanumeric': 0.09467455621301775, 'fraction_numerical': 0.009467455621301775, 'mean_word_length': 2.411290322580645, 'pattern_counts': {'":': 0, '<': 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': '7301857', 'n_tokens_mistral': 273, 'n_tokens_neox': 262, 'n_words': 81}