<commit_before><?php

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

use app\assets\AppAsset;
use yii\bootstrap\Nav;
use yii\bootstrap\NavBar;
use yii\helpers\Html;
use yii\widgets\Breadcrumbs;

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
    $items = [
        ['label' => 'Sign up', 'url' => ['/site/signup'], 'visible' => Yii::$app->user->isGuest],
        ['label' => 'My articles', 'url' => ['/article/index'], 'visible' => Yii::$app->user->can('createArticle')],
        ['label' => 'Notification manager', 'url' => ['/notification/index'], 'visible' => Yii::$app->user->can('createNotification')],
        Yii::$app->user->isGuest ? (
        ['label' => 'Login', 'url' => ['/site/login']]
        ) : (['label' => 'Logout (' . Yii::$app->user->identity->name . ')', 'url' => ['/site/logout']]),
    ];
    if (!Yii::$app->user->isGuest) {
        $count = Yii::$app->user->identity->getNotificationsCount();
        $items = ['<li><a href="/notification/my">Notifications' . (($count > 0) ? (' <span class="badge">'.$count.'</span>') : '') . '</a></li>'] + $items;
    }
    NavBar::begin(
        [
            'brandLabel' => 'News',
            'brandUrl'   => Yii::$app->homeUrl,
            'options'    => [
                'class' => 'navbar-inverse navbar-fixed-top',
            ],
        ]);
    echo Nav::widget(
        [
            'options' => ['class' => 'navbar-nav navbar-right'],
            'items'   => $items,
        ]);
    NavBar::end();
    ?>

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

<footer class="footer">
    <div class="container">
        <p class="pull-left">&copy; <?= Yii::$app->name ?> <?= date('Y') ?></p>

        <p class="pull-right"><?= Yii::powered() ?></p>
    </div>
</footer>

<?php $this->endBody() ?>
</body>
</html>
<?php $this->endPage() ?><commit_msg>name changed<commit_after><?php

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

use app\assets\AppAsset;
use yii\bootstrap\Nav;
use yii\bootstrap\NavBar;
use yii\helpers\Html;
use yii\widgets\Breadcrumbs;

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
    $items = [
        ['label' => 'My articles', 'url' => ['/article/index'], 'visible' => Yii::$app->user->can('createArticle')],
        ['label' => 'Notification manager', 'url' => ['/notification/index'], 'visible' => Yii::$app->user->can('createNotification')],
        ['label' => 'Logout (' . Yii::$app->user->identity->name . ')', 'url' => ['/site/logout'], 'visible' => Yii::$app->user->can('createArticle')]
    ];
    if (!Yii::$app->user->isGuest) {
        $count = Yii::$app->user->identity->getNotificationsCount();
        $items = ['<li><a href="/notification/my">Notifications' . (($count > 0) ? (' <span class="badge">'.$count.'</span>') : '') . '</a></li>'] + $items;
    }
    NavBar::begin(
        [
            'brandLabel' => '<NAME>',
            'brandUrl'   => Yii::$app->homeUrl,
            'options'    => [
                'class' => 'navbar-inverse navbar-fixed-top',
            ],
        ]);
    echo Nav::widget(
        [
            'options' => ['class' => 'navbar-nav navbar-right'],
            'items'   => $items,
        ]);
    NavBar::end();
    ?>

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

<footer class="footer">
    <div class="container">
        <p class="pull-left">&copy; <?= Yii::$app->name ?> <?= date('Y') ?></p>
    </div>
</footer>

<?php $this->endBody() ?>
</body>
</html>
<?php $this->endPage() ?>
{'fraction_non_alphanumeric': 0.2597261464898935, 'fraction_numerical': 0.000869376222560313, 'mean_word_length': 2.756734693877551, 'pattern_counts': {'":': 0, '<': 91, '<?xml version=': 0, '>': 185, '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': '5180438', 'n_tokens_mistral': 1580, 'n_tokens_neox': 1587, 'n_words': 265}