<commit_before><?php

namespace kiwi\Database;

class Post extends Model
{
    public static $type = 1;

    public static function all()
    {
        $builder = static::builder();

        return $builder->select('*')
            ->from('posts')
            ->expect(self::class)
            ->get();
    }

    public function save()
    {
        return $builder->insert()
            ->to('posts');
<commit_msg>post docs<commit_after><?php

namespace kiwi\Database;

class Post extends Model
{
    /**
     * Get all posts in descending order.
     *
     * @return array
     */
    public static function all()
    {
        $builder = static::builder();

        return $builder->select('*')
            ->from('posts')
            ->expect(self::class)
            ->get();
    }

    /**
     * Save a post to the database.
     *
     * @return PDOStatement
     */
    public function save()
    {
        return $builder->insert($this)
            ->to('posts')
            ->run();
{'fraction_non_alphanumeric': 0.14673366834170853, 'fraction_numerical': 0.0010050251256281408, 'mean_word_length': 1.6991869918699187, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 16, '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': '2448129', 'n_tokens_mistral': 283, 'n_tokens_neox': 276, 'n_words': 70}