<commit_before><div id="last_articles" class="latest">
<?php
use_helper('Text', 'sfBBCode', 'SmartFormat', 'SmartDate', 'Button');
if (!isset($default_open))
{
    $default_open = true;
}
include_partial('documents/home_section_title', array('module' => 'articles')); ?>

<div class="home_container_text" id="last_articles_section_container">
<?php if (count($items) == 0): ?>
    <p><?php echo __('No recent changes available') ?></p>
<?php else: ?>
    <ul class="article_changes">
    <?php 
    $date = $list_item = 0;
    foreach ($items as $item): ?>
        <?php
            // Add class to know if li is odd or even
            if ($list_item%2 == 1): ?>
                <li class="odd">
            <?php else: ?>
                <li class="even">
            <?php endif;
            $list_item++;

            $id = $item['id'];
            $lang = $item['culture']; ?>
            <span class="home_article_title">
            <?php echo link_to($item['name'], 
                               "@document_by_id_lang_slug?module=articles&id=$id&lang=$lang&slug="
                                   . make_slug($item['name']),
                               ($lang != $culture) ? array('hreflang' => $lang) : null); ?>
            </span>
            <?php echo truncate_article_abstract(parse_links(parse_bbcode_abstract($item['abstract'])),
                                                 sfConfig::get('app_recent_documents_articles_abstract_characters_limit')); ?>
            </li>
    <?php endforeach ?>
    </ul>
<?php endif; ?>
<div class="home_link_list">
<?php echo link_to(__('articles list'), '@default_index?module=articles')
           . ' - ' .  link_to(__('Summary'), getMetaArticleRoute('home_articles')); ?>
</div>
</div>
<?php
$cookie_position = array_search('last_articles', sfConfig::get('app_personalization_cookie_fold_positions'));
echo javascript_tag('setHomeFolderStatus(\'last_articles\', '.$cookie_position.', '.((!$default_open) ? 'false' : 'true').", '".__('section open')."');");
?>
</div><commit_msg>latest articles on home<commit_after><div id="last_articles" class="latest">
<?php
use_helper('Text', 'sfBBCode', 'SmartFormat', 'SmartDate', 'Button');
if (!isset($default_open))
{
    $default_open = true;
}
include_partial('documents/home_section_title', array('module' => 'articles')); ?>

<div class="home_container_text" id="last_articles_section_container">
<?php if (count($items) == 0): ?>
    <p><?php echo __('No recent changes available') ?></p>
<?php else: ?>
    <ul class="article_changes">
    <?php 
    $date = $list_item = 0;
    foreach ($items as $item): ?>
        <?php
            // Add class to know if li is odd or even
            if ($list_item%2 == 1): ?>
                <li class="odd">
            <?php else: ?>
                <li class="even">
            <?php endif;
            $list_item++;

            $id = $item['id'];
            $lang = $item['ArticleI18n'][0]['culture']; ?>
            <span class="home_article_title">
            <?php echo link_to($item['ArticleI18n'][0]['name'], 
                               "@document_by_id_lang_slug?module=articles&id=$id&lang=$lang&slug="
                                   . make_slug($item['ArticleI18n'][0]['name']),
                               ($lang != $culture) ? array('hreflang' => $lang) : null); ?>
            </span>
            <?php echo truncate_article_abstract(parse_links(parse_bbcode_abstract($item['ArticleI18n'][0]['abstract'])),
                                                 sfConfig::get('app_recent_documents_articles_abstract_characters_limit')); ?>
            </li>
    <?php endforeach ?>
    </ul>
<?php endif; ?>
<div class="home_link_list">
<?php echo link_to(__('articles list'), '@default_index?module=articles')
           . ' - ' .  link_to(__('Summary'), getMetaArticleRoute('home_articles')); ?>
</div>
</div>
<?php
$cookie_position = array_search('last_articles', sfConfig::get('app_personalization_cookie_fold_positions'));
echo javascript_tag('setHomeFolderStatus(\'last_articles\', '.$cookie_position.', '.((!$default_open) ? 'false' : 'true').", '".__('section open')."');");
?>
</div>
{'fraction_non_alphanumeric': 0.1856115107913669, 'fraction_numerical': 0.004796163069544364, 'mean_word_length': 2.7644404332129966, 'pattern_counts': {'":': 0, '<': 61, '<?xml version=': 0, '>': 65, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4327614', 'n_tokens_mistral': 1285, 'n_tokens_neox': 1228, 'n_words': 234}