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

import sys
import tempfile

# for Python 3.2+, there is a TemporaryDirectory class defined
# a class substitute is proposed for lower versions.

if sys.version_info>(3,2):
    from tempfile import TemporaryDirectory
else:
    import shutil

    class TemporaryDirectory:
        def __init__(self):
            self.name = tempfile.mkdtemp()

        def cleanup(self):
            if self.name:
                shutil.rmtree(self.name)
                self.name = None

        def __del__(self):
            self.cleanup()<commit_msg>adjusted python version for support of TemporaryDirectory<commit_after># -*- coding: utf-8 -*-

import sys
import tempfile

# for Python 3.2+, there is a TemporaryDirectory class defined
# a class substitute is proposed for lower versions.

if sys.version_info>=(3,2):
    from tempfile import TemporaryDirectory
else:
    import shutil

    class TemporaryDirectory:
        def __init__(self):
            self.name = tempfile.mkdtemp()

        def cleanup(self):
            if self.name:
                shutil.rmtree(self.name)
                self.name = None

        def __del__(self):
            self.cleanup()
{'fraction_non_alphanumeric': 0.0860484544695071, 'fraction_numerical': 0.00835421888053467, 'mean_word_length': 2.282191780821918, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '5677713', 'n_tokens_mistral': 339, 'n_tokens_neox': 323, 'n_words': 103}