<commit_before><% page_title @document.title, "Consultations" %>
<% page_class consultation_css_class(@document) %>

<div class="document-page <%= @document.type.downcase %>">
  <header class="block headings-block">
    <div class="inner-block floated-children">
      <%= render  partial: "documents/header", locals: {
                    document: @document,
                    header_title: @document.display_type,
                    policies: @related_policies
                  } %>
    </div>

    <% if @document.closed? || @document.response_published? %>
      <div class="consultation-alert">
        <% if @document.closed? and not @document.response_published? %>
          <h2>We are analysing your responses</h2>
          <p>Visit this page again soon to download the outcome to this public feedback.</p>
        <% elsif @document.response_published? %>
          <h2>This consultation has concluded</h2>
        <% end %>
      </div>
    <% end %>

  </header>

  <div class="block-2">
    <div class="inner-block">
      <% if @document.open? %>
        <div class="consultation-block <%= consultation_css_class(@document) %>">
          <div class="consultation-dates">
            <p>This consultation closes on <span><%= absolute_date(@document.closing_on, class: 'closing-on') %></span></p>
          </div>
          <div class="summary">
            <div>
              <h2>Summary</h2>
              <p><%= @document.summary %></p>
            </div>
          </div>
        </div>
      <% else %>
        <% if @document.response_published? %>
          <% if @document.response.summary.present? %>
            <section class="heading-block">
              <h1>Outcome</h1>
              <div class="content">
                <article>
                  <div class="body">
                    <%= govspeak_to_html @document.response.summary %>
                  </div>
                </article>
              </div>
            </section>
          <% end %>
          <% if @document.response.attachments.any? %>
            <%= render partial: "documents/attachment_full_width",
                      locals: { document: @document.response,
                        title: "Download the full outcome",
                        published_on: @document.response_published_on } %>
          <% end %><commit_msg>Move consultation outcome summary below attachments<commit_after><% page_title @document.title, "Consultations" %>
<% page_class consultation_css_class(@document) %>

<div class="document-page <%= @document.type.downcase %>">
  <header class="block headings-block">
    <div class="inner-block floated-children">
      <%= render  partial: "documents/header", locals: {
                    document: @document,
                    header_title: @document.display_type,
                    policies: @related_policies
                  } %>
    </div>

    <% if @document.closed? || @document.response_published? %>
      <div class="consultation-alert">
        <% if @document.closed? and not @document.response_published? %>
          <h2>We are analysing your responses</h2>
          <p>Visit this page again soon to download the outcome to this public feedback.</p>
        <% elsif @document.response_published? %>
          <h2>This consultation has concluded</h2>
        <% end %>
      </div>
    <% end %>

  </header>

  <div class="block-2">
    <div class="inner-block">
      <% if @document.open? %>
        <div class="consultation-block <%= consultation_css_class(@document) %>">
          <div class="consultation-dates">
            <p>This consultation closes on <span><%= absolute_date(@document.closing_on, class: 'closing-on') %></span></p>
          </div>
          <div class="summary">
            <div>
              <h2>Summary</h2>
              <p><%= @document.summary %></p>
            </div>
          </div>
        </div>
      <% else %>
        <% if @document.response_published? %>
          <% if @document.response.attachments.any? %>
            <%= render partial: "documents/attachment_full_width",
                      locals: { document: @document.response,
                        title: "Download the full outcome",
                        published_on: @document.response_published_on } %>
          <% end %>
          <% if @document.response.summary.present? %>
            <section class="heading-block">
              <h1>Detail of outcome</h1>
              <div class="content">
                <article>
                  <div class="body">
                    <%= govspeak_to_html @document.response.summary %>
                  </div>
                </article>
              </div>
            </section>
          <% end %>
{'fraction_non_alphanumeric': 0.14334038054968287, 'fraction_numerical': 0.0038054968287526427, 'mean_word_length': 1.853437876960193, 'pattern_counts': {'":': 0, '<': 127, '<?xml version=': 0, '>': 127, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '655094', 'n_tokens_mistral': 1369, 'n_tokens_neox': 1252, 'n_words': 269}