<commit_before>ActionController::Routing::Routes.draw do |map|
  
  map.root :controller => "accounts", :action =>"new"
  
  map.resources :invitations, :only => [:new, :create, :edit, :update, :destroy]
  map.resources :password_resets
  map.resources :users, :member => { :promote => :put, :demote => :put, :deputize => :put, :letgo => :delete }
  
  map.resources :accounts do |account|
    account.resources :invitations, :only => [:new, :create, :edit, :update, :destroy]
    
    # No content exists in Hot Ink without belonging to an account, routing reflects this fact.
    account.resources :documents do |document|
      document.resources :mediafiles
      document.resources :waxings
    end
    account.resources :articles do |article|
      article.resources :mediafiles
      article.resources :authors
      article.resources :sortings
      article.resources :tags
      article.resources :waxings
      article.resources :printings
    end
    account.resources :mediafiles do |mediafile|
      mediafile.resources :authors<commit_msg>Support old invitations temporarily with route redirect.<commit_after>ActionController::Routing::Routes.draw do |map|
  
  map.root :controller => "accounts", :action =>"new"
  
  map.resources :invitations, :only => [:new, :create, :edit, :update, :destroy]
  map.resources :password_resets
  map.resources :users, :member => { :promote => :put, :demote => :put, :deputize => :put, :letgo => :delete }
  
  # Old invitation route support
  map.connect 'user_activations/:id/edit', :controller => 'invitations'
  map.connect 'account_activations/:id/edit', :controller => 'invitations'
  
  map.resources :accounts do |account|
    account.resources :invitations, :only => [:new, :create, :edit, :update, :destroy]
    
    # No content exists in Hot Ink without belonging to an account, routing reflects this fact.
    account.resources :documents do |document|
      document.resources :mediafiles
      document.resources :waxings
    end
    account.resources :articles do |article|
      article.resources :mediafiles
      article.resources :authors
      article.resources :sortings
      article.resources :tags
      article.resources :waxings
      article.resources :printings
    end
    account.resources :mediafiles do |mediafile|
      mediafile.resources :authors
{'fraction_non_alphanumeric': 0.11578044596912522, 'fraction_numerical': 0.0, 'mean_word_length': 3.8004115226337447, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 23, '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': '6091650', 'n_tokens_mistral': 671, 'n_tokens_neox': 664, 'n_words': 193}