<commit_before><?php

namespace Neptune\Tests\Core;

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

use Neptune\Config\ConfigManager;
use Neptune\Core\Neptune;
use Neptune\Config\NeptuneConfig;
use Neptune\Config\Config;

use Temping\Temping;

/**
 * ConfigManagerTest
 *
 * @author <NAME> <<EMAIL>>
 **/
class ConfigManagerTest extends \PHPUnit_Framework_TestCase
{

    protected $manager;
    protected $neptune;

    protected $file;
    protected $file2;

    protected $temp;

    public function setUp()
    {
        $this->temp = new Temping();
        $this->temp->init();
        $config = new NeptuneConfig($this->temp->getDirectory(), null);
        $this->neptune = new Neptune($config);
        $this->manager = new ConfigManager($this->neptune);
        $this->file =  __DIR__ . '/fixtures/config.php';
        $this->file2 = __DIR__ . '/fixtures/config2.php';
    }

    public function tearDown()
    {
        $this->temp->reset();
    }

    /**
     * Strip out whitespace and new lines from config settings to make
     * them easier to compare against.
     */
    protected function removeWhitespace($content)
    {
        return preg_replace('`\s+`', '', $content);
    }

    public function testCreate()
    {<commit_msg>Updating ConfigManagerTest.<commit_after><?php

namespace Neptune\Tests\Core;

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

use Neptune\Config\ConfigManager;
use Neptune\Core\Neptune;
use Neptune\Config\NeptuneConfig;
use Neptune\Config\Config;

use Temping\Temping;

/**
 * ConfigManagerTest
 *
 * @author <NAME> <<EMAIL>>
 **/
class ConfigManagerTest extends \PHPUnit_Framework_TestCase
{

    protected $manager;
    protected $neptune;

    protected $file;
    protected $file2;

    protected $temp;

    public function setUp()
    {
        $this->temp = new Temping();
        $this->temp->init();
        $this->neptune = new Neptune($this->temp->getDirectory());
        $this->manager = new ConfigManager($this->neptune);
        $this->file =  __DIR__ . '/fixtures/config.php';
        $this->file2 = __DIR__ . '/fixtures/config2.php';
    }

    public function tearDown()
    {
        $this->temp->reset();
    }

    /**
     * Strip out whitespace and new lines from config settings to make
     * them easier to compare against.
     */
    protected function removeWhitespace($content)
    {
        return preg_replace('`\s+`', '', $content);
    }

    public function testCreate()
    {
{'fraction_non_alphanumeric': 0.1426256077795786, 'fraction_numerical': 0.0024311183144246355, 'mean_word_length': 2.7522796352583585, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 33, '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': '364575', 'n_tokens_mistral': 782, 'n_tokens_neox': 765, 'n_words': 169}