<commit_before><?php

class ZFE_Module_Bootstrap extends Zend_Application_Module_Bootstrap
{
    public function __construct($application)
    {
        parent::__construct($application);
        $this->_loadModuleConfig();
        $this->_loadInitializer();
    }

    protected function _loadModuleConfig()
    {
        $front = Zend_Controller_Front::getInstance();
        $moduleDir = $front->getModuleDirectory($this->getModuleName());

        $configFile = $moduleDir . "/module.ini";

        if (!file_exists($configFile)) return;

        $config = new Zend_Config_Ini($configFile, $this->getEnvironment());
        $this->setOptions($config->toArray());
    }

    protected function _loadInitializer()
    {
        $resourceLoader = $this->getResourceLoader();

        $resourceLoader->addResourceType(
            'Bootstrap_Initializer', 'bootstrap', 'Bootstrap'
        );
    }
}<commit_msg>Fixing the module-specific configuration loading<commit_after><?php

class ZFE_Module_Bootstrap extends Zend_Application_Module_Bootstrap
{
    public function __construct($application)
    {
        parent::__construct($application);
        $this->_loadModuleConfig();
        $this->_loadInitializer();
    }

    protected function _loadModuleConfig()
    {
        $moduleName = strtolower($this->getModuleName());

        $front = Zend_Controller_Front::getInstance();
        $moduleDir = $front->getModuleDirectory($moduleName);

        $configFile = $moduleDir . "/configs/module.ini";

        if (!file_exists($configFile)) return;

        $config = new Zend_Config_Ini($configFile, $this->getEnvironment());
        $this->setOptions($config->toArray());
    }

    protected function _loadInitializer()
    {
        $resourceLoader = $this->getResourceLoader();

        $resourceLoader->addResourceType(
            'Bootstrap_Initializer', 'bootstrap', 'Bootstrap'
        );
    }
}
{'fraction_non_alphanumeric': 0.12859383167799268, 'fraction_numerical': 0.0, 'mean_word_length': 3.2628062360801784, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 21, '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': '1853368', 'n_tokens_mistral': 525, 'n_tokens_neox': 506, 'n_words': 82}