<commit_before>from .. import db


class Category(db.Model):
    __tablename__ = 'categories'
    id = db.Column(db.Integer, primary_key=True)
    name = db.Column(db.String(64), unique=True)
    parent_id = db.Column(db.Integer, db.ForeignKey('categories.id'))
    parent = db.relationship("Categories", remote_side=[id])
<commit_msg>added unit removed parent<commit_after>from .. import db


class Category(db.Model):
    __tablename__ = 'categories'
    id = db.Column(db.Integer, primary_key=True)
    name = db.Column(db.String(64), unique=True)
    parent_id = db.Column(db.Integer, db.ForeignKey('categories.id'))
    unit = db.String(64)
{'fraction_non_alphanumeric': 0.14573643410852713, 'fraction_numerical': 0.009302325581395349, 'mean_word_length': 4.383333333333334, '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': '3061961', 'n_tokens_mistral': 220, 'n_tokens_neox': 212, 'n_words': 40}