<commit_before>from __future__ import unicode_literals

import django.core.exceptions
import django.shortcuts
import django.http
import django.forms
import django.core.exceptions
import django.contrib.admin
import django.contrib.admin.helpers
import django.contrib.admin.options
import django.contrib.admin.models
import django.contrib.auth.forms
import django.contrib.auth.admin
import django.utils.html
import django.template.response
import django.utils.decorators
import django.urls
import django.views.decorators.debug
from django.utils.translation import ugettext_lazy as _
from django.contrib import messages
from django.conf import settings
from django.apps import apps
from django.contrib.admin import AdminSite

import signals
import models
import forms


sensitive_post_parameters_m = django.utils.decorators.method_decorator(
    django.views.decorators.debug.sensitive_post_parameters())


class CustomAdminSite(AdminSite):

    def __init__(self):
        self.login_form = forms.EmailBasedAdminAuthenticationForm
        super(CustomAdminSite, self).__init__()

class UserCreationForm(django.forms.ModelForm):
    """
    A form that creates a user, with no privileges, from the given username and
    password.
    """
    error_messages = {
        'duplicate_username': _("A user with that username already exists."),
    }<commit_msg>Change method signature<commit_after>from __future__ import unicode_literals

import django.core.exceptions
import django.shortcuts
import django.http
import django.forms
import django.core.exceptions
import django.contrib.admin
import django.contrib.admin.helpers
import django.contrib.admin.options
import django.contrib.admin.models
import django.contrib.auth.forms
import django.contrib.auth.admin
import django.utils.html
import django.template.response
import django.utils.decorators
import django.urls
import django.views.decorators.debug
from django.utils.translation import ugettext_lazy as _
from django.contrib import messages
from django.conf import settings
from django.apps import apps
from django.contrib.admin import AdminSite

import signals
import models
import forms


sensitive_post_parameters_m = django.utils.decorators.method_decorator(
    django.views.decorators.debug.sensitive_post_parameters())


class CustomAdminSite(AdminSite):

    def __init__(self, name='admin'):
        self.login_form = forms.EmailBasedAdminAuthenticationForm
        super(CustomAdminSite, self).__init__(name)

class UserCreationForm(django.forms.ModelForm):
    """
    A form that creates a user, with no privileges, from the given username and
    password.
    """
    error_messages = {
        'duplicate_username': _("A user with that username already exists."),
    }
{'fraction_non_alphanumeric': 0.07242136064374542, 'fraction_numerical': 0.0, 'mean_word_length': 4.99780701754386, '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': '5356050', 'n_tokens_mistral': 730, 'n_tokens_neox': 716, 'n_words': 203}