<commit_before><?php
namespace root\application\baseModel;

abstract class baseModel extends \PDO {

    public function __construct($unicodeQuery = false) {
        global $registry;
        
        $dsn = $registry->db->getDBDriver() . ':host=' . $registry->db->getDBHost() . ';port=' . $registry->db->getDBPort() . ';dbname=' . $registry->db->getDBName();
        $username = $registry->db->getDBUsername();
        $passwd = $registry->db->getDBPassword();
        parent::__construct($dsn, $username, $passwd);
        
        if($unicodeQuery === true)
        {
            $sth = $this->prepare('SET NAMES utf8');
            $sth->execute();
        }
        return;
    }
    
    public abstract function index();

}<commit_msg>It was not needed to use prepare statement for known query and it changed to use query() method instead of prepare()<commit_after><?php
namespace root\application\baseModel;

abstract class baseModel extends \PDO {

    public function __construct($unicodeQuery = false) {
        global $registry;
        
        $dsn = $registry->db->getDBDriver() . ':host=' . $registry->db->getDBHost() . ';port=' . $registry->db->getDBPort() . ';dbname=' . $registry->db->getDBName();
        $username = $registry->db->getDBUsername();
        $passwd = $registry->db->getDBPassword();
        parent::__construct($dsn, $username, $passwd);
        
        if($unicodeQuery === true)
        {
            $sth = $this->query('SET NAMES utf8');
        }
        return;
    }
    
    public abstract function index();

}
{'fraction_non_alphanumeric': 0.16066838046272494, 'fraction_numerical': 0.0012853470437017994, 'mean_word_length': 2.562929061784897, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 30, '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': '1327238', 'n_tokens_mistral': 459, 'n_tokens_neox': 457, 'n_words': 101}