<commit_before>from sqlalchemy import Column, Integer, String, DateTime, Text
from pyvly.database import Model


class Post(Model):
    __tablename__ = 'post'

    id = Column(Integer, primary_key=True)
    content = Column(Text)
    burn_after = Column(DateTime)
    random_token = Column(Text)
    privly_application = Column(String(100))

    def __init__(self, content, burn_after, random_token, privly_application):
        self.content = content
        self.burn_after = burn_after
        self.random_token = random_token
        self.privly_application = privly_application


class User(Model):
    __tablename__ = 'user'

    id = Column(Integer, primary_key=True)
    email = Column(String(255), unique=True)
    password = Column(String(255))
    salt = Column(String(100))
    created = Column(DateTime)
    updated = Column(DateTime)

    def __init__(self, email, password, salt, created, updated):
        self.email = email
        self.password = password
        self.salt = salt
        self.created = created
        self.updated = updated<commit_msg>models: user init makes more sense<commit_after>from  datetime import datetime

from sqlalchemy import Column, Integer, String, DateTime, Text

from pyvly.database import Model


class Post(Model):
    __tablename__ = 'post'

    id = Column(Integer, primary_key=True)
    content = Column(Text)
    burn_after = Column(DateTime)
    random_token = Column(Text)
    privly_application = Column(String(100))

    def __init__(self, content, burn_after, random_token, privly_application):
        self.content = content
        self.burn_after = burn_after
        self.random_token = random_token
        self.privly_application = privly_application


class User(Model):
    __tablename__ = 'user'

    id = Column(Integer, primary_key=True)
    email = Column(String(255), unique=True)
    password = Column(String(255))
    salt = Column(String(100))
    created = Column(DateTime)
    updated = Column(DateTime)

    def __init__(self, email, password, salt):
        self.email = email
        self.password = password
        self.salt = salt
        self.created = datetime.now()
        self.updated = self.created
{'fraction_non_alphanumeric': 0.0926094890510949, 'fraction_numerical': 0.010948905109489052, 'mean_word_length': 3.3254437869822486, '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': '2797260', 'n_tokens_mistral': 656, 'n_tokens_neox': 623, 'n_words': 158}