<commit_before><header id="order_tab_summary" data-hook>
  <dl class="additional-info">
    <dt id="order_status" data-hook><%= Spree.t(:status) %>:</dt>
    <dd><span class="state <%= @order.state %>"><%= Spree.t(@order.state, :scope => :order_state) %></span></dd>
    <dt data-hook><%= Spree.t(:subtotal) %>:</dt>
    <dd id='item_total'><%= @order.display_item_total.to_html %></dd>
    <% if checkout_steps.include?("delivery") && @order.ship_total > 0 %>
      <dt data-hook><%= Spree.t(:ship_total) %>:</dt>
      <dd id='item_total'><%= @order.display_ship_total.to_html %></dd>
    <% end %>

    <% if @order.included_tax_total > 0 %>
      <dt data-hook><%= Spree.t(:tax_included) %>:</dt>
      <dd id='included_tax_total'><%= @order.display_included_tax_total.to_html %></dd>
    <% end %>

    <% if @order.additional_tax_total > 0 %>
      <dt data-hook><%= Spree.t(:tax) %>:</dt>
      <dd id='item_total'><%= @order.display_additional_tax_total.to_html %></dd>
    <% end %>

    <dt data-hook><%= Spree.t(:total) %>:</dt>
    <dd id='order_total'><%= @order.display_total.to_html %></dd>

    <% if @order.completed? %>
      <dt><%= Spree.t(:shipment) %>: </dt>
      <dd id='shipment_status'><span class="state <%= @order.shipment_state %>"><%= Spree.t(@order.shipment_state, :scope => :shipment_states, :default => [:missing, "none"]) %></span></dd>
      <dt><%= Spree.t(:payment) %>: </dt>
      <dd id='payment_status'><span class="state <%= @order.payment_state %>"><%= Spree.t(@order.payment_state, :scope => :payment_states, :default => [:missing, "none"]) %></span></dd>
      <dt data-hook><%= Spree.t(:date_completed) %>:</dt>
      <dd id='date_complete'><%= pretty_time(@order.completed_at) %></dd>
    <% end %>
  </dl>
</header><commit_msg>Display negative tax amounts on order summary page too<commit_after><header id="order_tab_summary" data-hook>
  <dl class="additional-info">
    <dt id="order_status" data-hook><%= Spree.t(:status) %>:</dt>
    <dd><span class="state <%= @order.state %>"><%= Spree.t(@order.state, :scope => :order_state) %></span></dd>
    <dt data-hook><%= Spree.t(:subtotal) %>:</dt>
    <dd id='item_total'><%= @order.display_item_total.to_html %></dd>
    <% if checkout_steps.include?("delivery") && @order.ship_total > 0 %>
      <dt data-hook><%= Spree.t(:ship_total) %>:</dt>
      <dd id='item_total'><%= @order.display_ship_total.to_html %></dd>
    <% end %>

    <% if @order.included_tax_total != 0 %>
      <dt data-hook><%= Spree.t(:tax_included) %>:</dt>
      <dd id='included_tax_total'><%= @order.display_included_tax_total.to_html %></dd>
    <% end %>

    <% if @order.additional_tax_total != 0 %>
      <dt data-hook><%= Spree.t(:tax) %>:</dt>
      <dd id='item_total'><%= @order.display_additional_tax_total.to_html %></dd>
    <% end %>

    <dt data-hook><%= Spree.t(:total) %>:</dt>
    <dd id='order_total'><%= @order.display_total.to_html %></dd>

    <% if @order.completed? %>
      <dt><%= Spree.t(:shipment) %>: </dt>
      <dd id='shipment_status'><span class="state <%= @order.shipment_state %>"><%= Spree.t(@order.shipment_state, :scope => :shipment_states, :default => [:missing, "none"]) %></span></dd>
      <dt><%= Spree.t(:payment) %>: </dt>
      <dd id='payment_status'><span class="state <%= @order.payment_state %>"><%= Spree.t(@order.payment_state, :scope => :payment_states, :default => [:missing, "none"]) %></span></dd>
      <dt data-hook><%= Spree.t(:date_completed) %>:</dt>
      <dd id='date_complete'><%= pretty_time(@order.completed_at) %></dd>
    <% end %>
  </dl>
</header>
{'fraction_non_alphanumeric': 0.24895572263993315, 'fraction_numerical': 0.001670843776106934, 'mean_word_length': 4.138769670958512, 'pattern_counts': {'":': 0, '<': 153, '<?xml version=': 0, '>': 167, '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': '2766935', 'n_tokens_mistral': 1440, 'n_tokens_neox': 1303, 'n_words': 229}