<commit_before><?php
/**
 * @var $this yii\web\View
 * @var $article common\articles\Article
 */
use yii\helpers\Html;

?>
<div class="article-item">
    <a href="<?php echo $article->category->slug.'/'.$article->slug;?>">
        <h2 class="article-title-games">
            <?php echo $article->title; ?>
        </h2>
        <?php if ($article->thumbnail_path): ?>
            <?php echo Html::img(
                Yii::$app->glide->createSignedUrl([
                    'glide/index',
                    'path' => $article->thumbnail_path,
                    'w' => 320,
                    'h' => 200
                ], true),
                ['class' => 'article-thumb']
            ) ?>
        <?php endif; ?>
    </a>
        <div class="article-short-text">
            <?php echo \yii\helpers\StringHelper::truncate($article->body, 150)?>
        </div><commit_msg>fix mobile article preview<commit_after><?php
/**
 * @var $this yii\web\View
 * @var $article common\articles\Article
 */
use yii\helpers\Html;

?>
<div class="article-item">
    <a href="<?php echo $article->category->slug.'/'.$article->slug;?>">
        <h2 class="article-title-games">
            <?php echo $article->title; ?>
        </h2>
        <?php if ($article->thumbnail_path): ?>
            <?php echo Html::img(
                Yii::$app->glide->createSignedUrl([
                    'glide/index',
                    'path' => $article->thumbnail_path,
                    'w' => 320,
                    'h' => 200
                ], true),
                ['class' => 'article-thumb']
            ) ?>
        <?php endif; ?>
    </a>
        <div class="article-short-text">
            <?php echo \yii\helpers\StringHelper::truncate(strip_tags($article->body,'br'), 150)?>
        </div>
{'fraction_non_alphanumeric': 0.1884787472035794, 'fraction_numerical': 0.012304250559284116, 'mean_word_length': 1.6861861861861862, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 57, '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': '5003643', 'n_tokens_mistral': 569, 'n_tokens_neox': 542, 'n_words': 98}