<commit_before><?php

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

use frontend\helpers\VideoHelper;

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

$this->title = $title;
$this->params['breadcrumbs'][] = $this->title;

$gridColumns = [
    [
        'attribute' => 'image',
        'label' => 'Image',
        'content' => function ($model) {
            return Html::img(
                $model->image_url,
                ['width' => 320, 'height' => 240]
            );
        },
    ],
    [
        'attribute' => 'startLinkTitle',
        'label' => 'Type',
        'content' => function ($model) {
            $options = [
                'target' => '_blank',
                'class' => 'inline',
            ];
            $url = Url::to([
                'video-page/index',
                'VideoPageSearch' => [
                    'startLinkTitle' => $model->startLink->tittle,
                    'title' => '',
                ]
            ]);
            return Html::a(
                $model->startLink->tittle,
                $url,
                $options
            );
        },
    ],
    [
        'attribute' => 'tittle',
        'contentOptions' => ['style' => ['max-width' => '580px;', 'height' => '240px', 'white-space' =>'pre-wrap']]<commit_msg>fix filtering in index page<commit_after><?php

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

use frontend\helpers\VideoHelper;

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

$this->title = $title;
$this->params['breadcrumbs'][] = $this->title;

$gridColumns = [
    [
        'attribute' => 'image',
        'label' => 'Image',
        'content' => function ($model) {
            return Html::img(
                $model->image_url,
                ['width' => 320, 'height' => 240]
            );
        },
    ],
    [
        'attribute' => 'startLinkTitle',
        'label' => 'Type',
        'content' => function ($model) {
            $options = [
                'target' => '_blank',
                'class' => 'inline',
            ];
            $urlParams = [
                'video-page/index',
                'VideoPageSearch' => [
                    'startLinkTitle' => $model->startLink->tittle,
                ]
            ];

            if (!empty(Yii::$app->request->get('pageName'))) {
                $urlParams['pageName'] =  Yii::$app->request->get('pageName');
            }
            $url = Url::to($urlParams);
            return Html::a(
                $model->startLink->tittle,
                $url,
                $options
            );
        },
    ],
    [
        'attribute' => 'tittle',
        'contentOptions' => ['style' => ['max-width' => '580px;', 'height' => '240px', 'white-space' =>'pre-wrap']]
{'fraction_non_alphanumeric': 0.18232044198895028, 'fraction_numerical': 0.007799805004874878, 'mean_word_length': 1.6084745762711865, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 60, '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': '5983206', 'n_tokens_mistral': 959, 'n_tokens_neox': 924, 'n_words': 161}