<commit_before><h1><%= @plan.title %></h1>
<h2><%= @plan.template.title %></h2>

<% details = @exported_plan.admin_details %>
<% if details.present? %>
  <h3><%= _('Admin Details') %></h3>
  <% details.each do |field| %>
    <% value = @exported_plan.send(field) %>
    <p>
      <strong><%= admin_field_t(field.to_s) %>:</strong>
      <%= value.present? ? value : _('-') %>
    </p>
  <% end %>
<% end %>



<% @exported_plan.sections.each do |section| %>
  <% questions = @exported_plan.questions_for_section(section.id)
    if questions.present?
  %>
      <h3><%= section.title %></h3>
      <% questions.each do |question| %>
        <p>
          <%= raw question.text %>
        </p>
        <% answer = @plan.answer(question.id, false) %>
        <% if answer.nil? %>
          <p><%= _('Question not answered') %></p>
        <% else %>
          <% q_format = question.question_format %>
          <% if q_format.option_based? %>
              <ul>
                <% answer.question_options.each do |option| %>
                  <li><%= raw option.text %></li>
                <% end %>
              </ul>
            <% if question.option_comment_display %>
              <%= raw answer.text %>
            <% end %>
          <% else %>
            <%= raw answer.text %>
          <% end %> <!-- end if q_format.option_based? -->
        <% end%> <!-- end if answer.nil? --> 
    <% end %>	<!-- end questions.each -->
  <% end %> <!-- end if questions.present? -->
<% end %> <!-- end @exported_plan.sections.each -->
<commit_msg>added spaces between questions, better mimics pdf format<commit_after><h1><%= @plan.title %></h1>
<h2><%= @plan.template.title %></h2>

<% details = @exported_plan.admin_details %>
<% if details.present? %>
  <h3><%= _('Admin Details') %></h3>
  <% details.each do |field| %>
    <% value = @exported_plan.send(field) %>
    <p>
      <strong><%= admin_field_t(field.to_s) %>:</strong>
      <%= value.present? ? value : _('-') %>
    </p>
  <% end %>
<% end %>



<% @exported_plan.sections.each do |section| %>
  <% questions = @exported_plan.questions_for_section(section.id)
    if questions.present?
  %>
      <h3><%= section.title %></h3>
      <% questions.each do |question| %>
          <%= raw question.text %>
        <% answer = @plan.answer(question.id, false) %>
        <% if answer.nil? %>
          <p><%= _('Question not answered') %></p>
        <% else %>
          <% q_format = question.question_format %>
          <% if q_format.option_based? %>
              <ul>
                <% answer.question_options.each do |option| %>
                  <li><%= raw option.text %></li>
                <% end %>
              </ul>
            <% if question.option_comment_display %>
              <%= raw answer.text %>
            <% end %>
          <% else %>
            <%= raw answer.text %>
          <% end %> <!-- end if q_format.option_based? -->
        <% end%> <!-- end if answer.nil? --> 
        <p></p>
    <% end %>	<!-- end questions.each -->
  <% end %> <!-- end if questions.present? -->
<% end %> <!-- end @exported_plan.sections.each -->

{'fraction_non_alphanumeric': 0.20966709346991036, 'fraction_numerical': 0.005121638924455826, 'mean_word_length': 1.945334590009425, 'pattern_counts': {'":': 0, '<': 123, '<?xml version=': 0, '>': 123, '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': '7126035', 'n_tokens_mistral': 1117, 'n_tokens_neox': 977, 'n_words': 198}