<commit_before>from django import forms
from django.utils.html import strip_tags
from django.contrib.auth.forms import SetPasswordForm

from provider.oauth2.models import AccessToken

from .models import User, UserGroup


class UserRegistrationForm(forms.ModelForm):
    """
    Validates the inputs against the User model definition.
    Used in .views.Signup<commit_msg>Fixed user form error<commit_after>from django import forms
from django.utils.html import strip_tags
from django.contrib.auth.forms import SetPasswordForm

from oauth2_provider.models import AccessToken

from .models import User, UserGroup


class UserRegistrationForm(forms.ModelForm):
    """
    Validates the inputs against the User model definition.
    Used in .views.Signup
{'fraction_non_alphanumeric': 0.057180851063829786, 'fraction_numerical': 0.0026595744680851063, 'mean_word_length': 4.929133858267717, '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': '1403737', 'n_tokens_mistral': 196, 'n_tokens_neox': 193, 'n_words': 70}