<commit_before>Rails.application.routes.draw do
  
  scope ":locale" do
    devise_for :people, :controllers => { :invitations => 'people/invitations' }
    resources :people, only: [:edit, :update], as: 'profile'
    
    scope ":division_id" do 
      resources :messages 
      resources :comments
      resources :posts
        
      resources :companies, controller: :supergroups, type: 'Company'  do
        member do
          get 'follow'
        end
      end

      resources :unions, controller: :supergroups, type: 'Union' do
        member do
          get 'follow'
        end
      end
      
      resources :people, except: [:new, :show] do # people can only be invited, and edited (no readonly view)
        member do 
          get 'compose_email'
          patch 'send_email'
        end
      end 

      resources :recs do
        member do
          get 'follow'
        end
      end

      get '/public/:filename', to: 'files#get'
      resources :agreements, controller: :recs, type: 'Rec'
    end

    resources :divisions, except: [:show]
    
    resource :help, only: [:show] do
      resource :request_invite, only: [:new, :create], module: :help
    end
    # root "help#show"
    resources :unions, only: [:index], controller: :supergroups, type: 'Union', constraints: {:format => 'json'}, as: 'union_api'
    root "help#show", as: "root_with_locale"
  end
	root "application#pass_to_locale_scope"
  

  # The priority is based upon order of creation: first created -> highest priority.
  # See how all your routes lay out with "rake routes".

  # You can have the root of your site routed with "root"<commit_msg>stray tab in routes file<commit_after>Rails.application.routes.draw do
  
  scope ":locale" do
    devise_for :people, :controllers => { :invitations => 'people/invitations' }
    resources :people, only: [:edit, :update], as: 'profile'
    
    scope ":division_id" do 
      resources :messages 
      resources :comments
      resources :posts
        
      resources :companies, controller: :supergroups, type: 'Company'  do
        member do
          get 'follow'
        end
      end

      resources :unions, controller: :supergroups, type: 'Union' do
        member do
          get 'follow'
        end
      end
      
      resources :people, except: [:new, :show] do # people can only be invited, and edited (no readonly view)
        member do 
          get 'compose_email'
          patch 'send_email'
        end
      end 

      resources :recs do
        member do
          get 'follow'
        end
      end

      get '/public/:filename', to: 'files#get'
      resources :agreements, controller: :recs, type: 'Rec'
    end

    resources :divisions, except: [:show]
    
    resource :help, only: [:show] do
      resource :request_invite, only: [:new, :create], module: :help
    end
    # root "help#show"
    resources :unions, only: [:index], controller: :supergroups, type: 'Union', constraints: {:format => 'json'}, as: 'union_api'
    root "help#show", as: "root_with_locale"
  end
  root "application#pass_to_locale_scope"
  

  # The priority is based upon order of creation: first created -> highest priority.
  # See how all your routes lay out with "rake routes".

  # You can have the root of your site routed with "root"
{'fraction_non_alphanumeric': 0.10405323653962492, 'fraction_numerical': 0.0, 'mean_word_length': 2.430497925311203, 'pattern_counts': {'":': 4, '<': 3, '<?xml version=': 0, '>': 11, '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': '6388998', 'n_tokens_mistral': 984, 'n_tokens_neox': 957, 'n_words': 339}