<commit_before>RedmineGitHosting::GitoliteHooks.register_hooks do
  # Set source dir
  source_dir    Rails.root.join('plugin/redmine_git_hosting/contrib/hooks').to_s

  # Declare GitoliteHooks to install

  # Install executable
  gitolite_hook do
    name        'redmine_gitolite.rb'
    source      'post-receive/redmine_gitolite.rb'
    destination 'post-receive'
    executable true
  end

  gitolite_hook do
    name        'mail_notifications.py'
    source      'post-receive/mail_notifications.py'
    destination 'post-receive.d/mail_notifications'
    executable true
  end

  # Install libs
  gitolite_hook do
    name        'git_hosting_config.rb'
    source      'post-receive/lib/git_hosting_config.rb'
    destination 'lib/git_hosting/config.rb'
    executable false
  end

  gitolite_hook do
    name        'git_hosting_custom_hook.rb'
    source      'post-receive/lib/git_hosting_custom_hook.rb'<commit_msg>Fix path to plugin hooks<commit_after>RedmineGitHosting::GitoliteHooks.register_hooks do
  # Set source dir
  source_dir    Rails.root.join('plugins/redmine_git_hosting/contrib/hooks').to_s

  # Declare GitoliteHooks to install

  # Install executable
  gitolite_hook do
    name        'redmine_gitolite.rb'
    source      'post-receive/redmine_gitolite.rb'
    destination 'post-receive'
    executable true
  end

  gitolite_hook do
    name        'mail_notifications.py'
    source      'post-receive/mail_notifications.py'
    destination 'post-receive.d/mail_notifications'
    executable true
  end

  # Install libs
  gitolite_hook do
    name        'git_hosting_config.rb'
    source      'post-receive/lib/git_hosting_config.rb'
    destination 'lib/git_hosting/config.rb'
    executable false
  end

  gitolite_hook do
    name        'git_hosting_custom_hook.rb'
    source      'post-receive/lib/git_hosting_custom_hook.rb'
{'fraction_non_alphanumeric': 0.07181136120042872, 'fraction_numerical': 0.0, 'mean_word_length': 3.1032967032967034, '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': '7190162', 'n_tokens_mistral': 649, 'n_tokens_neox': 614, 'n_words': 111}