<commit_before><%- 
  display ||= ''
  linkable_params = params.select{|k,v| k.to_s != 'host'}
-%>
<div class="headerrow" <% unless display.blank? %>style="display: <%= display %>"<% end %>>
  <div class="header icon"><%=t :icon %></div>
  <div class="header photos"><%=t :'sounds.photos_sounds' %></div>
  <div class="header species_guess <%= "order_by #{@order}" if @order_by == 'species_guess' %>">
    <% url = linkable_params.merge(:order_by => 'species_guess') %>
    <% url[:order] = @order == 'desc' ? 'asc' : 'desc' if @order_by == 'species_guess' %>
    <%= link_to t(:species_taxon_name), url %>
  </div>
  <div class="header user">
    <%= t(:observer) %>
  </div>
  <div class="header observed_on <%= "order_by #{@order}" if @order_by == 'observed_on' %>">
    <% url = linkable_params.merge(:order_by => 'observed_on') %>
    <% url[:order] = @order == 'desc' ? 'asc' : 'desc' if @order_by == 'observed_on' %>
    <%= link_to t(:date_observed), url %>
  </div>
  <div class="header place">
    <%= t(:place) %>
  </div>
  <div class="header created_at <%= "order_by #{@order}" if %w(id observations.id created_at).include?(@order_by) %>" style="display: none">
    <% url = linkable_params.merge(:order_by => 'created_at') %>
    <% url[:order] = @order == 'desc' ? 'asc' : 'desc' if %w(id observations.id created_at).include?(@order_by) %>
    <%= link_to t(:date_added), url %>
  </div>
  <div class="header details" style="display: none">
    <%=t :details %><commit_msg>BUGFIX: date sort cols in obs tables weren't working correctly.<commit_after><%- 
  display ||= ''
  linkable_params = params.select{|k,v| k.to_s != 'host'}
-%>
<div class="headerrow" <% unless display.blank? %>style="display: <%= display %>"<% end %>>
  <div class="header icon"><%=t :icon %></div>
  <div class="header photos"><%=t :'sounds.photos_sounds' %></div>
  <div class="header species_guess <%= "order_by #{@order}" if @order_by == 'species_guess' %>">
    <% url = linkable_params.merge(:order_by => 'species_guess') %>
    <% url[:order] = @order == 'desc' ? 'asc' : 'desc' if @order_by == 'species_guess' %>
    <%= link_to t(:species_taxon_name), url %>
  </div>
  <div class="header user">
    <%= t(:observer) %>
  </div>
  <div class="header observed_on <%= "order_by #{@order}" if @order_by == 'observed_on' %>">
    <% order = @order == 'desc' ? 'asc' : 'desc' if @order_by == 'observed_on' %>
    <%= link_to t(:date_observed), url_for_params(:order => order, :order_by => 'observed_on') %>
  </div>
  <div class="header place">
    <%= t(:place) %>
  </div>
  <div class="header created_at <%= "order_by #{@order}" if %w(id observations.id created_at).include?(@order_by) %>" style="display: none">
    <% order = @order == 'desc' ? 'asc' : 'desc' if %w(id observations.id created_at).include?(@order_by) %>
    <%= link_to t(:date_added), url_for_params(:order => order, :order_by => 'created_at') %>
  </div>
  <div class="header details" style="display: none">
    <%=t :details %>
{'fraction_non_alphanumeric': 0.23146292585170342, 'fraction_numerical': 0.0, 'mean_word_length': 4.5565862708719855, 'pattern_counts': {'":': 0, '<': 75, '<?xml version=': 0, '>': 83, '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': '3016777', 'n_tokens_mistral': 1168, 'n_tokens_neox': 1070, 'n_words': 235}