<commit_before>module Admin::DocumentCollectionHelper
  def document_collection_select_options(edition, user, selected_ids)
    options = Rails.cache.fetch("document_collection_select_options", expires_in: 30.minutes) do
      DocumentCollection.alphabetical.includes(:groups).flat_map  do |collection|
        collection.groups.map do |group|
          ["#{collection.title} (#{group.heading})", group.id]
        end
      end
    end
    options_for_select(options, selected_ids)
  end
end<commit_msg>Only show latest doc collections in speed tagger<commit_after>module Admin::DocumentCollectionHelper
  def document_collection_select_options(edition, user, selected_ids)
    options = Rails.cache.fetch("document_collection_select_options", expires_in: 30.minutes) do
      DocumentCollection.latest_edition.alphabetical.includes(:groups).flat_map  do |collection|
        collection.groups.map do |group|
          ["#{collection.title} (#{group.heading})", group.id]
        end
      end
    end
    options_for_select(options, selected_ids)
  end
end
{'fraction_non_alphanumeric': 0.09546313799621928, 'fraction_numerical': 0.003780718336483932, 'mean_word_length': 4.430769230769231, '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': '2394246', 'n_tokens_mistral': 304, 'n_tokens_neox': 295, 'n_words': 60}