<commit_before><%
  extra_class ||= ""
  show_type ||= true
%>
<% if recently_changed_documents.any? %>
  <section id="recently-changed" class="latest-documents">
    <h1 class="label"><%= title %></h1>
    <table class="document-list <%= extra_class %>">
      <thead class="visuallyhidden">
        <tr>
          <th scope="col">Title</th>
          <th scope="col">Date</th>
          <th scope="col">Document Type</th>
        </tr>
      </thead>
      <tbody>
      <% recently_changed_documents.each do |document| %>
        <%= content_tag_for :tr, document, class: 'document-row' do %>
          <th scope="row" class="title attribute">
            <%= link_to document.title, public_document_path(document)  %>
          </th>
          <td class="date attribute">
            <%= published_or_updated(document).titleize %>
            <%= relative_time((document.public_timestamp).to_datetime, class: 'published-at') %>
          </td>
          <td class="type attribute">
            <%= document.display_type %>
          </td>
        <% end %>
      <% end %>
      </tbody>
    </table>
  </section>
<% end %><commit_msg>adding producing orgs on policy activity view<commit_after><%
  extra_class ||= ""
  show_type ||= true
%>
<% if recently_changed_documents.any? %>
  <section id="recently-changed" class="latest-documents">
    <h1 class="label"><%= title %></h1>
    <table class="document-list <%= extra_class %>">
      <thead class="visuallyhidden">
        <tr>
          <th scope="col">Title</th>
          <th scope="col">Date</th>
          <th scope="col">Document Type</th>
          <th scope="col">Organisations</th>
        </tr>
      </thead>
      <tbody>
      <% recently_changed_documents.each do |document| %>
        <%= content_tag_for :tr, document, class: 'document-row' do %>
          <th scope="row" class="title attribute">
            <%= link_to document.title, public_document_path(document)  %>
          </th>
          <td class="date attribute">
            <%= published_or_updated(document).titleize %>
            <%= relative_time((document.public_timestamp).to_datetime, class: 'published-at') %>
          </td>
          <td class="type attribute">
            <%= document.display_type %>
          </td>
          <% if @policy.organisations.map.any? %>
            <td class="attribute organisations">
              <%= @policy.organisations.map { |o|
                    organisation_display_name(o) }.to_sentence.html_safe %>
            </td>
          <% end %>
        <% end %>
      <% end %>
      </tbody>
    </table>
  </section>
<% end %>
{'fraction_non_alphanumeric': 0.16997708174178763, 'fraction_numerical': 0.0015278838808250573, 'mean_word_length': 2.2493796526054592, 'pattern_counts': {'":': 0, '<': 84, '<?xml version=': 0, '>': 84, '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': '527792', 'n_tokens_mistral': 840, 'n_tokens_neox': 772, 'n_words': 149}