<commit_before>class Trade::StatisticsController < ApplicationController
  layout 'admin'

  def index
  	@start_date = params[:stats_start_date] || Date.today.strftime("01/01/%Y")
  	@end_date = params[:stats_end_date] || Date.today.strftime("%d/%m/%Y")
    @years = (1975..Date.today.year).to_a.reverse
    @total_shipments = Trade::Shipment.count
    @last_updated = Trade::Shipment.maximum(:updated_at).strftime("%d/%m/%Y %H:%M")
    @shipments_uploaded = Trade::Shipment.where(:created_at => @start_date..@end_date).count
    @shipments_amended = Trade::Shipment.where(:updated_at => @start_date..@end_date).count
    @taxon_concepts_in_trade = Trade::Shipment.count(:taxon_concept_id, :distinct => true)
  end

end<commit_msg>reverted change, which wasn't such a great idea after all<commit_after>class Trade::StatisticsController < ApplicationController
  layout 'admin'

  def index
  	@start_date = params[:stats_start_date] || Date.today.strftime("01/01/%Y")
  	@end_date = params[:stats_end_date] || Date.today.strftime("%d/%m/%Y")
    @years = (1975..Date.today.year).to_a.reverse
    @total_shipments = Trade::Shipment.count
    @last_updated = Trade::Shipment.maximum(:updated_at).strftime("%d/%m/%Y %H:%M")
    @shipments_uploaded = Trade::Shipment.where(:created_at => params[:stats_start_date]..params[:stats_end_date]).count
    @shipments_amended = Trade::Shipment.where(:updated_at => params[:stats_start_date]..params[:stats_end_date]).count
    @taxon_concepts_in_trade = Trade::Shipment.count(:taxon_concept_id, :distinct => true)
  end

end
{'fraction_non_alphanumeric': 0.159846547314578, 'fraction_numerical': 0.010230179028132993, 'mean_word_length': 5.745689655172414, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '2758307', 'n_tokens_mistral': 564, 'n_tokens_neox': 538, 'n_words': 72}