<commit_before><% page_title @worldwide_organisation.name %>
<% page_class "corporate-information-pages-show-worldwide-organisation" %>

<%= render partial: 'worldwide_organisations/header', locals: { organisation: @worldwide_organisation, link_to_organisation: true, object_for_translation: @worldwide_office } %>
<article class="block article">
  <div class="inner-block floated-children">
    <% if govspeak_headers(@worldwide_office.access_and_opening_times_body).any? %>
      <nav>
        <div class="content js-stick-at-top-when-scrolling">
          <h1>Contents</h1>
          <ol>
            <% govspeak_headers(@worldwide_office.access_and_opening_times_body).each do |header| %>
              <li><%= link_to header.text, "##{header.id}" %></li>
            <% end %>
          </ol>
        </div>
      </nav>
    <% end %><commit_msg>Calculate govspeak headers once for world offices<commit_after><% page_title @worldwide_organisation.name %>
<% page_class "corporate-information-pages-show-worldwide-organisation" %>

<%= render partial: 'worldwide_organisations/header', locals: { organisation: @worldwide_organisation, link_to_organisation: true, object_for_translation: @worldwide_office } %>
<article class="block article">
  <div class="inner-block floated-children">
    <% headers = govspeak_headers(@worldwide_office.access_and_opening_times_body) %>
    <% if headers.any? %>
      <nav>
        <div class="content js-stick-at-top-when-scrolling">
          <h1>Contents</h1>
          <ol>
            <% headers.each do |header| %>
              <li><%= link_to header.text, "##{header.id}" %></li>
            <% end %>
          </ol>
        </div>
      </nav>
    <% end %>
{'fraction_non_alphanumeric': 0.15046838407494145, 'fraction_numerical': 0.00234192037470726, 'mean_word_length': 3.370843989769821, 'pattern_counts': {'":': 0, '<': 44, '<?xml version=': 0, '>': 44, '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': '4140217', 'n_tokens_mistral': 570, 'n_tokens_neox': 525, 'n_words': 92}