<commit_before><ul class="list -compacted">
  <?php if (isset($modals['faq'])): ?>
    <li><a href="#" data-modal-href="#modal-faq"><?php print t('FAQs'); ?></a></li>
  <?php endif; ?>

  <?php if (isset($modals['more_facts'])): ?>
    <li><a href="#" data-modal-href="#modal-facts"><?php print t('Learn more about @issue', array('@issue' => $modals['issue'])); ?></a></li>
  <?php endif; ?>

  <?php if (isset($modals['partner_info'])): ?>
  <?php foreach ($modals['partner_info'] as $delta => $partner): ?>
    <li>
      <a href="#" data-modal-href="#modal-partner-<?php print $delta; ?>">
        <?php print t('Why we &lt;3 @partner', array('@partner' => $partner['name'])); ?> <?php  ?>
      </a>
  <?php endforeach; ?>
  <?php endif; ?>
</ul>

<?php if (isset($modals['faq'])): ?>
<div data-modal id="modal-faq" role="dialog">
  <h2 class="heading -banner"><?php print t('FAQs'); ?></h2>
  <div class="modal__block with-lists">
    <?php foreach ($modals['faq'] as $item): ?>
      <h4><?php print $item['header']; ?></h4>
      <?php print $item['copy'] ?>
    <?php endforeach; ?>
  </div>
  <div class="modal__block">
    <div class="form-actions">
      <a href="#" class="js-close-modal"><?php print t('Back to main page'); ?></a>
    </div>
  </div>
</div>
<?php endif; ?>

<?php if (isset($modals['more_facts'])): ?>
<div data-modal id="modal-facts" role="dialog">
  <h2 class="heading -banner"><?php print t('Facts'); ?></h2>
  <div class="modal__block">
    <ul class="list">
      <?php foreach ($modals['more_facts']['facts'] as $key => $fact): ?>
        <li><?php print $fact['fact']; ?><sup><?php print $fact['footnotes']; ?></sup></li>
      <?php endforeach; ?>
    </ul>
  </div>

  <div class="modal__block">
    <section class="footnote">
      <h4 class="js-footnote-toggle"><?php print t('Sources'); ?></h4>
      <ul class="js-footnote-hidden">
        <?php foreach ($modals['more_facts']['sources'] as $key => $source): ?>
          <li><sup><?php print ($key + 1); ?></sup> <?php print $source; ?></li>
        <?php endforeach; ?>
      </ul>
    </section>
  </div>
  <div class="modal__block">
    <div class="form-actions">
      <a href="#" class="js-close-modal"><?php print t('Back to main page'); ?></a>
    </div>
  </div>
</div>
<?php endif; ?>

<?php if (isset($modals['partner_info'])): ?>
  <?php foreach ($modals['partner_info'] as $delta => $partner): ?>
    <div data-modal id="modal-partner-<?php print $delta; ?>" role="dialog">
      <h2 class="heading -banner"><?php print t('We &lt;3 @partner', array('@partner' => $partner['name'])); ?></h2>
      <div class="modal__block">
        <?php print $partner['copy']; ?>
        <?php if (isset($partner['video'])): print $partner['video']; ?>
        <?php elseif (isset($partner['image'])): print $partner['image']; endif; ?>
      </div>
      <div class="modal__block">
        <div class="form-actions">
          <a href="#" class="js-close-modal"><?php print t('Back to main page'); ?></a>
        </div>
      </div>
    </div>
  <?php endforeach; ?>
<?php endif; ?><commit_msg>Fix lists and spacing on partner modal.<commit_after><ul class="list -compacted">
  <?php if (isset($modals['faq'])): ?>
    <li><a href="#" data-modal-href="#modal-faq"><?php print t('FAQs'); ?></a></li>
  <?php endif; ?>

  <?php if (isset($modals['more_facts'])): ?>
    <li><a href="#" data-modal-href="#modal-facts"><?php print t('Learn more about @issue', array('@issue' => $modals['issue'])); ?></a></li>
  <?php endif; ?>

  <?php if (isset($modals['partner_info'])): ?>
  <?php foreach ($modals['partner_info'] as $delta => $partner): ?>
    <li>
      <a href="#" data-modal-href="#modal-partner-<?php print $delta; ?>">
        <?php print t('Why we &lt;3 @partner', array('@partner' => $partner['name'])); ?> <?php  ?>
      </a>
  <?php endforeach; ?>
  <?php endif; ?>
</ul>

<?php if (isset($modals['faq'])): ?>
<div data-modal id="modal-faq" role="dialog">
  <h2 class="heading -banner"><?php print t('FAQs'); ?></h2>
  <div class="modal__block with-lists">
    <?php foreach ($modals['faq'] as $item): ?>
      <h4><?php print $item['header']; ?></h4>
      <?php print $item['copy'] ?>
    <?php endforeach; ?>
  </div>
  <div class="modal__block">
    <div class="form-actions">
      <a href="#" class="js-close-modal"><?php print t('Back to main page'); ?></a>
    </div>
  </div>
</div>
<?php endif; ?>

<?php if (isset($modals['more_facts'])): ?>
<div data-modal id="modal-facts" role="dialog">
  <h2 class="heading -banner"><?php print t('Facts'); ?></h2>
  <div class="modal__block">
    <ul class="list">
      <?php foreach ($modals['more_facts']['facts'] as $key => $fact): ?>
        <li><?php print $fact['fact']; ?><sup><?php print $fact['footnotes']; ?></sup></li>
      <?php endforeach; ?>
    </ul>
  </div>

  <div class="modal__block">
    <section class="footnote">
      <h4 class="js-footnote-toggle"><?php print t('Sources'); ?></h4>
      <ul class="js-footnote-hidden">
        <?php foreach ($modals['more_facts']['sources'] as $key => $source): ?>
          <li><sup><?php print ($key + 1); ?></sup> <?php print $source; ?></li>
        <?php endforeach; ?>
      </ul>
    </section>
  </div>
  <div class="modal__block">
    <div class="form-actions">
      <a href="#" class="js-close-modal"><?php print t('Back to main page'); ?></a>
    </div>
  </div>
</div>
<?php endif; ?>

<?php if (isset($modals['partner_info'])): ?>
  <?php foreach ($modals['partner_info'] as $delta => $partner): ?>
    <div data-modal id="modal-partner-<?php print $delta; ?>" role="dialog">
      <h2 class="heading -banner"><?php print t('We &lt;3 @partner', array('@partner' => $partner['name'])); ?></h2>
      <div class="modal__block with-lists">
        <?php print $partner['copy']; ?>
      </div>
      <?php if (isset($partner['video']) || isset($partner['image'])): ?>
        <div class="modal__block">
          <?php if (isset($partner['video'])): print $partner['video']; ?>
          <?php elseif (isset($partner['image'])): print $partner['image']; endif; ?>
        </div>
      <?php endif; ?>
      <div class="modal__block">
        <div class="form-actions">
          <a href="#" class="js-close-modal"><?php print t('Back to main page'); ?></a>
        </div>
      </div>
    </div>
  <?php endforeach; ?>
<?php endif; ?>
{'fraction_non_alphanumeric': 0.26010378990407296, 'fraction_numerical': 0.004088693190753263, 'mean_word_length': 3.632192279679534, 'pattern_counts': {'":': 0, '<': 233, '<?xml version=': 0, '>': 247, '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': '3955345', 'n_tokens_mistral': 2229, 'n_tokens_neox': 2245, 'n_words': 524}