<commit_before>Georgia::Engine.routes.draw do

  devise_for :users,
  class_name: "Georgia::User",
  path: '/',
  module: :devise,
  path_names: {sign_in: 'login', sign_out: 'logout', sign_up: 'register'},
  controllers: {sessions: "georgia/users/sessions", registrations: "georgia/users/registrations"}

  devise_scope :user do
    get '/logout', to: 'users/sessions#destroy'
  end

  post "revisions/:id/revert" => "revisions#revert", :as => :revert_version

  resources :pages do
    collection do
      post :sort
      get :search
      get "with_tag/:tag", to: "pages#find_by_tag"
    end
    member do
      get :ask_for_review
      get :publish
      get :unpublish
    end
  end

  get 'media/tags/:tag', to: 'media#index', as: :tag
  resources :media, path: :media do
    collection do
      delete :destroy_all, to: 'media#destroy_all'
      get :download_all, to: 'media#download_all'
    end
  end
  resources :users
  resources :messages do
    get :search, on: :collection
  end
  resources :menus
  resources :menu_items do
    collection do
      post :add
      post :remove
      post :sort
      post :activate
      post :deactivate
    end
  end

  match '/search/messages', to: 'search#messages'

  root to: 'pages#search'

end<commit_msg>Remove routes for legacy menu_items<commit_after>Georgia::Engine.routes.draw do

  devise_for :users,
  class_name: "Georgia::User",
  path: '/',
  module: :devise,
  path_names: {sign_in: 'login', sign_out: 'logout', sign_up: 'register'},
  controllers: {sessions: "georgia/users/sessions", registrations: "georgia/users/registrations"}

  devise_scope :user do
    get '/logout', to: 'users/sessions#destroy'
  end

  post "revisions/:id/revert" => "revisions#revert", :as => :revert_version

  resources :pages do
    collection do
      post :sort
      get :search
      get "with_tag/:tag", to: "pages#find_by_tag"
    end
    member do
      get :ask_for_review
      get :publish
      get :unpublish
    end
  end

  get 'media/tags/:tag', to: 'media#index', as: :tag
  resources :media, path: :media do
    collection do
      delete :destroy_all, to: 'media#destroy_all'
      get :download_all, to: 'media#download_all'
    end
  end
  resources :users
  resources :messages do
    get :search, on: :collection
  end
  resources :menus

  match '/search/messages', to: 'search#messages'

  root to: 'pages#search'

end
{'fraction_non_alphanumeric': 0.12035102381947346, 'fraction_numerical': 0.0, 'mean_word_length': 3.2903225806451615, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '715917', 'n_tokens_mistral': 831, 'n_tokens_neox': 816, 'n_words': 222}