<commit_before>import impl_cffi
try:
    import impl_cext
except ImportError:
    impl_cext = None


def silent_callback(*args):
    pass<commit_msg>add debug callback<commit_after>import impl_cffi
try:
    import impl_cext
except ImportError:
    impl_cext = None


def silent_callback(*args):
    pass


def debug_callback(*args):
    print(args)
    if isinstance(args[0], impl_cffi.HttpRequest):
        print(args[0].body)
{'fraction_non_alphanumeric': 0.08899297423887588, 'fraction_numerical': 0.00468384074941452, 'mean_word_length': 4.219512195121951, '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': '4455388', 'n_tokens_mistral': 147, 'n_tokens_neox': 143, 'n_words': 32}