<commit_before>import scipy.optimize as opt
import numpy as np
from cbsyst.helpers import ch, noms, cast_array
from cbsyst.boron_fns import cBO4


def _zero_wrapper(ps, fn, bounds=(0, 1)):
    """
    Wrapper to handle zero finders.
    """
    return opt.brentq(fn, *bounds, args=tuple(ps))
<commit_msg>Reduced xtol of  zero_finders.<commit_after>import scipy.optimize as opt
import numpy as np
from cbsyst.helpers import ch, noms, cast_array
from cbsyst.boron_fns import cBO4


def _zero_wrapper(ps, fn, bounds=(0, 1)):
    """
    Wrapper to handle zero finders.
    """
    return opt.brentq(fn, *bounds, args=tuple(ps), xtol=1e-16)

{'fraction_non_alphanumeric': 0.10989010989010989, 'fraction_numerical': 0.0141287284144427, 'mean_word_length': 4.229508196721311, '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': '1263418', 'n_tokens_mistral': 241, 'n_tokens_neox': 235, 'n_words': 68}