<commit_before><%
  params = request.params.except(:action, :controller, :model_name)
  query = params[:query]
  filter = params[:filter]
  sort = params[:sort]
  sort_reverse = params[:sort_reverse]

%>
      <div id="contentHeader">
        <h2><%= @page_name %></h2>
      </div>
<%= render(:partial => 'layouts/rails_admin/flash', :locals => {:flash => flash}) -%>
      <div id="contentMainModules">
        <div class="searchBox">
          <form action="#" method="get">
            <fieldset>
              <input type="text" id="searchBar" name="query" value="<%= query %>"/>
              <input type="submit" id="searchbar_btn" value="<%= t("admin.list.search_btn")%>" />
              <input type="hidden" value="<%= params["id"] %>" name="id">
            </fieldset>
          </form>
        </div>
        <table class="grid">
          <thead>
            <tr>
              <% property_name = "created_at"%>
              <th class="dateTime <%= sort == property_name.to_s ? "selected" : nil %>" >
                <% sort_location = params.merge(:sort => :created_at).reject{|key, value| key.to_sym == :sort_reverse}.merge(sort == property_name && sort_reverse != "true" ? {:sort_reverse => "true"} : {}) %>
                <%= link_to("DATE/TIME", sort_location, :ref => sort_location.to_json, :class => "historySort") %>
                <% if sort == property_name.to_s %>
                <% image_name = sort_reverse ? "bullet_arrow_down.png" : "bullet_arrow_up.png"%>
                <%= link_to image_tag(image_name), sort_location, :ref => sort_location.to_json, :class => "headerSort" %>
                <% end %>
              </th>
              <% property_name = "username"%>
              <th class="smallString <%= sort == property_name.to_s ? "selected" : nil %>" >
                <% sort_location = params.merge(:sort => property_name).reject{|key, value| key.to_sym == :sort_reverse}.merge(sort == property_name && sort_reverse != "true" ? {:sort_reverse => "true"} : {}) %>
                <%= link_to("USER", sort_location, :ref => sort_location.to_json, :class => "historySort") %>
                <% if sort == property_name.to_s %>
                <% image_name = sort_reverse ? "bullet_arrow_down.png" : "bullet_arrow_up.png"%>
                <%= link_to image_tag(image_name), sort_location, :ref => sort_location.to_json, :class => "headerSort" %>
                <% end %>
              </th>
              <% if @general %>
              <% property_name = "item"%>
              <th class="int <%= sort == property_name.to_s ? "selected" : nil %>" >
                <% sort_location = params.merge(:sort => property_name).reject{|key, value| key.to_sym == :sort_reverse}.merge(sort == property_name && sort_reverse != "true" ? {:sort_reverse => "true"} : {}) %>
                <%= link_to("ITEM", sort_location, :ref => sort_location.to_json, :class => "historySort") %>
                <% if sort == property_name.to_s %>
                <% image_name = sort_reverse ? "bullet_arrow_down.png" : "bullet_arrow_up.png"%>
                <%= link_to image_tag(image_name), sort_location, :ref => sort_location.to_json, :class => "headerSort" %>
                <% end %>
              </th>
              <% end %>
              <% property_name = "message"%>
              <th class="smallString <%= sort == property_name.to_s ? "selected" : nil %>" >
                <% sort_location = params.merge(:sort => property_name).reject{|key, value| key.to_sym == :sort_reverse}.merge(sort == property_name && sort_reverse != "true" ? {:sort_reverse => "true"} : {}) %>
                <%= link_to("ACTION", sort_location, :ref => sort_location.to_json, :class => "historySort") %>
                <% if sort == property_name.to_s %>
                <% image_name = sort_reverse ? "bullet_arrow_down.png" : "bullet_arrow_up.png"%>
                <%= link_to image_tag(image_name), sort_location, :ref => sort_location.to_json, :class => "headerSort" %>
                <% end %>
              </th>
            </tr>
          </thead>
          <tbody>
            <% @history.each_with_index do |object, index| %>
            <tr class="<%= index % 2 == 0 ? "odd" : "even" %>">
              <td class="dateTime">
                <% unless object.created_at.nil? %>
                <%= l(object.created_at, :format => :long, :default => l(object.created_at, :format => :long, :locale => :en)) %>
                <% end %>
              </td>
              <td class="smallString">
                <%= object.username %>
              </td>
              <td class="int">
                <% unless object.message.match("Destroy") %>
                <%= link_to object.item, rails_admin_show_history_path(:id => object.item), :class => "historyLink"%>
                <% else %>
                <%= object.item %>
                <% end %>
              </td>
              <td class="smallString">
                <%= object.message %>
              </td>
            </tr><commit_msg>fix table header sort bullet images in history view<commit_after><%
  params = request.params.except(:action, :controller, :model_name)
  query = params[:query]
  filter = params[:filter]
  sort = params[:sort]
  sort_reverse = params[:sort_reverse]

%>
      <div id="contentHeader">
        <h2><%= @page_name %></h2>
      </div>
<%= render(:partial => 'layouts/rails_admin/flash', :locals => {:flash => flash}) -%>
      <div id="contentMainModules">
        <div class="searchBox">
          <form action="#" method="get">
            <fieldset>
              <input type="text" id="searchBar" name="query" value="<%= query %>"/>
              <input type="submit" id="searchbar_btn" value="<%= t("admin.list.search_btn")%>" />
              <input type="hidden" value="<%= params["id"] %>" name="id">
            </fieldset>
          </form>
        </div>
        <table class="grid">
          <thead>
            <tr>
              <% property_name = "created_at"%>
              <th class="dateTime <%= sort == property_name.to_s ? "selected" : nil %>" >
                <% sort_location = params.merge(:sort => :created_at).reject{|key, value| key.to_sym == :sort_reverse}.merge(sort == property_name && sort_reverse != "true" ? {:sort_reverse => "true"} : {}) %>
                <%= link_to("DATE/TIME", sort_location, :ref => sort_location.to_json, :class => "historySort") %>
                <% if sort == property_name.to_s %>
                <%= link_to sort_arrow_image(sort_reverse), sort_location, :ref => sort_location.to_json, :class => "headerSort" %>
                <% end %>
              </th>
              <% property_name = "username"%>
              <th class="smallString <%= sort == property_name.to_s ? "selected" : nil %>" >
                <% sort_location = params.merge(:sort => property_name).reject{|key, value| key.to_sym == :sort_reverse}.merge(sort == property_name && sort_reverse != "true" ? {:sort_reverse => "true"} : {}) %>
                <%= link_to("USER", sort_location, :ref => sort_location.to_json, :class => "historySort") %>
                <% if sort == property_name.to_s %>
                <%= link_to sort_arrow_image(sort_reverse), sort_location, :ref => sort_location.to_json, :class => "headerSort" %>
                <% end %>
              </th>
              <% if @general %>
              <% property_name = "item"%>
              <th class="int <%= sort == property_name.to_s ? "selected" : nil %>" >
                <% sort_location = params.merge(:sort => property_name).reject{|key, value| key.to_sym == :sort_reverse}.merge(sort == property_name && sort_reverse != "true" ? {:sort_reverse => "true"} : {}) %>
                <%= link_to("ITEM", sort_location, :ref => sort_location.to_json, :class => "historySort") %>
                <% if sort == property_name.to_s %>
                <%= link_to sort_arrow_image(sort_reverse), sort_location, :ref => sort_location.to_json, :class => "headerSort" %>
                <% end %>
              </th>
              <% end %>
              <% property_name = "message"%>
              <th class="smallString <%= sort == property_name.to_s ? "selected" : nil %>" >
                <% sort_location = params.merge(:sort => property_name).reject{|key, value| key.to_sym == :sort_reverse}.merge(sort == property_name && sort_reverse != "true" ? {:sort_reverse => "true"} : {}) %>
                <%= link_to("ACTION", sort_location, :ref => sort_location.to_json, :class => "historySort") %>
                <% if sort == property_name.to_s %>
                <%= link_to sort_arrow_image(sort_reverse), sort_location, :ref => sort_location.to_json, :class => "headerSort" %>
                <% end %>
              </th>
            </tr>
          </thead>
          <tbody>
            <% @history.each_with_index do |object, index| %>
            <tr class="<%= index % 2 == 0 ? "odd" : "even" %>">
              <td class="dateTime">
                <% unless object.created_at.nil? %>
                <%= l(object.created_at, :format => :long, :default => l(object.created_at, :format => :long, :locale => :en)) %>
                <% end %>
              </td>
              <td class="smallString">
                <%= object.username %>
              </td>
              <td class="int">
                <% unless object.message.match("Destroy") %>
                <%= link_to object.item, rails_admin_show_history_path(:id => object.item), :class => "historyLink"%>
                <% else %>
                <%= object.item %>
                <% end %>
              </td>
              <td class="smallString">
                <%= object.message %>
              </td>
            </tr>
{'fraction_non_alphanumeric': 0.1777869020734962, 'fraction_numerical': 0.000821186614658181, 'mean_word_length': 2.062873310279786, 'pattern_counts': {'":': 0, '<': 179, '<?xml version=': 0, '>': 245, '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': '1782596', 'n_tokens_mistral': 3060, 'n_tokens_neox': 2815, 'n_words': 539}