<commit_before>ActionController::Routing::Routes.draw do |map|
  map.resources :shifts_tasks

  map.resources :tasks, :member => {:make_entry => :post}  
  
  map.resources :template_time_slots

  # map.resources :templates

  map.resources :stickies

  map.resources :announcements

  map.resources :links

  map.resources :repeating_events

  map.resources :calendars, :member => {:toggle => :post, :prepare_copy => :get, :copy => :post, :apply_schedule => [:get, :post]}, :collection => {:prepare_wipe_range => :get, :wipe_range => :post}

  map.resources :punch_clock_sets

  map.with_options :controller => 'first_run' do |f|
    f.first_app_config 'firstrun/first_app_config', :action => 'new_app_config', :method => 'get'
    f.first_department 'firstrun/first_department', :action => 'new_department', :method => 'get'
    f.first_user 'firstrun/first_user', :action => 'new_user', :method => 'get'
    f.create_first_app_config 'firstrun/create_first_app_config', :action => 'create_app_config', :method => 'post'
    f.create_first_department 'firstrun/create_first_department', :action => 'create_department', :method => 'post'
    f.create_first_user 'firstrun/create_first_user', :action => 'create_user', :method => 'post'
  end

  map.login "login", :controller => 'user_sessions', :action => 'new'
  map.logout "logout", :controller => 'user_sessions', :action => 'destroy'

  map.resources :app_configs, :only => [:edit, :update]

  map.edit_app_config "app_config", :controller => 'app_configs', :action => 'edit', :method => 'get'

  map.resources :punch_clocks
  map.resources :restrictions
  map.email_reminders "email_reminders", :controller => 'payforms', :action => 'email_reminders'
  map.reminders_advanced_options "reminders_advanced_options", :controller => 'payforms', :action => 'reminders_advanced_options'
  map.warnings_advanced_options  "warnings_advanced_options", :controller => 'payforms', :action => 'warnings_advanced_options'

  #TODO: get rid of sessions controller and move logout action to user_session controller and name it cas_logout
  map.cas_logout "cas_logout", :controller => 'sessions', :action => 'logout'

   # routes for calendar_feeds
  map.calendar_feed 'calendar_feeds/grab/:user_id/:token.:format', :controller => 'calendar_feeds', :action => 'grab'
  map.resources :calendar_feeds

  # routes for managing superusers
  map.superusers "superusers", :controller => 'superusers'
  map.add_superusers "superusers/add", :controller => 'superusers', :action => 'add'
  map.remove_superusers "superusers/remove", :controller => 'superusers', :action => 'remove'

  map.resources :user_sessions

  map.resources :password_resets

  map.resources :user_configs, :only => [:edit, :update]

  map.resources :sub_requests
  map.resources :notices, :collection => {:archive => :get}

  map.resources :payform_item_sets
  map.resources :payform_sets
  map.resources :department_configs, :only => [:edit, :update]

  map.resources :payforms,
<<<<<<< HEAD
                :collection => { :prune => :delete, :go => :get, :search => :post, :index => [:post, :get]},
                :member => {:submit => :get, :unsubmit => :get, :approve => :get, :unapprove => :get, :print => :get},
=======
                :collection => { :prune => :delete, :go => :get, :search => :post},
                :member => {:submit => :get, :unsubmit => :get, :approve => :get, :skip => :get, :unskip => :get, :unapprove => :get, :print => :get},
>>>>>>> development
                :shallow => true do |payform|
    payform.resources :payform_items, :member => {:delete => :get}
  end

  map.resources :payform_items

  map.resources :time_slots, :member => {:rerender => :get} #TODO: What should this be nested under, if anything?

  map.resources :shifts, :new => {:unscheduled => :get, :ajax_create => :post}, :member => {:rerender => :get}, :collection => {:show_active => :get, :show_unscheduled => :get}, :shallow => true do |shifts|
    shifts.resource :report do |report|
      report.resources :report_items
    end
    #NOTE: "sub_requests" is a clearer model name, we use subs for routing
    shifts.resources :sub_requests, :member => {:take => :put, :get_take_info => :get},
                                    :as => "subs"
  end

  map.resources :requested_shifts
  map.resources :templates

  map.resources :users, :collection => {:update_superusers => :post}, :member => {:toggle => [:get, :post]} do |user|<commit_msg>have to commit this to move forward<commit_after>ActionController::Routing::Routes.draw do |map|
  map.resources :shifts_tasks

  map.resources :tasks, :member => {:make_entry => :post}  
  
  map.resources :template_time_slots

  # map.resources :templates

  map.resources :stickies

  map.resources :announcements

  map.resources :links

  map.resources :repeating_events

  map.resources :calendars, :member => {:toggle => :post, :prepare_copy => :get, :copy => :post, :apply_schedule => [:get, :post]}, :collection => {:prepare_wipe_range => :get, :wipe_range => :post}

  map.resources :punch_clock_sets

  map.with_options :controller => 'first_run' do |f|
    f.first_app_config 'firstrun/first_app_config', :action => 'new_app_config', :method => 'get'
    f.first_department 'firstrun/first_department', :action => 'new_department', :method => 'get'
    f.first_user 'firstrun/first_user', :action => 'new_user', :method => 'get'
    f.create_first_app_config 'firstrun/create_first_app_config', :action => 'create_app_config', :method => 'post'
    f.create_first_department 'firstrun/create_first_department', :action => 'create_department', :method => 'post'
    f.create_first_user 'firstrun/create_first_user', :action => 'create_user', :method => 'post'
  end

  map.login "login", :controller => 'user_sessions', :action => 'new'
  map.logout "logout", :controller => 'user_sessions', :action => 'destroy'

  map.resources :app_configs, :only => [:edit, :update]

  map.edit_app_config "app_config", :controller => 'app_configs', :action => 'edit', :method => 'get'

  map.resources :punch_clocks
  map.resources :restrictions
  map.email_reminders "email_reminders", :controller => 'payforms', :action => 'email_reminders'
  map.reminders_advanced_options "reminders_advanced_options", :controller => 'payforms', :action => 'reminders_advanced_options'
  map.warnings_advanced_options  "warnings_advanced_options", :controller => 'payforms', :action => 'warnings_advanced_options'

  #TODO: get rid of sessions controller and move logout action to user_session controller and name it cas_logout
  map.cas_logout "cas_logout", :controller => 'sessions', :action => 'logout'

   # routes for calendar_feeds
  map.calendar_feed 'calendar_feeds/grab/:user_id/:token.:format', :controller => 'calendar_feeds', :action => 'grab'
  map.resources :calendar_feeds

  # routes for managing superusers
  map.superusers "superusers", :controller => 'superusers'
  map.add_superusers "superusers/add", :controller => 'superusers', :action => 'add'
  map.remove_superusers "superusers/remove", :controller => 'superusers', :action => 'remove'

  map.resources :user_sessions

  map.resources :password_resets

  map.resources :user_configs, :only => [:edit, :update]

  map.resources :sub_requests
  map.resources :notices, :collection => {:archive => :get}

  map.resources :payform_item_sets
  map.resources :payform_sets
  map.resources :department_configs, :only => [:edit, :update]

  map.resources :payforms,
                :collection => { :prune => :delete, :go => :get, :search => :post},
                :member => {:submit => :get, :unsubmit => :get, :approve => :get, :skip => :get, :unskip => :get, :unapprove => :get, :print => :get},
                :shallow => true do |payform|
    payform.resources :payform_items, :member => {:delete => :get}
  end

  map.resources :payform_items

  map.resources :time_slots, :member => {:rerender => :get} #TODO: What should this be nested under, if anything?

  map.resources :shifts, :new => {:unscheduled => :get, :ajax_create => :post}, :member => {:rerender => :get}, :collection => {:show_active => :get, :show_unscheduled => :get}, :shallow => true do |shifts|
    shifts.resource :report do |report|
      report.resources :report_items
    end
    #NOTE: "sub_requests" is a clearer model name, we use subs for routing
    shifts.resources :sub_requests, :member => {:take => :put, :get_take_info => :get},
                                    :as => "subs"
  end

  map.resources :requested_shifts
  map.resources :templates

  map.resources :users, :collection => {:update_superusers => :post}, :member => {:toggle => [:get, :post]} do |user|
{'fraction_non_alphanumeric': 0.15680848610630693, 'fraction_numerical': 0.0, 'mean_word_length': 4.606981254040077, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 189, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1497315', 'n_tokens_mistral': 2877, 'n_tokens_neox': 2752, 'n_words': 672}