<commit_before>Courseapp::Application.routes.draw do
  root to: "pages#front"
  get 'ui(/:action)', controller: 'ui'
  get 'pages/subscription_plans', controller: 'pages'
  get 'register', to: "users#new"
  get 'sign_in', to: 'sessions#new'
  get 'sign_out', to: 'sessions#destroy'
  get 'home', to: 'courses#index'

  get 'quizzes/:id/question/:question_id', controller: 'quizzes', action: 'show', as: 'show_question'
  get 'quizzes/:id/quiz_success', controller: 'quizzes', action: 'complete', as: 'quiz_complete' 
  resources :courses, only: [:show] do
    resources :chapters, only: [:show]
  end

  resources :chapters, only: [:show] do
    resources :videos, only: [:show]
    resources :quizzes, only: [:show]
  end

  resources :quizzes, only: [:show] do
    resources :questions, only:[:show, :update]
  end

  resources :users, only: [:create]
  resources :sessions, only: [:create]
  
  namespace :admin do
    resources :courses do
      resources :chapters
    end
  end

  namespace :admin do
    resources :chapters do
      resources :videos
      resources :quizzes
    end
  end

  namespace :admin do
    resources :quizzes do
      resources :questions
    end
  end
  
  namespace :admin do<commit_msg>change for deploying on heroku<commit_after>Courseapp::Application.routes.draw do
  root to: "pages#front"
  get 'ui(/:action)', controller: 'ui'
  get 'pages/subscription_plans', controller: 'pages'
  get 'register', to: "users#new"
  get 'sign_in', to: 'sessions#new'
  get 'sign_out', to: 'sessions#destroy'
  get 'home', to: 'courses#index'

  get 'quizzes/:id/question/:question_id', controller: 'quizzes', action: 'show', as: 'show_question'
  get 'quizzes/:id/quiz_success', controller: 'quizzes', action: 'complete', as: 'quiz_complete' 
  resources :courses, only: [:show] do
    resources :chapters, only: [:show]
  end

  resources :chapters, only: [:show] do
    resources :videos, only: [:show]
    resources :quizzes, only: [:show]
  end

  resources :quizzes, only: [:show] do
    resources :questions, only:[:show, :update]
  end
  

  resources :users, only: [:create]
  resources :sessions, only: [:create]
  
  namespace :admin do
    resources :courses do
      resources :chapters
    end
  end

  namespace :admin do
    resources :chapters do
      resources :videos
      resources :quizzes
    end
  end

  namespace :admin do
    resources :quizzes do
      resources :questions
    end
  end
  
  namespace :admin do
{'fraction_non_alphanumeric': 0.12895377128953772, 'fraction_numerical': 0.0, 'mean_word_length': 3.7625482625482625, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2831470', 'n_tokens_mistral': 851, 'n_tokens_neox': 835, 'n_words': 247}