<commit_before>from django.contrib.auth.models import User

from login.tests.model_maker import (
    make_superuser,
    make_user,
)


def get_fred():
    return User.objects.get(username='fred')


def get_sara():
    return User.objects.get(username='sara')


def user_default():
    # superuser
    make_superuser('admin')
    # member of staff
    make_user('staff', is_staff=True)
    # standard user with no extra permissions
    make_user('web')


def user_contractor():
    # fred is a farmer
    make_user('fred')
    # steph is a smallholder
    make_user('sara')
<commit_msg>Set-up a standard scenario for testing etc<commit_after>from django.contrib.auth.models import User

from login.tests.model_maker import (
    make_superuser,
    make_user,
)


def get_user_fred():
    return User.objects.get(username='fred')


def get_user_sara():
    return User.objects.get(username='sara')


def get_user_staff():
    return User.objects.get(username='staff')


def user_default():
    # superuser
    make_superuser('admin')
    # member of staff
    make_user('staff', is_staff=True)
    # standard user with no extra permissions
    make_user('web')


def user_contractor():
    # fred is a farmer
    make_user('fred')
    # steph is a smallholder
    make_user('sara')

{'fraction_non_alphanumeric': 0.10989867498051442, 'fraction_numerical': 0.0, 'mean_word_length': 3.7205882352941178, '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': '6683156', 'n_tokens_mistral': 420, 'n_tokens_neox': 410, 'n_words': 100}