<commit_before><% content_for :head do -%>
  <%= calendar_date_select_includes %>
<% end -%>

<h1><%= t("listing_orders") %></h1>

<table class="index">
  <thead>
    <tr>
      <th><%= order_by_link :created_at, :text => t("order_date") %></th>
      <th><%= order_by_link :number, :text => t("order_number") %></th>
      <th><%= order_by_link :state, :text => t("status") %></th>
      <th><%= order_by_link ({:user => :email}, :text => t("customer")) %></th>
      <th><%= order_by_link :total, :text =>t("total") %></th>
    </tr>
  </thead>
  <tbody>
  <% @orders.each do |order| %>
    <tr>
      <td><%=order.created_at.to_date%></td>
      <td><%= link_to order.number, object_url(order) %></td>
      <td><%= t(order.state.downcase) %></td>
      <td><%= order.user.email if order.user %></td>
      <td><%= number_to_currency order.total %></td>
    </tr>
  <% end %><commit_msg>removed space to avoid syntax warning (cherry picked from commit d42d2818bc988e8d7592c24d34952e5836e665ac)<commit_after><% content_for :head do -%>
  <%= calendar_date_select_includes %>
<% end -%>

<h1><%= t("listing_orders") %></h1>

<table class="index">
  <thead>
    <tr>
      <th><%= order_by_link :created_at, :text => t("order_date") %></th>
      <th><%= order_by_link :number, :text => t("order_number") %></th>
      <th><%= order_by_link :state, :text => t("status") %></th>
      <th><%= order_by_link({:user => :email}, :text => t("customer")) %></th>
      <th><%= order_by_link :total, :text =>t("total") %></th>
    </tr>
  </thead>
  <tbody>
  <% @orders.each do |order| %>
    <tr>
      <td><%=order.created_at.to_date%></td>
      <td><%= link_to order.number, object_url(order) %></td>
      <td><%= t(order.state.downcase) %></td>
      <td><%= order.user.email if order.user %></td>
      <td><%= number_to_currency order.total %></td>
    </tr>
  <% end %>
{'fraction_non_alphanumeric': 0.25, 'fraction_numerical': 0.017094017094017096, 'mean_word_length': 3.5682926829268293, 'pattern_counts': {'":': 0, '<': 95, '<?xml version=': 0, '>': 107, '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': '4922447', 'n_tokens_mistral': 786, 'n_tokens_neox': 729, 'n_words': 151}