<commit_before>class Projects::ContributionDetailsController < ApplicationController
  has_scope :was_confirmed, type: :boolean
  has_scope :pending, type: :boolean
  has_scope :page, default: 1

  def index
    render collection
  end

  def collection
    @contributions ||= apply_scopes(parent.contribution_details).available_to_display.order("created_at DESC").per(10)
  end

  def parent
    @project ||= Project.find params[:project_id]
  end
end

<commit_msg>limit by id desc instead created_at<commit_after>class Projects::ContributionDetailsController < ApplicationController
  has_scope :was_confirmed, type: :boolean
  has_scope :pending, type: :boolean
  has_scope :page, default: 1

  def index
    render collection
  end

  def collection
    @contributions ||= apply_scopes(parent.contribution_details).available_to_display.order("id DESC").per(10)
  end

  def parent
    @project ||= Project.find params[:project_id]
  end
end


{'fraction_non_alphanumeric': 0.08668076109936575, 'fraction_numerical': 0.006342494714587738, 'mean_word_length': 5.07051282051282, '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': '4553009', 'n_tokens_mistral': 298, 'n_tokens_neox': 276, 'n_words': 71}