<commit_before>default['default_mailer']['hostname'] = 'localhost'
default['default_mailer']['port'] = '25'
default['default_mailer']['username'] = nil
default['default_mailer']['password'] = <PASSWORD>
default['default_mailer']['from'] = "alerts@#{node[:fqdn]}"
default['default_mailer']['alert_address'] = nil
default['default_mailer']['security'] = nil


# Now, override settings in the monit recipe:
override["monit"]["start_delay"] = 0
override["monit"]["polling_frequency"] = 30
override["monit"]["use_syslog"]        = true
override["monit"]["mail_alerts"]       = !node[:default_mailer][:alert_address].nil?
override["monit"]["alert_email"]       = node[:default_mailer][:alert_address]
override["monit"]["web_interface"] = {
  :enable  => true,
  :port    => 2812,
  :address => "localhost",
  :allow   => ["localhost"]
}
override["monit"]["mail"] = {
  :hostname => node['default_mailer']['hostname'],
  :port     => node['default_mailer']['port'],
  :username => node['default_mailer']['username'],
  :password => <PASSWORD>['<PASSWORD>'],
  :security => node['default_mailer']['security'],
  :from     => node['default_mailer']['from'],
  :subject  => "$SERVICE $EVENT at $DATE",
  :message  => "Monit $ACTION $SERVICE at $DATE on $HOST,\n\n$DESCRIPTION\n\nDutifully,\nMonit",
  :timeout  => 30
}
override["monit"]["default_monitrc_configs"] = ["load", "ssh"]
# Used by upstart script
override[:monit][:bin_file] =  "/usr/bin/monit"
override[:monit][:monitrc_file] = "/etc/monit/monitrc"<commit_msg>Adding node name to monit email<commit_after>default['default_mailer']['hostname'] = 'localhost'
default['default_mailer']['port'] = '25'
default['default_mailer']['username'] = nil
default['default_mailer']['password'] = <PASSWORD>
default['default_mailer']['from'] = "alerts@#{node[:fqdn]}"
default['default_mailer']['alert_address'] = nil
default['default_mailer']['security'] = nil


# Now, override settings in the monit recipe:
override["monit"]["start_delay"] = 0
override["monit"]["polling_frequency"] = 30
override["monit"]["use_syslog"]        = true
override["monit"]["mail_alerts"]       = !node[:default_mailer][:alert_address].nil?
override["monit"]["alert_email"]       = node[:default_mailer][:alert_address]
override["monit"]["web_interface"] = {
  :enable  => true,
  :port    => 2812,
  :address => "localhost",
  :allow   => ["localhost"]
}
override["monit"]["mail"] = {
  :hostname => node['default_mailer']['hostname'],
  :port     => node['default_mailer']['port'],
  :username => node['default_mailer']['username'],
  :password => node['default_mailer']['password'],
  :security => node['default_mailer']['security'],
  :from     => node['default_mailer']['from'],
  :subject  => "#{node['name']}: $SERVICE $EVENT at $DATE",
  :message  => "Monit $ACTION $SERVICE at $DATE on $HOST,\n\n$DESCRIPTION\n\nDutifully,\nMonit",
  :timeout  => 30
}
override["monit"]["default_monitrc_configs"] = ["load", "ssh"]
# Used by upstart script
override[:monit][:bin_file] =  "/usr/bin/monit"
override[:monit][:monitrc_file] = "/etc/monit/monitrc"
{'fraction_non_alphanumeric': 0.21780241278121942, 'fraction_numerical': 0.007173133355070101, 'mean_word_length': 6.886889460154242, 'pattern_counts': {'":': 0, '<': 7, '<?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': '2713994', 'n_tokens_mistral': 1028, 'n_tokens_neox': 1048, 'n_words': 163}