<commit_before>import struct
import sys
from cymysql.constants import ER

PYTHON3 = sys.version_info[0] > 2

if PYTHON3:
    class MySQLError(Exception):

        """Exception related to operation with MySQL."""
else:
    class MySQLError(StandardError):
    
        """Exception related to operation with MySQL."""


class Warning(MySQLError):

    """Exception raised for important warnings like data truncations
    while inserting, etc."""

class Error(MySQLError):

    """Exception that is the base class of all other error exceptions
    (not Warning)."""


class InterfaceError(Error):

    """Exception raised for errors that are related to the database
    interface rather than the database itself."""


class DatabaseError(Error):

    """Exception raised for errors that are related to the
    database."""


class DataError(DatabaseError):

    """Exception raised for errors that are due to problems with the<commit_msg>save errno and message into exception instance<commit_after>import struct
import sys
from cymysql.constants import ER

PYTHON3 = sys.version_info[0] > 2

if PYTHON3:
    class MySQLError(Exception):

        """Exception related to operation with MySQL."""
        def __init__(self, errno, message):
            self.errno = errno
            self.message = message
            super(MySQLError, self).__init__(errno, message)
else:
    class MySQLError(StandardError):
    
        """Exception related to operation with MySQL."""
        def __init__(self, errno, message):
            self.errno = errno
            self.message = message
            super(MySQLError, self).__init__(errno, message)

class Warning(MySQLError):

    """Exception raised for important warnings like data truncations
    while inserting, etc."""

class Error(MySQLError):

    """Exception that is the base class of all other error exceptions
    (not Warning)."""


class InterfaceError(Error):

    """Exception raised for errors that are related to the database
    interface rather than the database itself."""


class DatabaseError(Error):

    """Exception raised for errors that are related to the
    database."""


class DataError(DatabaseError):

    """Exception raised for errors that are due to problems with the
{'fraction_non_alphanumeric': 0.0854853072128228, 'fraction_numerical': 0.003561887800534283, 'mean_word_length': 3.4058823529411764, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '7079153', 'n_tokens_mistral': 617, 'n_tokens_neox': 560, 'n_words': 229}