<commit_before>import random
import string


def rand_str(n=8):
    """Return a random string of length n"""
    return ''.join(random.SystemRandom().choice(string.letters)
                   for _ in range(n))

def rand_email():
    return '<EMAIL>'.format(rand_<EMAIL>())<commit_msg>Fix Python3 bug in tests/util.py<commit_after>import random
import string


def rand_str(n=8):
    """Return a random string of length n"""
    return ''.join(random.SystemRandom().choice(string.ascii_lowercase)
                   for _ in range(n))


def rand_email():
    return '<EMAIL>'.format(rand_str())
{'fraction_non_alphanumeric': 0.13804713804713806, 'fraction_numerical': 0.005050505050505051, 'mean_word_length': 3.576923076923077, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, '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': '4173135', 'n_tokens_mistral': 189, 'n_tokens_neox': 181, 'n_words': 47}