<commit_before>class FlagLogController < ApplicationController
  def index
    @flag_logs = FlagLog.all.order('created_at DESC').includes(:post, :user).paginate(:page => params[:page], :per_page => 100)
  end
end<commit_msg>Speed up prettier flag log view<commit_after>class FlagLogController < ApplicationController
  def index
    @flag_logs = FlagLog.all.order('created_at DESC').includes(:post => [:feedbacks => [:user, :api_key]]).includes(:user).paginate(:page => params[:page], :per_page => 100)
    @sites = Site.where(:id => @flag_logs.map(&:post).map(&:site_id)).to_a
  end
end
{'fraction_non_alphanumeric': 0.1635434412265758, 'fraction_numerical': 0.010221465076660987, 'mean_word_length': 6.170731707317073, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 10, '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': '7304992', 'n_tokens_mistral': 196, 'n_tokens_neox': 188, 'n_words': 37}