<commit_before><?php

$params = array_merge(
    require(__DIR__ . '/params.php'),
    require(__DIR__ . '/params-local.php')
);

return [
    'id' => 'app-app',
    'basePath' => dirname(__DIR__),
    'bootstrap' => ['log'],
    'controllerNamespace' => 'app\controllers',
    'modules' => [
        'admin' => [
            'class' => 'modules\admin\Admin',
             'layout' => '@app/themes/yiid/views/layouts/admin-main',
        ]
    ],
    'components' => [
        'user' => [
            'identityClass' => 'app\models\ar\User',
            'loginUrl' => ['user/login'],
            'enableAutoLogin' => true,
            'as profile' => 'app\classes\UserInfo'
        ],
        'log' => [
            'traceLevel' => YII_DEBUG ? 3 : 0,
            'targets' => [
                [
                    'class' => 'yii\log\FileTarget',
                    'levels' => ['error', 'warning'],
                ],
            ],
        ],
        'errorHandler' => [
            'errorAction' => 'site/error',
        ],
        'authManager' => [
            'class' => 'yii\rbac\DbManager',
        ],
        'session' => [
            'class' => 'yii\web\DbSession'
        ],
        'urlManager' => [
            'enablePrettyUrl' => true,
            'rules' => require 'url-rules.php',
        ],
        'view' => [
            'theme' => [
                'class' => 'app\components\Theme',
                'theme' => 'yiid',
            ],
        ],
        'request' => [
            'parsers' => [
                'application/json' => 'yii\web\JsonParser',
            ]
        ],
        'assetManager' => [
            'assetMap' => [
                'jquery.js' => 'https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.4/jquery.min.js',
                'jquery-ui.js' => 'https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js',
                'jquery-ui.css' => 'https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.css'
            ],
        ],
    ],
    'params' => $params,
];
<commit_msg>add auto load modul admin<commit_after><?php

$params = array_merge(
    require (__DIR__ . '/params.php'),
    require (__DIR__ . '/params-local.php')
);

return [
    'id'                  => 'app-app',
    'basePath'            => dirname(__DIR__),
    'bootstrap'           => ['log','admin'],
    'controllerNamespace' => 'app\controllers',
    'modules'             => [
        'admin' => [
            'class'  => 'modules\admin\Admin',
            'layout' => '@app/themes/yiid/views/layouts/admin-main',
        ],
    ],
    'components'          => [
        'user'         => [
            'identityClass'   => 'accessUser\models\User',
            'loginUrl'        => ['user/login'],
            'enableAutoLogin' => true,
            'as profile'      => 'app\classes\UserInfo',
        ],
        'log'          => [
            'traceLevel' => YII_DEBUG ? 3 : 0,
            'targets'    => [
                [
                    'class'  => 'yii\log\FileTarget',
                    'levels' => ['error', 'warning'],
                ],
            ],
        ],
        'errorHandler' => [
            'errorAction' => 'site/error',
        ],
        'authManager'  => [
            'class' => 'yii\rbac\DbManager',
        ],
        'session'      => [
            'class' => 'yii\web\DbSession',
        ],
        'urlManager'   => [
            'enablePrettyUrl' => true,
            'rules'           => require 'url-rules.php',
        ],
        'view'         => [
            'theme' => [
                'class' => 'app\components\Theme',
                'theme' => 'yiid',
            ],
        ],
        'request'      => [
            'parsers' => [
                'application/json' => 'yii\web\JsonParser',
            ],
        ],
        'assetManager' => [
            'assetMap' => [
                'jquery.js'     => 'https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.4/jquery.min.js',
                'jquery-ui.js'  => 'https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js',
                'jquery-ui.css' => 'https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.css',
            ],
        ],
    ],
    'params'              => $params,
];

{'fraction_non_alphanumeric': 0.18752919196637086, 'fraction_numerical': 0.006071929005137786, 'mean_word_length': 1.2915997859818085, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 85, 'https://': 6, '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': '3467801', 'n_tokens_mistral': 1368, 'n_tokens_neox': 1317, 'n_words': 164}