<commit_before>from flask_wtf import FlaskForm, RecaptchaField, validators
from wtforms import StringField, PasswordField, validators
from wtforms.validators import DataRequired
from flask import current_app


class LoginForm(FlaskForm):
    username = StringField('username', validators=[DataRequired()])
    password = PasswordField('password', validators=[DataRequired()])


class PasswordForgotForm(FlaskForm):
    username = StringField('username', validators=[DataRequired()])

    if current_app.config('RECAPTCHA') is True:
        recaptcha = RecaptchaField('recaptcha')


class PasswordResetForm(FlaskForm):
    username = StringField('username', validators=[DataRequired()])
    new_password = PasswordField('new_password', [
        validators.DataRequired(),
        validators.EqualTo('verify_new_password', message='Passwords must match')
    ])
    verify_new_password = PasswordField('<PASSWORD>')
    token = StringField('token', validators=[DataRequired()])

    if current_app.config('RECAPTCHA') is True:
        recaptcha = RecaptchaField('recaptcha')


class CreateUserForm(FlaskForm):
    first_name = StringField('first_name', validators=[DataRequired()])<commit_msg>revert commit<commit_after>from flask_wtf import FlaskForm, RecaptchaField, validators
from wtforms import StringField, PasswordField, validators
from wtforms.validators import DataRequired


class LoginForm(FlaskForm):
    username = StringField('username', validators=[DataRequired()])
    password = PasswordField('password', validators=[DataRequired()])


class PasswordForgotForm(FlaskForm):
    username = StringField('username', validators=[DataRequired()])


    recaptcha = RecaptchaField('recaptcha')


class PasswordResetForm(FlaskForm):
    username = StringField('username', validators=[DataRequired()])
    new_password = PasswordField('new_password', [
        validators.DataRequired(),
        validators.EqualTo('verify_new_password', message='Passwords must match')
    ])
    verify_new_password = PasswordField('<PASSWORD>')
    token = StringField('token', validators=[DataRequired()])


    recaptcha = RecaptchaField('recaptcha')


class CreateUserForm(FlaskForm):
    first_name = StringField('first_name', validators=[DataRequired()])
{'fraction_non_alphanumeric': 0.11545293072824156, 'fraction_numerical': 0.0, 'mean_word_length': 6.221153846153846, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '873089', 'n_tokens_mistral': 645, 'n_tokens_neox': 609, 'n_words': 122}