<commit_before>require 'redmine'
require 'dispatcher'
require 'mailer_patch'

Redmine::Plugin.register :redmine_email_notification_content_filter do
  name 'Redmine Email Notification Content Filter plugin'
  author '<NAME>'
  description 'This is a plugin for Redmine that allows to remove the description in the notification emails'
  version '0.0.1'
  author_url 'mailto:<EMAIL>'
  url 'https://github.com/keeps/redmine_email_notification_content_filter'
  settings :default => {
    'removeDescriptionFromDocument' => 'false',
    'removeDescriptionFromNews' => 'false',
    'removeDescriptionFromIssue' => 'false'
  }, :partial => 'settings/email_notification_content_filter'
  project_module :email_notification_content_filter do
    permission :block_email, {:email_notification_content_filter => :show}
  end
end

Dispatcher.to_prepare do
	 require_dependency 'mailer'
  Mailer.send(:include, MailerPatch)
end
<commit_msg>Added UTF8 header to init.rb<commit_after>#!/bin/env ruby
# encoding: utf-8
require 'redmine'
require 'dispatcher' unless Rails::VERSION::MAJOR >= 3
require 'mailer_patch'

Redmine::Plugin.register :redmine_email_notification_content_filter do
  name 'Redmine Email Notification Content Filter plugin'
  author '<NAME>'
  description 'This is a plugin for Redmine that allows to remove the description in the notification emails'
  version '0.0.1'
  author_url 'mailto:<EMAIL>'
  url 'https://github.com/keeps/redmine_email_notification_content_filter'
  settings(:default => {
    'removeDescriptionFromDocument' => 'false',
    'removeDescriptionFromNews' => 'false',
    'removeDescriptionFromIssue' => 'false'
  }, :partial => 'app/settings/email_notification_content_filter')
  project_module :email_notification_content_filter do
    permission :block_email, {:email_notification_content_filter => :show}
  end
end


if Rails::VERSION::MAJOR >= 3
ActionDispatch::Callbacks.to_prepare do
	 require_dependency 'mailer'
  Mailer.send(:include, MailerPatch)
end


else
	Dispatcher.to_prepare do
	 require_dependency 'mailer'
  Mailer.send(:include, MailerPatch)
end

end

{'fraction_non_alphanumeric': 0.09843081312410841, 'fraction_numerical': 0.004755111745126011, 'mean_word_length': 6.060402684563758, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 21, 'https://': 2, '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': '1279242', 'n_tokens_mistral': 639, 'n_tokens_neox': 615, 'n_words': 156}