<commit_before>from collections import defaultdict
import time


TIMEOUTS = defaultdict(list)


def windows(*args, **kwargs):
    return []


def set_timeout(func, timeout, *args, **kwargs):
    then = time.time() + (timeout / 1000.0)
    TIMEOUTS[then].append(lambda: func(*args, **kwargs))


def call_timeouts():
    now = time.time()
    to_remove = []
    for t, timeouts in TIMEOUTS.items():
        if now >= t:
            for timeout in timeouts:
                timeout()
            to_remove.append(t)
    for k in to_remove:
        del TIMEOUTS[k]


def error_message(*args, **kwargs):
    print(args, kwargs)


class Region(object):
    def __init__(*args, **kwargs):<commit_msg>Reminder<commit_after>from collections import defaultdict
import time


TIMEOUTS = defaultdict(list)


def windows(*args, **kwargs):
    return []


def set_timeout(func, timeout, *args, **kwargs):
    then = time.time() + (timeout / 1000.0)
    TIMEOUTS[then].append(lambda: func(*args, **kwargs))


def call_timeouts():
    now = time.time()
    to_remove = []
    for t, timeouts in TIMEOUTS.items():
        if now >= t:
            for timeout in timeouts:
                timeout()
            to_remove.append(t)
    for k in to_remove:
        del TIMEOUTS[k]


# TODO: clear timeouts


def error_message(*args, **kwargs):
    print(args, kwargs)


class Region(object):
    def __init__(*args, **kwargs):
{'fraction_non_alphanumeric': 0.13229018492176386, 'fraction_numerical': 0.007112375533428165, 'mean_word_length': 2.87603305785124, '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': '5125731', 'n_tokens_mistral': 463, 'n_tokens_neox': 443, 'n_words': 120}