<commit_before>"""Collection of Models used in blogsite."""
from . import db


class Post(db.Model):
    """Model representing a blog post."""

    # Columns
    id = db.Column(db.Integer, primary_key=True, autoincrement=True)
    title = db.Column(db.String(128))
    body = db.Column(db.String(4096))

    def __init__(self, title, body):
        """Constructor for Post."""
        self.title = title
        self.body = body

    def __repr__(self):
        """Representation."""
        return '<Post %r:%r>' % self.id, self.title
<commit_msg>Add proper docstring commenting to models.py using numpy/scipy.<commit_after>"""Collection of Models used in blogsite."""
from . import db


class Post(db.Model):
    """Model representing a blog post.

    Attributes
    ----------
    id : db.Column
        Autogenerated primary key
    title : db.Column
    body : db.Column
    """

    # Columns
    id = db.Column(db.Integer, primary_key=True, autoincrement=True)
    title = db.Column(db.String(128))
    body = db.Column(db.String(4096))

    def __init__(self, title, body):
        """Constructor for Post.

        Parameters
        ----------
        title : String
            Title/Summary of post
        body : String
            Contents
        """
        self.title = title
        self.body = body

    def __repr__(self):
        """Representation."""
        return '<Post %r:%r>' % self.id, self.title

{'fraction_non_alphanumeric': 0.1388499298737728, 'fraction_numerical': 0.009817671809256662, 'mean_word_length': 2.221218961625282, 'pattern_counts': {'":': 0, '<': 5, '<?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': '3172466', 'n_tokens_mistral': 435, 'n_tokens_neox': 410, 'n_words': 114}