<commit_before>          <div class="meta">
            <? if(!empty($entry['category'])): ?>
              <div class="categories">
                <? foreach($entry['category'] as $tag): if(trim($tag)): ?>
                  <span class="category">#<span class="p-category"><?= trim($tag,'#') ?></span></span>
                <? endif; endforeach ?>
              </div>
            <? endif ?>

            <? if(!empty($entry['published'])): ?>
              <? if(!empty($entry['url'])): ?>
                <a href="<?= e($entry['url']) ?>" class="u-url u-uid">
                  <time class="dt-published" datetime="<?= display_date('c', $entry['published']) ?>">
                    <?= display_date('F j, Y g:ia P', $entry['published']) ?>
                  </time>
                </a>
              <? else: ?>
                <time class="dt-published" datetime="<?= display_date('c', $entry['published']) ?>">
                  <?= display_date('F j, Y g:ia P', $entry['published']) ?>
                </time>
              <? endif ?>
            <? elseif(!empty($entry['url'])): ?>
              <a href="<?= e($entry['url']) ?>" class="u-url u-uid">
                <?= e(\p3k\url\display_url($entry['url'])) ?>
              </a>
            <? endif ?>
            <? if(!empty($entry['syndication'])): ?>
              <span class="syndication">
              <?
              foreach($entry['syndication'] as $syn):
                $host = parse_url($syn, PHP_URL_HOST);
                if($host == 'twitter.com' || $host == 'www.twitter.com')
                  $icon = 'fab fa-twitter';
                elseif($host == 'facebook.com' || $host == 'www.facebook.com')
                  $icon = 'fab fa-facebook';
                elseif($host == 'github.com')
                  $icon = 'fab fa-github';
                else
                  $icon = 'fas fa-link';
                echo '<a href="'.$syn.'" class="u-syndication"><i class="'.$icon.'"></i></a> ';
              endforeach
              ?>
              </span>
            <? endif ?>
          </div>
<commit_msg>better display for URL tags<commit_after>          <div class="meta">
            <? if(!empty($entry['category'])): ?>
              <div class="categories">
                <? foreach($entry['category'] as $tag): if(trim($tag)): ?>
                  <? if(preg_match('~https?://~', $tag)): ?>
                    <span class="category"><a href="<?= e($tag) ?>" class="u-category"><?= \p3k\url\display_url($tag) ?></a></span>
                  <? else: ?>
                    <span class="category">#<span class="p-category"><?= trim($tag,'#') ?></span></span>
                  <? endif ?>
                <? endif; endforeach ?>
              </div>
            <? endif ?>

            <? if(!empty($entry['published'])): ?>
              <? if(!empty($entry['url'])): ?>
                <a href="<?= e($entry['url']) ?>" class="u-url u-uid">
                  <time class="dt-published" datetime="<?= display_date('c', $entry['published']) ?>">
                    <?= display_date('F j, Y g:ia P', $entry['published']) ?>
                  </time>
                </a>
              <? else: ?>
                <time class="dt-published" datetime="<?= display_date('c', $entry['published']) ?>">
                  <?= display_date('F j, Y g:ia P', $entry['published']) ?>
                </time>
              <? endif ?>
            <? elseif(!empty($entry['url'])): ?>
              <a href="<?= e($entry['url']) ?>" class="u-url u-uid">
                <?= e(\p3k\url\display_url($entry['url'])) ?>
              </a>
            <? endif ?>
            <? if(!empty($entry['syndication'])): ?>
              <span class="syndication">
              <?
              foreach($entry['syndication'] as $syn):
                $host = parse_url($syn, PHP_URL_HOST);
                if($host == 'twitter.com' || $host == 'www.twitter.com')
                  $icon = 'fab fa-twitter';
                elseif($host == 'facebook.com' || $host == 'www.facebook.com')
                  $icon = 'fab fa-facebook';
                elseif($host == 'github.com')
                  $icon = 'fab fa-github';
                else
                  $icon = 'fas fa-link';
                echo '<a href="'.$syn.'" class="u-syndication"><i class="'.$icon.'"></i></a> ';
              endforeach
              ?>
              </span>
            <? endif ?>
          </div>

{'fraction_non_alphanumeric': 0.217313298945952, 'fraction_numerical': 0.0006727965911639381, 'mean_word_length': 1.4764019988895059, 'pattern_counts': {'":': 0, '<': 98, '<?xml version=': 0, '>': 98, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '737092', 'n_tokens_mistral': 1261, 'n_tokens_neox': 1225, 'n_words': 221}