<commit_before>class HitsController < ApplicationController
  def index
    @site = Site.find_by_abbr!(params[:site_id])
    @hits = @site.aggregated_hits.page(params[:page]).order('count DESC')
  end
  
  def summary
    @site = Site.find_by_abbr!(params[:site_id])
    @errors    = @site.aggregated_errors.page(params[1]).per(10).order('count DESC')
    @archives  = @site.aggregated_archives.page(params[1]).per(10).order('count DESC')
    @redirects = @site.aggregated_redirects.page(params[1]).per(10).order('count DESC')
  end
end<commit_msg>Don't use pagination on summary aggregates<commit_after>class HitsController < ApplicationController
  def index
    @site = Site.find_by_abbr!(params[:site_id])
    @hits = @site.aggregated_hits.page(params[:page]).order('count DESC')
  end
  
  def summary
    @site = Site.find_by_abbr!(params[:site_id])
    @errors    = @site.aggregated_errors.order('count DESC').take(10)
    @archives  = @site.aggregated_archives.order('count DESC').take(10)
    @redirects = @site.aggregated_redirects.order('count DESC').take(10)
  end
end
{'fraction_non_alphanumeric': 0.15, 'fraction_numerical': 0.013888888888888888, 'mean_word_length': 5.039106145251397, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '3609212', 'n_tokens_mistral': 392, 'n_tokens_neox': 375, 'n_words': 56}