<commit_before><commit_msg>Added bar chart option.<commit_after><canvas id="{{ chartid }}" width="400" height="400"></canvas>
<script>
var ctx = document.getElementById("{{ chartid }}");
var myChart = new Chart(ctx, {
    type: 'bar',
    data: {
      labels: [
          {% for l in labels %}
            "{{ l }}",
          {% endfor %}
      ],
        datasets: [{
            label: '{{ label }}',
            data: [
              {% for entry in data %}
                {{ entry }},
              {% endfor %}
            ],
            backgroundColor: [
                {% for color in colors %}
                  "{{ color }}",
                {% endfor %}
            ],
            hoverBackgroundColor: [
              {% for color in hcolors %}
                "{{ color }}",
              {% endfor %}
            ]
            borderWidth: 1
        }]
    },
    options: {
        scales: {
            yAxes: [{
                ticks: {
                    beginAtZero:true
                }
            }]
        }
    }
    title: {
      display: true,
      title: {{ charttitle }},
    }
});
</script>
{'fraction_non_alphanumeric': 0.149822695035461, 'fraction_numerical': 0.0062056737588652485, 'mean_word_length': 1.0527272727272727, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '1690022', 'n_tokens_mistral': 324, 'n_tokens_neox': 292, 'n_words': 64}