<commit_before><?php
if(count($fiches)>0) : ?>
    <?php echo $info_res;?>
    <ul class="BAZ_liste <?php echo $param['class'];?>">
    <?php
    foreach($fiches as $fiche): ?>
        <li class="bazar-entry" <?php echo $fiche['html_data'];?>>
          <a href="<?php echo $fiche['url']; ?>"
           target="_blank">
            <?php
            $style = '';
            $color = getCustomValueForEntry(
              $param['color'],
              $param['colorfield'],
              $fiche,
              ''
            );
            if (!empty($color)) {
              echo '<span class="pellet" style="background-color:'.$color.';"></span> ';
            }
            $icon = getCustomValueForEntry(
              $param['icon'],
              $param['iconfield'],
              $fiche,
              ''
            );
            if (!empty($icon)) {
              echo '<i class="'.$icon.'"></i> ';
            }

            echo '<span class="entry-title">'.$fiche['bf_titre'].'</span>';
            ?>
          </a>
        </li>
        <?php
    endforeach; ?>
    </ul>
    <?php echo $pager_links;?>
<?php endif; ?><commit_msg>fix(liste_liens): no new window for links by default and make it customizable<commit_after><?php
if (count($fiches) > 0) : ?>
    <?php echo $info_res; ?>
    <ul class="BAZ_liste <?php echo $param['class']; ?>">
        <?php
        foreach ($fiches as $fiche): ?>
            <li class="bazar-entry" <?php echo $fiche['html_data']; ?>>
                <a href="<?php echo $fiche['url']; ?>"
                    <?php if (isset($param['links_in_new_window'])
                            && filter_var($param['links_in_new_window'], FILTER_VALIDATE_BOOLEAN)) {
                        echo 'target="_blank"';
                    } ?>>
                    <?php
                    $style = '';
                    $color = getCustomValueForEntry(
                        $param['color'],
                        $param['colorfield'],
                        $fiche,
                        ''
                    );
                    if (!empty($color)) {
                        echo '<span class="pellet" style="background-color:' . $color . ';"></span> ';
                    }
                    $icon = getCustomValueForEntry(
                        $param['icon'],
                        $param['iconfield'],
                        $fiche,
                        ''
                    );
                    if (!empty($icon)) {
                        echo '<i class="' . $icon . '"></i> ';
                    }

                    echo '<span class="entry-title">' . $fiche['bf_titre'] . '</span>';
                    ?>
                </a>
            </li>
        <?php
        endforeach; ?>
    </ul>
    <?php echo $pager_links; ?>
<?php endif; ?>
{'fraction_non_alphanumeric': 0.1732813607370659, 'fraction_numerical': 0.0007087172218284905, 'mean_word_length': 1.2106499608457322, 'pattern_counts': {'":': 0, '<': 48, '<?xml version=': 0, '>': 50, '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': '932955', 'n_tokens_mistral': 786, 'n_tokens_neox': 763, 'n_words': 146}