<commit_before>CodeTestBotServer::Application.routes.draw do
  resources :candidates
  resources :sessions, only: [:new, :show]
  resources :submissions, except: [:new, :edit]
  resources :assessments, except: [:new, :edit]
  resources :levels, only: [:index]
  resources :languages, only: [:index]
  resources :roles
  resources :users
  post '/users/assign_role_to_user', to: 'users#assign_role_to_user'
  post '/users/remove_role_from_user', to: 'users#remove_role_from_user'
  get '/users/filter_by_role', to: 'users#filter_by_role'

  get '/auth/google/callback', to: 'omniauth_callbacks#google'
  get '/auth/development_token', to: 'omniauth_callbacks#development_token'

end
<commit_msg>The order of routes makes a difference. More specific go at the top.<commit_after>CodeTestBotServer::Application.routes.draw do
  resources :candidates
  resources :sessions, only: [:new, :show]
  resources :submissions, except: [:new, :edit]
  resources :assessments, except: [:new, :edit]
  resources :levels, only: [:index]
  resources :languages, only: [:index]

  post '/users/assign_role_to_user', to: 'users#assign_role_to_user'
  post '/users/remove_role_from_user', to: 'users#remove_role_from_user'
  get '/users/filter_by_role', to: 'users#filter_by_role'
  resources :roles
  resources :users

  get '/auth/google/callback', to: 'omniauth_callbacks#google'
  get '/auth/development_token', to: 'omniauth_callbacks#development_token'

end

{'fraction_non_alphanumeric': 0.12880886426592797, 'fraction_numerical': 0.0, 'mean_word_length': 6.153465346534653, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2831498', 'n_tokens_mistral': 501, 'n_tokens_neox': 485, 'n_words': 116}