<commit_before>Rails.application.routes.draw do
  
  root 'items#index'

  namespace :api do
    resources :agendas, only: [:index, :show]
    resources :items, only: [:index, :show]
    resources :wards, only: [:index, :show]
    resources :councillors, only: [:index, :show]
    resources :committees, only: [:index, :show]
    resources :motions, only: [:index, :show]
  end

  resources :users do
    resources :user_votes, only: [:index]
  end
  resources :user_sessions, only: [:new, :create, :destroy]
  resources :items, only: [:index, :show] do
    resources :user_votes, only: [:new, :create]
  end


  get 'signup'      => 'users#new', :as => :signup
  get 'login'       => 'user_sessions#new', :as => :login
  post 'logout'     => 'user_sessions#destroy', :as => :logout
  get 'myprofile'   => 'users#show', :as => :myprofile
  get 'myvotes'     => 'user_votes#index', :as => :myvotes

  resources :dirty_agenda, only: [:index, :show]

  # 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"
  # root 'welcome#index'
<commit_msg>Reorginize Routes File To Be Clear<commit_after>Rails.application.routes.draw do  
  root 'items#index'

  namespace :api do
    resources :agendas, only: [:index, :show]
    resources :items, only: [:index, :show]
    resources :wards, only: [:index, :show]
    resources :councillors, only: [:index, :show]
    resources :committees, only: [:index, :show]
    resources :motions, only: [:index, :show]
  end

  resources :users do
    resources :user_votes, only: [:index]
  end

  resources :items, only: [:index, :show] do
    resources :user_votes, only: [:new, :create]
  end

  resources :user_sessions, only: [:new, :create, :destroy]
  resources :dirty_agenda, only: [:index, :show]

  get 'signup'      => 'users#new', :as => :signup
  get 'myprofile'   => 'users#show', :as => :myprofile
  get 'myvotes'     => 'user_votes#index', :as => :myvotes
  get 'login'       => 'user_sessions#new', :as => :login
  post 'logout'     => 'user_sessions#destroy', :as => :logout

  # 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"
  # root 'welcome#index'

{'fraction_non_alphanumeric': 0.14644351464435146, 'fraction_numerical': 0.0, 'mean_word_length': 3.753479125248509, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 25, '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': '3550376', 'n_tokens_mistral': 833, 'n_tokens_neox': 812, 'n_words': 263}