<commit_before># Polling frequency
set daemon <%= node["monit"]["polling_frequency"] %>
<% if node["monit"]["start_delay"].to_i > 0 %>
  with start delay <%= node["monit"]["start_delay"].to_i %>
<% end -%>

# Logging
<% if node["monit"]["use_syslog"] %>
set logfile syslog facility log_daemon
<% elsif node["monit"]["logfile"] %>
set logfile <%= node["monit"]["logfile"] %>
<% end %>

<% if node['monit']['mail_alerts'] %>
# Mail alerts
set alert <%= node["monit"]["alert_email"] %> <%= node["monit"]["alert_ignore_events"].empty? ? "" : "but not on { #{node["monit"]["alert_ignore_events"].join(", ")} }" %>
<% end %>

set mailserver <%= node["monit"]["mail"]["hostname"] %> port <%= node["monit"]["mail"]["port"] %>
  <% if node["monit"]["mail"]["username"] -%>
  username "<%= node["monit"]["mail"]["username"] %>"
  <% end -%>
  <% if node["monit"]["mail"]["password"] -%>
  password "<%= node["monit"]["mail"]["password"] %>"
  <% end -%>
<% if node["monit"]["mail"]["security"] -%>
    using <%= node["monit"]["mail"]["security"] %>
<% end -%>
  with timeout <%= node["monit"]["mail"]["timeout"] %> seconds

set mail-format {
  from: <%= node["monit"]["mail"]["from"] %>
  subject: <%= node["monit"]["mail"]["subject"] %>
  message: <%= node["monit"]["mail"]["message"] %>
}
<commit_msg>Add monit id file location config entry<commit_after># Polling frequency
set daemon <%= node["monit"]["polling_frequency"] %>
<% if node["monit"]["start_delay"].to_i > 0 %>
  with start delay <%= node["monit"]["start_delay"].to_i %>
<% end -%>

# Logging
<% if node["monit"]["use_syslog"] %>
set logfile syslog facility log_daemon
<% elsif node["monit"]["logfile"] %>
set logfile <%= node["monit"]["logfile"] %>
<% end %>

# Set location of Monit id file
<% if node["monit"]["idfile"] %>
set idfile <%= node["monit"]["idfile"] %>
<% end %>

<% if node['monit']['mail_alerts'] %>
# Mail alerts
set alert <%= node["monit"]["alert_email"] %> <%= node["monit"]["alert_ignore_events"].empty? ? "" : "but not on { #{node["monit"]["alert_ignore_events"].join(", ")} }" %>
<% end %>

set mailserver <%= node["monit"]["mail"]["hostname"] %> port <%= node["monit"]["mail"]["port"] %>
  <% if node["monit"]["mail"]["username"] -%>
  username "<%= node["monit"]["mail"]["username"] %>"
  <% end -%>
  <% if node["monit"]["mail"]["password"] -%>
  password "<%= node["monit"]["mail"]["password"] %>"
  <% end -%>
<% if node["monit"]["mail"]["security"] -%>
    using <%= node["monit"]["mail"]["security"] %>
<% end -%>
  with timeout <%= node["monit"]["mail"]["timeout"] %> seconds

set mail-format {
  from: <%= node["monit"]["mail"]["from"] %>
  subject: <%= node["monit"]["mail"]["subject"] %>
  message: <%= node["monit"]["mail"]["message"] %>
}

{'fraction_non_alphanumeric': 0.29743589743589743, 'fraction_numerical': 0.0007326007326007326, 'mean_word_length': 6.056847545219639, 'pattern_counts': {'":': 0, '<': 60, '<?xml version=': 0, '>': 62, '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': '1052375', 'n_tokens_mistral': 1017, 'n_tokens_neox': 1033, 'n_words': 164}