<commit_before>module UpdateResponders
  class PaperAdminTask < UpdateResponders::Task
    private
    def status
      200
    end

    def content
      ActiveModel::ArraySerializer.new(@task.tasks_for_admin, root: :tasks)
    end
  end
end<commit_msg>Add updated PaperAdminTask to payload.<commit_after>module UpdateResponders
  class PaperAdminTask < UpdateResponders::Task
    private
    def status
      200
    end

    def content
      json = ActiveModel::ArraySerializer.new(@task.tasks_for_admin, root: :tasks).as_json
      json[:tasks].unshift @task.active_model_serializer.new(@task).as_json[:task]
      json[:tasks] = json[:tasks].uniq { |task| task[:id] }
      json
    end
  end
end
{'fraction_non_alphanumeric': 0.09116809116809117, 'fraction_numerical': 0.008547008547008548, 'mean_word_length': 3.5064102564102564, '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': '2553219', 'n_tokens_mistral': 219, 'n_tokens_neox': 208, 'n_words': 47}