<commit_before><% admin_breadcrumb(link_to plural_resource_name(Spree::LegacyUser), spree.admin_users_path) %>
<% admin_breadcrumb(link_to @user.email, edit_admin_user_url(@user)) %>
<% admin_breadcrumb(Spree::StoreCredit.model_name.human) %>


<%= render 'spree/admin/users/sidebar' %>
<%= render 'spree/admin/users/tabs', current: :store_credits %>
<% content_for :page_actions do %>
  <% if can?(:create, Spree::StoreCredit) %>
    <li><%= link_to t('spree.admin.store_credits.add'), new_admin_user_store_credit_path(@user), class: 'button' %></li>
  <% end %>
<% end %>

<% if @store_credits.any? %>
  <% @store_credits.group_by(&:currency).each do |currency, credits| %>
    <fieldset class="sc-current-balance">
      <legend>
        <%= currency %> <%= t('spree.admin.store_credits.current_balance') %>
        <% total = credits.sum(&:amount_remaining) %>
        <%= Spree::Money.new(total, currency: currency) %>
      </legend>

      <table class="sc-table">
        <thead>
          <th class="wrap-text"><%= Spree::StoreCredit.human_attribute_name(:amount_credited) %></th><commit_msg>Remove the currency name from store credit tables<commit_after><% admin_breadcrumb(link_to plural_resource_name(Spree::LegacyUser), spree.admin_users_path) %>
<% admin_breadcrumb(link_to @user.email, edit_admin_user_url(@user)) %>
<% admin_breadcrumb(Spree::StoreCredit.model_name.human) %>


<%= render 'spree/admin/users/sidebar' %>
<%= render 'spree/admin/users/tabs', current: :store_credits %>
<% content_for :page_actions do %>
  <% if can?(:create, Spree::StoreCredit) %>
    <li><%= link_to t('spree.admin.store_credits.add'), new_admin_user_store_credit_path(@user), class: 'button' %></li>
  <% end %>
<% end %>

<% if @store_credits.any? %>
  <% @store_credits.group_by(&:currency).each do |currency, credits| %>
    <fieldset class="sc-current-balance">
      <legend>
        <%= t('spree.admin.store_credits.current_balance') %>
        <% total = credits.sum(&:amount_remaining) %>
        <%= Spree::Money.new(total, currency: currency) %>
      </legend>

      <table class="sc-table">
        <thead>
          <th class="wrap-text"><%= Spree::StoreCredit.human_attribute_name(:amount_credited) %></th>
{'fraction_non_alphanumeric': 0.18586858685868587, 'fraction_numerical': 0.0, 'mean_word_length': 4.804177545691906, 'pattern_counts': {'":': 0, '<': 54, '<?xml version=': 0, '>': 54, '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': '978092', 'n_tokens_mistral': 833, 'n_tokens_neox': 751, 'n_words': 111}