<commit_before># frozen_string_literal: true

json.course do
  json.revisions(@course.recent_revisions
                        .eager_load(:user, :wiki).includes(article: :wiki)
                        .order(date: :desc).limit(@limit)) do |rev|
    json.call(rev, :id, :url, :characters, :date, :user_id,
              :mw_rev_id, :mw_page_id, :wiki)
    json.call(rev.article, :rating)
    json.article_url rev.article.url
    json.title rev.article.full_title
    json.references_added rev.references_added
    json.rating_num rating_priority(rev.article.rating)
    json.pretty_rating rating_display(rev.article.rating)
    json.revisor rev.user.username
  end
end<commit_msg>Extra field course_specific_revision_ids to be passed.<commit_after># frozen_string_literal: true

json.course do
  json.course_specific_revision_ids @course.tracked_revisions
                                             .order(date: :desc).limit(@limit).pluck(:id)
  json.revisions(@course.recent_revisions
                        .eager_load(:user, :wiki).includes(article: :wiki)
                        .order(date: :desc).limit(@limit)) do |rev|
    json.call(rev, :id, :url, :characters, :date, :user_id,
              :mw_rev_id, :mw_page_id, :wiki)
    json.call(rev.article, :rating)
    json.article_url rev.article.url
    json.title rev.article.full_title
    json.references_added rev.references_added
    json.rating_num rating_priority(rev.article.rating)
    json.pretty_rating rating_display(rev.article.rating)
    json.revisor rev.user.username
  end
end
{'fraction_non_alphanumeric': 0.11268512556342562, 'fraction_numerical': 0.0, 'mean_word_length': 2.994858611825193, 'pattern_counts': {'":': 0, '<': 3, '<?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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1201862', 'n_tokens_mistral': 506, 'n_tokens_neox': 488, 'n_words': 84}