<commit_before><% page_title "Departments, agencies & public bodies" %>
<% page_class "index-list-page" %>

<div class="organisations-index">
  <div class="block-1">
    <div class="inner-block">
      <header class="page-header js-filter-list">
        <h1 class="title">Departments, agencies &amp; public&nbsp;bodies</h1>
        <form class="js-filter-form"><label for="who-are-you-looking-for" class="label">What&rsquo;s the latest<br />from <input name="who-are-you-looking-for" placeholder="Example: transport"> ?</label></form>
      </header>
    </div>
  </div>

  <div class="block-2">
    <div class="inner-block">
      <div class="heading-block executive-offices js-filter-block">
        <h1 id="executive-offices">Executive offices</h1>
        <div class="content">
          <ol>
            <% @executive_offices.each do |executive_office| %>
              <%= content_tag_for :li, executive_office,
                                  class: 'department js-filter-item',
                                    "data-filter-terms" => filter_terms(executive_office) do %>
                <h2 id="<%= executive_office.slug %>" class="<%= executive_office.slug %>">
                  <%= link_to organisation_path(executive_office), class: logo_classes(class_name: executive_office.organisation_logo_type.class_name, size: 'medium') do %>
                    <span><%= organisation_logo_name(executive_office, false) %></span>
                  <% end %>
                </h2>
              <% end %>
            <% end %>
          </ol>
        </div>
      </div>
      <div class="heading-block ministerial-departments js-hide-department-children js-filter-block">
        <h1 id="departments">Ministerial departments</h1>
        <div class="content">
          <ol>
            <% @ministerial_departments.each do |ministerial_department| %>
              <%= content_tag_for :li, ministerial_department,
                                  class: 'department js-filter-item',
                                    "data-filter-terms" => filter_terms(ministerial_department) do %>
                <h2 id="<%= ministerial_department.slug %>" class="<%= ministerial_department.slug %>">
                  <%= link_to organisation_path(ministerial_department), class: logo_classes(class_name: ministerial_department.organisation_logo_type.class_name, size: 'medium') do %>
                    <span><%= organisation_logo_name(ministerial_department, false) %></span>
                  <% end %>
                </h2>
                <%= render partial: 'works_with', locals: { organisation: ministerial_department, link_to_homepage: true } %>
              <% end %>
            <% end %>
          </ol>
        </div>
      </div>
      <div class="heading-block other-departments js-filter-block js-hide-department-children">
        <h1 id="non-ministerial-departments">Non ministerial departments</h1>
        <div class="content">
          <ol class="index-list">
            <% @non_ministerial_departments.each do |organisation| %>
              <%= content_tag_for :li, organisation, class: 'js-filter-item department',
                            "data-filter-terms" => filter_terms(organisation) do %>
                <%= link_to organisation.name, organisation_path(organisation), id: organisation.slug, class: 'department-link' %>
                <%= render partial: 'works_with', locals: { organisation: organisation } %>
              <% end %><commit_msg>Only show executive offices if there are some<commit_after><% page_title "Departments, agencies & public bodies" %>
<% page_class "index-list-page" %>

<div class="organisations-index">
  <div class="block-1">
    <div class="inner-block">
      <header class="page-header js-filter-list">
        <h1 class="title">Departments, agencies &amp; public&nbsp;bodies</h1>
        <form class="js-filter-form"><label for="who-are-you-looking-for" class="label">What&rsquo;s the latest<br />from <input name="who-are-you-looking-for" placeholder="Example: transport"> ?</label></form>
      </header>
    </div>
  </div>

  <div class="block-2">
    <div class="inner-block">
      <% if @executive_offices.any? %>
      <div class="heading-block executive-offices js-filter-block">
        <h1 id="executive-offices">Executive offices</h1>
        <div class="content">
          <ol>
            <% @executive_offices.each do |executive_office| %>
              <%= content_tag_for :li, executive_office,
                                  class: 'department js-filter-item',
                                    "data-filter-terms" => filter_terms(executive_office) do %>
                <h2 id="<%= executive_office.slug %>" class="<%= executive_office.slug %>">
                  <%= link_to organisation_path(executive_office), class: logo_classes(class_name: executive_office.organisation_logo_type.class_name, size: 'medium') do %>
                    <span><%= organisation_logo_name(executive_office, false) %></span>
                  <% end %>
                </h2>
              <% end %>
            <% end %>
          </ol>
        </div>
      </div>
      <% end %>
      <div class="heading-block ministerial-departments js-hide-department-children js-filter-block">
        <h1 id="departments">Ministerial departments</h1>
        <div class="content">
          <ol>
            <% @ministerial_departments.each do |ministerial_department| %>
              <%= content_tag_for :li, ministerial_department,
                                  class: 'department js-filter-item',
                                    "data-filter-terms" => filter_terms(ministerial_department) do %>
                <h2 id="<%= ministerial_department.slug %>" class="<%= ministerial_department.slug %>">
                  <%= link_to organisation_path(ministerial_department), class: logo_classes(class_name: ministerial_department.organisation_logo_type.class_name, size: 'medium') do %>
                    <span><%= organisation_logo_name(ministerial_department, false) %></span>
                  <% end %>
                </h2>
                <%= render partial: 'works_with', locals: { organisation: ministerial_department, link_to_homepage: true } %>
              <% end %>
            <% end %>
          </ol>
        </div>
      </div>
      <div class="heading-block other-departments js-filter-block js-hide-department-children">
        <h1 id="non-ministerial-departments">Non ministerial departments</h1>
        <div class="content">
          <ol class="index-list">
            <% @non_ministerial_departments.each do |organisation| %>
              <%= content_tag_for :li, organisation, class: 'js-filter-item department',
                            "data-filter-terms" => filter_terms(organisation) do %>
                <%= link_to organisation.name, organisation_path(organisation), id: organisation.slug, class: 'department-link' %>
                <%= render partial: 'works_with', locals: { organisation: organisation } %>
              <% end %>
{'fraction_non_alphanumeric': 0.14257341466874734, 'fraction_numerical': 0.003972194637537239, 'mean_word_length': 2.3223374175306315, 'pattern_counts': {'":': 0, '<': 149, '<?xml version=': 0, '>': 155, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3090039', 'n_tokens_mistral': 2166, 'n_tokens_neox': 1976, 'n_words': 372}