<commit_before><% page_title @organisation.name %>
<%= organisation_wrapper(@organisation, class: "hcard group") do %>
  <section id="organisation_disclaimer" class="g4f">
    <h1>BETA</h1>
    <p>This is a test website.
    <% if @organisation.url.present? %>
    The official website remains <%= link_to @organisation.url, @organisation.url %>.
    <% end %>
    </p>
  </section>

  <div class="g4">
    <%= render 'header', organisation: @organisation %>
  </div>

  <div class="g4">
      <% if @featured_news_articles.any? %>
        <section class="org_news">
          <h1 class="visuallyhidden">Top stories</h1>
          <section class="featured_carousel" id="featured-news-articles">
            <% @featured_news_articles.each do |news_article| %>
              <%= content_tag_for(:article, news_article) do %>
                <div class="img">
                  <% if news_article.lead_image.present? %>
                    <%= image_tag(news_article.lead_image.url, alt: news_article.lead_image.alt_text) %>
                  <% end %>
                </div>
                <h2><%= link_to news_article.title, public_document_path(news_article), class: "title" %></h2>
                <p class="summary"><%= news_article.summary %></p>
                <div class="meta">
                  <span class="published_at">Posted <%= time_ago(news_article.published_at, class: 'published_at') %> ago</span>
                  <% news_article.policy_topics.uniq.each do |pa| %>
                    <%= link_to pa.name, policy_topic_path(pa), class: "policy_topic tag" %>
                  <% end %>
                </div>
              <% end %>
            <% end %>
          </section>
        </section>
      <% end %>
    </div>
    
    <div class="g4">
      <div class="g1f">
        <%= render 'navigation', organisation: @organisation %>
      </div>
      <div class="g1">
        <section id="recently_updated">
          <h1 class="label">Latest</h1>
          <%= render(partial: "shared/recently_updated",
           locals: {recently_updated: @recently_updated}
          ) if @recently_updated.present? %>
        </section>
      </div>
      <div class="g1">
        <section id="who">
          <h1 class="label">Who</h1>
          <% roles = [@organisation.top_ministerial_role, @organisation.top_civil_servant].compact %>
          <% if ministerial_role = @organisation.top_ministerial_role %>
            <section id="ministers">
              <h1 class="visuallyhidden">Minister</h1>
              <%= content_tag_for(:article, ministerial_role) do %>
                <div class="image_holder">
                  <%= image_for_ministerial_role(ministerial_role) %>
                </div>
                <h3><%= link_to ministerial_role.name, ministerial_role %></h3>
                <p class="current_appointee"><%= ministerial_role.current_person_name %></p>
              <% end %>
              <p><%= link_to 'View all ministers', ministers_organisation_path(@organisation) %></p>
            </section>
          <% end %>
          <% if management_role = @organisation.top_civil_servant %>
            <section id="management">
              <h1 class="visuallyhidden">Management</h1><commit_msg>Added latest_documents class so can inherit the styles for latest docs made by frances and jase<commit_after><% page_title @organisation.name %>
<%= organisation_wrapper(@organisation, class: "hcard group") do %>
  <section id="organisation_disclaimer" class="g4f">
    <h1>BETA</h1>
    <p>This is a test website.
    <% if @organisation.url.present? %>
    The official website remains <%= link_to @organisation.url, @organisation.url %>.
    <% end %>
    </p>
  </section>

  <div class="g4">
    <%= render 'header', organisation: @organisation %>
  </div>

  <div class="g4">
      <% if @featured_news_articles.any? %>
        <section class="org_news">
          <h1 class="visuallyhidden">Top stories</h1>
          <section class="featured_carousel" id="featured-news-articles">
            <% @featured_news_articles.each do |news_article| %>
              <%= content_tag_for(:article, news_article) do %>
                <div class="img">
                  <% if news_article.lead_image.present? %>
                    <%= image_tag(news_article.lead_image.url, alt: news_article.lead_image.alt_text) %>
                  <% end %>
                </div>
                <h2><%= link_to news_article.title, public_document_path(news_article), class: "title" %></h2>
                <p class="summary"><%= news_article.summary %></p>
                <div class="meta">
                  <span class="published_at">Posted <%= time_ago(news_article.published_at, class: 'published_at') %> ago</span>
                  <% news_article.policy_topics.uniq.each do |pa| %>
                    <%= link_to pa.name, policy_topic_path(pa), class: "policy_topic tag" %>
                  <% end %>
                </div>
              <% end %>
            <% end %>
          </section>
        </section>
      <% end %>
    </div>
    
    <div class="g4">
      <div class="g1f">
        <%= render 'navigation', organisation: @organisation %>
      </div>
      <div class="g1">
        <section id="recently_updated" class="latest_documents">
          <h1 class="label">Latest</h1>
          <%= render(partial: "shared/recently_updated",
           locals: {recently_updated: @recently_updated}
          ) if @recently_updated.present? %>
        </section>
      </div>
      <div class="g1">
        <section id="who">
          <h1 class="label">Who</h1>
          <% roles = [@organisation.top_ministerial_role, @organisation.top_civil_servant].compact %>
          <% if ministerial_role = @organisation.top_ministerial_role %>
            <section id="ministers">
              <h1 class="visuallyhidden">Minister</h1>
              <%= content_tag_for(:article, ministerial_role) do %>
                <div class="image_holder">
                  <%= image_for_ministerial_role(ministerial_role) %>
                </div>
                <h3><%= link_to ministerial_role.name, ministerial_role %></h3>
                <p class="current_appointee"><%= ministerial_role.current_person_name %></p>
              <% end %>
              <p><%= link_to 'View all ministers', ministers_organisation_path(@organisation) %></p>
            </section>
          <% end %>
          <% if management_role = @organisation.top_civil_servant %>
            <section id="management">
              <h1 class="visuallyhidden">Management</h1>
{'fraction_non_alphanumeric': 0.14936939674821456, 'fraction_numerical': 0.006989819176416958, 'mean_word_length': 2.2060399415489527, 'pattern_counts': {'":': 0, '<': 177, '<?xml version=': 0, '>': 177, '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': '6629980', 'n_tokens_mistral': 2121, 'n_tokens_neox': 1930, 'n_words': 359}