<commit_before>from application import db

class User(db.Document):
    email = db.EmailField(required=True)
    alias = db.StringField(required=True)
    password = db.StringField(required=True)
    emailVerified = db.BooleanField(default=False)
    lastLogin = db.DateTimeField()
    allowTracking = db.BooleanField(default=False)
    isMod = db.BooleanField(default=False)

class Posts(db.Document):
    #max length of title is 140 characters
    title = db.StringField(required=True, max_length=140)
    author= db.ReferenceField(User)
    #max length of content is 10000 characters
    content= db.StringField(max_length=10000)
    score = db.IntField(default=0)

class Following(db.Document):
    user = db.ReferenceField(User)
    following = db.ListField(db.ReferenceField(User))

class Kicked(db.Document):
    #stores temporary locks on user accounts
    user = db.ReferenceField(User)
    ends = db.DateTimeField(required=True)
    reason = db.StringField(max_length=1000)

class Banned(db.Document):
    #stores emails of people who are not allowed to make accounts
    email = db.EmailField(required=True)
    reason = db.StringField(max_length=1000)<commit_msg>added reason field for ban and kicked users<commit_after>from application import db

class User(db.Document):
    email = db.EmailField(required=True)
    alias = db.StringField(required=True)
    password = db.StringField(required=True)
    emailVerified = db.BooleanField(default=False)
    lastLogin = db.DateTimeField()
    allowTracking = db.BooleanField(default=False)
    isMod = db.BooleanField(default=False)

class Posts(db.Document):
    #max length of title is 140 characters
    title = db.StringField(required=True, max_length=140)
    author= db.ReferenceField(User)
    #max length of content is 10000 characters
    content= db.StringField(max_length=10000)
    score = db.IntField(default=0)

class Following(db.Document):
    user = db.ReferenceField(User)
    following = db.ListField(db.ReferenceField(User))

class Kicked(db.Document):
    #stores temporary locks on user accounts
    user = db.ReferenceField(User)
    start = db.DateTimeField(required=True)
    ends = db.DateTimeField(required=True)
    reason = db.StringField(max_length=1000)

class Banned(db.Document):
    #stores emails of people who are not allowed to make accounts
    email = db.EmailField(required=True)
    reason = db.StringField(max_length=1000)
{'fraction_non_alphanumeric': 0.0985973597359736, 'fraction_numerical': 0.020627062706270627, 'mean_word_length': 4.461711711711712, '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': '2196895', 'n_tokens_mistral': 761, 'n_tokens_neox': 717, 'n_words': 172}