<commit_before>Rails.application.routes.draw do

  get 'feedback' => 'feedback#feedback_form', as: 'feedback_form'
  post 'feedback' => 'feedback#send_feedback', as: 'send_feedback'


  # Navigateable "Ausleihe"-routes
  get 'ausleihe' => 'ausleihe#index', as: 'ausleihe'
  get 'ausleihe/lent' => 'ausleihe#lent', as: 'ausleihe_lent'
  get 'ausleihe/history' => 'ausleihe#history', as: 'ausleihe_history'
  get 'ausleihe/folders' => 'ausleihe#folders', as: 'ausleihe_folders'
  get 'ausleihe/folders/:id' => 'ausleihe#folder_details', as: 'ausleihe_folder'
  get 'ausleihe/exams' => 'ausleihe#exams', as: 'ausleihe_exams'

  # Routes that should not be manually navigated to in "Ausleihe"
  post 'ausleihe/switch' => 'ausleihe#switch', as: 'ausleihe_switch'
  get  'ausleihe/lending_form' => 'ausleihe#lending_form', as: 'lending_form'
  post 'ausleihe/lending_action' => 'ausleihe#lending_action', as: 'lending_action'
  get  'ausleihe/returning_form' => 'ausleihe#returning_form', as: 'returning_form'
  post 'ausleihe/returning_action' => 'ausleihe#returning_action', as: 'returning_action'

  get '/admin' => 'old_folders#index'

  scope '/internal/admin' do
    get 'old_folder_instances' => 'old_folder_instances#index', as: 'old_folder_instances'


    resources :old_folders, :old_exams

    get 'old_folders/:old_folder_id/toc' => 'old_folders#toc', as: 'old_folders_toc'

    resources :old_folders do
      resources :old_folder_instances, :old_exams
    end
  end

  namespace :internal do
    root 'internal_application#index'

    namespace :admin do

      get 'lent' => 'lendouts#lent'#, as: 'admin_lent'
      get 'history' => 'lendouts#history'#, as: 'admin_history'

    end

  end

  root 'application#index'


  # Example of regular route:
  #   get 'products/:id' => 'catalog#view'

  # Example of named route that can be invoked with purchase_url(id: product.id)
  #   get 'products/:id/purchase' => 'catalog#purchase', as: :purchase

  # Example resource route (maps HTTP verbs to controller actions automatically):
  #   resources :products

  # Example resource route with options:<commit_msg>Moved /admin route into /internal scope<commit_after>Rails.application.routes.draw do

  get 'feedback' => 'feedback#feedback_form', as: 'feedback_form'
  post 'feedback' => 'feedback#send_feedback', as: 'send_feedback'


  # Navigateable "Ausleihe"-routes
  get 'ausleihe' => 'ausleihe#index', as: 'ausleihe'
  get 'ausleihe/lent' => 'ausleihe#lent', as: 'ausleihe_lent'
  get 'ausleihe/history' => 'ausleihe#history', as: 'ausleihe_history'
  get 'ausleihe/folders' => 'ausleihe#folders', as: 'ausleihe_folders'
  get 'ausleihe/folders/:id' => 'ausleihe#folder_details', as: 'ausleihe_folder'
  get 'ausleihe/exams' => 'ausleihe#exams', as: 'ausleihe_exams'

  # Routes that should not be manually navigated to in "Ausleihe"
  post 'ausleihe/switch' => 'ausleihe#switch', as: 'ausleihe_switch'
  get  'ausleihe/lending_form' => 'ausleihe#lending_form', as: 'lending_form'
  post 'ausleihe/lending_action' => 'ausleihe#lending_action', as: 'lending_action'
  get  'ausleihe/returning_form' => 'ausleihe#returning_form', as: 'returning_form'
  post 'ausleihe/returning_action' => 'ausleihe#returning_action', as: 'returning_action'

  scope '/internal/admin' do
    get '/' => 'old_folders#index'

    get 'old_folder_instances' => 'old_folder_instances#index', as: 'old_folder_instances'


    resources :old_folders, :old_exams

    get 'old_folders/:old_folder_id/toc' => 'old_folders#toc', as: 'old_folders_toc'

    resources :old_folders do
      resources :old_folder_instances, :old_exams
    end
  end

  namespace :internal do
    root 'internal_application#index'

    namespace :admin do

      get 'lent' => 'lendouts#lent'#, as: 'admin_lent'
      get 'history' => 'lendouts#history'#, as: 'admin_history'


    end

  end


  root 'application#index'


  # Example of regular route:
  #   get 'products/:id' => 'catalog#view'

  # Example of named route that can be invoked with purchase_url(id: product.id)
  #   get 'products/:id/purchase' => 'catalog#purchase', as: :purchase

  # Example resource route (maps HTTP verbs to controller actions automatically):
  #   resources :products

  # Example resource route with options:
{'fraction_non_alphanumeric': 0.13323950269763077, 'fraction_numerical': 0.0, 'mean_word_length': 4.905817174515235, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 43, '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': '1305165', 'n_tokens_mistral': 1630, 'n_tokens_neox': 1505, 'n_words': 339}