<commit_before><?php

/**
 * Base Model class
 * @author M2Mobi, <NAME>
 */
abstract class Model
{

    /**
     * Constructor
     */
    public function __construct()
    {
        require_once("class.dbcon.inc.php");
        require_once("class.query.inc.php");
    }

    /**
     * Destructor
     */
    public function __destruct()
    {

    }

}<commit_msg>application: move dbcon instantiation from flights model   to core model.<commit_after><?php

/**
 * Base Model class
 * @author M2Mobi, <NAME>
 */
abstract class Model
{

    /**
     * Reference to the database connection
     * @var DBCon
     */
    protected $db;

    /**
     * Constructor
     */
    public function __construct($db)
    {
        require_once("class.dbcon.inc.php");
        require_once("class.query.inc.php");
        $this->db = DBCon::get_db_connection($db);
    }

    /**
     * Destructor
     */
    public function __destruct()
    {
        unset($this->db);
    }

}
{'fraction_non_alphanumeric': 0.14138286893704852, 'fraction_numerical': 0.0020639834881320948, 'mean_word_length': 2.040752351097179, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '1780916', 'n_tokens_mistral': 313, 'n_tokens_neox': 306, 'n_words': 61}