<commit_before>from flask_wtf import FlaskForm
from wtforms import StringField, BooleanField, PasswordField, SubmitField
from wtforms.validators import Regexp, Length, Email


class LoginForm(FlaskForm):
    username = StringField('username', validators=[Regexp(r'^[\w_-~]+$'), Length(min=4, max=25)])
    password = PasswordField('password', validators=[Regexp(r'^[\w_-~]+$'), Length(min=6)])
    remember_me = BooleanField('remember_me', default=False)
    login = SubmitField('login')


class SignupForm(FlaskForm):
    username = StringField('username', validators=[Regexp(r'^[\w_-~]+$'), Length(min=4, max=25)])
    password = PasswordField('password', validators=[Regexp(r'^[\w_-~]+$'), Length(min=6)])
    email = StringField('email',  validators=[Email('This field requires a valid email address')])
    collection_name = StringField('collection', validators=[Regexp(r'^[a-zA-Z0-0 ]*$')])
    remember_me = BooleanField('remember_me', default=False)
    signup = SubmitField('sign up')<commit_msg>remove regexp validator from password<commit_after>from flask_wtf import FlaskForm
from wtforms import StringField, BooleanField, PasswordField, SubmitField
from wtforms.validators import Regexp, Length, Email


class LoginForm(FlaskForm):
    username = StringField('username', validators=[Regexp(r'^[\w_-~]+$'), Length(min=4, max=25)])
    password = PasswordField('password', validators=[Regexp(r'^[\w_-~]+$'), Length(min=6)])
    remember_me = BooleanField('remember_me', default=False)
    login = SubmitField('login')


class SignupForm(FlaskForm):
    username = StringField('username', validators=[Regexp(r'^[\w_-~]+$'), Length(min=4, max=25)])
    password = PasswordField('password', validators=[Length(min=6)])
    email = StringField('email',  validators=[Email('This field requires a valid email address')])
    collection_name = StringField('collection', validators=[Regexp(r'^[a-zA-Z0-0 ]*$')])
    remember_me = BooleanField('remember_me', default=False)
    signup = SubmitField('sign up')
{'fraction_non_alphanumeric': 0.16956737941322725, 'fraction_numerical': 0.009945300845350571, 'mean_word_length': 6.7384615384615385, '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': '2506323', 'n_tokens_mistral': 660, 'n_tokens_neox': 624, 'n_words': 126}