<commit_before>Markus::Application.routes.draw do
  # Install the default routes as the lowest priority.
  root :controller => "main", :action => "login"

  # optional path scope (denoted by the parentheses)
  scope "(:locale)", locale: /en|fr/  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]
        end
      end
      resources :main_api
    end

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

    resources :assignments do

      collection do
        get 'download_csv_grades_report'
        post 'update_group_properties_on_persist'
        get 'delete_rejected'
        post 'update_collected_submissions'
        get 'download_assignment_list'
        post 'upload_assignment_list'
      end

      member do<commit_msg>Revert to old hash syntax in routes<commit_after>Markus::Application.routes.draw do
  # Install the default routes as the lowest priority.
  root :controller => "main", :action => "login"

  # optional path scope (denoted by the parentheses)
  scope "(:locale)", :locale => /en|fr/  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]
        end
      end
      resources :main_api
    end

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

    resources :assignments do

      collection do
        get 'download_csv_grades_report'
        post 'update_group_properties_on_persist'
        get 'delete_rejected'
        post 'update_collected_submissions'
        get 'download_assignment_list'
        post 'upload_assignment_list'
      end

      member do
{'fraction_non_alphanumeric': 0.09657759024847633, 'fraction_numerical': 0.0, 'mean_word_length': 2.616949152542373, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 18, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6670393', 'n_tokens_mistral': 630, 'n_tokens_neox': 613, 'n_words': 191}