<commit_before><?php

class Foler {

    
    /**
     *
     * @var PDO 
     */
    protected $dbh  = null;

    /**
     *
     * @var string
     */
    protected $dbDSN;
    
    /**
     *
     * @var string
     */
    protected $dbUser;
    
    /**
     *
     * @var string
     */
    protected $dbPassword;

    /**
     *
     * @var string
     */
    protected $error;

    /**
     * 
     * @param string $dbDSN
     * @param string $dbUser
     * @param string $dbPassword
     * @param array $i18n
     */
    public function __construct($dbDSN, $dbUser, $dbPassword = '', $i18n = []) {


        $this->dbDSN        = $dbDSN;
        $this->dbUser       = $dbUser;
        $this->dbPassword   = $<PASSWORD>;

    }

    /**
     * Connects to database
     * 
     * @throws PDOException
     * @return void
     */
    public function connect(){
        $dbh = new PDO($this->dbDSN, $this->dbUser, $this->dbPassword);
        $this->dbh = $dbh;
        $this->dbh->exec('SET NAMES utf8');
    }
    

    public function getError()
    {
        return $this->dbh->errorInfo();
    }

    /**
     * Gets all projects
     * 
     * @return array
     */<commit_msg>Remove i18n from Foler constructor<commit_after><?php

class Foler {

    
    /**
     *
     * @var PDO 
     */
    protected $dbh  = null;

    /**
     *
     * @var string
     */
    protected $dbDSN;
    
    /**
     *
     * @var string
     */
    protected $dbUser;
    
    /**
     *
     * @var string
     */
    protected $dbPassword;

    /**
     *
     * @var string
     */
    protected $error;

    /**
     * 
     * @param string $dbDSN
     * @param string $dbUser
     * @param string $dbPassword
     */
    public function __construct($dbDSN, $dbUser, $dbPassword = '') {


        $this->dbDSN        = $dbDSN;
        $this->dbUser       = $dbUser;
        $this->dbPassword   = <PASSWORD>;

    }

    /**
     * Connects to database
     * 
     * @throws PDOException
     * @return void
     */
    public function connect(){
        $dbh = new PDO($this->dbDSN, $this->dbUser, $this->dbPassword);
        $this->dbh = $dbh;
        $this->dbh->exec('SET NAMES utf8');
    }
    

    public function getError()
    {
        return $this->dbh->errorInfo();
    }

    /**
     * Gets all projects
     * 
     * @return array
     */
{'fraction_non_alphanumeric': 0.14898132427843802, 'fraction_numerical': 0.003395585738539898, 'mean_word_length': 1.397761953204476, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 27, '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': '2817976', 'n_tokens_mistral': 819, 'n_tokens_neox': 786, 'n_words': 156}