<commit_before>from wtforms import Form, StringField, validators
from wtforms.validators import ValidationError
from foo.models.auth import UserMgr


def is_already_taken(form, field):
    if not field.data:
        raise ValidationError('Insert your email')
    exists = UserMgr.get(email=field.data)
    if exists:
        raise ValidationError('The user has already signed up.')


class SignupForm(Form):
    email = StringField('Email Address', [validators.Length(min=6, max=35),
        validators.Email(message=u'That\'s not a valid email address.'), is_already_taken ])
<commit_msg>~~~PROJNAME~~~ instead of foo<commit_after>from wtforms import Form, StringField, validators
from wtforms.validators import ValidationError
from ~~~PROJNAME~~~.models.auth import UserMgr


def is_already_taken(form, field):
    if not field.data:
        raise ValidationError('Insert your email')
    exists = UserMgr.get(email=field.data)
    if exists:
        raise ValidationError('The user has already signed up.')


class SignupForm(Form):
    email = StringField('Email Address', [validators.Length(min=6, max=35),
        validators.Email(message=u'That\'s not a valid email address.'), is_already_taken ])

{'fraction_non_alphanumeric': 0.10622406639004149, 'fraction_numerical': 0.004979253112033195, 'mean_word_length': 4.532110091743119, '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': '7515052', 'n_tokens_mistral': 372, 'n_tokens_neox': 348, 'n_words': 101}