<commit_before>Rails.application.routes.draw do

  devise_for :users, :controllers => {:registrations => "registrations"}
  resources :user, :controller => "user"
  
  get 'organisations' => 'organisations#index', as: 'organisations'
  get 'assessments/begin' => 'assessments#begin', as: 'begin_assessment'
    
  get 'assessments/:id/report' => 'assessments#report', as: 'report'
  post 'assessments/:id/report' => 'assessments#complete', as: 'complete_assessment'
      
  resources :assessments do
    get 'questions/:question_id' => 'assessment_answers#new', as: 'question'
    post 'questions/:question_id' => 'assessment_answers#create', as: 'question_answer'
    get 'assessment_answers/:id' => 'assessment_answers#edit', as: 'edit_answer'
    patch 'assessment_answers/:id' => 'assessment_answers#update', as: 'answer'
  end

  get 'assessments/:assessment_id/continue' => 'assessment_answers#continue', as: 'continue_assessment'

  get 'organisation_admins/:organisation_id/contact' => 'organisation_admins#new_contact', as: 'contact_organisation_admin'<commit_msg>adds routes for setting targets<commit_after>Rails.application.routes.draw do

  devise_for :users, :controllers => {:registrations => "registrations"}
  resources :user, :controller => "user"
  
  get 'organisations' => 'organisations#index', as: 'organisations'
  get 'assessments/begin' => 'assessments#begin', as: 'begin_assessment'
  
  get 'assessments/:id/report' => 'assessments#report', as: 'report'
  post 'assessments/:id/report' => 'assessments#complete', as: 'complete_assessment'
  
  get 'set_target/:score_id' => 'targets#edit', as: 'edit_target'
  patch 'set_target/:score_id' => 'targets#update'

  resources :assessments do
    get 'questions/:question_id' => 'assessment_answers#new', as: 'question'
    post 'questions/:question_id' => 'assessment_answers#create', as: 'question_answer'
    get 'assessment_answers/:id' => 'assessment_answers#edit', as: 'edit_answer'
    patch 'assessment_answers/:id' => 'assessment_answers#update', as: 'answer'
  end

  get 'assessments/:assessment_id/continue' => 'assessment_answers#continue', as: 'continue_assessment'

  get 'organisation_admins/:organisation_id/contact' => 'organisation_admins#new_contact', as: 'contact_organisation_admin'
{'fraction_non_alphanumeric': 0.14749780509218613, 'fraction_numerical': 0.0, 'mean_word_length': 6.351612903225806, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 31, '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': '1824967', 'n_tokens_mistral': 784, 'n_tokens_neox': 764, 'n_words': 141}