<commit_before>- content_for :header_title, t("improvements.heading")

- content_for(:main_container_class) {'non-container improvements'}

- ['basic', 'pilot', 'standard', 'exemplar'].each do |level|

  %header{:class => level}
    %div.container{:class => level}
      %h2= t("improvements.levels.#{level}.title")
      %h3= t("improvements.levels.#{level}.subtitle")

  %div.non-container{:class => level}
    %div.container{:class => level}
      %p= t("improvements.levels.#{level}.instruction")

      %ul
        -if level == 'basic'
          -# the requirements for basic are actually mandatory fields
          -@mandatory_fields.each do |field|
            %li Answer &lsquo;<strong>#{field.text.html_safe}</strong>&rsquo;
          -# also any basic requirements
          -@requirements.select {|r| r.requirement_level == level}.each do |requirement|
            %li
              = without_instruction(requirement.text).html_safe
        - else
          -@requirements.select {|r| r.requirement_level == level}.each do |requirement|
            %li
              = without_instruction(requirement.text).html_safe<commit_msg>only show sections with items in it<commit_after>- content_for :header_title, t("improvements.heading")

- content_for(:main_container_class) {'non-container improvements'}

- ['basic', 'pilot', 'standard', 'exemplar'].each do |level|

  - requirements = @requirements.select {|r| r.requirement_level == level}
  - fields = level == 'basic' ? @mandatory_fields : []

  - unless (requirements + fields).empty?



    %header{:class => level}
      %div.container{:class => level}
        %h2= t("improvements.levels.#{level}.title")
        %h3= t("improvements.levels.#{level}.subtitle")

    %div.non-container{:class => level}
      %div.container{:class => level}
        %p= t("improvements.levels.#{level}.instruction")

        %ul
          -fields.each do |field|
            %li
              Answer &lsquo;<strong>#{field.text.html_safe}</strong>&rsquo;

          -requirements.each do |requirement|
            %li
              = without_instruction(requirement.text).html_safe
{'fraction_non_alphanumeric': 0.15453264443400658, 'fraction_numerical': 0.0018788163457022077, 'mean_word_length': 2.9517625231910944, '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': '4999383', 'n_tokens_mistral': 682, 'n_tokens_neox': 639, 'n_words': 122}