<commit_before><?= TCCore\TCTheme::render('home/partials/gallery'); ?>

<div class="featured-wrp-type1">
    <div class="container">
        <? if(count($main_page_model->get_featured_categories(1)) > 0): ?>
            <div class="row">
                <? foreach($main_page_model->get_featured_categories(1) as $rcategory): ?>
                    <div class="col-md-6, col-sm-6 col-xs-12">
                        <a href="<?= \Fuel\Core\Router::get('view_category', array('alias' => $rcategory->alias)) ;?>">
                            <div class="categoty-card" style="background-image: url('<?= $rcategory->get_logo('small');?>')">
                                <div class="overlay"></div>
                                <h4><?= $rcategory->title; ?></h4>
                            </div>
                        </a>
                    </div>
                <? endforeach; ?>
            </div>
        <? endif; ?>
    </div>
</div>

<div class="featured-wrp-type2">
    <div class="container">
        <? if(count($main_page_model->get_featured_categories(2)) > 0): ?>
            <div class="row">
                <? foreach($main_page_model->get_featured_categories(2) as $rcategory): ?>
                    <div class="col-md-3 col-sm-6 col-xs-12">
                        <a href="<?= \Fuel\Core\Router::get('view_category', array('alias' => $rcategory->alias)) ;?>">
                            <div class="categoty-card" style="background-image: url('<?= $rcategory->get_logo('small');?>')">
                                <div class="overlay"></div>
                            </div>
                            <h4><?= $rcategory->title; ?></h4>
                        </a>
                    </div>
                <? endforeach; ?>
            </div>
        <? endif; ?>
    </div>
</div>

<div class="container">
    <div class="related-categoryes-wrp">
        <? if(count($main_page_model->promoted_category) > 0): ?>
            <? foreach($main_page_model->promoted_category as $rcategory): ?>
                <? if(count($rcategory->get_own_content(4)) > 0): ?>
                    <div class="related-category">
                        <h2 class="related-cat-title"><?=$rcategory->title; ?></h2>
                        <div class="row tiles">
                            <?= \TCCore\TCTheme::render("content/tiles", array('content' => $rcategory->get_own_content(4), 'category' => $rcategory, 'fool_view' => false)); ?>
                        </div>
                        <div class="row">
                            <div class="col-md-9"></div>
                            <div class="col-md-3">
                                <h4 class="page-count"><?= Fuel\Core\Html::anchor(\Fuel\Core\Router::get('view_category', array('alias' => $rcategory->alias)), 'Все статьи раздела', array('class' => 'page-count'));?></h4>
                            </div>
                        </div><commit_msg>HOme page fix<commit_after><?= TCCore\TCTheme::render('home/partials/gallery'); ?>

<div class="featured-wrp-type1">
    <div class="container">
        <? if(count($main_page_model->get_featured_categories(1)) > 0): ?>
            <div class="row">
                <? foreach($main_page_model->get_featured_categories(1) as $rcategory): ?>
                    <div class="col-md-6, col-sm-6 col-xs-12">
                        <a href="<?= Router::get('view_category', array('alias' => $rcategory->alias)) ;?>">
                            <div class="categoty-card" style="background-image: url('<?= $rcategory->get_logo('small');?>')">
                                <div class="overlay"></div>
                                <h4><?= $rcategory->title; ?></h4>
                            </div>
                        </a>
                    </div>
                <? endforeach; ?>
            </div>
        <? endif; ?>
    </div>
</div>

<div class="featured-wrp-type2">
    <div class="container">
        <? if(count($main_page_model->get_featured_categories(2)) > 0): ?>
            
                <? foreach($main_page_model->get_featured_categories(2) as $rcategory): ?>
                    <div class="row">
                        <? foreach ($rcategory->get_own_content(4) as $cat): ?>
                            <div class="col-md-3 col-sm-6 col-xs-12">
                                <a href="<?= Router::get('view_category', array('alias' => $rcategory->alias)) ;?>">
                                    <div class="categoty-card" style="background-image: url('<?= $cat->get_logo('small');?>')">
                                        <div class="overlay"></div>
                                    </div>
                                    <h4><?= $cat->title; ?></h4>
                                </a>
                            </div>
                        <? endforeach; ?>
                    </div>
                <? endforeach; ?>
        <? endif; ?>
    </div>
</div>

<div class="container">
    <div class="related-categoryes-wrp">
        <? if(count($main_page_model->promoted_category) > 0): ?>
            <? foreach($main_page_model->promoted_category as $rcategory): ?>
                <? if(count($rcategory->get_own_content(4)) > 0): ?>
                    <div class="related-category">
                        <h2 class="related-cat-title"><?=$rcategory->title; ?></h2>
                        <div class="row tiles">
                            <?= \TCCore\TCTheme::render("content/tiles", array('content' => $rcategory->get_own_content(4), 'category' => $rcategory, 'fool_view' => false)); ?>
                        </div>
                        <div class="row">
                            <div class="col-md-9"></div>
                            <div class="col-md-3">
                                <h4 class="page-count"><?= Fuel\Core\Html::anchor(Router::get('view_category', array('alias' => $rcategory->alias)), 'Все статьи раздела', array('class' => 'page-count'));?></h4>
                            </div>
                        </div>
{'fraction_non_alphanumeric': 0.18336640211640212, 'fraction_numerical': 0.010085978835978835, 'mean_word_length': 1.484188911704312, 'pattern_counts': {'":': 0, '<': 141, '<?xml version=': 0, '>': 196, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 9, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '935801', 'n_tokens_mistral': 1748, 'n_tokens_neox': 1701, 'n_words': 252}