<commit_before># -*- coding: utf-8 -*-

# prepare environment
from django_auth_ldap.tests import MockLDAP
from django.conf import settings
from okupy.tests.settings import AUTH_LDAP_USER_DN_TEMPLATE

settings.AUTH_LDAP_USER_DN_TEMPLATE = AUTH_LDAP_USER_DN_TEMPLATE

alice = ("uid=alice,ou=people,o=test", {
    "uid": ["alice"],
    "userPassword": ["<PASSWORD>"],
    "objectClass": ["person", "organizationalPerson", "inetOrgPerson", "posixAccount"],
    "uidNumber": ["1000"],
    "gidNumber": ["1000"],
    "givenName": ["Alice"],
    "sn": ["Adams"],
    "mail": ["<EMAIL>"],
})
bob = ("uid=bob,ou=people,o=test", {
    "uid": ["bob"],
    "objectClass": ["person", "organizationalPerson", "inetOrgPerson", "posixAccount"],
    "userPassword": ["<PASSWORD>"],
    "uidNumber": ["1001"],
    "gidNumber": ["50"],
    "givenName": ["Robert"],
    "sn": ["Barker"],
    "mail": ["<EMAIL>"],
})<commit_msg>Remove unused imports and defines<commit_after># -*- coding: utf-8 -*-

from django_auth_ldap.tests import MockLDAP

alice = ("uid=alice,ou=people,o=test", {
    "uid": ["alice"],
    "userPassword": ["<PASSWORD>"],
    "objectClass": ["person", "organizationalPerson", "inetOrgPerson", "posixAccount"],
    "uidNumber": ["1000"],
    "gidNumber": ["1000"],
    "givenName": ["Alice"],
    "sn": ["Adams"],
    "mail": ["<EMAIL>"],
})
bob = ("uid=bob,ou=people,o=test", {
    "uid": ["bob"],
    "objectClass": ["person", "organizationalPerson", "inetOrgPerson", "posixAccount"],
    "userPassword": ["<PASSWORD>"],
    "uidNumber": ["1001"],
    "gidNumber": ["50"],
    "givenName": ["Robert"],
    "sn": ["Barker"],
    "mail": ["<EMAIL>"],
})
{'fraction_non_alphanumeric': 0.23714458560193588, 'fraction_numerical': 0.018148820326678767, 'mean_word_length': 4.9071428571428575, 'pattern_counts': {'":': 32, '<': 11, '<?xml version=': 0, '>': 11, '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': '7180168', 'n_tokens_mistral': 627, 'n_tokens_neox': 582, 'n_words': 114}