<commit_before>class ApplicationController < ActionController::Base
  protect_from_forgery
  include SessionsHelper
  include ActsAsTaggableOn::TagsHelper

  def paginate(likes)
    per_page = params[:per_page] ||= 5
    likes.paginate(page:params[:page], per_page:per_page).order("created_at DESC")
  end

  rescue_from CanCan::AccessDenied do |exception|
    redirect_to root_path, alert: exception.message
  end

end<commit_msg>use create_time on likes for ordering<commit_after>class ApplicationController < ActionController::Base
  protect_from_forgery
  include SessionsHelper
  include ActsAsTaggableOn::TagsHelper

  def paginate(likes)
    per_page = params[:per_page] ||= 5
    likes.paginate(page:params[:page], per_page:per_page).order("created_time DESC")
  end

  rescue_from CanCan::AccessDenied do |exception|
    redirect_to root_path, alert: exception.message
  end

end
{'fraction_non_alphanumeric': 0.08558558558558559, 'fraction_numerical': 0.0022522522522522522, 'mean_word_length': 5.9453125, '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': '3618076', 'n_tokens_mistral': 282, 'n_tokens_neox': 275, 'n_words': 58}