<commit_before>{
 "queries":[
<% node[:bcpc][:hadoop][:graphite][:queries].each_with_index do |(host, value),hidx| -%>
  <% value.each_with_index do |q,aidx| -%>
    <% if hidx == node[:bcpc][:hadoop][:graphite][:queries].length-1 and aidx == value.length()-1 -%>
      {"graphite_url": "https://<%=node[:bcpc][:management][:vip]%>:<%=node[:bcpc][:graphite][:web_port]%>/render/?from=-2min&target=<%=q['type']%>.*_<%=node[:bcpc][:hadoop][host][:jmx][:port]%>.<%=q['query']%>&format=json",
       "zabbix_host" : "<%= host %>", 
       "zabbix_key"  : "<%=q['key']%>"}
    <% else -%>
      {"graphite_url": "https://<%=node[:bcpc][:management][:vip]%>:<%=node[:bcpc][:graphite][:web_port]%>/render/?from=-2min&target=<%=q['type']%>.*_<%=node[:bcpc][:hadoop][host][:jmx][:port]%>.<%=q['query']%>&format=json",
       "zabbix_host" : "<%= host %>", 
       "zabbix_key"  : "<%=q['key']%>"},
    <% end %>
  <% end %>
<% end %>
 ]
}
<commit_msg>Change graphite queries to comply with the changes made to display Graphite data in user friendly format PR#28<commit_after>{
 "queries":[
<% node[:bcpc][:hadoop][:graphite][:queries].each_with_index do |(host, value),hidx| -%>
  <% value.each_with_index do |q,aidx| -%>
    <% if hidx == node[:bcpc][:hadoop][:graphite][:queries].length-1 and aidx == value.length()-1 -%>
      {"graphite_url": "https://<%=node[:bcpc][:management][:vip]%>:<%=node[:bcpc][:graphite][:web_port]%>/render/?from=-2min&target=<%=q['type']%>.<%= host %>.*.<%=q['query']%>&format=json",
       "zabbix_host" : "<%= host %>", 
       "zabbix_key"  : "<%=q['key']%>"}
    <% else -%>
      {"graphite_url": "https://<%=node[:bcpc][:management][:vip]%>:<%=node[:bcpc][:graphite][:web_port]%>/render/?from=-2min&target=<%=q['type']%>.<%= host %>.*.<%=q['query']%>&format=json",
       "zabbix_host" : "<%= host %>", 
       "zabbix_key"  : "<%=q['key']%>"},
    <% end %>
  <% end %>
<% end %>
 ]
}

{'fraction_non_alphanumeric': 0.31697127937336816, 'fraction_numerical': 0.005221932114882507, 'mean_word_length': 5.180645161290323, 'pattern_counts': {'":': 6, '<': 45, '<?xml version=': 0, '>': 45, 'https://': 4, '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': '3111739', 'n_tokens_mistral': 843, 'n_tokens_neox': 782, 'n_words': 83}