<commit_before>Ridepilot::Application.routes.draw do
  root :to => "home#index"

  devise_for :users, :controllers=>{:sessions=>"users"} do
    get "check_session" => "users#check_session"
    get "init" => "users#show_init"
    get "new_user" => "users#new_user"
    get "show_change_password" => "<PASSWORD>"
    get "touch_session" => "users#touch_session"
    match "change_password"  => "<PASSWORD>"
    post "change_provider" => "users#change_provider"
    post "create_user" => "users#create_user"
    post "init" => "users#init"
    put "create_user" => "users#create_user"
  end

  resources :customers do
    post :inactivate, :as => :inactivate
    
    collection do
      get :all
      get :autocomplete
      get :found
      get :search
    end
  end

  resources :trips do 
    get :reconcile_cab, :on=>:collection
    get :trips_requiring_callback, :on=>:collection
    get :unscheduled, :on=>:collection
    post :confirm, :as => :confirm
    post :no_show, :as => :no_show
    post :reached, :as => :reached
    post :send_to_cab, :as => :send_to_cab
    post :turndown, :as => :turndown
  end

  resources :repeating_trips

  resources :providers do
    post :change_role
    post :delete_role
    member do
      post :change_dispatch
      post :change_reimbursement_rates
      post :change_scheduling
      post :change_allow_trip_entry_from_runs_page
      post :save_region
      post :save_viewport
    end
  end

  resources :addresses do
    collection do
      get :autocomplete
      get :search
    end
  end
  
  resources :device_pools, :except => [:index] do
    resources :device_pool_drivers, :only => [:create, :destroy]
  end
  
  resources :drivers
  resources :funding_sources
  resources :monthlies
  resources :provider_ethnicities
  resources :vehicles
  resources :vehicle_maintenance_events

  resources :runs do
    collection do
      get :for_date
      get :uncompleted_runs
    end
  end
  
  resources :cab_trips, :only => [:index] do
    collection do
      get :edit_multiple
      put :update_multiple
    end
  end

  scope :via => :post, :constraints => { :format => "json" , :protocol => "https" } do
    match "device_pool_drivers/" => "v1/device_pool_drivers#index", :as => "v1_device_pool_drivers"
    match "v1/device_pool_drivers/:id" => "v1/device_pool_drivers#update", :as => "v1_device_pool_driver"
  end
  
  match "dispatch", :controller => :dispatch, :action => :index
  match "reports", :controller=>:reports, :action=>:index
  match "reports/:action", :controller=>:reports
  match "reports/:action/:id", :controller=>:reports
  match "test_exception_notification" => "application#test_exception_notification"

  root :to => "home#index"
end
<commit_msg>Updating Devise in routes file<commit_after>Ridepilot::Application.routes.draw do
  root :to => "home#index"

  devise_for :users, :controllers=>{:sessions=>"users"} 
  
  devise_scope :user do
    get "check_session" => "users#check_session"
    get "init" => "users#show_init"
    get "new_user" => "users#new_user"
    get "show_change_password" => "<PASSWORD>"
    get "touch_session" => "users#touch_session"
    match "change_password"  => "<PASSWORD>"
    post "change_provider" => "users#change_provider"
    post "create_user" => "users#create_user"
    post "init" => "users#init"
    put "create_user" => "users#create_user"
  end

  resources :customers do
    post :inactivate, :as => :inactivate
    
    collection do
      get :all
      get :autocomplete
      get :found
      get :search
    end
  end

  resources :trips do 
    get :reconcile_cab, :on=>:collection
    get :trips_requiring_callback, :on=>:collection
    get :unscheduled, :on=>:collection
    post :confirm, :as => :confirm
    post :no_show, :as => :no_show
    post :reached, :as => :reached
    post :send_to_cab, :as => :send_to_cab
    post :turndown, :as => :turndown
  end

  resources :repeating_trips

  resources :providers do
    post :change_role
    post :delete_role
    member do
      post :change_dispatch
      post :change_reimbursement_rates
      post :change_scheduling
      post :change_allow_trip_entry_from_runs_page
      post :save_region
      post :save_viewport
    end
  end

  resources :addresses do
    collection do
      get :autocomplete
      get :search
    end
  end
  
  resources :device_pools, :except => [:index] do
    resources :device_pool_drivers, :only => [:create, :destroy]
  end
  
  resources :drivers
  resources :funding_sources
  resources :monthlies
  resources :provider_ethnicities
  resources :vehicles
  resources :vehicle_maintenance_events

  resources :runs do
    collection do
      get :for_date
      get :uncompleted_runs
    end
  end
  
  resources :cab_trips, :only => [:index] do
    collection do
      get :edit_multiple
      put :update_multiple
    end
  end

  scope :via => :post, :constraints => { :format => "json" , :protocol => "https" } do
    match "device_pool_drivers/" => "v1/device_pool_drivers#index", :as => "v1_device_pool_drivers"
    match "v1/device_pool_drivers/:id" => "v1/device_pool_drivers#update", :as => "v1_device_pool_driver"
  end
  
  match "dispatch", :controller => :dispatch, :action => :index
  match "reports", :controller=>:reports, :action=>:index
  match "reports/:action", :controller=>:reports
  match "reports/:action/:id", :controller=>:reports
  match "test_exception_notification" => "application#test_exception_notification"

  root :to => "home#index"
end

{'fraction_non_alphanumeric': 0.11558063341827449, 'fraction_numerical': 0.0018201674554058974, 'mean_word_length': 3.6293176074136477, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 89, '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': '1627457', 'n_tokens_mistral': 1882, 'n_tokens_neox': 1818, 'n_words': 442}