<commit_before>ActionController::Routing::Routes.draw do |map|
  # admin
  map.namespace :admin do |a|
    a.resources :feeds, :controller => 'muck/feeds'
    a.resources :oai_endpoints, :controller => 'muck/oai_endpoints'
  end

  map.connect '/feed_list', :controller => 'muck/feeds', :action => 'selection_list'

  map.connect 'resources/search', :controller => 'muck/entries', :action => 'search'
  map.connect 'resources/search.:format', :controller => 'muck/entries', :action => 'search'
  map.connect 'resources/tags/*tags', :controller => 'muck/entries', :action => 'browse_by_tags'
  map.resources :resources, :controller => 'muck/entries'

  map.connect 'r', :controller => 'muck/entries', :action => 'track_clicks'
  map.connect 'collections', :controller => 'muck/entries', :action => 'collections'

  map.resources :visits, :controller => 'muck/visits'
  map.resources :feed_previews, :controller => 'muck/feed_previews', :collection => { :select_feeds => :post }
  
  map.resources :entries, :controller => 'muck/entries', :collection => { :search => :get } do |entries|<commit_msg>added route for search results<commit_after>ActionController::Routing::Routes.draw do |map|
  # admin
  map.namespace :admin do |a|
    a.resources :feeds, :controller => 'muck/feeds'
    a.resources :oai_endpoints, :controller => 'muck/oai_endpoints'
  end

  map.connect '/feed_list', :controller => 'muck/feeds', :action => 'selection_list'

  map.connect 'resources/search', :controller => 'muck/entries', :action => 'search'
  map.connect 'resources/search.:format', :controller => 'muck/entries', :action => 'search'
  map.connect 'search/results.:format', :controller => 'muck/entries', :action => 'search'
  map.connect 'resources/tags/*tags', :controller => 'muck/entries', :action => 'browse_by_tags'
  map.resources :resources, :controller => 'muck/entries'

  map.connect 'r', :controller => 'muck/entries', :action => 'track_clicks'
  map.connect 'collections', :controller => 'muck/entries', :action => 'collections'

  map.resources :visits, :controller => 'muck/visits'
  map.resources :feed_previews, :controller => 'muck/feed_previews', :collection => { :select_feeds => :post }
  
  map.resources :entries, :controller => 'muck/entries', :collection => { :search => :get } do |entries|
{'fraction_non_alphanumeric': 0.17782608695652175, 'fraction_numerical': 0.0, 'mean_word_length': 5.202156334231806, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 49, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7461895', 'n_tokens_mistral': 744, 'n_tokens_neox': 734, 'n_words': 163}