<commit_before><?php
namespace Puppy\Config;

/**
 * Class Config
 * @package Puppy\Config
 * @author <NAME> <<EMAIL>>
 */
class Config extends ArrayConfig
{
    /**
     * @var string
     */
    private $env;

    /**
     * @var string
     */
    private $dirPath;

    /**
     * @var string
     */
    private $mainConfigFileName;

    /**
     * @var string
     */
    private $localConfigFileName;

    /**
     * @param string $env
     * @param string $dirPath
     * @param string $mainConfigFileName
     * @param string $localConfigFileName
     */
    public function __construct(
        $env = '',
        $dirPath = 'config',
        $mainConfigFileName = 'global',
        $localConfigFileName = 'local'
    )
    {
        $this->setEnv($env);
        $this->setDirPath($dirPath);
        $this->setMainConfigFileName($mainConfigFileName);
        $this->setLocalConfigFileName($localConfigFileName);
        parent::__construct($this->getVars());
    }

    /**
     * @return string
     */
    public function getMainFilePath()
    {
        return $this->getDirPath() . DIRECTORY_SEPARATOR . $this->getMainConfigFileName() . '.php';
    }

    /**
     * @return string
     */
    public function getEnvFilePath()
    {
        return $this->getDirPath() . DIRECTORY_SEPARATOR . $this->getEnv() . '.php';
    }

    /**
     * @return string
     */
    public function getLocalFilePath()
    {
        return $this->getDirPath() . DIRECTORY_SEPARATOR . $this->getLocalConfigFileName() . '.php';
    }

    /**
     * @return array
     */
    private function getVars()
    {
        return $this->getFilesContent(
            [
                $this->getMainFilePath(),
                $this->getEnvFilePath(),
                $this->getLocalFilePath(),
            ]
        );
    }

    /**
     * @param string[] $filePaths
     * @return array
     */
    private function getFilesContent(array $filePaths)
    {<commit_msg>rename Config::getData()<commit_after><?php
namespace Puppy\Config;

/**
 * Class Config
 * @package Puppy\Config
 * @author <NAME> <<EMAIL>>
 */
class Config extends ArrayConfig
{
    /**
     * @var string
     */
    private $env;

    /**
     * @var string
     */
    private $dirPath;

    /**
     * @var string
     */
    private $mainConfigFileName;

    /**
     * @var string
     */
    private $localConfigFileName;

    /**
     * @param string $env
     * @param string $dirPath
     * @param string $mainConfigFileName
     * @param string $localConfigFileName
     */
    public function __construct(
        $env = '',
        $dirPath = 'config',
        $mainConfigFileName = 'global',
        $localConfigFileName = 'local'
    )
    {
        $this->setEnv($env);
        $this->setDirPath($dirPath);
        $this->setMainConfigFileName($mainConfigFileName);
        $this->setLocalConfigFileName($localConfigFileName);
        parent::__construct($this->getData());
    }

    /**
     * @return string
     */
    public function getMainFilePath()
    {
        return $this->getDirPath() . DIRECTORY_SEPARATOR . $this->getMainConfigFileName() . '.php';
    }

    /**
     * @return string
     */
    public function getEnvFilePath()
    {
        return $this->getDirPath() . DIRECTORY_SEPARATOR . $this->getEnv() . '.php';
    }

    /**
     * @return string
     */
    public function getLocalFilePath()
    {
        return $this->getDirPath() . DIRECTORY_SEPARATOR . $this->getLocalConfigFileName() . '.php';
    }

    /**
     * @return array
     */
    private function getData()
    {
        return $this->getFilesContent(
            [
                $this->getMainFilePath(),
                $this->getEnvFilePath(),
                $this->getLocalFilePath(),
            ]
        );
    }

    /**
     * @param string[] $filePaths
     * @return array
     */
    private function getFilesContent(array $filePaths)
    {
{'fraction_non_alphanumeric': 0.141656050955414, 'fraction_numerical': 0.0, 'mean_word_length': 1.9211309523809523, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 39, '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': '1403280', 'n_tokens_mistral': 1158, 'n_tokens_neox': 1134, 'n_words': 213}