<commit_before><?php
/* @var $this \yii\web\View */
/* @var $content string */

use frontend\assets\MainAsset;
use yii\helpers\Html;
use yii\helpers\Url;

MainAsset::register($this);
?>
<?php $this->beginPage() ?>
<!DOCTYPE html>
<html lang="<?= Yii::$app->language ?>">
<head>
    <meta charset="<?= Yii::$app->charset ?>">
    <?= Html::csrfMetaTags() ?>
    <link rel="icon" href="favicon.ico">
    <title><?= Html::encode($this->title) ?></title>
    <?php $this->head() ?>
</head>
<body>
<?php $this->beginBody() ?>

<div class="navbar navbar-material-blog navbar-primary navbar-absolute-top">

    <div class="navbar-image" style="background-image: url('/img/1.jpg');background-position: center 40%;"></div>

    <div class="navbar-wrapper container">
        <div class="navbar-header">
            <a class="navbar-brand" href="<?= Url::to(['index']); ?>"><i class="material-icons">&#xE871;</i> Geeker</a>
        </div>
        <div class="navbar-collapse collapse navbar-responsive-collapse">
            <ul class="nav navbar-nav">
                <li class="active dropdown">
                    <a href="bootstrap-elements.html" data-target="#" class="dropdown-toggle" data-toggle="dropdown">Твиты <b class="caret"></b></a>
                    <ul class="dropdown-menu">
                        <li><a href="home-fashion.html">Fashion</a></li>
                        <li><a href="home-food.html">Food</a></li>
                        <li><a href="home-music.html">Music</a></li>
                        <li><a href="home-photography.html">Photography</a></li>
                        <li><a href="home-technology.html">Technology</a></li>
                        <li><a href="home-travel.html">Travel</a></li>
                    </ul>
                </li>
                <li class="dropdown">
                    <a href="bootstrap-elements.html" data-target="#" class="dropdown-toggle" data-toggle="dropdown">Мой профиль <b class="caret"></b></a>
                    <ul class="dropdown-menu">
                        <li><a href="filter-category.html">Category</a></li>
                        <li><a href="filter-author.html">Author</a></li>
                        <li><a href="filter-date.html">Date</a></li>
                    </ul>
                </li>
                <li class="dropdown">
                    <a href="bootstrap-elements.html" data-target="#" class="dropdown-toggle" data-toggle="dropdown">Друзья <b class="caret"></b></a>
                    <ul class="dropdown-menu">
                        <li><a href="post-image.html">Image post</a></li>
                        <li><a href="post-video.html">Video post</a></li>
                    </ul>
                </li>
                <li><a href="page-about.html">О нас</a></li>
                <li><a href="page-contact.html">Контакты</a></li>
        </div>
    </div>
</div>

<div class="container blog-content">
    <?= $content ?>
</div>

<button class="material-scrolltop info" type="button"></button>
<?php $this->endBody() ?>
</body>
</html>
<?php $this->endPage() ?><commit_msg>add username and url to actions<commit_after><?php
/* @var $this \yii\web\View */
/* @var $content string */

use frontend\assets\MainAsset;
use yii\helpers\Html;
use yii\helpers\Url;

MainAsset::register($this);

$username = Yii::$app->user->id ? Yii::$app->user->identity->findIdentity(Yii::$app->user->id)->username : 'Гость';
?>
<?php $this->beginPage() ?>
<!DOCTYPE html>
<html lang="<?= Yii::$app->language ?>">
<head>
    <meta charset="<?= Yii::$app->charset ?>">
    <?= Html::csrfMetaTags() ?>
    <link rel="icon" href="favicon.ico">
    <title><?= Html::encode($this->title) ?></title>
    <?php $this->head() ?>
</head>
<body>
<?php $this->beginBody() ?>

<div class="navbar navbar-material-blog navbar-primary navbar-absolute-top">

    <div class="navbar-image" style="background-image: url('/img/1.jpg');background-position: center 40%;"></div>

    <div class="navbar-wrapper container">
        <div class="navbar-header">
            <a class="navbar-brand" href="<?= Url::to(['geeks/index']); ?>"><i class="material-icons">&#xE871;</i> Geeker</a>
        </div>
        <div class="navbar-collapse collapse navbar-responsive-collapse">
            <ul class="nav navbar-nav">
                <li class="active dropdown">
                    <a href="bootstrap-elements.html" data-target="#" class="dropdown-toggle" data-toggle="dropdown"><?=$username ?><b class="caret"></b></a>
                    <ul class="dropdown-menu">
                        <?php if ($username == 'Гость'): ?>
                        <li><a href="<?= Url::to(['site/login']); ?>">Войти</a></li>
                        <?php endif; ?>

                        <li><a href="<?= Url::to(['site/signup']); ?>">Регистрация</a></li>

                        <?php if ($username != 'Гость'): ?>
                        <li><a href="<?= Url::to(['site/logout']); ?>">Выйти</a></li>
                        <?php endif; ?>
                    </ul>
                </li>
                <li class="dropdown">
                    <a href="bootstrap-elements.html" data-target="#" class="dropdown-toggle" data-toggle="dropdown">Твиты <b class="caret"></b></a>
                    <ul class="dropdown-menu">
                        <li><a href="<?= Url::to(['geeks/index']); ?>">Лента</a></li>
                        <li><a href="<?= Url::to(['geeks/create']); ?>">Создать</a></li>
                    </ul>
                </li>
                <li class="dropdown">
                    <a href="bootstrap-elements.html" data-target="#" class="dropdown-toggle" data-toggle="dropdown">Друзья <b class="caret"></b></a>
                    <ul class="dropdown-menu">
                        <li><a href="post-image.html">Image post</a></li>
                        <li><a href="post-video.html">Video post</a></li>
                    </ul>
                </li>
                <li><a href="page-about.html">О нас</a></li>
                <li><a href="page-contact.html">Контакты</a></li>
                </ul>
        </div>
    </div>
</div>

<div class="container blog-content">
    <?= $content ?>
</div>

<button class="material-scrolltop info" type="button"></button>
<?php $this->endBody() ?>
</body>
</html>
<?php $this->endPage() ?>
{'fraction_non_alphanumeric': 0.21649484536082475, 'fraction_numerical': 0.0019032513877874702, 'mean_word_length': 2.148277583624563, 'pattern_counts': {'":': 0, '<': 234, '<?xml version=': 0, '>': 258, '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': '948048', 'n_tokens_mistral': 2008, 'n_tokens_neox': 1932, 'n_words': 337}