<commit_before><?php

/*
 * This file is part of the Dektrium project.
 *
 * (c) Dektrium project <http://github.com/dektrium/>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace dektrium\rbac;

use dektrium\rbac\components\DbManager;
use dektrium\rbac\components\ManagerInterface;
use dektrium\user\Module as UserModule;
use yii\base\Application;
use yii\web\Application as WebApplication;
use yii\base\BootstrapInterface;
use yii\base\InvalidConfigException;

/**
 * Bootstrap class registers translations and needed application components.
 * @author <NAME> <<EMAIL>>
 */
class Bootstrap implements BootstrapInterface
{
    const VERSION = '1.0.0-alpha';

    /** @inheritdoc */
    public function bootstrap($app)
    {
        // register translations
        if (!isset($app->get('i18n')->translations['rbac*'])) {
            $app->get('i18n')->translations['rbac*'] = [
                'class'    => 'yii\i18n\PhpMessageSource',
                'basePath' => __DIR__ . '/messages',
            ];
        }
<commit_msg>translate fix<commit_after><?php

/*
 * This file is part of the Dektrium project.
 *
 * (c) Dektrium project <http://github.com/dektrium/>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace dektrium\rbac;

use dektrium\rbac\components\DbManager;
use dektrium\rbac\components\ManagerInterface;
use dektrium\user\Module as UserModule;
use yii\base\Application;
use yii\web\Application as WebApplication;
use yii\base\BootstrapInterface;
use yii\base\InvalidConfigException;

/**
 * Bootstrap class registers translations and needed application components.
 * @author <NAME> <<EMAIL>>
 */
class Bootstrap implements BootstrapInterface
{
    const VERSION = '1.0.0-alpha';

    /** @inheritdoc */
    public function bootstrap($app)
    {
        // register translations
        if (!isset($app->get('i18n')->translations['rbac*'])) {
            $app->get('i18n')->translations['rbac*'] = [
                'class'    => 'yii\i18n\PhpMessageSource',
                'basePath' => __DIR__ . '/messages',
                'sourceLanguage' => 'en-US',
            ];
        }

{'fraction_non_alphanumeric': 0.13030170529077395, 'fraction_numerical': 0.007870572802798426, 'mean_word_length': 3.100358422939068, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 24, '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': '7267502', 'n_tokens_mistral': 693, 'n_tokens_neox': 675, 'n_words': 171}