<commit_before># -*- coding: utf-8  -*-
from django import forms

from django.contrib import admin
from django.contrib.auth.admin import UserAdmin
from django.contrib.auth.models import User, Permission, Group
from django.contrib.auth import authenticate
from django.contrib.admin.sites import AdminSite
from django.core.exceptions import ObjectDoesNotExist
from userena.admin import UserenaAdmin

from clubs.models import Club, college_choices, section_choices
from accounts.models import StudentProfile, NonStudentProfile

class DeanshipAuthenticationForm(admin.forms.AdminAuthenticationForm):
    """A custom authentication form used in the admin app.  Based on the
original Django code."""
    def clean(self):
        username = self.cleaned_data.get('username')
        password = self.cleaned_data.get('password')<commit_msg>For some reason, this solves an import exception.<commit_after># -*- coding: utf-8  -*-
from django import forms

from django.contrib import admin
from django.contrib.auth.admin import UserAdmin
from django.contrib.auth.models import User, Permission, Group
from django.contrib.auth import authenticate
from django.contrib.admin.sites import AdminSite
from django.contrib.admin.forms import AdminAuthenticationForm
from django.core.exceptions import ObjectDoesNotExist
from userena.admin import UserenaAdmin

from clubs.models import Club, college_choices, section_choices
from accounts.models import StudentProfile, NonStudentProfile

class DeanshipAuthenticationForm(AdminAuthenticationForm):
    """A custom authentication form used in the admin app.  Based on the
original Django code."""
    def clean(self):
        username = self.cleaned_data.get('username')
        password = self.cleaned_data.get('password')
{'fraction_non_alphanumeric': 0.07481439177612793, 'fraction_numerical': 0.001142204454597373, 'mean_word_length': 5.257142857142857, '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': '5240383', 'n_tokens_mistral': 445, 'n_tokens_neox': 437, 'n_words': 152}