<commit_before>
from .function_builder import function, distribute
from .data_builder import data
from .collectives import *
from .forking import fork, close
from .gpu_utils import get_n_gpu
from .util import make_slices


import sys
sys.setrecursionlimit(50000)  # (workaround for pickling some functions)
del sys

# clean up dir
del function_builder, data_builder, collectives, forking, gpu_utils, util
<commit_msg>Don't stomp recursion limit if already set higher<commit_after>
from .function_builder import function, distribute
from .data_builder import data
from .collectives import *
from .forking import fork, close
from .gpu_utils import get_n_gpu
from .util import make_slices


import sys
min_recursion = 50000
if sys.getrecursionlimit() < min_recursion:
  sys.setrecursionlimit(min_recursion)
del sys

# clean up dir
del function_builder, data_builder, collectives, forking, gpu_utils, util

{'fraction_non_alphanumeric': 0.057649667405764965, 'fraction_numerical': 0.011086474501108648, 'mean_word_length': 5.893129770992366, 'pattern_counts': {'":': 0, '<': 4, '<?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': '5864104', 'n_tokens_mistral': 288, 'n_tokens_neox': 268, 'n_words': 99}