<commit_before><?php
/**
 * @file
 * Generates the HTML for the Neue Media pattern.
 *
 * Available variables:
 * - $content: An associative array that can contain:
 *    - $title: Title of the item.
 *    - $description: Description or subtitle.
 *    - $impact: Impact number.
 *    - $image: Thumbnail image.
 *    - $link: Link to the item.
 *
 * @see paraneue_dosomething_get_gallery_item()
 */
?>
<article class="media">
  <div class="wrapper">
    <?php if (!empty($content['image'])): ?>
      <?php print $content['image']; ?>
    <?php endif; ?>
  </div>

  <div class="__body">
    <?php if (!empty($content['title'])): ?>
      <h3 class="__title">
        <?php if (!empty($content['link'])): ?>
          <a href="<?php print $content['link']; ?>">
            <?php print $content['title']; ?>
          </a>
        <?php endif; ?>
      </h3>
    <?php endif; ?>
    <div class="__description"><commit_msg>Display unlinked title if no link set<commit_after><?php
/**
 * @file
 * Generates the HTML for the Neue Media pattern.
 *
 * Available variables:
 * - $content: An associative array that can contain:
 *    - $title: Title of the item.
 *    - $description: Description or subtitle.
 *    - $impact: Impact number.
 *    - $image: Thumbnail image.
 *    - $link: Link to the item.
 *
 * @see paraneue_dosomething_get_gallery_item()
 */
?>
<article class="media">
  <div class="wrapper">
    <?php if (!empty($content['image'])): ?>
      <?php print $content['image']; ?>
    <?php endif; ?>
  </div>

  <div class="__body">
    <?php if (!empty($content['title'])): ?>
      <h3 class="__title">
        <?php if (!empty($content['link'])): ?>
          <a href="<?php print $content['link']; ?>">
            <?php print $content['title']; ?>
          </a>
        <?php else: ?>
          <?php print $content['title']; ?>
        <?php endif; ?>
      </h3>
    <?php endif; ?>
    <div class="__description">
{'fraction_non_alphanumeric': 0.19669592152813628, 'fraction_numerical': 0.002065049044914817, 'mean_word_length': 2.698473282442748, 'pattern_counts': {'":': 0, '<': 43, '<?xml version=': 0, '>': 43, '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': '6206409', 'n_tokens_mistral': 619, 'n_tokens_neox': 604, 'n_words': 168}