<commit_before>Rails.application.routes.draw do
  get '/contact' => 'pages#contact'
  get '/documentation' => 'pages#documentation'

  resources :documents, only: %i(show)
  resources :template_packs, only: %(new create)

  resources :templates, except: %i(show) do
    member do
      get :document_submissions
    end
  end

  resources :document_submissions, except: %i(show, edit, update) do
    collection do
      post :with_defaults
    end
  end

  post '/api/templates/:id/generate' => 'api/templates#generate'

  root to: 'home#index'
end<commit_msg>actually, what we need here is an array of symbols<commit_after>Rails.application.routes.draw do
  get '/contact' => 'pages#contact'
  get '/documentation' => 'pages#documentation'

  resources :documents, only: %i(show)
  resources :template_packs, only: %i(new create)

  resources :templates, except: %i(show) do
    member do
      get :document_submissions
    end
  end

  resources :document_submissions, except: %i(show, edit, update) do
    collection do
      post :with_defaults
    end
  end

  post '/api/templates/:id/generate' => 'api/templates#generate'

  root to: 'home#index'
end
{'fraction_non_alphanumeric': 0.11658031088082901, 'fraction_numerical': 0.0, 'mean_word_length': 3.9110169491525424, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '3048906', 'n_tokens_mistral': 377, 'n_tokens_neox': 359, 'n_words': 104}