<commit_before>from flask_wtf import Form
from wtforms import TextField, TextAreaField, BooleanField, HiddenField, validators, PasswordField, SelectField
from wtforms.fields.html5 import URLField


class SignupForm(Form):
    email = TextField('email', validators=[validators.Required(), validators.Email()])
    fullname = TextField('fullname', validators=[validators.Required(),
                                                    validators.Length(min=3, max=128,
                                                    message='Name field must be between 3 and 128 characters long.')])
    password = PasswordField('password', validators=[validators.Required(),
                                                        validators.EqualTo('confirm',
                                                        message='Passwords must match')])
    confirm = PasswordField('confirm', validators=[validators.Required()])
    agree_mailer = BooleanField('agree_mailer')


class SigninForm(Form):
    email = TextField('email', validators=[validators.Required(), validators.Email()])
    password = PasswordField('password', validators=[validators.Required()])


class ChangePasswordForm(Form):
    current_password = PasswordField('<PASSWORD>', validators=[validators.Required()])
    new_password = PasswordField('<PASSWORD>', validators=[validators.Required()])
    confirm = PasswordField('confirm', validators=[validators.Required(), validators.EqualTo(
        'new_password', message='Passwords must match')])


class LoginForm(Form):
    provider = HiddenField('provider', validators=[validators.Required()])
    remember_me = BooleanField('remember_me', default=False)


class ForgotPasswordForm(Form):
    email = TextField('email', validators=[validators.Required(), validators.Email()])


class ProfileForm(Form):
    fullname = TextField('fullname', validators=[validators.Required(),
                                                    validators.Length(min=3, max=128,
                                                    message='Name field must be between 3 and 128 characters long.')])

    gender = SelectField(
        'gender',
         choices=[('male', 'Male'), ('female', 'Female')]
    )

    website = TextField(
        'website',
        validators=[validators.Optional() , validators.URL(), validators.Length(min=10, max=150)]
    )

    bio = TextField(
        'bio',
        validators=[validators.Length(max=256)]
    )<commit_msg>Remove gender of edit profile form.<commit_after>from flask_wtf import Form
from wtforms import TextField, TextAreaField, BooleanField, HiddenField, validators, PasswordField, SelectField
from wtforms.fields.html5 import URLField


class SignupForm(Form):
    email = TextField('email', validators=[validators.Required(), validators.Email()])
    fullname = TextField('fullname', validators=[validators.Required(),
                                                    validators.Length(min=3, max=128,
                                                    message='Name field must be between 3 and 128 characters long.')])
    password = PasswordField('password', validators=[validators.Required(),
                                                        validators.EqualTo('confirm',
                                                        message='Passwords must match')])
    confirm = PasswordField('confirm', validators=[validators.Required()])
    agree_mailer = BooleanField('agree_mailer')


class SigninForm(Form):
    email = TextField('email', validators=[validators.Required(), validators.Email()])
    password = PasswordField('password', validators=[validators.Required()])


class ChangePasswordForm(Form):
    current_password = PasswordField('<PASSWORD>', validators=[validators.Required()])
    new_password = PasswordField('<PASSWORD>', validators=[validators.Required()])
    confirm = PasswordField('confirm', validators=[validators.Required(), validators.EqualTo(
        'new_password', message='Passwords must match')])


class LoginForm(Form):
    provider = HiddenField('provider', validators=[validators.Required()])
    remember_me = BooleanField('remember_me', default=False)


class ForgotPasswordForm(Form):
    email = TextField('email', validators=[validators.Required(), validators.Email()])


class ProfileForm(Form):
    fullname = TextField('fullname', validators=[validators.Required(),
                                                    validators.Length(min=3, max=128,
                                                    message='Name field must be between 3 and 128 characters long.')])
    gender = SelectField('gender', choices=[('male', 'Male'), ('female', 'Female')])
    email = TextField('email', validators=[validators.Required(), validators.Email()])
    country = TextField('country', validators=[validators.Required()])
    

    website = TextField('website', validators=[validators.Optional(), validators.URL(), validators.Length(min=10, max=150)])
    bio = TextField('bio', validators=[validators.Length(max=256)])
{'fraction_non_alphanumeric': 0.12726548496315476, 'fraction_numerical': 0.009958175662218682, 'mean_word_length': 3.0176, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 24, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2950409', 'n_tokens_mistral': 1270, 'n_tokens_neox': 1187, 'n_words': 259}