<commit_before><?php

use hipanel\modules\hosting\grid\IpGridView;
use hipanel\widgets\Box;
use yii\data\ArrayDataProvider;
use yii\helpers\Html;

if (Yii::getAlias('@ip', false) && $model->ips_num) : ?>
    <?php $box = Box::begin(['renderBody' => false]) ?>
        <?php $box->beginHeader() ?>
            <?= $box->renderTitle(Yii::t('hipanel:server', 'IP addresses'), $model->ips_num) ?>
            <?php if (Yii::$app->user->can('support')) : ?>
                <?php $box->beginTools() ?>
                    <?= Html::a(
                        Yii::t('hipanel:server', 'Manage IP addresses'),
                        ['@ip', 'IpSearch' => ['server_in' => $model->name]],
                        ['class' => 'btn btn-default btn-sm']
                    ) ?>
                <?php $box->endTools() ?>
            <?php endif ?>
        <?php $box->endHeader() ?>
        <?php $box->beginBody() ?>
            <?= IpGridView::widget([
                'dataProvider' => new ArrayDataProvider([
                    'allModels' => $model->ips,
                    'pagination' => [
                        'pageSize' => 25,
                    ],
                    'sort' => false,
                ]),
                'layout' => '{items}',
                'boxed' => false,
                'summary' => false,
                'columns' => ['ip', 'ptr', 'services'],
            ]) ?>
        <?php $box->endBody() ?>
    <?php $box->end() ?>
<?php endif ?><commit_msg>Fixed link to IP address on server view page<commit_after><?php

use hipanel\modules\hosting\grid\IpGridView;
use hipanel\widgets\Box;
use yii\data\ArrayDataProvider;
use yii\helpers\Html;

if (Yii::getAlias('@ip', false) && $model->ips_num) : ?>
    <?php $box = Box::begin(['renderBody' => false]) ?>
        <?php $box->beginHeader() ?>
            <?= $box->renderTitle(Yii::t('hipanel:server', 'IP addresses'), $model->ips_num) ?>
            <?php if (Yii::$app->user->can('support')) : ?>
                <?php $box->beginTools() ?>
                    <?= Html::a(
                        Yii::t('hipanel:server', 'Manage IP addresses'),
                        ['@ip', 'IpSearch' => ['server_in' => $model->name]],
                        ['class' => 'btn btn-default btn-sm']
                    ) ?>
                <?php $box->endTools() ?>
            <?php endif ?>
        <?php $box->endHeader() ?>
        <?php $box->beginBody() ?>
            <?= IpGridView::widget([
                'dataProvider' => new ArrayDataProvider([
                    'allModels' => $model->ips,
                    'pagination' => [
                        'pageSize' => 25,
                    ],
                    'sort' => false,
                ]),
                'layout' => '{items}',
                'boxed' => false,
                'summary' => false,
                'controllerUrl' => '@ip',
                'columns' => ['ip', 'ptr', 'services'],
            ]) ?>
        <?php $box->endBody() ?>
    <?php $box->end() ?>
<?php endif ?>
{'fraction_non_alphanumeric': 0.19755533531549388, 'fraction_numerical': 0.0013214403700033035, 'mean_word_length': 1.519134775374376, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 0, '>': 88, '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': '7555559', 'n_tokens_mistral': 898, 'n_tokens_neox': 862, 'n_words': 162}