<commit_before>FactlinkUI::Application.routes.draw do
  # The priority is based upon order of creation:
  # first created -> highest priority.
  # User Authentication
  devise_for :users, :controllers => {  confirmations: "users/confirmations",
                                        sessions:      "users/sessions",
                                        passwords:      "<PASSWORD>"
                                      }
  mount Ohnoes::Engine => '/ohnoes'

  # Web Front-end
  root :to => "home#index"

  scope '/api/beta' do
    get '/feed' => "api/feed#global", as: 'something_alse_than_feed_as_well'
    get '/feed/personal' => "api/feed#personal", as: 'something_else_than_feed'
    get '/feed/discussions' => "api/feed#discussions", as: "insert_nonsense_here"
    get '/annotations/search' => 'api/annotations#search'
    post '/annotations' => 'api/annotations#create'
    get '/annotations/:id' => 'api/annotations#show'
    post '/groups' => 'api/groups#create'
    get '/groups' => 'api/groups#index'
    get '/users/:username/feed' => 'api/users#feed'
    get '/users/:username' => 'api/users#show'
    put '/users/:original_username' => 'api/users#update'
    put '/users/:username/password' => 'api/users#change_password'
    get '/session' => 'api/sessions#current'
    post '/users/:username/delete' => 'api/users#destroy'
    get '/search' => "api/search#all", as: 'something_else_than_search'
  end

  # Javascript Client calls
  # TODO: replace /site/ gets with scoped '/sites/', and make it a resource (even if it only has show)
  get   "/site" => "sites#facts_for_url"

  # Prepare a new Fact
  # If you change this route, don't forget to change it in application.rb
  # as well (frame busting)
  get '/client/*page' => 'client#show'<commit_msg>Added TODO: we should reroute annotation search<commit_after>FactlinkUI::Application.routes.draw do
  # The priority is based upon order of creation:
  # first created -> highest priority.
  # User Authentication
  devise_for :users, :controllers => {  confirmations: "users/confirmations",
                                        sessions:      "users/sessions",
                                        passwords:      "<PASSWORD>"
                                      }
  mount Ohnoes::Engine => '/ohnoes'

  # Web Front-end
  root :to => "home#index"

  scope '/api/beta' do
    get '/feed' => "api/feed#global", as: 'something_alse_than_feed_as_well'
    get '/feed/personal' => "api/feed#personal", as: 'something_else_than_feed'
    get '/feed/discussions' => "api/feed#discussions", as: "insert_nonsense_here"
    get '/annotations/search' => 'api/annotations#search' #TODO:evil URL, clashes with get-by-id.
    post '/annotations' => 'api/annotations#create'
    get '/annotations/:id' => 'api/annotations#show'
    post '/groups' => 'api/groups#create'
    get '/groups' => 'api/groups#index'
    get '/users/:username/feed' => 'api/users#feed'
    get '/users/:username' => 'api/users#show'
    put '/users/:original_username' => 'api/users#update'
    put '/users/:username/password' => 'api/users#change_password'
    get '/session' => 'api/sessions#current'
    post '/users/:username/delete' => 'api/users#destroy'
    get '/search' => "api/search#all", as: 'something_else_than_search'
  end

  # Javascript Client calls
  # TODO: replace /site/ gets with scoped '/sites/', and make it a resource (even if it only has show)
  get   "/site" => "sites#facts_for_url"

  # Prepare a new Fact
  # If you change this route, don't forget to change it in application.rb
  # as well (frame busting)
  get '/client/*page' => 'client#show'
{'fraction_non_alphanumeric': 0.14684734513274336, 'fraction_numerical': 0.0, 'mean_word_length': 2.9102702702702703, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 47, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '314151', 'n_tokens_mistral': 1114, 'n_tokens_neox': 1091, 'n_words': 284}