<commit_before><?php
use app\components\widgets\Alert;
use yii\helpers\Html;
use yii\bootstrap\Nav;
use yii\bootstrap\NavBar;
use yii\widgets\Breadcrumbs;
use app\assets\AppAsset;

/* @var $this \yii\web\View */
/* @var $content string */

AppAsset::register($this);
?>
<?php $this->beginPage() ?>
<!DOCTYPE html>
<html lang="<?= Yii::$app->language ?>">
<head>
    <meta charset="<?= Yii::$app->charset ?>"/>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <?= Html::csrfMetaTags() ?>
    <title><?= Html::encode($this->title) ?></title>
    <?php $this->head() ?>
</head>
<body>

<?php $this->beginBody() ?>
    <div class="wrap">
        <?php
            NavBar::begin([
                'brandLabel' => Yii::$app->name,
                'brandUrl' => Yii::$app->homeUrl,
                'options' => [
                    'class' => 'navbar-inverse navbar-fixed-top',
                ],
            ]);
            echo Nav::widget([
                'options' => ['class' => 'navbar-nav navbar-right'],
                'activateParents' => true,
                'items' => array_filter([
                    ['label' => Yii::t('app', 'NAV_HOME'), 'url' => ['/main/default/index']],
                    ['label' => Yii::t('app', 'NAW_CONTACT'), 'url' => ['/main/contact/index']],
                    Yii::$app->user->isGuest ?
                        ['label' => Yii::t('app', 'NAV_SIGNUP'), 'url' => ['/user/default/signup']] :
                        false,
                    Yii::$app->user->isGuest ?
                        ['label' => Yii::t('app', 'NAV_LOGIN'), 'url' => ['/user/default/login']] :
                        false,
                    !Yii::$app->user->isGuest ?
                        ['label' => Yii::t('app', 'NAV_ADMIN'), 'url' => ['/admin/default/index'], 'items' => [
                            ['label' => Yii::t('app', 'ADMIN_USERS'), 'url' => ['/admin/users/index']],
                        ]] :
                        false,
                    !Yii::$app->user->isGuest ?
                        ['label' => Yii::t('app', 'NAV_PROFILE'), 'items' => [
                            ['label' => Yii::t('app', 'NAV_PROFILE'), 'url' => ['/user/profile/index']],
                            ['label' => Yii::t('app', 'NAV_LOGOUT'),
                                'url' => ['/user/default/logout'],
                                'linkOptions' => ['data-method' => 'post']]
                        ]] :
                        false,
                ]),
            ]);
            NavBar::end();
        ?>

        <div class="container">
            <?= Breadcrumbs::widget([
                'links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : [],
            ]) ?>
            <?= Alert::widget() ?>
            <?= $content ?>
        </div>
    </div>
<commit_msg>Fixed main menu<commit_after><?php
use app\components\widgets\Alert;
use yii\helpers\Html;
use yii\bootstrap\Nav;
use yii\bootstrap\NavBar;
use yii\widgets\Breadcrumbs;
use app\assets\AppAsset;

/* @var $this \yii\web\View */
/* @var $content string */

AppAsset::register($this);
?>
<?php $this->beginPage() ?>
<!DOCTYPE html>
<html lang="<?= Yii::$app->language ?>">
<head>
    <meta charset="<?= Yii::$app->charset ?>"/>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <?= Html::csrfMetaTags() ?>
    <title><?= Html::encode($this->title) ?></title>
    <?php $this->head() ?>
</head>
<body>

<?php $this->beginBody() ?>
    <div class="wrap">
        <?php
            NavBar::begin([
                'brandLabel' => Yii::$app->name,
                'brandUrl' => Yii::$app->homeUrl,
                'options' => [
                    'class' => 'navbar-inverse navbar-fixed-top',
                ],
            ]);
            echo Nav::widget([
                'options' => ['class' => 'navbar-nav navbar-right'],
                'activateParents' => true,
                'items' => array_filter([
                    ['label' => Yii::t('app', 'NAV_HOME'), 'url' => ['/main/default/index']],
                    ['label' => Yii::t('app', 'NAW_CONTACT'), 'url' => ['/main/contact/index']],
                    Yii::$app->user->isGuest ?
                        ['label' => Yii::t('app', 'NAV_SIGNUP'), 'url' => ['/user/default/signup']] :
                        false,
                    Yii::$app->user->isGuest ?
                        ['label' => Yii::t('app', 'NAV_LOGIN'), 'url' => ['/user/default/login']] :
                        false,
                    !Yii::$app->user->isGuest ?
                        ['label' => Yii::t('app', 'NAV_ADMIN'), 'items' => [
                            ['label' => Yii::t('app', 'NAV_ADMIN'), 'url' => ['/admin/default/index']],
                            ['label' => Yii::t('app', 'ADMIN_USERS'), 'url' => ['/admin/users/index']],
                        ]] :
                    false,
                !Yii::$app->user->isGuest ?
                    ['label' => Yii::t('app', 'NAV_PROFILE'), 'items' => [
                        ['label' => Yii::t('app', 'NAV_PROFILE'), 'url' => ['/user/profile/index']],
                        ['label' => Yii::t('app', 'NAV_LOGOUT'),
                            'url' => ['/user/default/logout'],
                            'linkOptions' => ['data-method' => 'post']]
                    ]] :
                    false,
            ]),
        ]);
            NavBar::end();
        ?>

        <div class="container">
            <?= Breadcrumbs::widget([
                'links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : [],
            ]) ?>
            <?= Alert::widget() ?>
            <?= $content ?>
        </div>
    </div>

{'fraction_non_alphanumeric': 0.21673334492955296, 'fraction_numerical': 0.00034788658897199514, 'mean_word_length': 1.5704067948144838, 'pattern_counts': {'":': 0, '<': 53, '<?xml version=': 0, '>': 150, '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': '80585', 'n_tokens_mistral': 1806, 'n_tokens_neox': 1744, 'n_words': 273}