<commit_before><% if order.line_items.exists? %>
  <table class="table table-condensed table-bordered line-items" data-hook="line-items">
    <thead>
      <th colspan="2"><%= Spree.t(:name) %></th>
      <th><%= Spree.t(:price) %></th>
      <th><%= Spree.t(:quantity) %></th>
      <th><%= Spree.t(:total_price) %></th>
      <th class="orders-actions" data-hook="admin_order_form_line_items_header_actions"></th>
    </thead>
    <tbody>
      <% order.line_items.each do |item| %>
        <tr class="line-item" id="line-item-<%= item.id %>">
          <td class="line-item-image image">
            <%= mini_image(item.variant, class: "thumbnail") %>
          </td>
          <td class="line-item-name">
            <%= item.variant.product.name %><br><%= "(" + variant_options(item.variant) + ")" unless item.variant.option_values.empty? %>
          </td>
          <td class="line-item-price "><%= item.single_money.to_html %></td>
          <td class="line-item-qty-show ">
            <%= item.quantity %>
          </td>
          <td class="line-item-qty-edit is-hidden">
            <%= number_field_tag :quantity, item.quantity, :min => 0, :class => "line_item_quantity form-control", :size => 5 %>
          </td>
          <td class="line-item-total "><%= line_item_shipment_price(item, item.quantity) %></td>
          <td class="cart-line-item-delete actions actions-4" data-hook="cart_line_item_delete">
            <% if can? :update, item %>
              <%= link_to_with_icon 'save', Spree.t('save'), "#", :class => 'save-line-item btn btn-default btn-sm', :data => { 'line-item-id' => item.id, :action => 'save'}, :title => Spree.t('actions.save'), :style => 'display: none', :no_text => true %>
              <%= link_to_with_icon 'arrow-left', Spree.t('actions.cancel'), "#", :class => 'cancel-line-item btn btn-default btn-sm', :data => {:action => 'cancel'}, :title => Spree.t('actions.cancel'), :style => 'display: none', :no_text => true %>
              <%= link_to_with_icon 'edit', Spree.t('edit'), "#", :class => 'edit-line-item btn btn-default btn-sm', :data => {:action => 'edit'}, :title => Spree.t('edit'), :no_text => true %>
              <%= link_to_with_icon 'delete', Spree.t('delete'), "#", :class => 'delete-line-item btn btn-default btn-sm', :data => { 'line-item-id' => item.id, :action => 'remove'}, :title => Spree.t('delete'), :no_text => true %>
            <% end %>
          </td>
        </tr>
      <% end %>
    </tbody>
  </table>
<% end %><commit_msg>proper locale key on order/line_item view<commit_after><% if order.line_items.exists? %>
  <table class="table table-condensed table-bordered line-items" data-hook="line-items">
    <thead>
      <th colspan="2"><%= Spree.t(:name) %></th>
      <th><%= Spree.t(:price) %></th>
      <th><%= Spree.t(:quantity) %></th>
      <th><%= Spree.t(:total_price) %></th>
      <th class="orders-actions" data-hook="admin_order_form_line_items_header_actions"></th>
    </thead>
    <tbody>
      <% order.line_items.each do |item| %>
        <tr class="line-item" id="line-item-<%= item.id %>">
          <td class="line-item-image image">
            <%= mini_image(item.variant, class: "thumbnail") %>
          </td>
          <td class="line-item-name">
            <%= item.variant.product.name %><br><%= "(" + variant_options(item.variant) + ")" unless item.variant.option_values.empty? %>
          </td>
          <td class="line-item-price "><%= item.single_money.to_html %></td>
          <td class="line-item-qty-show ">
            <%= item.quantity %>
          </td>
          <td class="line-item-qty-edit is-hidden">
            <%= number_field_tag :quantity, item.quantity, :min => 0, :class => "line_item_quantity form-control", :size => 5 %>
          </td>
          <td class="line-item-total "><%= line_item_shipment_price(item, item.quantity) %></td>

          <td class="cart-line-item-delete actions actions-4" data-hook="cart_line_item_delete">
            <% if can? :update, item %>
              <%= link_to_with_icon 'save', Spree.t('actions.save'), "#", :class => 'save-line-item btn btn-default btn-sm', :data => { 'line-item-id' => item.id, :action => 'save'}, :title => Spree.t('actions.save'), :style => 'display: none', :no_text => true %>

              <%= link_to_with_icon 'arrow-left', Spree.t('actions.cancel'), "#", :class => 'cancel-line-item btn btn-default btn-sm', :data => {:action => 'cancel'}, :title => Spree.t('actions.cancel'), :style => 'display: none', :no_text => true %>

              <%= link_to_with_icon 'edit', Spree.t('edit'), "#", :class => 'edit-line-item btn btn-default btn-sm', :data => {:action => 'edit'}, :title => Spree.t('edit'), :no_text => true %>

              <%= link_to_with_icon 'delete', Spree.t('delete'), "#", :class => 'delete-line-item btn btn-default btn-sm', :data => { 'line-item-id' => item.id, :action => 'remove'}, :title => Spree.t('delete'), :no_text => true %>
            <% end %>
          </td>
        </tr>
      <% end %>
    </tbody>
  </table>
<% end %>
{'fraction_non_alphanumeric': 0.22134387351778656, 'fraction_numerical': 0.0015810276679841897, 'mean_word_length': 2.805263157894737, 'pattern_counts': {'":': 0, '<': 113, '<?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': '4438415', 'n_tokens_mistral': 1792, 'n_tokens_neox': 1685, 'n_words': 331}