<commit_before>"""
Exceptions raised when interacting with the profile server.
"""


class ProfileServerException(Exception):
    """
    Base exception for all profile server errors.
    """
    pass


class EmailNotUnique(ProfileServerException):
    """
    An email used in an interaction with the profile server is not unique.
    """
    def __init__(self, email):
        super(EmailNotUnique, self).__init__()
        self.email = email

    def __str__(self):
        "String representation of the exception."
        return self.__unicode__()

    def __unicode__(self):
        "Unicode representation of the exception."
        return "Email %s is not unique on the profile server." % self.email

    def __repr__(self):
        "Unique representation of the exception."
        return "EmailNotUnique('%s')" % self.email<commit_msg>Style<commit_after>"""
Exceptions raised when interacting with the profile server
"""


class ProfileServerException(Exception):
    """
    Base exception for all profile server errors
    """
    pass


class EmailNotUnique(ProfileServerException):
    """
    An email used in an interaction with the profile server is not unique
    """
    def __init__(self, email):
        super(EmailNotUnique, self).__init__()
        self.email = email

    def __str__(self):
        """
        String representation of the exception
        """
        return self.__unicode__()

    def __unicode__(self):
        """
        Unicode representation of the exception
        """
        return "Email %s is not unique on the profile server." % self.email

    def __repr__(self):
        """
        Unique representation of the exception
        """
        return "EmailNotUnique('%s')" % self.email
{'fraction_non_alphanumeric': 0.09299655568312284, 'fraction_numerical': 0.0, 'mean_word_length': 2.684989429175476, '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': '7634645', 'n_tokens_mistral': 446, 'n_tokens_neox': 429, 'n_words': 155}