<commit_before><% content_for :page_title, 'Organisations' %>

<div class="page-title">
  <h1>
    Organisations<br/>
    <small>
      Transitioning <%= @site_count %> government sites,
      across <%= @organisations.length %> organisations, to GOV.UK.
    </small>
  </h1>
</div>

<table class="organisations table table-striped table-bordered">
  <thead>
  <tr>
    <th class="abbr" scope="col">Abbreviation</th>
    <th class="title" scope="col">Organisation</th>
    <th scope="col">Sites</th>
  </tr>
  </thead>

  <tbody>
  <% @organisations.each do |org| %>
    <tr>
      <td class="abbr">
        <% if org.abbreviation %>
          <%= link_to org.abbreviation, organisation_path(org) %>
        <% end %>
      </td>
      <td class="title">
        <%= link_to org.title, organisation_path(org) %>
      </td>
      <td>
        <%= pluralize(org.sites.count, 'site') %>
      </td>
    </tr>
  <% end %>
  </tbody>
</table><commit_msg>Stop issuing N org queries per org#index<commit_after><% content_for :page_title, 'Organisations' %>

<div class="page-title">
  <h1>
    Organisations<br/>
    <small>
      Transitioning <%= @site_count %> government sites,
      across <%= @organisations.length %> organisations, to GOV.UK.
    </small>
  </h1>
</div>

<table class="organisations table table-striped table-bordered">
  <thead>
  <tr>
    <th class="abbr" scope="col">Abbreviation</th>
    <th class="title" scope="col">Organisation</th>
    <th scope="col">Sites</th>
  </tr>
  </thead>

  <tbody>
  <% @organisations.each do |org| %>
    <tr>
      <td class="abbr">
        <% if org.abbreviation %>
          <%= link_to org.abbreviation, organisation_path(org) %>
        <% end %>
      </td>
      <td class="title">
        <%= link_to org.title, organisation_path(org) %>
      </td>
      <td>
        <%= pluralize(org.site_count, 'site') %>
      </td>
    </tr>
  <% end %>
  </tbody>
</table>
{'fraction_non_alphanumeric': 0.18899273104880582, 'fraction_numerical': 0.0020768431983385254, 'mean_word_length': 2.72007722007722, 'pattern_counts': {'":': 0, '<': 81, '<?xml version=': 0, '>': 81, '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': '1995007', 'n_tokens_mistral': 742, 'n_tokens_neox': 673, 'n_words': 137}