<commit_before><?php

class AdminModule extends CWebModule {

    public $layout = '//layouts/column1-admin';

    public function init() {
        // this method is called when the module is being created
        // you may place code here to customize the module or the application
        // import the module-level models and components
        $this->layout = "/layouts/partials/main-admin";
        
        $this->setImport(array(
            'admin.models.*',
            'admin.components.*',
        ));
    }

    public function getAssetsUrl() {
        if ($this->_assetsUrl === null) {
            $this->_assetsUrl = Yii::app()->getAssetManager()->publish(Yii::getPathOfAlias('admin.assets'));
//            $assetsPath = Yii::getPathOfAlias('admin.assets');
//            $this->assetsUrl = Yii::app()->getAssetManager()->publish($assetsPath);
        }
        return $this->_assetsUrl;
    }   

    public function beforeControllerAction($controller, $action) {
        if (parent::beforeControllerAction($controller, $action)) {
            // this method is called before any module controller action is performed
            // you may place customized code here
            $controller->layout = '//layouts/main-admin';
            return true;
        } else
            return false;
    }

}
<commit_msg>Add Data<commit_after><?php

class AdminModule extends CWebModule {

    //public $layout = '//layouts/column1-admin';

    public function init() {
        // this method is called when the module is being created
        // you may place code here to customize the module or the application
        // import the module-level models and components
        //$this->layout = "/layouts/partials/main-admin";
        
        $this->setImport(array(
            'admin.models.*',
            'application.models.user',
            'admin.components.*',
        ));
    }

    public function getAssetsUrl() {
        if ($this->_assetsUrl === null) {
            $this->_assetsUrl = Yii::app()->getAssetManager()->publish(Yii::getPathOfAlias('admin.assets'));
//            $assetsPath = Yii::getPathOfAlias('admin.assets');
//            $this->assetsUrl = Yii::app()->getAssetManager()->publish($assetsPath);
        }
        return $this->_assetsUrl;
    }   

    public function beforeControllerAction($controller, $action) {
        if (parent::beforeControllerAction($controller, $action)) {
            // this method is called before any module controller action is performed
            // you may place customized code here
            $controller->layout = '//layouts/main-admin';
            return true;
        } else
            return false;
    }

}

{'fraction_non_alphanumeric': 0.12713120830244626, 'fraction_numerical': 0.0007412898443291327, 'mean_word_length': 2.1940828402366863, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 25, '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': '1996819', 'n_tokens_mistral': 693, 'n_tokens_neox': 682, 'n_words': 180}