<commit_before>Relect::Application.routes.draw do
  devise_for :users, :controllers => { :confirmations => 'users/confirmations', :passwords => '<PASSWORD>',
                                       :registrations => 'users/registrations', :sessions => 'users/sessions'
                                     }

  resources :elections do
    resources :races

    member do
      get :vote
      put :cast_votes
      get :results
    end
  end
  
  resources :candidates
  resources :users

  root to: 'elections#index'
end<commit_msg>add patch :cast_votes to fix issue<commit_after>Relect::Application.routes.draw do
  devise_for :users, :controllers => { :confirmations => 'users/confirmations', :passwords => '<PASSWORD>',
                                       :registrations => 'users/registrations', :sessions => 'users/sessions'
                                     }

  resources :elections do
    resources :races

    member do
      get :vote
      put :cast_votes
      patch :cast_votes
      get :results
    end
  end
  
  resources :candidates
  resources :users

  root to: 'elections#index'
end
{'fraction_non_alphanumeric': 0.09738503155996393, 'fraction_numerical': 0.0, 'mean_word_length': 2.1179775280898876, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '715926', 'n_tokens_mistral': 320, 'n_tokens_neox': 311, 'n_words': 78}