<commit_before>module SmartAnswer
  class PayLeaveForParentsFlow < Flow
    def define
      content_id "1f6b4ecc-ce2c-488a-b9c7-b78b3bba5598"
      name "pay-leave-for-parents"
      status :published
      satisfies_need "101018"

      multiple_choice :two_carers do
        option "yes"
        option "no"

        save_input_as :two_carers

        next_node_calculation :calculator do
          Calculators::PayLeaveForParentsCalculator.new
        end

        next_node :due_date
      end

      date_question :due_date do
        save_input_as :due_date

        next_node :employment_status_of_mother
      end

      multiple_choice :employment_status_of_mother do
        option "employee"
        option "worker"
        option "self-employed"
        option "unemployed"

        save_input_as :employment_status_of_mother

        permitted_next_nodes = [
          :mother_started_working_before_continuity_start_date,
          :mother_worked_at_least_26_weeks,<commit_msg>Now insert use_erb_templates_for_questions at top of flow<commit_after>module SmartAnswer
  class PayLeaveForParentsFlow < Flow
    def define
      content_id "1f6b4ecc-ce2c-488a-b9c7-b78b3bba5598"
      name "pay-leave-for-parents"
      status :published
      satisfies_need "101018"

      use_erb_templates_for_questions

      multiple_choice :two_carers do
        option "yes"
        option "no"

        save_input_as :two_carers

        next_node_calculation :calculator do
          Calculators::PayLeaveForParentsCalculator.new
        end

        next_node :due_date
      end

      date_question :due_date do
        save_input_as :due_date

        next_node :employment_status_of_mother
      end

      multiple_choice :employment_status_of_mother do
        option "employee"
        option "worker"
        option "self-employed"
        option "unemployed"

        save_input_as :employment_status_of_mother

        permitted_next_nodes = [
          :mother_started_working_before_continuity_start_date,
          :mother_worked_at_least_26_weeks,
{'fraction_non_alphanumeric': 0.04741170778906628, 'fraction_numerical': 0.023222060957910014, 'mean_word_length': 2.6217162872154116, 'pattern_counts': {'":': 0, '<': 5, '<?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': '5892649', 'n_tokens_mistral': 695, 'n_tokens_neox': 631, 'n_words': 118}