<commit_before><?php

namespace kiwi\Database;

use PDO;

class Application extends Model
{
    /**
     * Create a new application instance.
     */
    public function __construct()
    {
        $properties = $this->getAll();

        foreach ($properties as $property) {
            $this['meta_key'] = $property['meta_value'];
        }
    }

    /**
     * Fetch a meta value.
     *
     * @param string $property
     *
     * @return mixed
     */
    public function get($property)
    {
        return static::builder()->column('value')
            ->from('site_meta')
            ->where('key', '=', $property)
            ->run();
    }

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

        return $builder->select('*')
            ->from('site_meta')
            ->format(PDO::FETCH_ASSOC)
            ->run();
    }
}
<commit_msg>change application namespace and fix typo<commit_after><?php

namespace kiwi;

use PDO;
use kiwi\Database\Model;

class Application extends Model
{
    /**
     * Create a new application instance.
     */
    public function __construct()
    {
        $properties = $this->getAll();

        foreach ($properties as $property) {
            $this['key'] = $property['value'];
        }
    }

    /**
     * Fetch a meta value.
     *
     * @param string $property
     *
     * @return mixed
     */
    public function get($property)
    {
        return static::builder()->column('value')
            ->from('site_meta')
            ->where('key', '=', $property)
            ->run();
    }

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

        return $builder->select('*')
            ->from('site_meta')
            ->format(PDO::FETCH_ASSOC)
            ->run();
    }
}

{'fraction_non_alphanumeric': 0.15246636771300448, 'fraction_numerical': 0.0, 'mean_word_length': 1.7847113884555381, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 21, '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': '1657498', 'n_tokens_mistral': 520, 'n_tokens_neox': 511, 'n_words': 113}