<commit_before><div id="student_overall">
  <% subreport_selected(@opts[:top_summary]) do %>
    <%= render :partial => "students/student" %> 
  <% end %>

  <% subreport_selected(@opts[:extended_profile]) do %>
    <%= extended_profile(@student) %>
  <% end %>

  <% subreport_selected(@opts[:flags]) do %>
    <% unless @student.flags.empty? %>
      <h2>Flags</h2>
      <%= FlagsForStudentReport.render_html(:student => @student) %>
    <% end %>
  <% end %>

  <% subreport_selected(@opts[:team_notes]) do %>
    <% unless @student.comments.empty? %>
      <% @user = User.new %>
      <h2>Team Notes</h2>
      <%= render :partial => "student_comments/comment", :collection => @student.comments %>
    <% end %>
  <% end %>

  <% subreport_selected @opts[:intervention_summary] do %>
    <h2>Summary of Interventions</h2>
    <%= StudentInterventionsReport.render_html(:student => @student) %>
  <% end %>

  <% subreport_selected @opts[:checklists_and_or_recommendations] do %>
    <h2>Checklists and Recommendations</h2>
    <div id="checklist">
      <% @student.checklists.each do |checklist| %>
        <% @checklist = checklist %>
        <%= render :partial => 'checklists/view', :locals => {:checklist => checklist} %>
      <% end %>
    </div>

    <div id="Recommendation">
      <% @student.recommendations.without_checklist.each do |recommendation| %>
        <p>Completed by <%= recommendation.user.fullname %> on
        <%= recommendation.updated_at.to_s(:chatty) %> </p>
        <%= render :partial => 'recommendations/view', :locals => {:recommendation => recommendation} %>
      <% end %>
    </div>
  <% end %>
</div><commit_msg>[#135 state:resolved] Suppressing more headers if no data under them.<commit_after><div id="student_overall">
  <% subreport_selected(@opts[:top_summary]) do %>
    <%= render :partial => "students/student" %> 
  <% end %>

  <% subreport_selected(@opts[:extended_profile]) do %>
    <%= extended_profile(@student) %>
  <% end %>

  <% subreport_selected(@opts[:flags]) do %>
    <% unless @student.flags.empty? %>
      <h2>Flags</h2>
      <%= FlagsForStudentReport.render_html(:student => @student) %>
    <% end %>
  <% end %>

  <% subreport_selected(@opts[:team_notes]) do %>
    <% unless @student.comments.empty? %>
      <% @user = User.new %>
      <h2>Team Notes</h2>
      <%= render :partial => "student_comments/comment", :collection => @student.comments %>
    <% end %>
  <% end %>

  <% subreport_selected @opts[:intervention_summary] do %>
    <% if @student.interventions.empty? %>
      Student has no interventions
    <% else %>
      <h2>Summary of Interventions</h2>
      <%= StudentInterventionsReport.render_html(:student => @student) %>
    <% end %>
  <% end %>

  <% subreport_selected @opts[:checklists_and_or_recommendations] do %>
    <% unless @student.checklists.empty? and @student.recommendations.without_checklist.empty? %>
      <h2>Checklists and Recommendations</h2>
      <div id="checklist">
        <% @student.checklists.each do |checklist| %>
          <% @checklist = checklist %>
          <%= render :partial => 'checklists/view', :locals => {:checklist => checklist} %>
        <% end %>
      </div>

      <div id="Recommendation">
        <% @student.recommendations.without_checklist.each do |recommendation| %>
          <p>Completed by <%= recommendation.user.fullname %> on
          <%= recommendation.updated_at.to_s(:chatty) %> </p>
          <%= render :partial => 'recommendations/view', :locals => {:recommendation => recommendation} %>
        <% end %>
      </div>
    <% end %>
  <% end %>
</div>
{'fraction_non_alphanumeric': 0.1834760983697154, 'fraction_numerical': 0.005250069079856314, 'mean_word_length': 3.345738295318127, 'pattern_counts': {'":': 0, '<': 102, '<?xml version=': 0, '>': 124, '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': '7647965', 'n_tokens_mistral': 1282, 'n_tokens_neox': 1097, 'n_words': 195}