<commit_before>if Rails.application.config.activeadmin_associations.autocomplete_models
  models = Rails.application.config.activeadmin_associations.autocomplete_models.join('|')
  Rails.application.routes.draw do
    namespace :admin do
      get '/autocomplete/:model' => 'autocomplete#index', :model => /(#{models})/,
        :defaults => { :format => 'json' }
    end
  end
end<commit_msg>changed admin route namespace to be a scope<commit_after>if Rails.application.config.activeadmin_associations.autocomplete_models
  models = Rails.application.config.activeadmin_associations.autocomplete_models.join('|')
  Rails.application.routes.draw do
    scope :admin do
      get '/autocomplete/:model' => 'autocomplete#index', :model => /(#{models})/,
        :defaults => { :format => 'json' }
    end
  end
end
{'fraction_non_alphanumeric': 0.1330049261083744, 'fraction_numerical': 0.0, 'mean_word_length': 4.493243243243243, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '4070555', 'n_tokens_mistral': 246, 'n_tokens_neox': 239, 'n_words': 46}