<commit_before>def add_routes(routes_name)
  instance_eval(File.read(Rails.root.join("config/#{routes_name}.rb")))
end

get "sign_in", to: "sign_in#index", as: :sign_in
post "sign_in", to: "sign_in#select_idp", as: :sign_in_submit
get "begin_sign_in", to: "start#sign_in", as: :begin_sign_in

# TEMPORARY TEAR DOWN
# HUH-233 short hub 2019 q3 multivariate tests - LOA2 only
SHORT_HUB_2019_Q3 = "short_hub_2019_q3-preview".freeze
# rubocop:disable UselessAssignment
short_hub_v3_preview = AbTestConstraint.configure(ab_test_name: "short_hub_2019_q3-preview", experiment_loa: "LEVEL_2")
# rubocop:enable UselessAssignment
short_hub_v3 = AbTestConstraint.configure(ab_test_name: "short_hub_2019_q3", experiment_loa: "LEVEL_2")

constraints IsLoa1 do
  get "prove_identity", to: "prove_identity#index", as: :prove_identity
  get "prove_identity_retry", to: "prove_identity#retry_eidas_journey", as: :prove_identity_retry
  get "start", to: "start#index", as: :start
  post "start", to: "start#request_post", as: :start
  get "begin_registration", to: "start#register", as: :begin_registration
  get "choose_a_certified_company", to: "choose_a_certified_company_loa1#index", as: :choose_a_certified_company
  post "choose_a_certified_company", to: "choose_a_certified_company_loa1#select_idp", as: :choose_a_certified_company_submit
  get "choose_a_certified_company/:company", to: "choose_a_certified_company_loa1#about", as: :choose_a_certified_company_about
  get "why_companies", to: "why_companies_loa1#index", as: :why_companies
  get "failed_registration", to: "failed_registration_loa1#index", as: :failed_registration
  get "cancelled_registration", to: "cancelled_registration_loa1#index", as: :cancelled_registration
  get "redirect_to_idp_question", to: "redirect_to_idp_question_loa1#index", as: :redirect_to_idp_question
  post "redirect_to_idp_question", to: "redirect_to_idp_question_loa1#continue", as: :redirect_to_idp_question_submit
  post "redirect_to_idp_warning", to: "redirect_to_idp_warning#continue", as: :redirect_to_idp_warning_submit
  get "redirect_to_idp_warning", to: "redirect_to_idp_warning#index", as: :redirect_to_idp_warning
  get "idp_wont_work_for_you_one_doc", to: "redirect_to_idp_question_loa1#idp_wont_work_for_you", as: :idp_wont_work_for_you_one_doc
  get "confirmation", to: "confirmation_loa1#matching_journey", as: :confirmation
  get "about", to: "about_loa1#index", as: :about
  get "about_certified_companies", to: "about_loa1#certified_companies", as: :about_certified_companies
  get "about_identity_accounts", to: "about_loa1#identity_accounts", as: :about_identity_accounts
  get "about_choosing_a_company", to: "about_loa1#choosing_a_company", as: :about_choosing_a_company
  get "confirmation_non_matching_journey", to: "confirmation_loa1#non_matching_journey", as: :confirmation_non_matching_journey
end

constraints IsLoa2 do
  get "prove_identity", to: "prove_identity#index", as: :prove_identity
  get "prove_identity_retry", to: "prove_identity#retry_eidas_journey", as: :prove_identity_retry
  get "prove_identity_ignore_hint", to: "prove_identity#ignore_hint", as: :prove_identity_ignore_hint
  get "start", to: "start#index", as: :start<commit_msg>Updated main routes to be correct<commit_after>def add_routes(routes_name)
  instance_eval(File.read(Rails.root.join("config/#{routes_name}.rb")))
end

get "sign_in", to: "sign_in#index", as: :sign_in
post "sign_in", to: "sign_in#select_idp", as: :sign_in_submit
get "begin_sign_in", to: "start#sign_in", as: :begin_sign_in

# HUH-233 short hub 2019 q3 multivariate tests - LOA2 only
SHORT_HUB_2019_Q3 = "short_hub_2019_q3-preview".freeze
short_hub_v3 = AbTestConstraint.configure(ab_test_name: SHORT_HUB_2019_Q3, experiment_loa: "LEVEL_2")

constraints IsLoa1 do
  get "prove_identity", to: "prove_identity#index", as: :prove_identity
  get "prove_identity_retry", to: "prove_identity#retry_eidas_journey", as: :prove_identity_retry
  get "start", to: "start#index", as: :start
  post "start", to: "start#request_post", as: :start
  get "begin_registration", to: "start#register", as: :begin_registration
  get "choose_a_certified_company", to: "choose_a_certified_company_loa1#index", as: :choose_a_certified_company
  post "choose_a_certified_company", to: "choose_a_certified_company_loa1#select_idp", as: :choose_a_certified_company_submit
  get "choose_a_certified_company/:company", to: "choose_a_certified_company_loa1#about", as: :choose_a_certified_company_about
  get "why_companies", to: "why_companies_loa1#index", as: :why_companies
  get "failed_registration", to: "failed_registration_loa1#index", as: :failed_registration
  get "cancelled_registration", to: "cancelled_registration_loa1#index", as: :cancelled_registration
  get "redirect_to_idp_question", to: "redirect_to_idp_question_loa1#index", as: :redirect_to_idp_question
  post "redirect_to_idp_question", to: "redirect_to_idp_question_loa1#continue", as: :redirect_to_idp_question_submit
  post "redirect_to_idp_warning", to: "redirect_to_idp_warning#continue", as: :redirect_to_idp_warning_submit
  get "redirect_to_idp_warning", to: "redirect_to_idp_warning#index", as: :redirect_to_idp_warning
  get "idp_wont_work_for_you_one_doc", to: "redirect_to_idp_question_loa1#idp_wont_work_for_you", as: :idp_wont_work_for_you_one_doc
  get "confirmation", to: "confirmation_loa1#matching_journey", as: :confirmation
  get "about", to: "about_loa1#index", as: :about
  get "about_certified_companies", to: "about_loa1#certified_companies", as: :about_certified_companies
  get "about_identity_accounts", to: "about_loa1#identity_accounts", as: :about_identity_accounts
  get "about_choosing_a_company", to: "about_loa1#choosing_a_company", as: :about_choosing_a_company
  get "confirmation_non_matching_journey", to: "confirmation_loa1#non_matching_journey", as: :confirmation_non_matching_journey
end

constraints IsLoa2 do
  get "prove_identity", to: "prove_identity#index", as: :prove_identity
  get "prove_identity_retry", to: "prove_identity#retry_eidas_journey", as: :prove_identity_retry
  get "prove_identity_ignore_hint", to: "prove_identity#ignore_hint", as: :prove_identity_ignore_hint
  get "start", to: "start#index", as: :start
{'fraction_non_alphanumeric': 0.10914643947918341, 'fraction_numerical': 0.014949365053849863, 'mean_word_length': 9.91578947368421, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1738789', 'n_tokens_mistral': 2414, 'n_tokens_neox': 2306, 'n_words': 418}