<commit_before><div class="squatch-referrals-title">
  Referral Details
</div>

<div
  class="squatch-referrals"
  id="squatch-referrals-scroll"
  data-scroll-offset="0"
  data-scroll-limit="{{#if referredBy.dateReferred}}{{math rewardsLength '+ 1'}}{{else}}{{math rewardsLength}}{{/if}}">

  <table class="squatch-referrals-list">
    {{#if referredBy.referredByUser}}
      <tr id="0">
        {{#block
          "referredByUser"
          referral=referredBy.referredByUser
          description="Referring User"
          heading="Referred You"
          paid=1
          referred=""
          dateReferred=referredBy.dateReferred}}

          {{!-- TODO: Switch the second line below out with the line directly below when we've updated to Handlebars.java 2.2.0 --}}
          {{!-- {{> (stringFormat 'programs/%s/referral' programDetails.referredRewardDetails.rewardType)}} --}}
          {{> programs/PCT_DISCOUNT/referral}}
        {{/block}}
      </tr>
    {{/if}}

    {{#each referrals}}
      <tr id="{{#if ../referredBy.dateReferred}}{{math @index '+ 1'}}{{else}}{{math @index}}{{/if}}">
        {{#block
          "referredUser"
          referral=referredUser
          referred="Referred User"
          description=""
          heading=""
          programDetails=../programDetails}}

          {{!-- TODO: Switch the second line below out with the line directly below when we've updated to Handlebars.java 2.2.0 --}}
          {{!-- {{> (stringFormat 'programs/%s/referral' programDetails.referredRewardDetails.rewardType)}} --}}
          {{> programs/PCT_DISCOUNT/referral}}
        {{/block}}
      </tr>
    {{/each}}

    {{#each rewardsBySource.MANUAL}}
      <tr id="{{math @index '+ 1 + ' referralsLength}}">
        {{#block
          "arbitraryReward"
          description="No Referral"
          heading="Applied"
          discountPercent=discountPercent
          dateGiven=dateGiven
          unit=unit}}

          {{> programs/PCT_DISCOUNT/reward}}
        {{/block}}
      </tr>
    {{/each}}
  </table><commit_msg>modified referrals.hbs<commit_after><div class="squatch-referrals-title">
  Referral Details
</div>

<div
  class="squatch-referrals"
  id="squatch-referrals-scroll"
  data-scroll-offset="0"
  data-scroll-limit="{{#if referredBy.dateReferred}}{{math rewardsLength '+ 1'}}{{else}}{{math rewardsLength}}{{/if}}">

  <table class="squatch-referrals-list">
    {{#if referredBy.referredByUser}}
      <tr id="0">
        {{#block
          "referredByUser"
          referral=referredBy.referredByUser
          description="Referring User"
          heading="Referred You"
          paid=1
          referred=""
          dateReferred=referredBy.dateReferred}}

          {{!-- TODO: Switch the second line below out with the line directly below when we've updated to Handlebars.java 2.2.0 --}}
          {{!-- {{> (stringFormat 'programs/%s/referral' programDetails.referredRewardDetails.rewardType)}} --}}
          {{> programs/PCT_DISCOUNT/referral}}
        {{/block}}
      </tr>
    {{/if}}

    {{#each referrals}}
      <tr id="{{#if ../referredBy.dateReferred}}{{math @index '+ 1'}}{{else}}{{math @index}}{{/if}}">
        {{#block
          "referredUser"
          referral=referredUser
          referred="Referred User"
          description=""
          heading=""
          programDetails=../programDetails}}

          {{!-- TODO: Switch the second line below out with the line directly below when we've updated to Handlebars.java 2.2.0 --}}
          {{!-- {{> (stringFormat 'programs/%s/referral' programDetails.referredRewardDetails.rewardType)}} --}}
          {{> programs/PCT_DISCOUNT/referral}}
        {{/block}}
      </tr>
    {{/each}}

    {{#each rewardsBySource.MANUAL}}
      <tr id="{{math @index '+ 1 + ' referralsLength}}">
        {{#block
          "arbitraryReward"
          description="No Referral"
          heading="Applied"
          discountPercent=discountPercent
          assignedCredit=assignedCredit
          dateGiven=dateGiven
          unit=unit}}

          {{> programs/PCT_DISCOUNT/reward}}
        {{/block}}
      </tr>
    {{/each}}
  </table>
{'fraction_non_alphanumeric': 0.16140688990604674, 'fraction_numerical': 0.005781739339918092, 'mean_word_length': 2.454242928452579, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 35, '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': '321472', 'n_tokens_mistral': 1288, 'n_tokens_neox': 1227, 'n_words': 233}