<commit_before>#
# Cookbook Name:: serverdensity
# Recipe:: server-monitor

# Install the server monitor
package "sd-agent" do
  action :install
end

# Configure your Server Density agent key
template "/etc/sd-agent/config.cfg" do
  source "config.cfg.erb"
  owner "root"
  group "root"
  mode "644"
  variables(
    :sd_url => node[:serverdensity][:sd_url],
    :agent_key => node[:serverdensity][:agent_key]
  )
  notifies :restart, "service[sd-agent]"
end

service "sd-agent" do
  supports :start => true, :stop => true, :restart => true
  # Starts the service if it's not running and enables it to start at system boot time
  action [:enable, :start]
end<commit_msg>Use ALL THE ATTRIBUTES! (in the template)<commit_after>#
# Cookbook Name:: serverdensity
# Recipe:: server-monitor

# Install the server monitor
package "sd-agent" do
  action :install
end

# Configure your Server Density agent key
template "/etc/sd-agent/config.cfg" do
  source "config.cfg.erb"
  owner "root"
  group "root"
  mode "644"
  variables(node[:serverdensity])
  notifies :restart, "service[sd-agent]"
end

service "sd-agent" do
  supports :start => true, :stop => true, :restart => true
  # Starts the service if it's not running and enables it to start at system boot time
  action [:enable, :start]
end
{'fraction_non_alphanumeric': 0.1187888198757764, 'fraction_numerical': 0.004658385093167702, 'mean_word_length': 4.3264462809917354, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '5660546', 'n_tokens_mistral': 427, 'n_tokens_neox': 419, 'n_words': 145}