<commit_before>import os, sys, tempfile

class Scratch (object):
    def __init__ (self):
        tuple = tempfile.mkstemp()
        self._path = tuple[1]
        self._file = os.fdopen(tuple[0])        
        self._file.close()

    def __del__ (self):
        if self._path != None:
            self.destruct()

    def destruct (self):
        self.close()
        os.unlink(self._path)
        self._path = None
        self._file = None
<commit_msg>Thanks to my best sys admin jesus: i should not overload tuple even in local.<commit_after>import os, sys, tempfile

class Scratch (object):
    def __init__ (self):
        tup = tempfile.mkstemp()
        self._path = tup[1]
        self._file = os.fdopen(tup[0])        
        self._file.close()

    def __del__ (self):
        if self._path != None:
            self.destruct()

    def destruct (self):
        self.close()
        os.unlink(self._path)
        self._path = None
        self._file = None

{'fraction_non_alphanumeric': 0.1134020618556701, 'fraction_numerical': 0.004123711340206186, 'mean_word_length': 1.907185628742515, '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': '4354857', 'n_tokens_mistral': 310, 'n_tokens_neox': 302, 'n_words': 80}