<commit_before><?php
Zend_Controller_Action_HelperBroker::removeHelper('viewRenderer');
Zend_Controller_Action_HelperBroker::addHelper(new Vps_Controller_Action_Helper_ViewRenderer());

class Vps_Controller_Front extends Zend_Controller_Front
{
    protected function _init()
    {
        $this->setControllerDirectory('application/controllers');
        $this->returnResponse(true);
        $this->setParam('disableOutputBuffering', true);

        $this->addControllerDirectory(VPS_PATH . '/Vps/Controller/Action/Welcome',
                                        'vps_controller_action_welcome');
        $this->addControllerDirectory(VPS_PATH . '/Vps/Controller/Action/User',
                                        'vps_controller_action_user');
        $this->addControllerDirectory(VPS_PATH . '/Vps/Controller/Action/Error',
                                        'vps_controller_action_error');
        $this->addControllerDirectory(VPS_PATH . '/Vps/Controller/Action/Pool',
                                'vps_controller_action_pool');
        $this->addControllerDirectory(VPS_PATH . '/Vps/Controller/Action/Trl',
                                'vps_controller_action_trl');
        $this->addControllerDirectory(VPS_PATH . '/Vps/Controller/Action/Debug',
                                'vps_controller_action_debug');
        $this->addControllerDirectory(VPS_PATH . '/Vps/Controller/Action/Cli',
                                'vps_controller_action_cli');
        $this->addControllerDirectory(VPS_PATH . '/Vps/Controller/Action/Media',
                                'vps_controller_action_media');

        $plugin = new Zend_Controller_Plugin_ErrorHandler();
        $plugin->setErrorHandlerModule('vps_controller_action_error');
        $this->registerPlugin($plugin);
    }

    public static function getInstance()
    {
        if (null === self::$_instance) {
            self::$_instance = new self();
            self::$_instance->_init();
        }

        return self::$_instance;
    }

    public function getRouter()
    {
        if (null == $this->_router) {
            if (isset($_SERVER['SHELL'])) {
                $this->setRouter(new Vps_Controller_Router());
            } else {
                $this->setRouter(new Vps_Controller_Router_Http());
            }
        }

        return $this->_router;<commit_msg>bugfix - falsche router wurden verwendet<commit_after><?php
Zend_Controller_Action_HelperBroker::removeHelper('viewRenderer');
Zend_Controller_Action_HelperBroker::addHelper(new Vps_Controller_Action_Helper_ViewRenderer());

class Vps_Controller_Front extends Zend_Controller_Front
{
    protected function _init()
    {
        $this->setControllerDirectory('application/controllers');
        $this->returnResponse(true);
        $this->setParam('disableOutputBuffering', true);

        $this->addControllerDirectory(VPS_PATH . '/Vps/Controller/Action/Welcome',
                                        'vps_controller_action_welcome');
        $this->addControllerDirectory(VPS_PATH . '/Vps/Controller/Action/User',
                                        'vps_controller_action_user');
        $this->addControllerDirectory(VPS_PATH . '/Vps/Controller/Action/Error',
                                        'vps_controller_action_error');
        $this->addControllerDirectory(VPS_PATH . '/Vps/Controller/Action/Pool',
                                'vps_controller_action_pool');
        $this->addControllerDirectory(VPS_PATH . '/Vps/Controller/Action/Trl',
                                'vps_controller_action_trl');
        $this->addControllerDirectory(VPS_PATH . '/Vps/Controller/Action/Debug',
                                'vps_controller_action_debug');
        $this->addControllerDirectory(VPS_PATH . '/Vps/Controller/Action/Cli',
                                'vps_controller_action_cli');
        $this->addControllerDirectory(VPS_PATH . '/Vps/Controller/Action/Media',
                                'vps_controller_action_media');

        $plugin = new Zend_Controller_Plugin_ErrorHandler();
        $plugin->setErrorHandlerModule('vps_controller_action_error');
        $this->registerPlugin($plugin);
    }

    public static function getInstance()
    {
        if (null === self::$_instance) {
            self::$_instance = new self();
            self::$_instance->_init();
        }

        return self::$_instance;
    }

    public function getRouter()
    {
        if (null == $this->_router) {
            if (isset($_SERVER['SHELL'])) {
                $this->setRouter(new Vps_Controller_Router_Cli());
            } else {
                $this->setRouter(new Vps_Controller_Router());
            }
        }

        return $this->_router;
{'fraction_non_alphanumeric': 0.11572512647554806, 'fraction_numerical': 0.0, 'mean_word_length': 2.2477754962354553, 'pattern_counts': {'":': 0, '<': 5, '<?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': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3185142', 'n_tokens_mistral': 1252, 'n_tokens_neox': 1219, 'n_words': 147}