<commit_before><% page_title @classification.name %>
<% page_class "topical-events-show" %>
<% atom_discovery_link_tag topical_event_url(@classification, format: 'atom'), "Latest activity on #{@classification.name}" %>

<%= content_tag_for(:div, @classification, class: "classification #{@classification.class.name.underscore}") do %>

  <div class="block">
    <div class="inner-block">
      <header class="page-title">
        <h1><span><%= image_tag(@classification.logo_url, alt: @classification.logo_alt_text) if @classification.logo_url %></span></h1>
        <h2><span><%= @classification.name %></span></h2>
      </header>

      <div class="page-description">
        <%= render partial: 'shared/recently_updated',
                  locals: { recently_updated: @recently_changed_documents,
                            atom_url: classification_url(@classification, format: "atom"),
                            govdelivery_url: @classification.govdelivery_url } %>
        <section class="description">
          <%= govspeak_to_html @classification.description %>

          <% if @classification.social_media_accounts.any? %>
            <%= render partial: 'shared/social_media_accounts',
                      locals: { socialable: @classification, followus: true } %>
          <% end %>
        </section>
      </div>
    </div>
  </div>

  <div class="block">
    <div class="inner-block">
      <% if @featured_editions.any? %>
        <section class="featured-news items-<%= @featured_editions.length %>">
          <%= render partial: 'shared/featured_news',
                     collection: @featured_editions,
                     as: :edition,
                     locals: { image_size: :s465 } %>
        </section>
      <% end %>
    </div>
  </div>

  <div class="block">
    <div class="inner-block">
      <% if @policies.any? %>
        <section id="policies" class="policies heading-block">
          <h1 class="label">Policies</h1>
          <div class="content">
            <%= render partial: "policies/list_description", locals: {policies: @policies} %>
          </div>
        </section>
      <% end %>
      <% if @publications.any? %>
        <section id="publications" class="heading-block">
          <h1 class="label">Publications</h1>
          <div class="content">
            <%= render partial: "publications/list_description", locals: {publications: @publications} %>
            <p class="see-all">
              <%#= link_to 'See all publications', publications_filter_path(@classification) %>
            </p>
          </div>
        </section>
      <% end %>
      <% if @announcements.any? %>
        <section id="announcements" class="heading-block">
          <h1 class="label">Announcements</h1>
          <div class="content">
            <%= render partial: "announcements/list_description", locals: {announcements: @announcements} %>
            <p class="see-all">
              <%#= link_to "See all announcements", announcements_filter_path(@classification) %>
            </p>
          </div>
        </section>
      <% end %>
      <% if @detailed_guides.any? %>
        <section id="detailed-guidance" class="heading-block">
          <h1 class="label">Detailed guidance</h1>
          <div class="content">
            <ul class="documents-list">
              <% @detailed_guides.each do |detailed_guide| %>
                <%= content_tag_for :li, detailed_guide, class: 'document' do %>
                  <h2><%= link_to detailed_guide.title, public_document_path(detailed_guide) %></h2>
                <% end %>
              <% end %>
            </ul>
          </div>
        </section>
      <% end %>
      <% if @related_classifications.any? %>
        <section id="related-topics" class="heading-block">
          <h1 class="label">Related topics</h1>
          <div class="content">
            <ul class="documents-list">
              <% @related_classifications.each do |topic| %>
                <%= content_tag_for :li, topic do %>
                  <%= link_to topic.name, topic_path(topic) %>
                <% end %>
              <% end %>
            </ul>
          </div>
        </section>
      <% end %>
      <section id="organisations" class="heading-block organisations">
        <h1 class="label">Departments</h1>
        <div class="content">
          <ul>
            <% @classification.lead_organisations.each do |organisation| %>
              <%= content_tag_for(:li, organisation, class: organisation.slug) do %>
                <%= link_to organisation_path(organisation),
                      title: organisation.logo_formatted_name,
                      class: logo_classes(class_name: organisation.organisation_logo_type.class_name, stacked: true}) do %>
                  <span><%= format_with_html_line_breaks(h(organisation.logo_formatted_name)) %></span>
                <% end %>
              <% end %>
            <% end %>
          </ul>
        </div>
      </section>
    </div>
  </div>
<% end %><commit_msg>Typo caught by regression test<commit_after><% page_title @classification.name %>
<% page_class "topical-events-show" %>
<% atom_discovery_link_tag topical_event_url(@classification, format: 'atom'), "Latest activity on #{@classification.name}" %>

<%= content_tag_for(:div, @classification, class: "classification #{@classification.class.name.underscore}") do %>

  <div class="block">
    <div class="inner-block">
      <header class="page-title">
        <h1><span><%= image_tag(@classification.logo_url, alt: @classification.logo_alt_text) if @classification.logo_url %></span></h1>
        <h2><span><%= @classification.name %></span></h2>
      </header>

      <div class="page-description">
        <%= render partial: 'shared/recently_updated',
                  locals: { recently_updated: @recently_changed_documents,
                            atom_url: classification_url(@classification, format: "atom"),
                            govdelivery_url: @classification.govdelivery_url } %>
        <section class="description">
          <%= govspeak_to_html @classification.description %>

          <% if @classification.social_media_accounts.any? %>
            <%= render partial: 'shared/social_media_accounts',
                      locals: { socialable: @classification, followus: true } %>
          <% end %>
        </section>
      </div>
    </div>
  </div>

  <div class="block">
    <div class="inner-block">
      <% if @featured_editions.any? %>
        <section class="featured-news items-<%= @featured_editions.length %>">
          <%= render partial: 'shared/featured_news',
                     collection: @featured_editions,
                     as: :edition,
                     locals: { image_size: :s465 } %>
        </section>
      <% end %>
    </div>
  </div>

  <div class="block">
    <div class="inner-block">
      <% if @policies.any? %>
        <section id="policies" class="policies heading-block">
          <h1 class="label">Policies</h1>
          <div class="content">
            <%= render partial: "policies/list_description", locals: {policies: @policies} %>
          </div>
        </section>
      <% end %>
      <% if @publications.any? %>
        <section id="publications" class="heading-block">
          <h1 class="label">Publications</h1>
          <div class="content">
            <%= render partial: "publications/list_description", locals: {publications: @publications} %>
            <p class="see-all">
              <%#= link_to 'See all publications', publications_filter_path(@classification) %>
            </p>
          </div>
        </section>
      <% end %>
      <% if @announcements.any? %>
        <section id="announcements" class="heading-block">
          <h1 class="label">Announcements</h1>
          <div class="content">
            <%= render partial: "announcements/list_description", locals: {announcements: @announcements} %>
            <p class="see-all">
              <%#= link_to "See all announcements", announcements_filter_path(@classification) %>
            </p>
          </div>
        </section>
      <% end %>
      <% if @detailed_guides.any? %>
        <section id="detailed-guidance" class="heading-block">
          <h1 class="label">Detailed guidance</h1>
          <div class="content">
            <ul class="documents-list">
              <% @detailed_guides.each do |detailed_guide| %>
                <%= content_tag_for :li, detailed_guide, class: 'document' do %>
                  <h2><%= link_to detailed_guide.title, public_document_path(detailed_guide) %></h2>
                <% end %>
              <% end %>
            </ul>
          </div>
        </section>
      <% end %>
      <% if @related_classifications.any? %>
        <section id="related-topics" class="heading-block">
          <h1 class="label">Related topics</h1>
          <div class="content">
            <ul class="documents-list">
              <% @related_classifications.each do |topic| %>
                <%= content_tag_for :li, topic do %>
                  <%= link_to topic.name, topic_path(topic) %>
                <% end %>
              <% end %>
            </ul>
          </div>
        </section>
      <% end %>
      <section id="organisations" class="heading-block organisations">
        <h1 class="label">Departments</h1>
        <div class="content">
          <ul>
            <% @classification.lead_organisations.each do |organisation| %>
              <%= content_tag_for(:li, organisation, class: organisation.slug) do %>
                <%= link_to organisation_path(organisation),
                      title: organisation.logo_formatted_name,
                      class: logo_classes(class_name: organisation.organisation_logo_type.class_name, stacked: true) do %>
                  <span><%= format_with_html_line_breaks(h(organisation.logo_formatted_name)) %></span>
                <% end %>
              <% end %>
            <% end %>
          </ul>
        </div>
      </section>
    </div>
  </div>
<% end %>
{'fraction_non_alphanumeric': 0.15229885057471265, 'fraction_numerical': 0.004161712247324614, 'mean_word_length': 2.1334989133809374, 'pattern_counts': {'":': 0, '<': 255, '<?xml version=': 0, '>': 255, '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': '7644342', 'n_tokens_mistral': 3108, 'n_tokens_neox': 2825, 'n_words': 538}