<commit_before><% page_title "Departments & agencies" %>

<div class="g3">
  <section class="page_header organisation">
    <h1 class="page_title">Departments &amp; agencies</h1>
  </section>
  <section class="page_detail">
    <p class="explanation">Information about all government departments, agencies and other public bodies</p>
    <nav class="organisations_type_links" role="navigation">
      <p>
        View departments &amp; agencies by
        <%= @organisations_by_type.map do |type, _|
             link_to type.name.pluralize, organisations_path(anchor: type.name.pluralize.downcase.gsub(/\s/, "_"))
          end.to_sentence.html_safe %>.
      </p><p>You can also
        <%= link_to "view alphabetically", alphabetical_organisations_path %>.
      </p>
    </nav>
  </section>

  <div id="organisation_types">
    <% @organisations_by_type.each do |type, organisations| %>
      <div class="organisation_type">
        <section>
          <%= content_tag(:h1, type.name.pluralize, id: type.name.pluralize.downcase.gsub(/\s/, "_")) %>
          <%= render partial: "grouped_list", locals: {organisations: organisations} %>
        </section>
      </div>
    <% end %>
  </div>
</div>
<commit_msg>Got rid of an errant "organisation" class<commit_after><% page_title "Departments & agencies" %>

<div class="g3">
  <section class="page_header">
    <h1 class="page_title">Departments &amp; agencies</h1>
  </section>
  <section class="page_detail">
    <p class="explanation">Information about all government departments, agencies and other public bodies</p>
    <nav class="organisations_type_links" role="navigation">
      <p>
        View departments &amp; agencies by
        <%= @organisations_by_type.map do |type, _|
             link_to type.name.pluralize, organisations_path(anchor: type.name.pluralize.downcase.gsub(/\s/, "_"))
          end.to_sentence.html_safe %>.
      </p><p>You can also
        <%= link_to "view alphabetically", alphabetical_organisations_path %>.
      </p>
    </nav>
  </section>

  <div id="organisation_types">
    <% @organisations_by_type.each do |type, organisations| %>
      <div class="organisation_type">
        <section>
          <%= content_tag(:h1, type.name.pluralize, id: type.name.pluralize.downcase.gsub(/\s/, "_")) %>
          <%= render partial: "grouped_list", locals: {organisations: organisations} %>
        </section>
      </div>
    <% end %>
  </div>
</div>

{'fraction_non_alphanumeric': 0.15472779369627507, 'fraction_numerical': 0.003274662300450266, 'mean_word_length': 3.3028169014084505, 'pattern_counts': {'":': 0, '<': 61, '<?xml version=': 0, '>': 61, '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': '2962665', 'n_tokens_mistral': 815, 'n_tokens_neox': 769, 'n_words': 161}