<commit_before><div class="col-sm-12" id='budget-bar-content'>
  <div class="row">
    <div class="progress" id='budget-progress-bar'>
      <% expenditures.each_pair do |type, patient_hashes| %>
        <% patient_hashes.each do |patient| %>
          <div class="progress-bar <%= progress_bar_color type %> expenditure-block" style='<%= progress_bar_width patient[:fund_pledge], limit %>' role='progressbar'>
            <div data-toggle='popover' data-content='<%= budget_bar_expenditure_content(patient) %>' data-placement='bottom' data-html='true' class='expenditure-item'>
              <%= number_to_currency patient[:fund_pledge], precision: 0 %> <%= type %>
            </div>
          </div>
        <% end %>
      <% end %>
    </div>

    <div class="row" id='budget-report'>
      <% expenditures.each_pair do |type, patient_hashes| %>
        <div class="col-sm-4">
          <%= number_to_currency(expenditures[type].map { |h| h[:fund_pledge] }.inject(:+) || 0, precision: 0)  %> <%= type  %> (<%= expenditures[type].count %> patients)
        </div>
      <% end %>
      <div class="col-sm-4">
        <%= number_to_currency(budget_bar_remaining(expenditures, limit), precision: 0) %> remaining
      </div>
    </div>
  </div>
</div>

<script nonce='<%= content_security_policy_script_nonce %>'>
  $(function () {
    $('.expenditure-item').popover()
  })
</script>
<commit_msg>comment out the remaining section for now<commit_after><div class="col-sm-12" id='budget-bar-content'>
  <div class="row">
    <div class="progress" id='budget-progress-bar'>
      <% expenditures.each_pair do |type, patient_hashes| %>
        <% patient_hashes.each do |patient| %>
          <div class="progress-bar <%= progress_bar_color type %> expenditure-block" style='<%= progress_bar_width patient[:fund_pledge], limit %>' role='progressbar'>
            <div data-toggle='popover' data-content='<%= budget_bar_expenditure_content(patient) %>' data-placement='bottom' data-html='true' class='expenditure-item'>
              <%= number_to_currency patient[:fund_pledge], precision: 0 %> <%= type %>
            </div>
          </div>
        <% end %>
      <% end %>
    </div>

    <div class="row" id='budget-report'>
      <% expenditures.each_pair do |type, patient_hashes| %>
        <div class="col-sm-4">
          <%= number_to_currency(expenditures[type].map { |h| h[:fund_pledge] }.inject(:+) || 0, precision: 0)  %> <%= type  %> (<%= expenditures[type].count %> patients)
        </div>
      <% end %>
      <%# TODO Commenting out until the config is ready %>
      <!-- 
      <div class="col-sm-4">
        <%= number_to_currency(budget_bar_remaining(expenditures, limit), precision: 0) %> remaining
      </div>
      -->
    </div>
  </div>
</div>

<script nonce='<%= content_security_policy_script_nonce %>'>
  $(function () {
    $('.expenditure-item').popover()
  })
</script>

{'fraction_non_alphanumeric': 0.187263339070568, 'fraction_numerical': 0.005507745266781412, 'mean_word_length': 3.1873198847262247, 'pattern_counts': {'":': 0, '<': 73, '<?xml version=': 0, '>': 73, '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': '356373', 'n_tokens_mistral': 1024, 'n_tokens_neox': 924, 'n_words': 174}