<commit_before>from concurrent.futures import ThreadPoolExecutor

pool = ThreadPoolExecutor(max_workers=10)

def run_in_thread(*actions):
    pool.submit(run_actions, *actions)

def run_actions(*lambda_args):
    from recognition.actions import perform<commit_msg>use single threads for thread() until I figure out daemon worker pool<commit_after>from concurrent.futures import ThreadPoolExecutor
import threading

pool = ThreadPoolExecutor(max_workers=10)

def run_in_thread(*actions):
    threading.Thread(target=lambda x: run_actions(*x), daemon=True, args=(actions,)).start()
    # pool.submit(run_actions, *actions)

def run_actions(*lambda_args):
    from recognition.actions import perform
{'fraction_non_alphanumeric': 0.09339080459770115, 'fraction_numerical': 0.005747126436781609, 'mean_word_length': 7.104651162790698, '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': '3391616', 'n_tokens_mistral': 203, 'n_tokens_neox': 198, 'n_words': 49}