<commit_before><?php
/**
 * Rend
 *
 * This source file is subject to the new BSD license that is bundled
 * with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://www.rendframework.com/license.html
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to <EMAIL> so I can send you a copy immediately.
 *
 * @category Rend
 * @package Controller
 * @copyright 2008 <NAME>
 * @license http://www.rendframework.com/license.html    New BSD License
 * @link http://www.rendframework.com/
 * @since 1.0.0
 * @version $Id$
 */

/** Zend_Controller_Action_Helper_Abstract */
require_once "Zend/Controller/Action/Helper/Abstract.php";

/**
 * Helper for loading the config from the front controller
 *
 * @category Rend
 * @package Controller
 */
class Rend_Controller_Action_Helper_Config extends Zend_Controller_Action_Helper_Abstract
{

    /**
     * Proxies to getConfig()
     *
     * @return Zend_Config
     */
    public function direct()
    {
        return $this->getConfig();
    }

    /**
     * Get the config
     *
     * @return Zend_Config
     */
    public function getConfig()
    {
        if (!$this->_config) {
            $this->_config = Zend_Controller_Front::getInstance()
                                                  ->getParam("rendConfig");
        }

        return $this->_config;
    }

}<commit_msg>Fixed bug with config access<commit_after><?php
/**
 * Rend
 *
 * This source file is subject to the new BSD license that is bundled
 * with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://www.rendframework.com/license.html
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to <EMAIL>+<EMAIL> so I can send you a copy immediately.
 *
 * @category Rend
 * @package Controller
 * @copyright 2008 <NAME>
 * @license http://www.rendframework.com/license.html    New BSD License
 * @link http://www.rendframework.com/
 * @since 1.0.0
 * @version $Id$
 */

/** Zend_Controller_Action_Helper_Abstract */
require_once "Zend/Controller/Action/Helper/Abstract.php";

/**
 * Helper for loading the config from the front controller
 *
 * @category Rend
 * @package Controller
 */
class Rend_Controller_Action_Helper_Config extends Zend_Controller_Action_Helper_Abstract
{

    /**
     * Proxies to getConfig()
     *
     * @return Zend_Config
     */
    public function direct()
    {
        return $this->getConfig();
    }

    /**
     * Get the config
     *
     * @return Zend_Config
     */
    public function getConfig()
    {
        return Zend_Controller_Front::getInstance()
                                    ->getParam("rendConfig");
    }

}
{'fraction_non_alphanumeric': 0.10564853556485355, 'fraction_numerical': 0.0048814504881450485, 'mean_word_length': 2.6408629441624365, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '527450', 'n_tokens_mistral': 836, 'n_tokens_neox': 809, 'n_words': 258}