<commit_before><%
  from ||= []
  from = Array(from)

  part_of ||= []
  part_of = Array(part_of)

  history ||= []
  history = Array(history)

  other ||= nil

  other_dates ||= nil

  direction_class = ""
  direction_class = " direction-#{direction}" if local_assigns.include?(:direction)
%>
<div class="govuk-document-footer<%= direction_class %>">
  <h2 class="visuallyhidden">Document information</h2>
  <div class="history-information">
    <% if local_assigns.include?(:published) && published %>
      <p>Published: <span class="published definition"><%= published %></span></p>
    <% end %>
    <% if local_assigns.include?(:updated) && updated %>
      <p>Updated: <span class="updated definition"><%= updated %></span></p>
    <% end %>
    <% if other_dates.present? %>
      <% other_dates.each do |title, date| %>
        <p><%= title %>: <span class="other-date definition"><%= date %></span></p>
      <% end %>
    <% end %>
    <% if history.any? %>
      <div class="change-notes" id="history">
        <h3>Page history</h3>
        <ol>
          <% history.each do |change| %>
            <li>
              <time datetime="<%= change[:timestamp] %>" class="timestamp"><%= change[:display_time] %></time>
              <%= change[:note] %>
            </li>
          <% end %>
        </ol>
      </div>
    <% end %>
  </div>
  <div class="related-information">
    <% if from.any? %>
      <p>From: <span class="from">
        <% from.each do |definition| %>
          <span class="definition">
            <%= definition.html_safe %>
          </span>
        <% end %>
      </p>
    <% end %>
    <% if part_of.any? %>
      <p>Part of: <span class="part-of">
        <% part_of.each do |definition| %>
        <span class="definition">
          <%= definition.html_safe %>
        </span>
        <% end %>
      </p>
    <% end %>
    <% if other.present? %>
      <% other.each do |title, definitions| %>
        <% definitions = Array(definitions) %>
        <p><%= title %>: <span class="other"><commit_msg>Align the footer to Whitehall<commit_after><%
  from ||= []
  from = Array(from)

  part_of ||= []
  part_of = Array(part_of)

  history ||= []
  history = Array(history)

  other ||= nil

  other_dates ||= nil

  direction_class = ""
  direction_class = " direction-#{direction}" if local_assigns.include?(:direction)
%>
<div class="govuk-document-footer<%= direction_class %>">
  <h2 class="visuallyhidden">Document information</h2>
  <div class="history-information" id="history">
    <% if local_assigns.include?(:published) && published %>
      <p>Published: <span class="published definition"><%= published %></span></p>
    <% end %>
    <% if local_assigns.include?(:updated) && updated %>
      <p>Updated: <span class="updated definition"><%= updated %></span></p>
    <% end %>
    <% if other_dates.present? %>
      <% other_dates.each do |title, date| %>
        <p><%= title %>: <span class="other-date definition"><%= date %></span></p>
      <% end %>
    <% end %>
    <% if history.any? %>
      <div class="change-notes" data-module="toggle">
        <p>
          <a href="#full-history" data-controls="full-history" data-expanded="false">+ full page history</a>
        </p>
        <div class="js-hidden" id="full-history"><span class="arrow"></span>
          <ol>
            <% history.each do |change| %>
              <li>
                <time datetime="<%= change[:timestamp] %>" class="timestamp"><%= change[:display_time] %></time>
                <%= change[:note] %>
              </li>
            <% end %>
          </ol>
        </div>
      </div>
    <% end %>
  </div>
  <div class="related-information">
    <% if from.any? %>
      <p>From: <span class="from">
        <% from.each do |definition| %>
          <span class="definition">
            <%= definition.html_safe %>
          </span>
        <% end %>
      </p>
    <% end %>
    <% if part_of.any? %>
      <p>Part of: <span class="part-of">
        <% part_of.each do |definition| %>
        <span class="definition">
          <%= definition.html_safe %>
        </span>
        <% end %>
      </p>
    <% end %>
    <% if other.present? %>
      <% other.each do |title, definitions| %>
        <% definitions = Array(definitions) %>
        <p><%= title %>: <span class="other">
{'fraction_non_alphanumeric': 0.20064650196259523, 'fraction_numerical': 0.001385361348418379, 'mean_word_length': 2.3529411764705883, 'pattern_counts': {'":': 0, '<': 159, '<?xml version=': 0, '>': 159, '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': '2364500', 'n_tokens_mistral': 1466, 'n_tokens_neox': 1330, 'n_words': 280}