<commit_before><?php

$params = array_merge(
    require(Yii::getAlias('@hipanel/common/config/params.php')),
    require(Yii::getAlias('@project/common/config/params.php')),
    require(Yii::getAlias('@project/common/config/params-local.php')),
    require(Yii::getAlias('@hipanel/frontend/config/params.php')),
    require(Yii::getAlias('@project/frontend/config/params.php')),
    require(Yii::getAlias('@project/frontend/config/params-local.php'))
);

return [
    'id'                  => 'hipanel',
    'name'                => 'HiPanel',
    'basePath'            => dirname(__DIR__),
    'runtimePath'         => '@project/frontend/runtime',
    'bootstrap'           => ['log', 'pluginManager'],
    'defaultRoute'        => 'site',
    'controllerNamespace' => 'frontend\controllers',
    'language'            => 'en-US',
    'sourceLanguage'      => 'en-US',
    'components'          => [
        'request' => [
            'cookieValidationKey' => $params['cookieValidationKey'],
        ],
        'response' => [
            'class' => 'hipanel\base\Response',
        ],
        'user' => [
            'class'           => 'hipanel\base\User',
            'identityClass'   => 'common\models\User',
            'enableAutoLogin' => true,
            'seller'          => $params['user.seller'],
        ],
        'log' => [
            'traceLevel' => YII_DEBUG ? 3 : 0,
            'targets'    => [
                'default' => [
                    'class'  => 'yii\log\FileTarget',
                    'levels' => ['error', 'warning'],
                ],
                'merchant' => [
                    'class'      => 'yii\log\FileTarget',
                    'logFile'    => '@runtime/logs/merchant.log',
                    'categories' => ['merchant'],
                ],
                'email' => [
                    'class' => 'hipanel\log\EmailTarget',
                    'levels' => ['error', 'warning'],
                    'message' => [
                        'from' => '<EMAIL>',
                        'to' => '<EMAIL>',
                        'subject' => 'HiPanel error log',
                    ],
                ],
            ],
        ],
        'errorHandler' => [<commit_msg>Added swiftmail to config<commit_after><?php

$params = array_merge(
    require(Yii::getAlias('@hipanel/common/config/params.php')),
    require(Yii::getAlias('@project/common/config/params.php')),
    require(Yii::getAlias('@project/common/config/params-local.php')),
    require(Yii::getAlias('@hipanel/frontend/config/params.php')),
    require(Yii::getAlias('@project/frontend/config/params.php')),
    require(Yii::getAlias('@project/frontend/config/params-local.php'))
);

return [
    'id'                  => 'hipanel',
    'name'                => 'HiPanel',
    'basePath'            => dirname(__DIR__),
    'runtimePath'         => '@project/frontend/runtime',
    'bootstrap'           => ['log', 'pluginManager'],
    'defaultRoute'        => 'site',
    'controllerNamespace' => 'frontend\controllers',
    'language'            => 'en-US',
    'sourceLanguage'      => 'en-US',
    'components'          => [
        'request' => [
            'cookieValidationKey' => $params['cookieValidationKey'],
        ],
        'response' => [
            'class' => 'hipanel\base\Response',
        ],
        'user' => [
            'class'           => 'hipanel\base\User',
            'identityClass'   => 'common\models\User',
            'enableAutoLogin' => true,
            'seller'          => $params['user.seller'],
        ],
        'mailer' => [
            'class' => 'yii\swiftmailer\Mailer',
        ],
        'log' => [
            'traceLevel' => YII_DEBUG ? 3 : 0,
            'targets'    => [
                'default' => [
                    'class'  => 'yii\log\FileTarget',
                    'levels' => ['error', 'warning'],
                ],
                'merchant' => [
                    'class'      => 'yii\log\FileTarget',
                    'logFile'    => '@runtime/logs/merchant.log',
                    'categories' => ['merchant'],
                ],
                'email' => [
                    'class' => 'hipanel\log\EmailTarget',
                    'levels' => ['error', 'warning'],
                    'message' => [
                        'from' => '<EMAIL>',
                        'to' => '<EMAIL>',
                        'subject' => 'HiPanel error log',
                    ],
                ],
            ],
        ],
        'errorHandler' => [
{'fraction_non_alphanumeric': 0.17858709960508995, 'fraction_numerical': 0.0008775778850372971, 'mean_word_length': 1.4550350026925147, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 83, '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': '1657009', 'n_tokens_mistral': 1324, 'n_tokens_neox': 1297, 'n_words': 166}