<commit_before><% content_for :head do %>
  <%= csrf_meta_tag %>
  <%= stylesheet_link_tag 'application', media: 'all' %>
  <%= javascript_include_tag 'application' %>
<% end %>

<% content_for :navbar_items do %>
  <% if current_user.resource_manager? %>
    <%= active_link_to 'Manage guiders', users_path, wrap_tag: :li %>
  <% end %>
<% end %>

<% content_for :body_end do %>
  <script>
  var loadedModules = [];
  $(document).on('turbolinks:load', function() {
    var modules = $('[data-module]');

    if (loadedModules.length) {
      return;
    }

    modules.each(function() {
      var $el = $(this),
      type = $el.data('module'),
      config = $el.data('config');

      loadedModules.push(new PWTAP[type]($el, config));
    });
  });
  </script>
<% end %>

<%= render template: 'layouts/govuk_admin_template' %><commit_msg>Toggle javascript 'ready' event based on Turbolinks support<commit_after><% content_for :head do %>
  <%= csrf_meta_tag %>
  <%= stylesheet_link_tag 'application', media: 'all' %>
  <%= javascript_include_tag 'application' %>
<% end %>

<% content_for :navbar_items do %>
  <% if current_user.resource_manager? %>
    <%= active_link_to 'Manage guiders', users_path, wrap_tag: :li %>
  <% end %>
<% end %>

<% content_for :body_end do %>
  <script>
  var loadedModules = [];
  var readyEvent = Turbolinks.supported ? 'turbolinks:load' : 'ready';

  $(document).on(readyEvent, function() {
    var modules = $('[data-module]');

    if (loadedModules.length) {
      return;
    }

    modules.each(function() {
      var $el = $(this),
      type = $el.data('module'),
      config = $el.data('config');

      loadedModules.push(new PWTAP[type]($el, config));
    });
  });
  </script>
<% end %>

<%= render template: 'layouts/govuk_admin_template' %>
{'fraction_non_alphanumeric': 0.1868377021751255, 'fraction_numerical': 0.0, 'mean_word_length': 3.696335078534031, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 0, '>': 33, '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': '395608', 'n_tokens_mistral': 670, 'n_tokens_neox': 613, 'n_words': 122}