<commit_before><?php
/**
 * BaseModel.php.
 *
 * @package IkaGear\model
 */
namespace IkaGear\model;

use IkaGear\IkaGear;

/**
 * BaseModel.
 */
class BaseModel
{
    /** @var Object PDOObject */
    private $db = null;

    /**
     * init.
     */
    public function __construct()
    {
    }

    /**
     * init PDO Object.
     *
     * @return Object PDO Object
     */
    public function db()
    {
        if (is_null($this->db)) {
            IkaGear::logger()->info('DB connecting.');
            $this->db = new \PDO(
                'sqlite:'.__DIR__.'./Ika.db',
                null,
                null,<commit_msg>bugfix<commit_after><?php
/**
 * BaseModel.php.
 *
 * @package IkaGear\model
 */
namespace IkaGear\model;

use IkaGear\IkaGear;

/**
 * BaseModel.
 */
class BaseModel
{
    /** @var Object PDOObject */
    private $db = null;

    /**
     * init.
     */
    public function __construct()
    {
    }

    /**
     * init PDO Object.
     *
     * @return Object PDO Object
     */
    public function db()
    {
        if (is_null($this->db)) {
            IkaGear::logger()->info('DB connecting.');
            $this->db = new \PDO(
                'sqlite:'.__DIR__.'/Ika.db',
                null,
                null,
{'fraction_non_alphanumeric': 0.15977742448330684, 'fraction_numerical': 0.0, 'mean_word_length': 1.5281124497991967, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '2815048', 'n_tokens_mistral': 434, 'n_tokens_neox': 427, 'n_words': 81}