<commit_before><?php

use Fyuze\Config\Config;

class ConfigTest extends PHPUnit_Framework_TestCase
{
    /**
     * @var Config
     */
    protected $config;

    /**
     * Setup override
     */
    public function setUp()
    {
        parent::setUp();

        $this->config = new Config(realpath(__DIR__ . '/../mocks/app/config'), 'testing');
    }

    public function testConfigParsesFile()
    {
        $this->assertInstanceOf('Fyuze\Config\Configs', $this->config);
    }

    public function testConfigGetsKey()
    {
        $this->assertArrayHasKey('name', $this->config->get('app'));
    }

    public function testConfigGetsKeyWithDotNotation()
    {
        $this->assertEquals('Fyuze', $this->config->get('app.name'));
    }

    public function testConfigReturnsDefaultValue()
    {
        $this->assertNull($this->config->get('abc'));<commit_msg>Finally have IRC notifications working<commit_after><?php

use Fyuze\Config\Config;

class ConfigTest extends PHPUnit_Framework_TestCase
{
    /**
     * @var Config
     */
    protected $config;

    /**
     * Setup override
     */
    public function setUp()
    {
        parent::setUp();

        $this->config = new Config(realpath(__DIR__ . '/../mocks/app/config'), 'testing');
    }

    public function testConfigParsesFile()
    {
        $this->assertInstanceOf('Fyuze\Config\Config', $this->config);
    }

    public function testConfigGetsKey()
    {
        $this->assertArrayHasKey('name', $this->config->get('app'));
    }

    public function testConfigGetsKeyWithDotNotation()
    {
        $this->assertEquals('Fyuze', $this->config->get('app.name'));
    }

    public function testConfigReturnsDefaultValue()
    {
        $this->assertNull($this->config->get('abc'));
{'fraction_non_alphanumeric': 0.1534090909090909, 'fraction_numerical': 0.0, 'mean_word_length': 2.7870967741935484, 'pattern_counts': {'":': 0, '<': 5, '<?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': '4982870', 'n_tokens_mistral': 541, 'n_tokens_neox': 521, 'n_words': 85}