<commit_before>module SmartAnswer
  class CalculateStatutorySickPayFlow < Flow
    def define
      content_id "1c676a9e-0424-4ebb-bab8-d8cb8d2fc6f8"
      name 'calculate-statutory-sick-pay'

      status :published
      satisfies_need "100262"

      # Question 1
      checkbox_question :is_your_employee_getting? do
        option :statutory_maternity_pay
        option :maternity_allowance
        option :statutory_paternity_pay
        option :statutory_adoption_pay
        option :additional_statutory_paternity_pay

        next_node_calculation :calculator do
          Calculators::StatutorySickPayCalculator.new
        end

        permitted_next_nodes = [:employee_tell_within_limit?, :already_getting_maternity]
        next_node(permitted: permitted_next_nodes) do |response|
          calculator.other_pay_types_received = response.split(",")
          if calculator.already_getting_maternity_pay?<commit_msg>Now insert `use_erb_templates_for_questions` at top of flow<commit_after>module SmartAnswer
  class CalculateStatutorySickPayFlow < Flow
    def define
      content_id "1c676a9e-0424-4ebb-bab8-d8cb8d2fc6f8"
      name 'calculate-statutory-sick-pay'

      status :published
      satisfies_need "100262"

      use_erb_templates_for_questions

      # Question 1
      checkbox_question :is_your_employee_getting? do
        option :statutory_maternity_pay
        option :maternity_allowance
        option :statutory_paternity_pay
        option :statutory_adoption_pay
        option :additional_statutory_paternity_pay

        next_node_calculation :calculator do
          Calculators::StatutorySickPayCalculator.new
        end

        permitted_next_nodes = [:employee_tell_within_limit?, :already_getting_maternity]
        next_node(permitted: permitted_next_nodes) do |response|
          calculator.other_pay_types_received = response.split(",")
          if calculator.already_getting_maternity_pay?
{'fraction_non_alphanumeric': 0.054554812146165726, 'fraction_numerical': 0.023674729799279464, 'mean_word_length': 3.5104408352668215, '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': '3431054', 'n_tokens_mistral': 667, 'n_tokens_neox': 581, 'n_words': 98}