<commit_before><?php

require_once '../../bootstrap.php';

use Pop\Config;

try {
    $cfg = array(
    	'db' => array(
    		'name' => 'testdb',
    		'host' => 'localhost',
    		'user' => array(
                'username' => 'testuser',
                'password' => '<PASSWORD>',
                'role'     => 'editor'
            )
        ),
        'module' => 'TestModule'
    );

    $config = new Pop\Config($cfg);

    echo 'DB Name: ' . $config->db->name . PHP_EOL;
    echo 'User: ' . $config->db->user->username . ' has the role: ' . $config->db->user->role. PHP_EOL;
    echo 'Module Name: ' . $config->module;

    echo PHP_EOL . PHP_EOL;
} catch (Exception $e) {
    echo $e->getMessage() . PHP_EOL . PHP_EOL;
}

?><commit_msg>Work on the config component<commit_after><?php

require_once '../../bootstrap.php';

use Pop\Config;

try {
    $cfg = array(
    	'db' => array(
    		'name' => 'testdb',
    		'host' => 'localhost',
    		'user' => array(
                'username' => 'testuser',
                'password' => '<PASSWORD>',
                'role'     => 'editor'
            )
        ),
        'module' => 'TestModule'
    );

    $config = new Config($cfg);

    echo 'DB Name: ' . $config->db->name . PHP_EOL;
    echo 'User: ' . $config->db->user->username . ' has the role: ' . $config->db->user->role. PHP_EOL;
    echo 'Module Name: ' . $config->module;

    echo PHP_EOL . PHP_EOL;
} catch (Exception $e) {
    echo $e->getMessage() . PHP_EOL . PHP_EOL;
}

?>
{'fraction_non_alphanumeric': 0.1954636424282855, 'fraction_numerical': 0.0, 'mean_word_length': 1.9069767441860466, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 43, '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': '908203', 'n_tokens_mistral': 533, 'n_tokens_neox': 530, 'n_words': 112}