<commit_before>Rails.application.routes.draw do
  root to: "home#index"

  get "iframe_cookies_fix_redirect" => "lti_launches#iframe_cookies_fix_redirect"
  get "relaunch_lti_tool" => "lti_launches#relaunch_lti_tool"

  resources :jwks
  resources :public_keys
  resource :lti_config

  resources :lti_launches do
    collection do
      post :index
      get :launch
      get :init
      post :init
    end
    member do
      post :show
    end
  end

  match "scorm_courses/postback" => "scorm_courses#postback", :via => :post
  resources :scorm_courses

  devise_for :users, controllers: {
    sessions: "sessions",
    registrations: "registrations",
    omniauth_callbacks: "omniauth_callbacks",
  }

  as :user do
    get     "/auth/failure"         => "sessions#new"
    get     "users/auth/:provider"  => "users/omniauth_callbacks#passthru"
    get     "sign_in"               => "sessions#new"
    post    "sign_in"               => "sessions#create"
    get     "sign_up"               => "devise/registrations#new"
    delete  "sign_out"              => "sessions#destroy"
    get     "sign_out"              => "sessions#destroy"
  end

  resources :users
  resources :download_status, only: [:index]

  namespace :admin do
    root to: "home#index"
  end

  resources :exports, only: [] do
    get "export_exams_as_csv" => "exports#export_exams_as_csv", on: :collection
  end

  resources :courses, only: [] do
    resources :exports, only: [] do
      get "attendances", on: :collection
    end
  end

  namespace :api do
    get "proctor_login" => "proctor_login#signed_url"
    get "proctored_exams" => "proctored_exams#start_proctored_exam"
    resources :proctored_exams, only: [:update]
    post "proctor_conversations" => "proctor_conversations#initiate_conversation"
    resources :jwts
    resources :canvas_accounts do
      resources :canvas_users, only: [:index]
    end
    resources :oauths
    resources :courses, only: [] do
      resources :students, only: [:index]
      resources :sections, only: [] do
        resources :students, only: [:index]
      end
    end

    resources :applications do
      resources :application_instances do
        member do
          get :check_auth
        end
      end
    end
<commit_msg>feature: Add update route for canvas_users<commit_after>Rails.application.routes.draw do
  root to: "home#index"

  get "iframe_cookies_fix_redirect" => "lti_launches#iframe_cookies_fix_redirect"
  get "relaunch_lti_tool" => "lti_launches#relaunch_lti_tool"

  resources :jwks
  resources :public_keys
  resource :lti_config

  resources :lti_launches do
    collection do
      post :index
      get :launch
      get :init
      post :init
    end
    member do
      post :show
    end
  end

  match "scorm_courses/postback" => "scorm_courses#postback", :via => :post
  resources :scorm_courses

  devise_for :users, controllers: {
    sessions: "sessions",
    registrations: "registrations",
    omniauth_callbacks: "omniauth_callbacks",
  }

  as :user do
    get     "/auth/failure"         => "sessions#new"
    get     "users/auth/:provider"  => "users/omniauth_callbacks#passthru"
    get     "sign_in"               => "sessions#new"
    post    "sign_in"               => "sessions#create"
    get     "sign_up"               => "devise/registrations#new"
    delete  "sign_out"              => "sessions#destroy"
    get     "sign_out"              => "sessions#destroy"
  end

  resources :users
  resources :download_status, only: [:index]

  namespace :admin do
    root to: "home#index"
  end

  resources :exports, only: [] do
    get "export_exams_as_csv" => "exports#export_exams_as_csv", on: :collection
  end

  resources :courses, only: [] do
    resources :exports, only: [] do
      get "attendances", on: :collection
    end
  end

  namespace :api do
    get "proctor_login" => "proctor_login#signed_url"
    get "proctored_exams" => "proctored_exams#start_proctored_exam"
    resources :proctored_exams, only: [:update]
    post "proctor_conversations" => "proctor_conversations#initiate_conversation"
    resources :jwts
    resources :canvas_accounts do
      resources :canvas_users, only: [:index, :update]
    end
    resources :oauths
    resources :courses, only: [] do
      resources :students, only: [:index]
      resources :sections, only: [] do
        resources :students, only: [:index]
      end
    end

    resources :applications do
      resources :application_instances do
        member do
          get :check_auth
        end
      end
    end

{'fraction_non_alphanumeric': 0.09942932396839332, 'fraction_numerical': 0.0, 'mean_word_length': 2.832632464255677, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 33, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2831479', 'n_tokens_mistral': 1524, 'n_tokens_neox': 1499, 'n_words': 354}