<commit_before>.alert.alert-info
  %span
    Post-receive hooks for binding events.
    %br
    Read more about system hooks
    %strong #{link_to "here", help_system_hooks_path, class: "vlink"}

= form_for @hook, as: :hook, url: admin_hooks_path, html: { class: 'form-inline' } do |f|
  -if @hook.errors.any?
    .alert.alert-error
      - @hook.errors.full_messages.each do |msg|
        %p= msg
  .control-group
    = f.label :url, "URL:"
    .controls
      = f.text_field :url, class: "text_field input-xxlarge input-xpadding"
      &nbsp;
      = f.submit "Add System Hook", class: "btn btn-create"
%hr

-if @hooks.any?<commit_msg>Fix system hook page description<commit_after>%h3.page-title
  System Hooks

%p.light
  #{link_to "System hooks ", help_system_hooks_path, class: "vlink"} can be
  used for binding events when GitLab creates a User or Project.

%hr


= form_for @hook, as: :hook, url: admin_hooks_path, html: { class: 'form-inline' } do |f|
  -if @hook.errors.any?
    .alert.alert-error
      - @hook.errors.full_messages.each do |msg|
        %p= msg
  .control-group
    = f.label :url, "URL:"
    .controls
      = f.text_field :url, class: "text_field input-xxlarge input-xpadding"
      &nbsp;
      = f.submit "Add System Hook", class: "btn btn-create"
%hr

-if @hooks.any?
{'fraction_non_alphanumeric': 0.1376923076923077, 'fraction_numerical': 0.0007692307692307692, 'mean_word_length': 3.027863777089783, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1868749', 'n_tokens_mistral': 467, 'n_tokens_neox': 471, 'n_words': 128}