<commit_before><?php
/**
 * @file
 * Reportback confirmation/permalink page.
 *
 * Available variables:
 * - $rb_image                           : Reportback image.
 * - $node->title                        : Title of the campaign
 * - $is_owner                           : Used to determine if the curernt logged in user is the user who submitted the rb.
 * - $title                              : Title of the permalink/confirmation page.
 * - $subtitle                           : Subtitle of the permalin/confirmation page.
 * - $copy_vars['owners_rb_scholarship'] : Subtitle of the reportback confirmation page.
 * - $copy_vars['owners_rb_important']   : Title of the why I participated section
 * - $reportback->why_participated       : Why I participated copy of the reportback
 * - $reportback->quantity               : Reportback quanitity
 * - $reportback->quantity_label         : Quantity lable
 * - $reportback->caption                : Caption associated with the image.
 * - $user->first_name                   : User's first name
 * - $node->fact_problem['fact']
 * - $node->fact_solution['fact']
 *
 */
?>
<article class="reportback__permalink">
  <header role="banner" class="header ">
    <div class="wrapper">
      <h1 class="header__title"><?php print $title; ?></h1>
      <p class="header__subtitle"><?php print $subtitle; ?></p>
    </div>
  </header>

  <div class="container -padded -purple">
    <div class="wrapper">
      <div class="card">
        <div class="card__column">
          <?php print $rb['image']; ?>
          <?php if ($rb['caption']): ?>
            <div class="caption">
              <?php print check_plain($rb['caption']); ?> - <?php print check_plain($user->first_name); ?>
            </div>
          <?php endif; ?>
        </div>
        <div class="card__column">
          <div class="wrapper">
          <!--Show user the reportback confirmation page -->
          <?php if ($is_owner): ?>
            <?php if ($share_enabled): ?>
              <div class="cta -share">
                <div class="wrapper">
                  <p class="cta__message"><?php print $copy_vars['owners_rb_social_cta']; ?></p>
                </div>
                <ul>
                  <li><a class="social-icon -facebook js-share-link" href="<?php print $fb_link; ?>"><span>Facebook</span></a></li>
                  <li><a class="social-icon -twitter js-share-link" href="<?php print $twitter_link; ?>"><span>Twitter</span></a></li>
                  <li><a class="social-icon -tumblr js-share-link" href="<?php print $tumblr_link; ?>"><span>Tumblr</span></a></li>
                </ul>
              </div>
            <?php endif; ?>
            <div class="card__copy -share">
              <h1><?php print $node->title; ?></h1>
              <p class="heading -gamma"><?php print $reportback->quantity; ?> <?php print $reportback->quantity_label; ?></p>

              <h3><?php print $copy_vars['owners_rb_important']; ?></h3>
              <p><?php print check_plain($reportback->why_participated); ?></p>
              <?php if ($share_enabled): ?>
                <h3 class="show-at-medium"><?php print $copy_vars['owners_rb_social_header']; ?></h3>
                <p  class="show-at-medium"><?php print $copy_vars['owners_rb_social_copy']; ?></p>
              <?php endif; ?>
            </div>
          <!--Show non-owner the call to action page -->
          <?php else: ?>
            <div class="card__copy">
              <p class="heading -alpha"><?php print $node->title; ?></p>

              <?php if ($node->fact_problem['fact']): ?>
                <h3><?php print t('The Problem'); ?></h3>
                <p><?php print $node->fact_problem['fact']; ?></p>
              <?php endif; ?>

              <h3><?php print t('The Solution'); ?></h3>
              <?php if ($node->fact_solution['fact']): ?>
                <p><?php print $node->fact_solution['fact']; ?></p>
              <?php elseif ($node->solution_copy): ?>
                <?php print $node->solution_copy; ?>
              <?php endif; ?>
            </div>
            <div class="cta">
              <div class="wrapper">
                <?php if ($node->secondary_call_to_action): ?>
                  <p class="cta__message"><?php print $node->secondary_call_to_action; ?></p>
                <?php endif; ?>
                <a href="<?php print $link ?>" class="button">do it</a>
              </div>
            </div>
          <?php endif; ?>
          </div>
        </div>
      </div>
    </div>
  </div>
</article>
<commit_msg>removed unused class<commit_after><?php
/**
 * @file
 * Reportback confirmation/permalink page.
 *
 * Available variables:
 * - $rb_image                           : Reportback image.
 * - $node->title                        : Title of the campaign
 * - $is_owner                           : Used to determine if the curernt logged in user is the user who submitted the rb.
 * - $title                              : Title of the permalink/confirmation page.
 * - $subtitle                           : Subtitle of the permalin/confirmation page.
 * - $copy_vars['owners_rb_scholarship'] : Subtitle of the reportback confirmation page.
 * - $copy_vars['owners_rb_important']   : Title of the why I participated section
 * - $reportback->why_participated       : Why I participated copy of the reportback
 * - $reportback->quantity               : Reportback quanitity
 * - $reportback->quantity_label         : Quantity lable
 * - $reportback->caption                : Caption associated with the image.
 * - $user->first_name                   : User's first name
 * - $node->fact_problem['fact']
 * - $node->fact_solution['fact']
 *
 */
?>
<article class="reportback__permalink">
  <header role="banner" class="header ">
    <div class="wrapper">
      <h1 class="header__title"><?php print $title; ?></h1>
      <p class="header__subtitle"><?php print $subtitle; ?></p>
    </div>
  </header>

  <div class="container -padded -purple">
    <div class="wrapper">
      <div class="card">
        <div class="card__column">
          <?php print $rb['image']; ?>
          <?php if ($rb['caption']): ?>
            <div class="caption">
              <?php print check_plain($rb['caption']); ?> - <?php print check_plain($user->first_name); ?>
            </div>
          <?php endif; ?>
        </div>
        <div class="card__column">
          <div class="wrapper">
          <!--Show user the reportback confirmation page -->
          <?php if ($is_owner): ?>
            <?php if ($share_enabled): ?>
              <div class="cta -share">
                <div class="wrapper">
                  <p class="cta__message"><?php print $copy_vars['owners_rb_social_cta']; ?></p>
                </div>
                <ul>
                  <li><a class="social-icon -facebook js-share-link" href="<?php print $fb_link; ?>"><span>Facebook</span></a></li>
                  <li><a class="social-icon -twitter js-share-link" href="<?php print $twitter_link; ?>"><span>Twitter</span></a></li>
                  <li><a class="social-icon -tumblr js-share-link" href="<?php print $tumblr_link; ?>"><span>Tumblr</span></a></li>
                </ul>
              </div>
            <?php endif; ?>
            <div class="card__copy">
              <h1><?php print $node->title; ?></h1>
              <p class="heading -gamma"><?php print $reportback->quantity; ?> <?php print $reportback->quantity_label; ?></p>

              <h3><?php print $copy_vars['owners_rb_important']; ?></h3>
              <p><?php print check_plain($reportback->why_participated); ?></p>
              <?php if ($share_enabled): ?>
                <h3 class="show-at-medium"><?php print $copy_vars['owners_rb_social_header']; ?></h3>
                <p  class="show-at-medium"><?php print $copy_vars['owners_rb_social_copy']; ?></p>
              <?php endif; ?>
            </div>
          <!--Show non-owner the call to action page -->
          <?php else: ?>
            <div class="card__copy">
              <p class="heading -alpha"><?php print $node->title; ?></p>

              <?php if ($node->fact_problem['fact']): ?>
                <h3><?php print t('The Problem'); ?></h3>
                <p><?php print $node->fact_problem['fact']; ?></p>
              <?php endif; ?>

              <h3><?php print t('The Solution'); ?></h3>
              <?php if ($node->fact_solution['fact']): ?>
                <p><?php print $node->fact_solution['fact']; ?></p>
              <?php elseif ($node->solution_copy): ?>
                <?php print $node->solution_copy; ?>
              <?php endif; ?>
            </div>
            <div class="cta">
              <div class="wrapper">
                <?php if ($node->secondary_call_to_action): ?>
                  <p class="cta__message"><?php print $node->secondary_call_to_action; ?></p>
                <?php endif; ?>
                <a href="<?php print $link ?>" class="button">do it</a>
              </div>
            </div>
          <?php endif; ?>
          </div>
        </div>
      </div>
    </div>
  </div>
</article>

{'fraction_non_alphanumeric': 0.1734805421950153, 'fraction_numerical': 0.0026235242675994755, 'mean_word_length': 1.905366783105748, 'pattern_counts': {'":': 0, '<': 257, '<?xml version=': 0, '>': 301, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1798432', 'n_tokens_mistral': 2651, 'n_tokens_neox': 2613, 'n_words': 621}