<commit_before>Moebooru::Application.routes.draw do
  # Admin
  match 'admin(/index)' => 'admin#index'
  match 'admin/edit_user'
  match 'admin/reset_password'

  # Advertisements
  resources :advertisements do
    collection do
      post :update_multiple
    end
    member do
      get :redirect
    end
  end

  # Artist
  match 'artist(/index)(.:format)' => 'artist#index'
  match 'artist/create(.:format)' => 'artist#create'
  match 'artist/destroy(.:format)(/:id)' => 'artist#destroy'
  match 'artist/preview'
  match 'artist/show(/:id)' => 'artist#show'
  match 'artist/update(.:format)(/:id)' => 'artist#update'

  # Banned
  match 'banned(/index)' => 'banned#index'

  # Batch
  match 'batch(/index)' => 'batch#index'
  match 'batch/create'
  post 'batch/enqueue'
  post 'batch/update'

  # Blocks
  post 'blocks/block_ip'
  post 'blocks/unblock_ip'

  # Comment
  match 'comment(/index)' => 'comment#index'
  match 'comment/edit(/:id)' => 'comment#edit'
  match 'comment/moderate'
  match 'comment/search'
  match 'comment/show(.:format)(/:id)' => 'comment#show'
  match 'comment/destroy(.:format)(/:id)' => 'comment#destroy', :via => [:post, :delete]
  match 'comment/update(/:id)' => 'comment/update', :via => [:post, :put]
  post 'comment/create(.:format)' => 'comment#create'
  post 'comment/mark_as_spam(/:id)' => 'comment#mark_as_spam'

  # Dmail
  match 'dmail/preview'
  match 'dmail/auto_complete_for_dmail_to_name'
  match 'dmail/show_previous_messages'
  match 'dmail/compose'
  match 'dmail/inbox'
  match 'dmail/show'
  post 'dmail/create'
  post 'dmail/mark_all_read'

  # Favorite
  match 'favorite/list_users'
  match 'favorite/favorited_users_for_post(post)'

  # Forum
  match 'forum/stick'
  match 'forum/unstick'
  match 'forum/preview'
  match 'forum/new'
  match 'forum/create'
  match 'forum/add'
  match 'forum/destroy'
  match 'forum/edit'
  match 'forum/update'<commit_msg>WIP: dmail routes. Added id param for show, rearranged, set default to /inbox.<commit_after>Moebooru::Application.routes.draw do
  # Admin
  match 'admin(/index)' => 'admin#index'
  match 'admin/edit_user'
  match 'admin/reset_password'

  # Advertisements
  resources :advertisements do
    collection do
      post :update_multiple
    end
    member do
      get :redirect
    end
  end

  # Artist
  match 'artist(/index)(.:format)' => 'artist#index'
  match 'artist/create(.:format)' => 'artist#create'
  match 'artist/destroy(.:format)(/:id)' => 'artist#destroy'
  match 'artist/preview'
  match 'artist/show(/:id)' => 'artist#show'
  match 'artist/update(.:format)(/:id)' => 'artist#update'

  # Banned
  match 'banned(/index)' => 'banned#index'

  # Batch
  match 'batch(/index)' => 'batch#index'
  match 'batch/create'
  post 'batch/enqueue'
  post 'batch/update'

  # Blocks
  post 'blocks/block_ip'
  post 'blocks/unblock_ip'

  # Comment
  match 'comment(/index)' => 'comment#index'
  match 'comment/edit(/:id)' => 'comment#edit'
  match 'comment/moderate'
  match 'comment/search'
  match 'comment/show(.:format)(/:id)' => 'comment#show'
  match 'comment/destroy(.:format)(/:id)' => 'comment#destroy', :via => [:post, :delete]
  match 'comment/update(/:id)' => 'comment/update', :via => [:post, :put]
  post 'comment/create(.:format)' => 'comment#create'
  post 'comment/mark_as_spam(/:id)' => 'comment#mark_as_spam'

  # Dmail
  match 'dmail(/inbox)' => 'dmail#inbox'
  match 'dmail/auto_complete_for_dmail_to_name'
  match 'dmail/compose'
  match 'dmail/preview'
  match 'dmail/show(/:id)' => 'dmail#show'
  match 'dmail/show_previous_messages'
  post 'dmail/create'
  post 'dmail/mark_all_read'

  # Favorite
  match 'favorite/list_users'
  match 'favorite/favorited_users_for_post(post)'

  # Forum
  match 'forum/stick'
  match 'forum/unstick'
  match 'forum/preview'
  match 'forum/new'
  match 'forum/create'
  match 'forum/add'
  match 'forum/destroy'
  match 'forum/edit'
  match 'forum/update'
{'fraction_non_alphanumeric': 0.16709118695873662, 'fraction_numerical': 0.0, 'mean_word_length': 4.133333333333334, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 39, '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': '7611595', 'n_tokens_mistral': 1460, 'n_tokens_neox': 1423, 'n_words': 283}