<commit_before># -*- coding: utf-8 -*-
"""Setup the SkyLines application"""
from faker import Faker

from skylines.model import User


def test_admin():
    u = User()
    u.first_name = u'Example'
    u.last_name = u'Manager'
    u.email_address = u'<EMAIL>'
    u.password = u.original_password = u'<PASSWORD>'
    u.admin = True
    return u


def test_user():
    u1 = User()
    u1.first_name = u'Example'
    u1.last_name = u'User'
    u1.email_address = u'<EMAIL>'
    u1.password = u1.original_password = u'<PASSWORD>'
    u1.tracking_key = 123456
    return u1


def test_users(n=50):
    fake = Faker(locale='de_DE')
    fake.seed(42)

    users = []
    for i in xrange(n):
        u = User()
        u.first_name = fake.first_name()
        u.last_name = fake.last_name()
        u.email_address = fake.email()
        u.password = u.original_password = <PASSWORD>()
        u.tracking_key = fake.random_number(digits=6)

        users.append(u)<commit_msg>test/data/users: Simplify test user email address<commit_after># -*- coding: utf-8 -*-
"""Setup the SkyLines application"""
from faker import Faker

from skylines.model import User


def test_admin():
    u = User()
    u.first_name = u'Example'
    u.last_name = u'Manager'
    u.email_address = u'<EMAIL>'
    u.password = u.original_password = u'<PASSWORD>'
    u.admin = True
    return u


def test_user():
    u1 = User()
    u1.first_name = u'Example'
    u1.last_name = u'User'
    u1.email_address = u'<EMAIL>'
    u1.password = u1.original_password = u'<PASSWORD>'
    u1.tracking_key = 123456
    return u1


def test_users(n=50):
    fake = Faker(locale='de_DE')
    fake.seed(42)

    users = []
    for i in xrange(n):
        u = User()
        u.first_name = fake.first_name()
        u.last_name = fake.last_name()
        u.email_address = fake.email()
        u.password = u.original_password = <PASSWORD>()
        u.tracking_key = fake.random_number(digits=6)

        users.append(u)
{'fraction_non_alphanumeric': 0.13627152988855115, 'fraction_numerical': 0.020263424518743668, 'mean_word_length': 2.671003717472119, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '3667715', 'n_tokens_mistral': 737, 'n_tokens_neox': 708, 'n_words': 150}