<commit_before><?php

use yii\bootstrap\Nav;
use yii\bootstrap\NavBar;

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

$this->beginContent('@frontend/views/layouts/_clear.php')
?>
<div class="wrap">
    <?php
    NavBar::begin([
        'brandLabel' => Yii::$app->name,
        'brandUrl' => Yii::$app->homeUrl,
        'options' => [
            'class' => 'navbar-inverse navbar-fixed-top',
        ],
    ]); ?>
    <?php echo Nav::widget([
        'options' => ['class' => 'navbar-nav navbar-right'],
        'items' => [
            // ['label' => Yii::t('frontend', 'Home'), 'url' => ['/site/index']],
            // ['label' => Yii::t('frontend', 'About'), 'url' => ['/page/view', 'slug'=>'about']],
            // ['label' => Yii::t('frontend', 'Articles'), 'url' => ['/article/index']],
            ['label' => Yii::t('frontend', '部件笔画检字法'), 'url' => ['/hanzi-set/search'],],
            ['label' => Yii::t('frontend', '积分排名'), 'url' => ['/user-task/admin'],],
            [
                'label' => Yii::t('frontend', '任务管理'),
                'visible'=>\common\models\HanziTask::isLeader(Yii::$app->user->id),
                'items'=>[
                    [
                        'label' => Yii::t('frontend', '异体字拆字'),
                        'url' => ['/hanzi-task/admin?type=1']
                    ],
                    [
                        'label' => Yii::t('frontend', '异体字识别'),
                        'url' => ['/hanzi-task/admin?type=2']
                    ],
                ]
            ],
            [
                'label' => Yii::t('frontend', '我的任务'),
                'visible'=>!Yii::$app->user->isGuest,
                'items'=>[
                    [
                        'label' => Yii::t('frontend', '异体字拆字'),
                        'url' => ['/hanzi-task/index?type=1']
                    ],
                    [
                        'label' => Yii::t('frontend', '异体字识别'),
                        'url' => ['/hanzi-task/index?type=2']
                    ],
                    [
                        'label' => Yii::t('frontend', '完成情况'),
                        'url' => ['/user-task/index']
                    ]
                ]
            ],
            [
                'label' => Yii::t('frontend', '帮助'),
                'visible'=>!Yii::$app->user->isGuest,
                'items'=>[
                    [
                        'label' => Yii::t('frontend', '部件笔画检字法'),
                        'url' => ['/article/hanzi-search']
                    ],
                    [
                        'label' => Yii::t('frontend', '部件补充说明'),
                        'url' => ['/article/component-addition']
                    ],
                    [
                        'label' => Yii::t('frontend', '拆字工作流程'),
                        'url' => ['/article/split-intro']
                    ],
                    [
                        'label' => Yii::t('frontend', '部件查找介绍'),
                        'url' => ['/article/component-help']
                    ],
                    [
                        'label' => Yii::t('frontend', '异体字录入介绍'),
                        'url' => ['/article/variant-help']
                    ],
                    [
                        'label' => Yii::t('frontend', '网站更新说明'),
                        'url' => ['/article/update-intro']
                    ]<commit_msg>修改帮助链接<commit_after><?php

use yii\bootstrap\Nav;
use yii\bootstrap\NavBar;

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

$this->beginContent('@frontend/views/layouts/_clear.php')
?>
<div class="wrap">
    <?php
    NavBar::begin([
        'brandLabel' => Yii::$app->name,
        'brandUrl' => Yii::$app->homeUrl,
        'options' => [
            'class' => 'navbar-inverse navbar-fixed-top',
        ],
    ]); ?>
    <?php echo Nav::widget([
        'options' => ['class' => 'navbar-nav navbar-right'],
        'items' => [
            // ['label' => Yii::t('frontend', 'Home'), 'url' => ['/site/index']],
            // ['label' => Yii::t('frontend', 'About'), 'url' => ['/page/view', 'slug'=>'about']],
            // ['label' => Yii::t('frontend', 'Articles'), 'url' => ['/article/index']],
            ['label' => Yii::t('frontend', '部件笔画检字法'), 'url' => ['/hanzi-set/search'],],
            ['label' => Yii::t('frontend', '积分排名'), 'url' => ['/user-task/admin'],],
            [
                'label' => Yii::t('frontend', '任务管理'),
                'visible'=>\common\models\HanziTask::isLeader(Yii::$app->user->id),
                'items'=>[
                    [
                        'label' => Yii::t('frontend', '异体字拆字'),
                        'url' => ['/hanzi-task/admin?type=1']
                    ],
                    [
                        'label' => Yii::t('frontend', '异体字识别'),
                        'url' => ['/hanzi-task/admin?type=2']
                    ],
                ]
            ],
            [
                'label' => Yii::t('frontend', '我的任务'),
                'visible'=>!Yii::$app->user->isGuest,
                'items'=>[
                    [
                        'label' => Yii::t('frontend', '异体字拆字'),
                        'url' => ['/hanzi-task/index?type=1']
                    ],
                    [
                        'label' => Yii::t('frontend', '异体字识别'),
                        'url' => ['/hanzi-task/index?type=2']
                    ],
                    [
                        'label' => Yii::t('frontend', '完成情况'),
                        'url' => ['/user-task/index']
                    ]
                ]
            ],
            [
                'label' => Yii::t('frontend', '帮助'),
                'visible'=>!Yii::$app->user->isGuest,
                'items'=>[
                    [
                        'label' => Yii::t('frontend', '部件笔画检字法'),
                        'url' => ['/article/hanzi-search']
                    ],
                    [
                        'label' => Yii::t('frontend', '部件补充说明'),
                        'url' => ['/article/component-addition']
                    ],
                    [
                        'label' => Yii::t('frontend', '拆字工作流程'),
                        'url' => ['/article/split-intro']
                    ],
                    [
                        'label' => Yii::t('frontend', '拆字实例'),
                        'url' => ['/article/split-example']
                    ],
                    [
                        'label' => Yii::t('frontend', '部件查找介绍'),
                        'url' => ['/article/component-help']
                    ],
                    [
                        'label' => Yii::t('frontend', '异体字录入介绍'),
                        'url' => ['/article/variant-help']
                    ],
                    [
                        'label' => Yii::t('frontend', '网站更新说明'),
                        'url' => ['/article/update-intro']
                    ]
{'fraction_non_alphanumeric': 0.20375950638542115, 'fraction_numerical': 0.0011479408810446262, 'mean_word_length': 1.0651851851851852, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 127, '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': '3079811', 'n_tokens_mistral': 2164, 'n_tokens_neox': 2096, 'n_words': 261}