<commit_before>{% load humanize %}
<div class="stat-wrapper{% if wrapper_class %} {{ wrapper_class }}{% endif %}">
    <div class="stat {{ stat_type }}">
        <span class="primary">
            <span class="value">
                {% if stat_type == 'dollar' %}${% endif %}{{ stat.values.this|intcomma }}{% if stat_type == 'percentage' %}%{% endif %}{% if stat_suffix %} <span class="stat-suffix">{{ stat_suffix }}</span>{% endif %}
            </span>
            <span class="name">{{ stat.name }}</span>
        </span>
        {% comment %}<commit_msg>better handling for missing stats<commit_after>{% load humanize %}
<div class="stat-wrapper{% if wrapper_class %} {{ wrapper_class }}{% endif %}">
    <div class="stat {{ stat_type }}">
        <span class="primary">
            <span class="value">
                {% if not stat.values.this %}
                    N/A
                {% else %}
                    {% if stat_type == 'dollar' %}${% endif %}{{ stat.values.this|intcomma }}{% if stat_type == 'percentage' %}%{% endif %}{% if stat_suffix %} <span class="stat-suffix">{{ stat_suffix }}</span>{% endif %}
                {% endif %}
            </span>
            <span class="name">{{ stat.name }}</span>
        </span>
        {% comment %}
{'fraction_non_alphanumeric': 0.20284135753749014, 'fraction_numerical': 0.0, 'mean_word_length': 2.3020833333333335, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, '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': '5215761', 'n_tokens_mistral': 419, 'n_tokens_neox': 364, 'n_words': 88}