<commit_before><% page_title @world_location.name, "UK and the world" %>
<% page_class "world-locations-show" %>
<% atom_discovery_link_tag world_location_url(@world_location, format: :atom), "Latest activity" %>
<%= content_tag_for(:div, @world_location) do %>

  <div class="block">
    <div class="inner-block">
      <header class="page-header world-locations <% if @featured_editions.any? %>with_featured<% end %>">
        <hgroup>
          <h2 class="type"><%= @world_location.display_type %></h2>
          <h1 class="name">UK and <%= @world_location.name %></h1>
        </hgroup>
      </header>
    </div>
  </div>

  <div class="block news-block">
    <div class="inner-block">
      <section class="featured-news items-<%= @featured_editions.length %>" id="featured-documents">
        <% if @featured_editions.any? %>
          <%= render partial: 'shared/featured_news',
                     collection: @featured_editions,
                     as: :edition,
                     locals: { show_meta: true,
                               extra_class: "secondary" } %>
        <% end %>

        <%= render partial: 'shared/recently_updated',
                  locals: { recently_updated: @recently_updated,
                            atom_url: world_location_url(@world_location, format: :atom),
                            govdelivery_url: '',
                            extra_class: 'panel'} %>
      </section>
    </div>
  </div>

  <div class="block our-mission">
    <div class="inner-block">
      <section class="article-section">
        <h1 class="keyline-header">Our mission</h1>
        <p>
          <span class="mission_statement"><%= format_with_html_line_breaks(@world_location.mission_statement) %></span>
        </p>
      </section>
    </div>
  </div>

  <div class="block">
    <div class="inner-block">
      <% if @international_priorities.any? %>
        <section id="international-priorities">
          <h1 class="keyline-header">Priorities</h1>
          <% @international_priorities.each do |priority| %>
            <%= content_tag_for(:article, priority) do %>
              <h2><%= link_to priority.title, public_document_path(priority) %></h2>
              <p><%= priority.summary %></p>
            <% end %>
          <% end %>
        </section>
      <% end %>
    </div>
  </div>

  <% if @policies.any? %>
    <div class="block-5">
      <div class="inner-block">
        <section id="policies" class="heading-block">
          <h1 class="label"><%= link_to 'Related policies', policies_filter_path(@world_location) %></h1>
          <div class="content">
            <%= render partial: "policies/list_description", locals: {policies: @policies} %>
            <p class="see-all">
              <%= link_to 'See all of our policies', policies_filter_path(@world_location) %>
            </p>
          </div>
        </section>
      </div>
    </div>
  <% end %>
  <% if (@non_statistics_publications + @announcements + @statistics_publications).any? %>
    <% document_block_count = 0 %>
    <div class="block documents-grid">
      <div class="inner-block">
        <h1 class="block-title">Documents</h1>
        <% if @announcements.any? %>
          <section id="announcements" class="document-block documents-<%= document_block_count+=1 %>">
            <h1>Our announcements</h1>
            <div class="content">
              <%= render partial: "announcements/list_description", locals: {announcements: @announcements} %>
              <p class="see-all">
                <%= link_to "See all of our announcements", announcements_filter_path(@world_location) %>
              </p>
            </div>
          </section>
        <% end %>
        <% if @non_statistics_publications.any? %>
          <section id="publications" class="document-block documents-<%= document_block_count+=1 %>">
            <h1>Our publications</h1>
            <div class="content">
              <%= render partial: "publications/list_description", locals: {publications: @non_statistics_publications} %>
              <p class="see-all">
                <%= link_to 'See all of our publications', publications_filter_path(@world_location) %>
              </p>
            </div>
          </section>
        <% end %>
        <% if @statistics_publications.any? %>
          <section id="statistics-publications" class="document-block documents-<%= document_block_count+=1 %>">
            <h1>Our statistics</h1>
            <div class="content">
              <%= render partial: "publications/list_description", locals: {publications: @statistics_publications} %>
              <p class="see-all">
                <%= link_to 'See all of our statistics', publications_filter_path(@world_location, publication_filter_option: 'statistics') %>
              </p>
            </div>
          </section>
        <% end %>
      </div>
    </div>
  <% end %>

  <div class="block documents-grid">
    <div class="inner-block">
      <h1 class="block-title">Organisations</h1>
      <section id="organisations" class="document-block">
        <div class="content">
          <%= render @worldwide_offices %>
        </div>
      </section>
    </div>
  </div>
<% end %><commit_msg>De-magicify render call to make it designer friendly<commit_after><% page_title @world_location.name, "UK and the world" %>
<% page_class "world-locations-show" %>
<% atom_discovery_link_tag world_location_url(@world_location, format: :atom), "Latest activity" %>
<%= content_tag_for(:div, @world_location) do %>

  <div class="block">
    <div class="inner-block">
      <header class="page-header world-locations <% if @featured_editions.any? %>with_featured<% end %>">
        <hgroup>
          <h2 class="type"><%= @world_location.display_type %></h2>
          <h1 class="name">UK and <%= @world_location.name %></h1>
        </hgroup>
      </header>
    </div>
  </div>

  <div class="block news-block">
    <div class="inner-block">
      <section class="featured-news items-<%= @featured_editions.length %>" id="featured-documents">
        <% if @featured_editions.any? %>
          <%= render partial: 'shared/featured_news',
                     collection: @featured_editions,
                     as: :edition,
                     locals: { show_meta: true,
                               extra_class: "secondary" } %>
        <% end %>

        <%= render partial: 'shared/recently_updated',
                  locals: { recently_updated: @recently_updated,
                            atom_url: world_location_url(@world_location, format: :atom),
                            govdelivery_url: '',
                            extra_class: 'panel'} %>
      </section>
    </div>
  </div>

  <div class="block our-mission">
    <div class="inner-block">
      <section class="article-section">
        <h1 class="keyline-header">Our mission</h1>
        <p>
          <span class="mission_statement"><%= format_with_html_line_breaks(@world_location.mission_statement) %></span>
        </p>
      </section>
    </div>
  </div>

  <div class="block">
    <div class="inner-block">
      <% if @international_priorities.any? %>
        <section id="international-priorities">
          <h1 class="keyline-header">Priorities</h1>
          <% @international_priorities.each do |priority| %>
            <%= content_tag_for(:article, priority) do %>
              <h2><%= link_to priority.title, public_document_path(priority) %></h2>
              <p><%= priority.summary %></p>
            <% end %>
          <% end %>
        </section>
      <% end %>
    </div>
  </div>

  <% if @policies.any? %>
    <div class="block-5">
      <div class="inner-block">
        <section id="policies" class="heading-block">
          <h1 class="label"><%= link_to 'Related policies', policies_filter_path(@world_location) %></h1>
          <div class="content">
            <%= render partial: "policies/list_description", locals: {policies: @policies} %>
            <p class="see-all">
              <%= link_to 'See all of our policies', policies_filter_path(@world_location) %>
            </p>
          </div>
        </section>
      </div>
    </div>
  <% end %>
  <% if (@non_statistics_publications + @announcements + @statistics_publications).any? %>
    <% document_block_count = 0 %>
    <div class="block documents-grid">
      <div class="inner-block">
        <h1 class="block-title">Documents</h1>
        <% if @announcements.any? %>
          <section id="announcements" class="document-block documents-<%= document_block_count+=1 %>">
            <h1>Our announcements</h1>
            <div class="content">
              <%= render partial: "announcements/list_description", locals: {announcements: @announcements} %>
              <p class="see-all">
                <%= link_to "See all of our announcements", announcements_filter_path(@world_location) %>
              </p>
            </div>
          </section>
        <% end %>
        <% if @non_statistics_publications.any? %>
          <section id="publications" class="document-block documents-<%= document_block_count+=1 %>">
            <h1>Our publications</h1>
            <div class="content">
              <%= render partial: "publications/list_description", locals: {publications: @non_statistics_publications} %>
              <p class="see-all">
                <%= link_to 'See all of our publications', publications_filter_path(@world_location) %>
              </p>
            </div>
          </section>
        <% end %>
        <% if @statistics_publications.any? %>
          <section id="statistics-publications" class="document-block documents-<%= document_block_count+=1 %>">
            <h1>Our statistics</h1>
            <div class="content">
              <%= render partial: "publications/list_description", locals: {publications: @statistics_publications} %>
              <p class="see-all">
                <%= link_to 'See all of our statistics', publications_filter_path(@world_location, publication_filter_option: 'statistics') %>
              </p>
            </div>
          </section>
        <% end %>
      </div>
    </div>
  <% end %>

  <div class="block documents-grid">
    <div class="inner-block">
      <h1 class="block-title">Organisations</h1>
      <section id="organisations" class="document-block">
        <div class="content">
          <%= render partial: 'worldwide_offices/worldwide_office', collection: @worldwide_offices %>
        </div>
      </section>
    </div>
  </div>
<% end %>
{'fraction_non_alphanumeric': 0.15710227272727273, 'fraction_numerical': 0.005113636363636364, 'mean_word_length': 2.3054773082942095, 'pattern_counts': {'":': 0, '<': 285, '<?xml version=': 0, '>': 285, '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': '5549597', 'n_tokens_mistral': 3296, 'n_tokens_neox': 3064, 'n_words': 608}