<commit_before><?php

use yii\helpers\Html;
use yii\grid\GridView;

/* @var $this yii\web\View */
/* @var $searchModel frontend\models\VideoPageSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */

$this->title = 'Video Pages';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="video-page-index">

    <h1><?= Html::encode($this->title) ?></h1>
    <?php // echo $this->render('_search', ['model' => $searchModel]); ?>

    <p>
        <?= Html::a('Create Video Page', ['create'], ['class' => 'btn btn-success']) ?>
    </p>
    <?= GridView::widget([
        'dataProvider' => $dataProvider,
        'filterModel' => $searchModel,
        'columns' => [
            'tittle',
            [
                'attribute' => 'image',
                'label' => 'Image',
                'content' => function ($model) {
                    return Html::img(
                        $model->image_url,
                        ['width' => 320, 'height' => 240]
                    );
                },
            ],
            [
                'class' => \yii\grid\Column::class,
                'content' => function ($model, $key, $index, $column) {
                    $fileSize = $model->getFileSizePrettyString();
                    return $fileSize . ' Mb';
                },
            ],
            [
                'class' => 'yii\grid\ActionColumn',
                'buttons' => [
                    'view' => function ($url, $model, $key) {
                        $options = [
                            'title' => 'Открыть на сайте',
                            'aria-label' => 'Открыть на сайте',
                            'data-pjax' => '0',
                            'target' => '_blank',
                            'class' => 'inline',
                        ];

                        $url = $model->url;
                        return Html::a(
                            '<span class="glyphicon glyphicon-eye-open"></span>',
                            $url,
                            $options
                        );
                    },
                ],
            ],
        ],
    ]); ?>
</div>
<commit_msg>fix title at index downloaded<commit_after><?php

use yii\helpers\Html;
use yii\grid\GridView;

/* @var $this yii\web\View */
/* @var $searchModel frontend\models\VideoPageSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */

$this->title = 'Downloaded Videos';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="video-page-index">

    <h1><?= Html::encode($this->title) ?></h1>
    <?php // echo $this->render('_search', ['model' => $searchModel]); ?>

    <p>
        <?= Html::a('Create Video Page', ['create'], ['class' => 'btn btn-success']) ?>
    </p>
    <?= GridView::widget([
        'dataProvider' => $dataProvider,
        'filterModel' => $searchModel,
        'columns' => [
            'tittle',
            [
                'attribute' => 'image',
                'label' => 'Image',
                'content' => function ($model) {
                    return Html::img(
                        $model->image_url,
                        ['width' => 320, 'height' => 240]
                    );
                },
            ],
            [
                'class' => \yii\grid\Column::class,
                'content' => function ($model, $key, $index, $column) {
                    $fileSize = $model->getFileSizePrettyString();
                    return $fileSize . ' Mb';
                },
            ],
            [
                'class' => 'yii\grid\ActionColumn',
                'buttons' => [
                    'view' => function ($url, $model, $key) {
                        $options = [
                            'title' => 'Открыть на сайте',
                            'aria-label' => 'Открыть на сайте',
                            'data-pjax' => '0',
                            'target' => '_blank',
                            'class' => 'inline',
                        ];

                        $url = $model->url;
                        return Html::a(
                            '<span class="glyphicon glyphicon-eye-open"></span>',
                            $url,
                            $options
                        );
                    },
                ],
            ],
        ],
    ]); ?>
</div>

{'fraction_non_alphanumeric': 0.16605672461116194, 'fraction_numerical': 0.004117108874656907, 'mean_word_length': 1.1074698795180722, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 85, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3009322', 'n_tokens_mistral': 1230, 'n_tokens_neox': 1165, 'n_words': 214}