<commit_before>require "published_slug_registerer"

namespace :rummager do
  desc "Indexes all editions in Rummager"
  task index_all: :environment do
    task_logger.info "Sending published editions to rummager..."
    slugs = Edition.published.map(&:slug)
    PublishedSlugRegisterer.new(task_logger, slugs).do_rummager
  end

  def task_logger
    @_task_logger ||= GdsApi::Base.logger = Logger.new(STDERR).tap { |l| l.level = Logger::INFO }
  end
end<commit_msg>Rename index_all task to index<commit_after>require "published_slug_registerer"

namespace :rummager do
  desc "Indexes all editions in Rummager"
  task index: :environment do
    task_logger.info "Sending published editions to rummager..."
    slugs = Edition.published.map(&:slug)
    PublishedSlugRegisterer.new(task_logger, slugs).do_rummager
  end

  def task_logger
    @_task_logger ||= GdsApi::Base.logger = Logger.new(STDERR).tap { |l| l.level = Logger::INFO }
  end
end
{'fraction_non_alphanumeric': 0.10158730158730159, 'fraction_numerical': 0.0, 'mean_word_length': 4.664670658682635, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2607583', 'n_tokens_mistral': 320, 'n_tokens_neox': 317, 'n_words': 75}