<commit_before><% content_for :page_class, 'document-collection-groups index' %>
<% page_title "#{@collection.title}", "Document collections" %>
<% initialise_script 'GOVUK.DocumentGroupOrdering', selector: '.js-document-group', post_url: admin_document_collection_update_group_memberships_path(document_collection_id: @collection.id), group_buttons: '.reorder-buttons', group_container_selector: '.js-group-container' %>
<% initialise_script 'GOVUK.documentFinder' %>
<% initialise_script 'GOVUK.documentCollectionCheckboxSelector' %>

<h1><%= @collection.title %></h1>

<% if current_user.can_remove_edit_tabs? %>
  <%= render partial: 'collection_size_warning' %>
  <%= form_tag admin_document_collection_new_whitehall_member_path(@collection) do %>
    <h2>Add document to a group</h2>
    <div id="document-finder" class="document-finder form-inline well remove-top-margin"><commit_msg>Add backlink so users can navigate back to summary page<commit_after><% content_for :page_class, 'document-collection-groups index' %>
<% page_title "#{@collection.title}", "Document collections" %>
<% initialise_script 'GOVUK.DocumentGroupOrdering', selector: '.js-document-group', post_url: admin_document_collection_update_group_memberships_path(document_collection_id: @collection.id), group_buttons: '.reorder-buttons', group_container_selector: '.js-group-container' %>
<% initialise_script 'GOVUK.documentFinder' %>
<% initialise_script 'GOVUK.documentCollectionCheckboxSelector' %>

<% if current_user.can_remove_edit_tabs? %>
  <span class="back">
    <%= link_to 'Back', admin_edition_path(@collection) %>
  </span>
<% end %>

<h1><%= @collection.title %></h1>

<% if current_user.can_remove_edit_tabs? %>
  <%= render partial: 'collection_size_warning' %>
  <%= form_tag admin_document_collection_new_whitehall_member_path(@collection) do %>
    <h2>Add document to a group</h2>
    <div id="document-finder" class="document-finder form-inline well remove-top-margin">
{'fraction_non_alphanumeric': 0.14365482233502538, 'fraction_numerical': 0.0040609137055837565, 'mean_word_length': 7.495689655172414, 'pattern_counts': {'":': 0, '<': 36, '<?xml version=': 0, '>': 36, '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': '5104433', 'n_tokens_mistral': 642, 'n_tokens_neox': 603, 'n_words': 109}