<commit_before>#
# This file is generated by Chef
# Do not edit, changes will be overwritten
#
LoadPlugin "<%= @name %>"

<% if not @options.empty? %>
<Plugin "<%= @name %>">
  <% @options.each_pair do |key, value|
    if value.is_a? Array 
      value.each do |subvalue| %>
  <%= collectd_key(key) %> <%= collectd_option(subvalue) %>
  <% end else %>
  <%= collectd_key(key) %> <%= collectd_option(value) %>
  <% end end %>
</Plugin>
<% end %>
<commit_msg>Update the names of the variables to match those passed in<commit_after>#
# This file is generated by Chef
# Do not edit, changes will be overwritten
#
LoadPlugin "<%= @type %>"

<% if not @config.empty? %>
<Plugin "<%= @type %>">
  <% @config.each_pair do |key, value|
    if value.is_a? Array 
      value.each do |subvalue| %>
  <%= collectd_key(key) %> <%= collectd_option(subvalue) %>
  <% end else %>
  <%= collectd_key(key) %> <%= collectd_option(value) %>
  <% end end %>
</Plugin>
<% end %>

{'fraction_non_alphanumeric': 0.18808777429467086, 'fraction_numerical': 0.0, 'mean_word_length': 3.8629441624365484, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 29, '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': '2743553', 'n_tokens_mistral': 379, 'n_tokens_neox': 328, 'n_words': 92}