<commit_before><?php

use hipanel\models\IndexPageUiOptions;
use hipanel\modules\server\grid\ServerGridLegend;
use hipanel\modules\server\grid\ServerGridView;
use hipanel\modules\server\models\OsimageSearch;
use hipanel\widgets\AjaxModal;
use hipanel\widgets\gridLegend\GridLegend;
use hipanel\widgets\IndexPage;
use hipanel\widgets\Pjax;
use yii\bootstrap\Dropdown;
use yii\bootstrap\Modal;
use yii\helpers\Html;

/**
 * @var OsimageSearch $osimages
 * @var yii\web\View $this
 * @var IndexPageUiOptions $uiModel
 * @var \hiqdev\higrid\representations\RepresentationCollection $representationCollection
 */

$this->title = Yii::t('hipanel:server', 'Servers');
$this->params['subtitle'] = array_filter(Yii::$app->request->get($model->formName(), [])) ? Yii::t('hipanel', 'filtered list') : Yii::t('hipanel', 'full list');
$this->params['breadcrumbs'][] = $this->title;

?>

<?php Pjax::begin(array_merge(Yii::$app->params['pjax'], ['enablePushState' => true])) ?>
<?php $page = IndexPage::begin(compact('model', 'dataProvider')) ?>

    <?php $page->beginContent('legend') ?>
        <?= GridLegend::widget(['legendItem' => new ServerGridLegend($model)]) ?>
    <?php $page->endContent() ?>

    <?php $page->beginContent('show-actions') ?>
        <?= $page->renderLayoutSwitcher() ?>
        <?= $page->renderSorter([
            'attributes' => [<commit_msg>hidden legend from normal users<commit_after><?php

use hipanel\models\IndexPageUiOptions;
use hipanel\modules\server\grid\ServerGridLegend;
use hipanel\modules\server\grid\ServerGridView;
use hipanel\modules\server\models\OsimageSearch;
use hipanel\widgets\AjaxModal;
use hipanel\widgets\gridLegend\GridLegend;
use hipanel\widgets\IndexPage;
use hipanel\widgets\Pjax;
use yii\bootstrap\Dropdown;
use yii\bootstrap\Modal;
use yii\helpers\Html;

/**
 * @var OsimageSearch $osimages
 * @var yii\web\View $this
 * @var IndexPageUiOptions $uiModel
 * @var \hiqdev\higrid\representations\RepresentationCollection $representationCollection
 */

$this->title = Yii::t('hipanel:server', 'Servers');
$this->params['subtitle'] = array_filter(Yii::$app->request->get($model->formName(), [])) ? Yii::t('hipanel', 'filtered list') : Yii::t('hipanel', 'full list');
$this->params['breadcrumbs'][] = $this->title;

?>

<?php Pjax::begin(array_merge(Yii::$app->params['pjax'], ['enablePushState' => true])) ?>
<?php $page = IndexPage::begin(compact('model', 'dataProvider')) ?>

    <?php if (Yii::$app->user->can('support')) : ?>
        <?php $page->beginContent('legend') ?>
            <?= GridLegend::widget(['legendItem' => new ServerGridLegend($model)]) ?>
        <?php $page->endContent() ?>
    <?php endif ?>

    <?php $page->beginContent('show-actions') ?>
        <?= $page->renderLayoutSwitcher() ?>
        <?= $page->renderSorter([
            'attributes' => [
{'fraction_non_alphanumeric': 0.19411973078285513, 'fraction_numerical': 0.0, 'mean_word_length': 5.317673378076063, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 55, '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': '5256430', 'n_tokens_mistral': 945, 'n_tokens_neox': 953, 'n_words': 145}