<commit_before>import factory

from api import models


class UserFactory(factory.DjangoModelFactory):
    class Meta:
        model = models.User

    username = factory.Sequence(lambda n: 'username{0}'.format(n))
    first_name = factory.Faker('first_name')
    last_name = factory.Faker('last_name')
    email = factory.LazyAttribute(lambda a: '{0}.{1}<EMAIL>'.format(a.first_name, a.last_name).lower())
    password = factory.PostGenerationMethodCall('set_password', 'password')
    is_staff = False
<commit_msg>fix error in test factories<commit_after>import factory

from api import models


class UserFactory(factory.DjangoModelFactory):
    class Meta:
        model = models.LessPassUser
    email = factory.Sequence(lambda n: '<EMAIL>'.<EMAIL>(n))
    password = factory.PostGenerationMethodCall('set_password', 'password')
    is_staff = False

{'fraction_non_alphanumeric': 0.11812865497076024, 'fraction_numerical': 0.0035087719298245615, 'mean_word_length': 4.631578947368421, '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': '5072576', 'n_tokens_mistral': 258, 'n_tokens_neox': 252, 'n_words': 55}