<commit_before>SS::Application.routes.draw do
  Gws::Memo::Initializer

  concern :deletion do
    get :delete, :on => :member
    delete action: :destroy_all, on: :collection
  end

  gws 'memo' do
    get '/' => redirect { |p, req| "#{req.path}/messages/INBOX" }, as: :main

    resources :messages, concerns: :deletion, path: 'messages/:folder',
              folder: /[^\/]+/, defaults: { folder: 'INBOX' } do
      collection do
        post :trash_all
        post :set_seen_all
        post :unset_seen_all
        post :set_star_all
        post :unset_star_all
        post :move_all
        put :move
        post :forward
      end
      member do
        get :trash
        get :toggle_star
        get :download
        get :parts, path: 'parts/:section', format: false, section: /[^\/]+/
        get :reply
      end
    end
    resources :comments, path: ':message_id/comments', only: [:create, :destroy]
    resources :folders, concerns: :deletion
    resources :filters, concerns: :deletion
    resources :signatures, concerns: :deletion
    resource :setting, only: [:show, :edit, :update]

    scope '/management' do
      get '/' => redirect { |p, req| "#{req.path}/folders" }, as: :management_main
      resources :folders, concerns: :deletion
      resources :filters, concerns: :deletion
      resources :signatures, concerns: :deletion
    end
  end
end<commit_msg>[fixup] move management controllers under "/management" url<commit_after>SS::Application.routes.draw do
  Gws::Memo::Initializer

  concern :deletion do
    get :delete, :on => :member
    delete action: :destroy_all, on: :collection
  end

  gws 'memo' do
    get '/' => redirect { |p, req| "#{req.path}/messages/INBOX" }, as: :main

    resources :messages, concerns: :deletion, path: 'messages/:folder',
              folder: /[^\/]+/, defaults: { folder: 'INBOX' } do
      collection do
        post :trash_all
        post :set_seen_all
        post :unset_seen_all
        post :set_star_all
        post :unset_star_all
        post :move_all
        put :move
        post :forward
      end
      member do
        get :trash
        get :toggle_star
        get :download
        get :parts, path: 'parts/:section', format: false, section: /[^\/]+/
        get :reply
      end
    end
    resources :comments, path: ':message_id/comments', only: [:create, :destroy]
    resource :setting, only: [:show, :edit, :update]

    scope '/management' do
      get '/' => redirect { |p, req| "#{req.path}/folders" }, as: :management_main
      resources :folders, concerns: :deletion
      resources :filters, concerns: :deletion
      resources :signatures, concerns: :deletion
    end
  end
end
{'fraction_non_alphanumeric': 0.12755671253253997, 'fraction_numerical': 0.0, 'mean_word_length': 2.558201058201058, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5194315', 'n_tokens_mistral': 847, 'n_tokens_neox': 829, 'n_words': 243}