<commit_before>%%%
%% Generated by Chef
%%%

[
  {rabbit, [
<% if node['rabbitmq']['cluster'] && node['rabbitmq']['cluster_disk_nodes'] -%>
    {cluster_nodes, [<%= node['rabbitmq']['cluster_disk_nodes'].map{|n| "\'#{n}\'"}.join(',') %>]},
<% end %>
<% if node[:rabbitmq][:disk_free_limit] %>
   {disk_free_limit, <%= node[:rabbitmq][:disk_free_limit] %>},
<% end %>
<% if node['rabbitmq']['ssl'] -%>
    {ssl_listeners, [<%= node['rabbitmq']['ssl_port'] %>]},
    {ssl_options, [{cacertfile,"<%= node['rabbitmq']['ssl_cacert'] %>"},
                    {certfile,"<%= node['rabbitmq']['ssl_cert'] %>"},
                    {keyfile,"<%= node['rabbitmq']['ssl_key'] %>"},
                    {verify,verify_none},
                    {fail_if_no_peer_cert,false}]},
<% end %>
    {default_user, <<"<%= node['rabbitmq']['default_user'] %>">>},
    {default_pass, <<"<%= node['rabbitmq']['default_pass'] %>">>}
  ]}<% if node[:rabbitmq][:federate] && node[:rabbitmq][:upstream_connections] -%>,
{rabbitmq_federation,
   [
    {exchanges, [[{exchange, "main"},
                  {type, "topic"},
                  {upstream_set, "tomcats"}]]},
    {upstream_sets, [{"tomcats", [
                                  <% node[:rabbitmq][:upstream_connections].each_with_index do |connection, index| %>
                                  [
                                   {connection, "<%= connection[:name] %>"},
                                   {exchange, "upstream"},
                                   {max_hops, 1}
                                  ]<% if index != node[:rabbitmq][:upstream_connections].length - 1 -%>,<% end %>
                                  <% end %>
                                 ]
                     }]},
    {connections, [
                   <% node[:rabbitmq][:upstream_connections].each_with_index do |connection, index| %>
                   {"<%= connection[:name] %>", [{host, "<%= connection[:host] %>"},
                                               {port, 5672}]}<% if index != node[:rabbitmq][:upstream_connections].length - 1 -%>,<% end %>
                   <% end %>
                  ]}
   ]
}
<% end %>
].<commit_msg>Minor formatting change<commit_after>%%%
%% Generated by Chef
%%%

[
  {rabbit, [
<% if node['rabbitmq']['cluster'] && node['rabbitmq']['cluster_disk_nodes'] -%>
    {cluster_nodes, [<%= node['rabbitmq']['cluster_disk_nodes'].map{|n| "\'#{n}\'"}.join(',') %>]},
<% end %>
<% if node[:rabbitmq][:disk_free_limit] %>
   {disk_free_limit, <%= node[:rabbitmq][:disk_free_limit] %>},
<% end %>
<% if node['rabbitmq']['ssl'] -%>
    {ssl_listeners, [<%= node['rabbitmq']['ssl_port'] %>]},
    {ssl_options, [{cacertfile,"<%= node['rabbitmq']['ssl_cacert'] %>"},
                    {certfile,"<%= node['rabbitmq']['ssl_cert'] %>"},
                    {keyfile,"<%= node['rabbitmq']['ssl_key'] %>"},
                    {verify,verify_none},
                    {fail_if_no_peer_cert,false}]},
<% end %>
    {default_user, <<"<%= node['rabbitmq']['default_user'] %>">>},
    {default_pass, <<"<%= node['rabbitmq']['default_pass'] %>">>}
  ]}<% if node[:rabbitmq][:federate] && node[:rabbitmq][:upstream_connections] -%>,
{rabbitmq_federation,
   [
    {exchanges, [[{exchange, "main"},
                  {type, "topic"},
                  {upstream_set, "tomcats"}]]},
    {upstream_sets, [{"tomcats", [
                                  <% node[:rabbitmq][:upstream_connections].each_with_index do |connection, index| %>
                                  [
                                   {connection, "<%= connection[:name] %>"},
                                   {exchange, "upstream"},
                                   {max_hops, 1}
                                  ]<% if index != node[:rabbitmq][:upstream_connections].length - 1 -%>,<% end %>
                                  <% end %>
                                 ]
                     }]},
    {connections, [
                   <% node[:rabbitmq][:upstream_connections].each_with_index do |connection, index| %>
                   {"<%= connection[:name] %>", [{host, "<%= connection[:host] %>"}, {port, 5672}]}<% if index != node[:rabbitmq][:upstream_connections].length - 1 -%>,<% end %>
                   <% end %>
                  ]}
   ]
}
<% end %>
].
{'fraction_non_alphanumeric': 0.21916530659827466, 'fraction_numerical': 0.0032641641408253674, 'mean_word_length': 1.9750346740638003, 'pattern_counts': {'":': 0, '<': 65, '<?xml version=': 0, '>': 65, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 14, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3383542', 'n_tokens_mistral': 1466, 'n_tokens_neox': 1238, 'n_words': 164}