<commit_before><?php
namespace Resources;

class Controller {
    
    private $childNamespace, $viewCache;
    
    public function __construct(){
        
        $child = get_class($this);
        
        $this->childClass = array(
                            'namespaceArray' => explode( '\\', $child),
                            'namespaceString' => $child
                        );
    }
    
    public function __get($class){
        
        $class = str_ireplace(
                    array(
                        'model',
                        'library'
                    ),
                    array(
                        'Resources\Model',
                        'Resources\Libray',
                    ),
                    $class
                );
        
        return new $class($this->childClass['namespaceArray']);
    }
    
    public function output( $file, $data = array(), $isReturnValue = false ){
        
        $filePath = APP.'views/'.$file;
        
        echo 'File: '.$file. ' Prefix: '.$this->childClass['namespaceString'].'<br />';
        
        if( $this->childClass['namespaceArray'][0] == 'Modules' ){
            $mainConfig = Config::main();
            $filePath = $mainConfig['module']['path'].$this->childClass['namespaceArray'][0].'/'.$this->childClass['namespaceArray'][1].'/views/'.$file;<commit_msg>Remove ocho debugger in Controller class<commit_after><?php
namespace Resources;

class Controller {
    
    private $childNamespace, $viewCache;
    
    public function __construct(){
        
        $child = get_class($this);
        
        $this->childClass = array(
                            'namespaceArray' => explode( '\\', $child),
                            'namespaceString' => $child
                        );
    }
    
    public function __get($class){
        
        $class = str_ireplace(
                    array(
                        'model',
                        'library'
                    ),
                    array(
                        'Resources\Model',
                        'Resources\Libray',
                    ),
                    $class
                );
        
        return new $class($this->childClass['namespaceArray']);
    }
    
    public function output( $file, $data = array(), $isReturnValue = false ){
        
        $filePath = APP.'views/'.$file;
        
        if( $this->childClass['namespaceArray'][0] == 'Modules' ){
            $mainConfig = Config::main();
            $filePath = $mainConfig['module']['path'].$this->childClass['namespaceArray'][0].'/'.$this->childClass['namespaceArray'][1].'/views/'.$file;
{'fraction_non_alphanumeric': 0.13963963963963963, 'fraction_numerical': 0.0022522522522522522, 'mean_word_length': 1.325479930191972, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 19, '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': '2952591', 'n_tokens_mistral': 665, 'n_tokens_neox': 651, 'n_words': 113}