<commit_before><?php
/**
 * Конфиг сайтвой части приложения
 *
 * @author <NAME> <<EMAIL>>
 * @link http://skeeks.com/
 * @copyright 2010-2014 SkeekS (Sx)
 * @date 15.10.2014
 * @since 1.0.0
 */
$config = [
    'basePath' => dirname(__DIR__),
    'controllerNamespace' => 'frontend\controllers',
    'params' => [],
    'on beforeRequest' => function ($event) {
        \Yii::setAlias('template', '@app/views');
        //  if (\Yii::$app->admin->requestIsAdmin)
        // {
        //\Yii::$app->httpBasicAuth->verify();

        //}
    },
    'components' =>
        [
            'httpBasicAuth' =>
                [
                    'class' => 'skeeks\yii2\httpBasicAuth\HttpBasicAuthComponent',
                    'login' => 'login',
                    'password' => 'password',
                    'usePasswordHash' => false,
                ],
            'errorHandler' => [
                'errorAction' => 'cms/error/error',
            ],
            'request' => [
                // !!! insert a secret key in the following (if it is empty) - this is required by cookie validation
                'cookieValidationKey' => 'Asfsdfsdf648re8984$32',
            ],
            'user' =>
                [
                    'identityClass' => 'common\models\User',
                    /*'identityCookie' => [

                        'name' => '_identity',

                        'httpOnly' => true,

                        'domain' => '.cms.skeeks.com'

                    ]*/
                ],
            'view' => [
                'theme' =>
                    [
                        'pathMap' =>
                            [
                                '@app/views' =>
                                    [
                                        '@app/templates/default',<commit_msg>Update main.php<commit_after><?php
/**
 * Конфиг сайтвой части приложения
 *
 * @author <NAME> <<EMAIL>>
 * @link http://skeeks.com/
 * @copyright 2010-2014 SkeekS (Sx)
 * @date 15.10.2014
 * @since 1.0.0
 */
$config = [
    'basePath' => dirname(__DIR__),
    'controllerNamespace' => 'frontend\controllers',
    'params' => [],
    'on beforeRequest' => function ($event) {
        \Yii::setAlias('template', '@app/views');
        //  if (\Yii::$app->admin->requestIsAdmin)
        // {
        //\Yii::$app->httpBasicAuth->verify();

        //}
    },
    'components' =>
        [
            'httpBasicAuth' =>
                [
                    'class' => 'skeeks\yii2\httpBasicAuth\HttpBasicAuthComponent',
                    'login' => 'login',
                    'password' => 'password',
                    'usePasswordHash' => false,
                ],
            'errorHandler' => [
                'errorAction' => 'cms/error/error',
            ],
            'request' => [
                // !!! insert a secret key in the following (if it is empty) - this is required by cookie validation
                'cookieValidationKey' => 'skeeks',
            ],
            'user' =>
                [
                    'identityClass' => 'common\models\User',
                    /*'identityCookie' => [

                        'name' => '_identity',

                        'httpOnly' => true,

                        'domain' => '.cms.skeeks.com'

                    ]*/
                ],
            'view' => [
                'theme' =>
                    [
                        'pathMap' =>
                            [
                                '@app/views' =>
                                    [
                                        '@app/templates/default',
{'fraction_non_alphanumeric': 0.15092261085100522, 'fraction_numerical': 0.013494904984852658, 'mean_word_length': 1.0695156695156696, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 65, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1426632', 'n_tokens_mistral': 1022, 'n_tokens_neox': 950, 'n_words': 162}