<commit_before>Planner::Application.routes.draw do
  root "dashboard#show"

  scope controller: 'dashboard' do
    get 'code-of-conduct', action: 'code'
    get 'coaches', action: 'wall_of_fame'
    get 'effective-teacher-guide', action: 'effective-teacher-guide', as: :teaching_guide
    get 'faq', action: 'faq'
    get 'attendance-policy', action: 'attendance_policy'
    get 'dashboard', action: 'dashboard'
  end

  resource :member, only: [:new, :edit, :update, :patch] do
    get 'step1'
    put 'step1'
    get 'step2'
  end

  get '/profile' => "members#profile", as: :profile

  resources :subscriptions, only: [ :index, :create ]
  delete '/subscriptions' => 'subscriptions#destroy', as: :destroy_subscriptions

  get "unsubscribe/:token" => "members#unsubscribe", as: :unsubscribe

  resources :invitation, only: [ :show ] do
    member do
      post "accept_with_note", as: :accept_with_note
      post "update_note"
      get "accept"
      get "reject"
    end

    resource :waiting_list, only: [:create, :destroy]
  end

  resources :invitations, only: [ :index ]

  namespace :course do
    resources :invitation, only: [:show] do
      member do
        get "accept"
        get "reject"
      end
    end
  end

  resources :events, only: [ :index, :show ] do
    get 'student', as: :student_rsvp
    get 'coach', as: :coach_rsvp
    get 'invitation/:token' => 'invitations#show', as: :invitation
    post 'invitation/:token/attend' => 'invitations#attend', as: :attend
    post 'invitation/:token/reject' => 'invitations#reject', as: :reject
  end

  resources :courses, only: [ :show ] do
    get "rsvp"
  end
  resources :meetings, only: [ :show ]
  resources :workshops, only: [ :show ] do
    member do
      post 'rsvp'
      post "add"
      post "remove"
      get "added"
      get "removed"
      get "waitlisted"
    end
  end
  resources :feedback, only: [ :show ] do
    member do
      patch "submit"
      get "success"
      get "not_found"
    end
  end

  resources :jobs, except: [:destroy] do
    get 'preview'
    get 'submit'
    get 'pending', on: :collection
  end

  namespace :admin do
    root "portal#index"

    resources :jobs, only: [ :index, :show] do
      get 'approve'
    end


    resources :announcements, only: [:new, :index, :create, :edit, :update]
    resources :members, only: [:show] do
      resources :bans, only: [ :new, :creat ]
    end
    resources :member_notes, only: [:create]

    resources :chapters, only: [ :index, :new, :create, :show] do
      resources :workshops, only: [ :index ]
    end

    resources :events, only: [:show, :edit, :update] do
      resources :invitation do<commit_msg>expose bans route<commit_after>Planner::Application.routes.draw do
  root "dashboard#show"

  scope controller: 'dashboard' do
    get 'code-of-conduct', action: 'code'
    get 'coaches', action: 'wall_of_fame'
    get 'effective-teacher-guide', action: 'effective-teacher-guide', as: :teaching_guide
    get 'faq', action: 'faq'
    get 'attendance-policy', action: 'attendance_policy'
    get 'dashboard', action: 'dashboard'
  end

  resource :member, only: [:new, :edit, :update, :patch] do
    get 'step1'
    put 'step1'
    get 'step2'
  end

  get '/profile' => "members#profile", as: :profile

  resources :subscriptions, only: [ :index, :create ]
  delete '/subscriptions' => 'subscriptions#destroy', as: :destroy_subscriptions

  get "unsubscribe/:token" => "members#unsubscribe", as: :unsubscribe

  resources :invitation, only: [ :show ] do
    member do
      post "accept_with_note", as: :accept_with_note
      post "update_note"
      get "accept"
      get "reject"
    end

    resource :waiting_list, only: [:create, :destroy]
  end

  resources :invitations, only: [ :index ]

  namespace :course do
    resources :invitation, only: [:show] do
      member do
        get "accept"
        get "reject"
      end
    end
  end

  resources :events, only: [ :index, :show ] do
    get 'student', as: :student_rsvp
    get 'coach', as: :coach_rsvp
    get 'invitation/:token' => 'invitations#show', as: :invitation
    post 'invitation/:token/attend' => 'invitations#attend', as: :attend
    post 'invitation/:token/reject' => 'invitations#reject', as: :reject
  end

  resources :courses, only: [ :show ] do
    get "rsvp"
  end
  resources :meetings, only: [ :show ]
  resources :workshops, only: [ :show ] do
    member do
      post 'rsvp'
      post "add"
      post "remove"
      get "added"
      get "removed"
      get "waitlisted"
    end
  end
  resources :feedback, only: [ :show ] do
    member do
      patch "submit"
      get "success"
      get "not_found"
    end
  end

  resources :jobs, except: [:destroy] do
    get 'preview'
    get 'submit'
    get 'pending', on: :collection
  end

  namespace :admin do
    root "portal#index"

    resources :jobs, only: [ :index, :show] do
      get 'approve'
    end


    resources :announcements, only: [:new, :index, :create, :edit, :update]
    resources :members, only: [:show] do
      resources :bans, only: [ :index, :new, :create ]
    end
    resources :member_notes, only: [:create]

    resources :chapters, only: [ :index, :new, :create, :show] do
      resources :workshops, only: [ :index ]
    end

    resources :events, only: [:show, :edit, :update] do
      resources :invitation do
{'fraction_non_alphanumeric': 0.13231171743599326, 'fraction_numerical': 0.0011212857409829938, 'mean_word_length': 3.048411497730711, 'pattern_counts': {'":': 0, '<': 3, '<?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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1598388', 'n_tokens_mistral': 1794, 'n_tokens_neox': 1768, 'n_words': 536}