<commit_before>div.question-body
  p.question-context == @eligibility.class.hint(step)
  div.input.radio_buttons.optional.eligibility_application_category role="radiogroup" id="eligibility_application_category" aria-labelledby="eligibility_application_category_label"
    label.radio_buttons.optional.control-label.visuallyhidden Application category
    input.radio_buttons.optional type="hidden" name="eligibility[application_category]"
    - for answer in @eligibility.options_for_question(step)
        span.radio.selectable
          input type="radio" value=answer[0] name="eligibility[application_category]" id="eligibility_application_category_#{answer[0]}"
          label.collection_radio_buttons for="eligibility_application_category_#{answer[0]}" = answer[1].html_safe
          span.question-context
            = @eligibility.context_for_options[answer[0].to_sym].html_safe
span.clear<commit_msg>🐛 Fix rendering of errors for category selection<commit_after>div.question-body
  p.question-context == @eligibility.class.hint(step)

  div.input.radio_buttons.optional.eligibility_application_category role="radiogroup" id="eligibility_application_category" aria-labelledby="eligibility_application_category_label" class=("field-with-errors" if @eligibility.errors.any?)
    label.radio_buttons.optional.control-label.visuallyhidden Application category
    - if @eligibility.errors.any?
      span.error
        p = @eligibility.errors[:application_category].join(",")
    input.radio_buttons.optional type="hidden" name="eligibility[application_category]"
    - for answer in @eligibility.options_for_question(step)
        span.radio.selectable
          input type="radio" value=answer[0] name="eligibility[application_category]" id="eligibility_application_category_#{answer[0]}" aria-invalid=("true" if @eligibility.errors.any?)
          label.collection_radio_buttons for="eligibility_application_category_#{answer[0]}" = answer[1].html_safe
          span.question-context
            = @eligibility.context_for_options[answer[0].to_sym].html_safe
span.clear
{'fraction_non_alphanumeric': 0.109720885466795, 'fraction_numerical': 0.004812319538017324, 'mean_word_length': 5.728155339805825, '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': '6722947', 'n_tokens_mistral': 610, 'n_tokens_neox': 582, 'n_words': 75}