<commit_before>from functools import wraps

from concurrent.futures import ThreadPoolExecutor


class Tomorrow():
    
    def __init__(self, future, timeout):
        self._future = future
        self._timeout = timeout
        self._wait = self._future.result

    def __getattr__(self, name):
        result = self._future.result(self._timeout)
        return result.__getattribute__(name)


def async(n, base_type, timeout=None):<commit_msg>make _wait() with _timeout<commit_after>from functools import wraps

from concurrent.futures import ThreadPoolExecutor


class Tomorrow():

    def __init__(self, future, timeout):
        self._future = future
        self._timeout = timeout

    def __getattr__(self, name):
        result = self._future.result(self._timeout)
        return result.__getattribute__(name)

    def _wait(self):
        return self._future.result(self._timeout)
        

def async(n, base_type, timeout=None):
{'fraction_non_alphanumeric': 0.08936170212765958, 'fraction_numerical': 0.0, 'mean_word_length': 3.2772727272727273, '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': '3266442', 'n_tokens_mistral': 270, 'n_tokens_neox': 256, 'n_words': 66}