<commit_before>import re
from .text import Text


class Email(Text):

    max = 254

    messages = {
        'type': 'Not a valid email address',
    }

    def validation(self, value):
        value = super(Email, self).validation(value)
        if not re.match(r'^[^@]+@[^@]+\.[^@]+$', value):
            raise self.error('type')
        return value<commit_msg>Update email field to use the pattern constraint of text<commit_after>from .text import Text


class Email(Text):

    max = 254
    pattern = r'^[^@]+@[^@]+\.[^@]+$'

    messages = {
        'pattern': 'Not a valid email address',
    }
{'fraction_non_alphanumeric': 0.16556291390728478, 'fraction_numerical': 0.009933774834437087, 'mean_word_length': 2.6011904761904763, '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': '6777549', 'n_tokens_mistral': 204, 'n_tokens_neox': 182, 'n_words': 56}