<commit_before>Markus::Application.routes.draw do
  # Install the default routes as the lowest priority.
  root controller: 'main', action: 'login', via: [:post, :get]

  # optional path scope (denoted by the parentheses)
  scope "(:locale)", locale: /en|fr|pt/  do
    # API routes
    namespace :api do
      resources :users, except: [:new, :edit]
      resources :assignments, except: [:new, :edit] do
        resources :groups, except: [:new, :edit] do
          resources :submission_downloads, except: [:new, :edit]
          resources :test_results, except: [:new, :edit]
          resources :results, except: [:new, :edit]
        end
      end
      resources :main_api
    end

    resources :admins do
      collection do
        get 'populate'
      end
    end

    resources :assignments do

      collection do
        get 'download_csv_grades_report'
        get 'delete_rejected'<commit_msg>Changed route to support singular resource<commit_after>Markus::Application.routes.draw do
  # Install the default routes as the lowest priority.
  root controller: 'main', action: 'login', via: [:post, :get]

  # optional path scope (denoted by the parentheses)
  scope "(:locale)", locale: /en|fr|pt/  do
    # API routes
    namespace :api do
      resources :users, except: [:new, :edit]
      resources :assignments, except: [:new, :edit] do
        resources :groups, except: [:new, :edit] do
          resources :submission_downloads, except: [:new, :edit]
          resources :test_results, except: [:new, :edit]
          resource :results, except: [:new, :edit]
        end
      end
      resources :main_api
    end

    resources :admins do
      collection do
        get 'populate'
      end
    end

    resources :assignments do

      collection do
        get 'download_csv_grades_report'
        get 'delete_rejected'
{'fraction_non_alphanumeric': 0.10400866738894908, 'fraction_numerical': 0.0, 'mean_word_length': 2.708835341365462, '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': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '60161', 'n_tokens_mistral': 548, 'n_tokens_neox': 535, 'n_words': 184}