<commit_before>module AdminDocumentRoutesHelper
  DOCUMENT_TYPES = [Policy, Publication, NewsArticle, Consultation, Speech]

  def self.documents_collection_route(name)
    DOCUMENT_TYPES.each do |type|
      method_name = name.to_s.gsub("admin_documents", "admin_#{type.model_name.plural}")
      class_eval %{
        def #{method_name}(*args)
          #{name}(*args)
        end
      }
    end
  end
<commit_msg>AdminDocumentRoutesHelper#documents_collection_route is no longer used.<commit_after>module AdminDocumentRoutesHelper
  DOCUMENT_TYPES = [Policy, Publication, NewsArticle, Consultation, Speech]

{'fraction_non_alphanumeric': 0.09492635024549918, 'fraction_numerical': 0.0, 'mean_word_length': 4.614678899082569, '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': '6602831', 'n_tokens_mistral': 196, 'n_tokens_neox': 187, 'n_words': 35}