<commit_before><?php

//use yii;
use yii\helpers\Html;
use yii\bootstrap\Button;
use yii\bootstrap\Nav;
use yii\bootstrap\NavBar;
use yii\widgets\Breadcrumbs;
use frontend\assets\AppAsset;
use common\widgets\Alert;
use common\models\Board;

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

AppAsset::register($this);
if ($boardObject = Board::getActiveboard()) {
    $this->title = $boardObject->title;
} else {
    $this->title = '';
}
?>
<?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>Ban the Can(<?= (YII_ENV_DEMO ? 'DEMO' : '') ?>): <?= Html::encode($this->title) ?></title>
    <?php $this->head() ?>
</head>
<body>
    <?php $this->beginBody() ?>
    <div class="wrap">
        <?php
            NavBar::begin([
                'brandLabel' => (YII_ENV_DEMO ? 'DEMO: ' : '') . $this->title,
                'brandUrl' => Yii::$app->homeUrl,
                'options' => [
                    'class' => 'navbar-inverse navbar-fixed-top',
                ],
                'innerContainerOptions' => [
                    'class' => 'container-fluid'
                ]
            ]);

            if (Yii::$app->user->isGuest) {

                //$menuItems[] = ['label' => 'Signup', 'url' => ['/site/signup']];
                $menuItems[] = ['label' => 'Login', 'url' => ['/site/login']];
                $menuItems[] = ['label' => 'Contact', 'url' => ['/site/contact']];
                $menuItems[] = ['label' => 'About', 'url' => ['/site/about']];

            } else {

                $menuItems = [
                    ['label' => 'Tags', 'url' => ['/tags']],
                    ['label' => 'Tickets', 'url' => ['/ticket']],
                    ['label' => 'Boards', 'visible' => (boolean) $boardObject,
                        'items' => [
                            ['label' => 'Backlog', 'url' => ['/board/backlog']],
                            ['label' => 'KanBan', 'url' => ['/board']],
                            ['label' => 'Completed', 'url' => ['/board/completed']],
                        ],
                    ],
                ];

                $menuItems[] = html::tag('li',
                        $this->render('../site/_userIcon',['userId' => Yii::$app->getUser()->id]),
                        ['class' => 'menu-avatar-li']);

                $menuItems[] = ['label' => '', 'items' => [
                        ['label' => 'Select Board', 'url' => ['/board/select']],
                        ['label' => 'Logout', 'url' => ['/site/logout'], 'linkOptions' => ['data-method' => 'post']],
                        ['label' => 'About', 'url' => ['/site/about']],
                        ['label' => 'Contact', 'url' => ['/site/contact']]
                    ],
                ];
            }

        echo Button::widget([
            'label' => 'Action',
            'options' => ['class' => 'btn-lg'],
        ]);
        ?>

        <button class="btn btn-primary" type="button" data-toggle="collapse"
                data-target="#left-layout-sidebar" aria-expanded="true"
                aria-controls="collapseExample">
            Left sidebar
        </button>

        <?php
            echo Nav::widget([
                'options' => ['class' => 'navbar-nav navbar-right'],
                'items' => $menuItems,
            ]);
        ?>

        <button class="btn btn-primary" type="button" data-toggle="collapse"
                data-target="#right-layout-sidebar" aria-expanded="true"
                aria-controls="collapseExample">
            Right sidebar
        </button>

        <?php
            NavBar::end();
        ?>

        <div id="left-layout-sidebar">
            <div class="container-fluid">
                <?php
                    if (!$this->blocks) {
                        echo 'Search block not found';
                    } elseif (array_key_exists('left-sidebar', $this->blocks)) {<commit_msg>Navbar Buttons<commit_after><?php

//use yii;
use yii\helpers\Html;
use yii\bootstrap\Button;
use yii\bootstrap\Nav;
use yii\bootstrap\NavBar;
use yii\widgets\Breadcrumbs;
use frontend\assets\AppAsset;
use common\widgets\Alert;
use common\models\Board;

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

AppAsset::register($this);
if ($boardObject = Board::getActiveboard()) {
    $this->title = $boardObject->title;
} else {
    $this->title = '';
}
?>
<?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>Ban the Can(<?= (YII_ENV_DEMO ? 'DEMO' : '') ?>): <?= Html::encode($this->title) ?></title>
    <?php $this->head() ?>
</head>
<body>
    <?php $this->beginBody() ?>
    <div class="wrap">
        <?php
            NavBar::begin([
                'brandLabel' => (YII_ENV_DEMO ? 'DEMO: ' : '') . $this->title,
                'brandUrl' => Yii::$app->homeUrl,
                'options' => [
                    'class' => 'navbar-inverse navbar-fixed-top',
                ],
                'innerContainerOptions' => [
                    'class' => 'container-fluid'
                ]
            ]);

            if (Yii::$app->user->isGuest) {

                //$menuItems[] = ['label' => 'Signup', 'url' => ['/site/signup']];
                $menuItems[] = ['label' => 'Login', 'url' => ['/site/login']];
                $menuItems[] = ['label' => 'Contact', 'url' => ['/site/contact']];
                $menuItems[] = ['label' => 'About', 'url' => ['/site/about']];

            } else {

                $menuItems = [
                    ['label' => 'Tags', 'url' => ['/tags']],
                    ['label' => 'Tickets', 'url' => ['/ticket']],
                    ['label' => 'Boards', 'visible' => (boolean) $boardObject,
                        'items' => [
                            ['label' => 'Backlog', 'url' => ['/board/backlog']],
                            ['label' => 'KanBan', 'url' => ['/board']],
                            ['label' => 'Completed', 'url' => ['/board/completed']],
                        ],
                    ],
                ];

                $menuItems[] = html::tag('li',
                        $this->render('../site/_userIcon',['userId' => Yii::$app->getUser()->id]),
                        ['class' => 'menu-avatar-li']);

                $menuItems[] = ['label' => '', 'items' => [
                        ['label' => 'Select Board', 'url' => ['/board/select']],
                        ['label' => 'Logout', 'url' => ['/site/logout'], 'linkOptions' => ['data-method' => 'post']],
                        ['label' => 'About', 'url' => ['/site/about']],
                        ['label' => 'Contact', 'url' => ['/site/contact']]
                    ],
                ];
            }

            echo Button::widget([
                'label' => 'Left Sidebar',
                'options' => [
                    'class' => 'btn btn-primary',
                    'type' =>'button',
                    'data-toggle' => 'collapse',
                    'data-target' => '#left-layout-sidebar',
                    'aria-expanded' => 'false',
                    //'aria-controls' => '???',
                ],
            ]);

            echo Nav::widget([
                'options' => ['class' => 'navbar-nav navbar-right'],
                'items' => $menuItems,
            ]);

            echo Button::widget([
                'label' => 'Right Sidebar',
                'options' => [
                    'class' => 'btn btn-primary',
                    'type' =>'button',
                    'data-toggle' => 'collapse',
                    'data-target' => '#right-layout-sidebar',
                    'aria-expanded' => 'false',
                    //'aria-controls' => '???',
                ],
            ]);

            NavBar::end();
        ?>

        <div id="left-layout-sidebar">
            <div class="container-fluid">
                <?php
                    if (!$this->blocks) {
                        echo 'Search block not found';
                    } elseif (array_key_exists('left-sidebar', $this->blocks)) {
{'fraction_non_alphanumeric': 0.208387786622312, 'fraction_numerical': 0.00023761435190685517, 'mean_word_length': 1.504611722701577, 'pattern_counts': {'":': 0, '<': 55, '<?xml version=': 0, '>': 196, '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': '1869034', 'n_tokens_mistral': 2519, 'n_tokens_neox': 2383, 'n_words': 432}