<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="{{nonCancelledReferralAndRewardsListLength}}">

  <table class="squatch-referrals-list">
    {{#if referredBy.referredByUser}}
      {{#unless referredBy.hasCancelledReferredReward}}
        <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/CREDIT/referral}}
          {{/block}}
        </tr>
      {{/unless}}
    {{/if}}

    {{referrals}}

    {{#each referrals}}
      {{#unless hasCancelledReferrerReward}}
        <tr id="{{#if ../referredBy.dateReferred}}{{#if ../referredBy.hasCancelledReferredReward}}{{math @index}}{{else}}{{math @index '+ 1'}}{{/if}}{{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/CREDIT/referral}}
          {{/block}}
        </tr>
      {{/unless}}
    {{/each}}

    {{#each rewardsBySource.MANUAL}}
      {{#unless isCancelled}}
        <tr id="{{#if ../referredBy.dateReferred}}{{#if ../referredBy.hasCancelledReferredReward}}{{math @index '+' referralsLength}}{{else}}{{math @index '+ 1 +' referralsLength}}{{/if}}{{else}}{{math @index '+' referralsLength}}{{/if}}">
          {{#block
            "arbitraryReward"
            description="No Referral"
            heading="Applied"
            unit=unit
            value=value<commit_msg>EM - support changeable reward values<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="{{nonCancelledReferralAndRewardsListLength}}">

  <table class="squatch-referrals-list">
    {{#if referredBy.referredByUser}}
      {{#unless referredBy.hasCancelledReferredReward}}
        <tr id="0">
          {{#block
            "referredByUser"
            referral=referredBy.referredByUser
            description="Referring User"
            heading="Referred You"
            paid=1
            referred=""
            reward=referredBy.referredReward
            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/CREDIT/referral}}
          {{/block}}
        </tr>
      {{/unless}}
    {{/if}}

    {{referrals}}

    {{#each referrals}}
      {{#unless hasCancelledReferrerReward}}
        <tr id="{{#if ../referredBy.dateReferred}}{{#if ../referredBy.hasCancelledReferredReward}}{{math @index}}{{else}}{{math @index '+ 1'}}{{/if}}{{else}}{{math @index}}{{/if}}">
          {{#block
            "referredUser"
            referral=referredUser
            referred="Referred User"
            description=""
            heading=""
            reward=referrerReward
            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/CREDIT/referral}}
          {{/block}}
        </tr>
      {{/unless}}
    {{/each}}

    {{#each rewardsBySource.MANUAL}}
      {{#unless isCancelled}}
        <tr id="{{#if ../referredBy.dateReferred}}{{#if ../referredBy.hasCancelledReferredReward}}{{math @index '+' referralsLength}}{{else}}{{math @index '+ 1 +' referralsLength}}{{/if}}{{else}}{{math @index '+' referralsLength}}{{/if}}">
          {{#block
            "arbitraryReward"
            description="No Referral"
            heading="Applied"
            unit=unit
            value=value
{'fraction_non_alphanumeric': 0.16364772017489068, 'fraction_numerical': 0.004580470539246304, 'mean_word_length': 2.466089466089466, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 29, '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': '2724515', 'n_tokens_mistral': 1487, 'n_tokens_neox': 1411, 'n_words': 251}