<commit_before>

def find(iterable, predicate):
    return next((i for i in iterable if predicate(i)), None)<commit_msg>docstyle added for utils<commit_after>

def find(iterable, predicate):
    """Return the first item in the iterable that matches the predicate function."""
    return next((i for i in iterable if predicate(i)), None)
{'fraction_non_alphanumeric': 0.10416666666666667, 'fraction_numerical': 0.0, 'mean_word_length': 5.127272727272727, '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': '873179', 'n_tokens_mistral': 99, 'n_tokens_neox': 93, 'n_words': 40}