<commit_before>- if section.display_header
  %header
    .container
      %h3= section.translation(I18n.locale)[:title]

  %ul
    - qs ||= []
    - (questions = section.questions).each_with_index do |q, i|
      - if q.part_of_group?
        - qs << q # gather up the group questions
        - if (i+1 >= questions.size) or (q.question_group_id != questions[i+1].question_group_id)
          - # this is the last question of the section, or the group
          = render q.question_group.custom_renderer || "/partials/question_group", :g => q.question_group, :qs => qs, :f => f
          - qs = []
      - else # gather up the group questions
        = render q.custom_renderer || "/partials/question", :q => q, :f => f<commit_msg>oops,  was hiding entire section rather than just the header<commit_after>- if section.display_header
  %header
    .container
      %h3= section.translation(I18n.locale)[:title]

%ul
  - qs ||= []
  - (questions = section.questions).each_with_index do |q, i|
    - if q.part_of_group?
      - qs << q # gather up the group questions
      - if (i+1 >= questions.size) or (q.question_group_id != questions[i+1].question_group_id)
        - # this is the last question of the section, or the group
        = render q.question_group.custom_renderer || "/partials/question_group", :g => q.question_group, :qs => qs, :f => f
        - qs = []
    - else # gather up the group questions
      = render q.custom_renderer || "/partials/question", :q => q, :f => f
{'fraction_non_alphanumeric': 0.1378614660390047, 'fraction_numerical': 0.006724949562878279, 'mean_word_length': 2.71072319201995, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 15, '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': '5308637', 'n_tokens_mistral': 488, 'n_tokens_neox': 482, 'n_words': 134}