<commit_before>from sqlalchemy import Column, BigInteger
from sqlalchemy.ext.declarative import as_declarative, declared_attr

from inbox.models.mixins import CreatedAtMixin


@as_declarative()
class MailSyncBase(CreatedAtMixin):
    """
    Provides automated table name, primary key column, and created_at timestamp.

    """
    id = Column(BigInteger, primary_key=True, autoincrement=True)

    @declared_attr
    def __tablename__(cls):
        return cls.__name__.lower()

    @declared_attr
    def __table_args__(cls):
        return {'extend_existing': True}<commit_msg>Override __repr__ to make debugging easier<commit_after>from sqlalchemy import Column, BigInteger
from sqlalchemy.ext.declarative import as_declarative, declared_attr

from inbox.models.mixins import CreatedAtMixin


@as_declarative()
class MailSyncBase(CreatedAtMixin):
    """
    Provides automated table name, primary key column, and created_at timestamp.

    """
    id = Column(BigInteger, primary_key=True, autoincrement=True)

    @declared_attr
    def __tablename__(cls):
        return cls.__name__.lower()

    @declared_attr
    def __table_args__(cls):
        return {'extend_existing': True}

    def __repr__(self):
        return "<{} (id: {})>".format(self.__module__ + "." + self.__class__.__name__, self.id)
{'fraction_non_alphanumeric': 0.09403669724770643, 'fraction_numerical': 0.0, 'mean_word_length': 4.321138211382114, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '2056264', 'n_tokens_mistral': 405, 'n_tokens_neox': 390, 'n_words': 95}