<commit_before><?php
/**
 * @var \app\models\Categories $model
 */

use app\components\ImageHelper;

$this->params['breadcrumbs'][] = $model->name;
?>

<div class="container">
    <aside class="col-xs-4 catalog-menu">
        <h2>Каталог</h2>
        <?= \app\widgets\LeftMenu::widget([
            'currentCategory' => $model,
        ]); ?>
    </aside>
    <section class="col-xs-8">
        <?= $model->description; ?>
        <div class="row">
            <?php /** @var \app\models\Products $item */ ?>
            <?php foreach ($model->items as $item) { ?>
                <div class="col-sm-6 col-md-4">
                    <div class="thumbnail thumbnail-product">
                        <a href="<?= \yii\helpers\Url::to(['/product/view', 'slug' => $item->slug]) ?>"><?= ImageHelper::img($item->getFirstImage(), 300, 132, ['thumbnail' => true]); ?></a>
                        <div class="caption">
                            <a href="<?= \yii\helpers\Url::to(['/product/view', 'slug' => $item->slug]) ?>"><?= $item->name ?></a>
                            <p><?= $item->description_short ?></p>
                        </div>
                    </div>
                </div>
            <?php } ?>
        </div>
    </section>
</div><commit_msg>Ровный каталог<commit_after><?php
/**
 * @var \app\models\Categories $model
 */

use app\components\ImageHelper;

$this->params['breadcrumbs'][] = $model->name;
?>

<div class="container">
    <aside class="col-xs-4 catalog-menu">
        <h2>Каталог</h2>
        <?= \app\widgets\LeftMenu::widget([
            'currentCategory' => $model,
        ]); ?>
    </aside>
    <section class="col-xs-8">
        <?= $model->description; ?>
        <div class="row">
            <?php /** @var \app\models\Products $item */ ?>
            <?php foreach ($model->items as $item) { ?>
                <div class="col-sm-6 col-md-4">
                    <div class="thumbnail thumbnail-product">
                        <a href="<?= \yii\helpers\Url::to(['/product/view', 'slug' => $item->slug]) ?>" class="catalog-img"><?= ImageHelper::img($item->getFirstImage(), 300, 110, ['thumbnail' => true]); ?></a>
                        <div class="caption">
                            <a href="<?= \yii\helpers\Url::to(['/product/view', 'slug' => $item->slug]) ?>"><?= $item->name ?></a>
                            <p><?= $item->description_short ?></p>
                        </div>
                    </div>
                </div>
            <?php } ?>
        </div>
    </section>
</div>
{'fraction_non_alphanumeric': 0.22099882029099488, 'fraction_numerical': 0.009437672040896579, 'mean_word_length': 1.7413793103448276, 'pattern_counts': {'":': 0, '<': 69, '<?xml version=': 0, '>': 95, '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': '4296543', 'n_tokens_mistral': 802, 'n_tokens_neox': 797, 'n_words': 137}