<commit_before>from sqlalchemy import Column, Integer, String, DateTime, Boolean
from project.database import Base

class Reminder(Base):
    __tablename__ = 'reminders'
    id = Column(Integer, primary_key=True)
    date = Column(DateTime)
    text = Column(String(1024))
    phone = Column(String(24))

    def __init__(self, date=None, text=None, phone=None):
        self.date = date
        self.text = text
        self.phone = phone

    def __repr__(self):
        return "<Reminder on %s (%s)>" % (self.date, self.text)

class User(Base):
    __tablename__ = 'users'
    uid = Column(Integer, primary_key = True)
    username = Column(String(32))
    email = Column(String(64))
    pwhash = Column(String(128))
    reg_uuid = Column(String(37))
    enabled = Column(Boolean)
    phone = Column(String(24))

    def __init__(self, username=None, email=None, pwhash=None, reg_uuid=None, enabled=True,
            phone=None):
        self.username = username
        self.email = email
        self.pwhash = pwhash
        self.reg_uuid = reg_uuid
        self.enabled = enabled
        self.phone = phone

    def __repr__(self):
        return "<User '%s' (id %d), phone: %s, enabled: %s" % (self.username,
                self.uid, self.phone, self.enabled)

class Alias(Base):
    __tablename__ = 'aliases'
    uid = Column(Integer)
    _from = Column(String(64))
    to = Column(String(64))

    def __init__(self, uid=None, _from=None, to=None):
        self.uid = uid
        self._from = from
        self.to = to

    def __repr__(self):
        return "<Alias %s to %s (uid %d)" % (self._from, self.to, self.uid)

class Phone(Base):<commit_msg>whoops, _from<commit_after>from sqlalchemy import Column, Integer, String, DateTime, Boolean
from project.database import Base

class Reminder(Base):
    __tablename__ = 'reminders'
    id = Column(Integer, primary_key=True)
    date = Column(DateTime)
    text = Column(String(1024))
    phone = Column(String(24))

    def __init__(self, date=None, text=None, phone=None):
        self.date = date
        self.text = text
        self.phone = phone

    def __repr__(self):
        return "<Reminder on %s (%s)>" % (self.date, self.text)

class User(Base):
    __tablename__ = 'users'
    uid = Column(Integer, primary_key = True)
    username = Column(String(32))
    email = Column(String(64))
    pwhash = Column(String(128))
    reg_uuid = Column(String(37))
    enabled = Column(Boolean)
    phone = Column(String(24))

    def __init__(self, username=None, email=None, pwhash=None, reg_uuid=None, enabled=True,
            phone=None):
        self.username = username
        self.email = email
        self.pwhash = pwhash
        self.reg_uuid = reg_uuid
        self.enabled = enabled
        self.phone = phone

    def __repr__(self):
        return "<User '%s' (id %d), phone: %s, enabled: %s" % (self.username,
                self.uid, self.phone, self.enabled)

class Alias(Base):
    __tablename__ = 'aliases'
    uid = Column(Integer)
    _from = Column(String(64))
    to = Column(String(64))

    def __init__(self, uid=None, _from=None, to=None):
        self.uid = uid
        self._from = _from
        self.to = to

    def __repr__(self):
        return "<Alias %s to %s (uid %d)" % (self._from, self.to, self.uid)

class Phone(Base):
{'fraction_non_alphanumeric': 0.12910021065302438, 'fraction_numerical': 0.012639181462533854, 'mean_word_length': 2.7772727272727273, 'pattern_counts': {'":': 0, '<': 9, '<?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': '1154541', 'n_tokens_mistral': 1116, 'n_tokens_neox': 1075, 'n_words': 270}