<commit_before><?php

namespace MSML;

use Symfony\Component\Config\FileLocator;
use Symfony\Component\Yaml\Yaml;

/**
 * Config.
 */
class Config implements \ArrayAccess
{
    protected $config;

    /**
     * Construct by loading config from YAML file.
     *
     * YAML file 'config.yml' must exist in either current dir or a
     * subdir config.
     */
    public function __construct()
    {
        $fileLocator = new FileLocator(['.', './config']);

        $this->config['config'] = Yaml::parse(file_get_contents($fileLocator->locate('config.yml')));
        $this->config['lists'] = Yaml::parse(file_get_contents($fileLocator->locate('lists.yml')));
    }<commit_msg>Avoid static method<commit_after><?php

namespace MSML;

use Symfony\Component\Config\FileLocator;
use Symfony\Component\Yaml\Parser;

/**
 * Config.
 */
class Config implements \ArrayAccess
{
    protected $config;

    /**
     * Construct by loading config from YAML file.
     *
     * YAML file 'config.yml' must exist in either current dir or a
     * subdir config.
     */
    public function __construct()
    {
        $fileLocator = new FileLocator(['.', './config']);
        $yamlParser = new Parser();

        $this->config['config'] = $yamlParser->parse(file_get_contents($fileLocator->locate('config.yml')));
        $this->config['lists'] = $yamlParser->parse(file_get_contents($fileLocator->locate('lists.yml')));
    }
{'fraction_non_alphanumeric': 0.15162200282087446, 'fraction_numerical': 0.0, 'mean_word_length': 3.235820895522388, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, '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': '7411078', 'n_tokens_mistral': 445, 'n_tokens_neox': 431, 'n_words': 95}