<commit_before><?php
/**
 * Returns the HTML for Static Content pages.
 *
 * Available Variables
 * - $title: Title for the page (string).
 * - $subtitle: Subtitle for the page (string).
 */
?>

<section class="static_content-wrapper">
  <article id="node-<?php print $node->nid; ?>" class="<?php print $classes; ?> clearfix"<?php print $attributes; ?>>

    <header role="banner" class="-basic<?php if (isset($sponsors[0]['display'])): print ' -sponsored'; endif; ?>">
      <div class="wrapper">
        <h1 class="__title"><?php print $title; ?></h1>
        <?php if (isset($subtitle)): ?>
        <h2 class="__subtitle"><?php print $subtitle; ?></h2>
        <?php endif; ?>

        <?php if (isset($sponsors[0]['display'])): ?>
        <div class="sponsor">
          <p class="__copy">Powered by</p>
          <?php foreach ($sponsors as $key => $sponsor) :?>
            <?php if (isset($sponsor['display'])): print $sponsor['display']; endif; ?>
          <?php endforeach; ?>
        </div>
        <?php endif; ?>
      </div>
    </header>

    <?php if (isset($intro)): ?>
      <div class="intro-wrapper">
        <div class="intro<?php if (!isset($intro_title)): print ' no-title'; endif; ?>">
          <?php if (isset($intro_title)): ?>
            <h2><?php print $intro_title; ?></h2>
          <?php endif; ?>
            <div class="intro-content<?php if (isset($intro_image) OR isset($intro_video)): print " intro-content-half-width"; endif; ?>"><?php print $intro; ?></div>
          <?php if (isset($intro_image)): ?>
            <?php print $intro_image; ?>
          <?php elseif (isset($intro_video)): ?>
            <?php print $intro_video; ?>
          <?php endif; ?>
        </div>
      </div>
    <?php endif; ?>

    <?php if (isset($call_to_action)): ?>
      <div class="cta">
        <div class="wrapper">
          <h2 class="__message"><?php print $call_to_action; ?></h2>
          <?php print $cta_link; ?>
        </div>
      </div>
    <?php endif; ?>

    <?php if (!empty($content['field_blocks'])): ?>
    <?php print render($content['field_blocks']); ?>
    <?php endif; ?>

    <?php if (!empty($galleries)): ?>
      <div class="gallery-wrapper">
        <?php foreach ($galleries as $gallery): ?>
          <?php if (isset($gallery['title'])): ?>
            <h2 class="gallery-title"><?php print $gallery['title']; ?></h2>
          <?php endif; ?>
          <div class="gallery">
            <?php foreach ($gallery['items'] as $gallery_item): ?>
              <div class="gallery-item">
                <?php if (isset($gallery_item['image'])): ?>
                  <a href="<?php print $gallery_item['image_url']; ?>"><?php print $gallery_item['image']; ?></a>
                <?php endif; ?>
                <?php if (isset($gallery_item['image_title'])): ?>
                  <h3 class="title"><?php print $gallery_item['image_title']; ?></h3>
                <?php endif; ?>
                <?php if (isset($gallery_item['image_description'])): ?><commit_msg>added check to see if link url is set and not blank<commit_after><?php
/**
 * Returns the HTML for Static Content pages.
 *
 * Available Variables
 * - $title: Title for the page (string).
 * - $subtitle: Subtitle for the page (string).
 */
?>

<section class="static_content-wrapper">
  <article id="node-<?php print $node->nid; ?>" class="<?php print $classes; ?> clearfix"<?php print $attributes; ?>>

    <header role="banner" class="-basic<?php if (isset($sponsors[0]['display'])): print ' -sponsored'; endif; ?>">
      <div class="wrapper">
        <h1 class="__title"><?php print $title; ?></h1>
        <?php if (isset($subtitle)): ?>
        <h2 class="__subtitle"><?php print $subtitle; ?></h2>
        <?php endif; ?>

        <?php if (isset($sponsors[0]['display'])): ?>
        <div class="sponsor">
          <p class="__copy">Powered by</p>
          <?php foreach ($sponsors as $key => $sponsor) :?>
            <?php if (isset($sponsor['display'])): print $sponsor['display']; endif; ?>
          <?php endforeach; ?>
        </div>
        <?php endif; ?>
      </div>
    </header>

    <?php if (isset($intro)): ?>
      <div class="intro-wrapper">
        <div class="intro<?php if (!isset($intro_title)): print ' no-title'; endif; ?>">
          <?php if (isset($intro_title)): ?>
            <h2><?php print $intro_title; ?></h2>
          <?php endif; ?>
            <div class="intro-content<?php if (isset($intro_image) OR isset($intro_video)): print " intro-content-half-width"; endif; ?>"><?php print $intro; ?></div>
          <?php if (isset($intro_image)): ?>
            <?php print $intro_image; ?>
          <?php elseif (isset($intro_video)): ?>
            <?php print $intro_video; ?>
          <?php endif; ?>
        </div>
      </div>
    <?php endif; ?>

    <?php if (isset($call_to_action)): ?>
      <div class="cta">
        <div class="wrapper">
          <h2 class="__message"><?php print $call_to_action; ?></h2>
          <?php print $cta_link; ?>
        </div>
      </div>
    <?php endif; ?>

    <?php if (!empty($content['field_blocks'])): ?>
    <?php print render($content['field_blocks']); ?>
    <?php endif; ?>

    <?php if (!empty($galleries)): ?>
      <div class="gallery-wrapper">
        <?php foreach ($galleries as $gallery): ?>
          <?php if (isset($gallery['title'])): ?>
            <h2 class="gallery-title"><?php print $gallery['title']; ?></h2>
          <?php endif; ?>
          <div class="gallery">
            <?php foreach ($gallery['items'] as $gallery_item): ?>
              <div class="gallery-item">
                <?php if (isset($gallery_item['image'])): ?>
                  <?php if (isset($gallery_item['image_title']) AND $gallery_item['image_url'] !== '') : ?>
                    <a href="<?php print $gallery_item['image_url']; ?>"><?php print $gallery_item['image']; ?></a>
                  <?php else : ?>
                    <?php print $gallery_item['image']; ?>
                  <?php endif; ?>
                <?php endif; ?>
                <?php if (isset($gallery_item['image_title'])): ?>
                  <h3 class="title"><?php print $gallery_item['image_title']; ?></h3>
                <?php endif; ?>
                <?php if (isset($gallery_item['image_description'])): ?>
{'fraction_non_alphanumeric': 0.20940915571043878, 'fraction_numerical': 0.004435292254078885, 'mean_word_length': 2.4845474613686536, 'pattern_counts': {'":': 0, '<': 177, '<?xml version=': 0, '>': 181, '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': '145575', 'n_tokens_mistral': 1983, 'n_tokens_neox': 1878, 'n_words': 463}