<commit_before>{% if callback %}{{ callback }}({% endif %}{
  "category": "{{ category }}",
  "category_name": "{{ category_name }}",
  "v": "{{ v }}",
  "results": [
    {% for user_agent in user_agents %}
      { "{{ user_agent }}": {
        "score": "{{ stats|by_key:user_agent|by_key:"score"|scale_100_to_10 }}",
        "score_display": "{{ stats|by_key:user_agent|by_key:"display" }}",
        "results": [
          {% for test in tests %}
            {"{{ test.key }}": {
              "display": "{{ stats|by_key:user_agent|by_key:"results"|by_key:test.key|by_key:"display" }}",
              "score": "{{ stats|by_key:user_agent|by_key:"results"|by_key:test.key|by_key:"score"|scale_100_to_10 }}"
            }}{% if forloop.last %}{% else %}, {% endif %}
          {% endfor %}
        ]
      }
    }{% if forloop.last %}{% else %}, {% endif %}
    {% endfor %}
  ]
}{% if callback %});({% endif %}<commit_msg>Fixes Issue #247<commit_after>{% if callback %}{{ callback }}({% endif %}{
  "category": "{{ category }}",
  "category_name": "{{ category_name }}",
  "v": "{{ v }}",
  "results": [
    {% for user_agent in user_agents %}
      { "{{ user_agent }}": {
        "score": "{{ stats|by_key:user_agent|by_key:"score"|scale_100_to_10 }}",
        "score_display": "{{ stats|by_key:user_agent|by_key:"display" }}",
        "results": [
          {% for test in tests %}
            {"{{ test.key }}": {
              "display": "{{ stats|by_key:user_agent|by_key:"results"|by_key:test.key|by_key:"display" }}",
              "score": "{{ stats|by_key:user_agent|by_key:"results"|by_key:test.key|by_key:"score"|scale_100_to_10 }}"
            }}{% if forloop.last %}{% else %}, {% endif %}
          {% endfor %}
        ]
      }
    }{% if forloop.last %}{% else %}, {% endif %}
    {% endfor %}
  ]
}{% if callback %});{% endif %}
{'fraction_non_alphanumeric': 0.2326839826839827, 'fraction_numerical': 0.012445887445887446, 'mean_word_length': 2.8926315789473684, 'pattern_counts': {'":': 22, '<': 3, '<?xml version=': 0, '>': 3, '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': '2235038', 'n_tokens_mistral': 707, 'n_tokens_neox': 643, 'n_words': 90}