<commit_before><?php defined('THISPATH') or die('Can\'t access directly!');
/**
 * Panada MySQL Database API.
 *
 * @package	Panada
 * @subpackage	Library
 * @author	<NAME>. Inspired by ezSQL {@link http://php.justinvincent.com <NAME> (<EMAIL>)}
 * @since	Version 0.1
 */

class Library_db {
    
    public $link;
    public $insert_id;
    public $last_query;
    public $last_error;
    
    /**
     * EN: Define all properties needed.
     * @return void
     */
    function __construct($connection = 'default'){
        
        $this->config = new Library_config();
        
        $this->link = @mysql_connect(
            $this->config->db->$connection->host,
            $this->config->db->$connection->user,
            $this->config->db->$connection->password
        );
        
        if ( ! $this->link )
            Library_error::database('Unable connet to database.');
        <commit_msg>update for mysql db library<commit_after><?php defined('THISPATH') or die('Can\'t access directly!');
/**
 * Panada MySQL Database API.
 *
 * @package	Panada
 * @subpackage	Library
 * @author	<NAME>. Inspired by ezSQL {@link http://php.justinvincent.com <NAME> (<EMAIL>)}
 * @since	Version 0.1
 */

class Library_db {
    
    public $link;
    public $insert_id;
    public $last_query;
    public $last_error;
    
    /**
     * EN: Define all properties needed.
     * @return void
     */
    function __construct($connection = 'default'){
        
        $this->config = new Library_config();
        
        $this->link = @mysql_connect(
            $this->config->db->$connection->host,
            $this->config->db->$connection->user,
            $this->config->db->$connection->password,
	    true
        );
        
        if ( ! $this->link )
            Library_error::database('Unable connet to database.');
        
{'fraction_non_alphanumeric': 0.15013550135501355, 'fraction_numerical': 0.002168021680216802, 'mean_word_length': 2.2216404886561953, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 39, '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': '771826', 'n_tokens_mistral': 558, 'n_tokens_neox': 552, 'n_words': 125}