<commit_before>{% if custom_fields %}
    <div class="panel panel-default">
        <div class="panel-heading">
            <strong>Custom Fields</strong>
        </div>
        <table class="table table-hover panel-body">
            {% for field, value in custom_fields.items %}
                <tr>
                    <td>{{ field }}</td>
                    <td>
                        {% if value == True %}
                            <i class="glyphicon glyphicon-ok text-success" title="True"></i>
                        {% elif value == False %}
                            <i class="glyphicon glyphicon-remove text-danger" title="False"></i>
                        {% elif field.type == 500 and value %}
                            {{ value|urlizetrunc:75 }}
                        {% elif value %}
                            {{ value }}
                        {% elif field.required %}
                            <span class="text-warning">Not defined</span>
                        {% else %}
                            <span class="text-muted">N/A</span>
                        {% endif %}
                    </td>
                </tr>
            {% endfor %}
        </table>
    </div>
{% endif %}<commit_msg>Fixes #602: Correct display of custom integer fields with value of 0 or 1<commit_after>{% if custom_fields %}
    <div class="panel panel-default">
        <div class="panel-heading">
            <strong>Custom Fields</strong>
        </div>
        <table class="table table-hover panel-body">
            {% for field, value in custom_fields.items %}
                <tr>
                    <td>{{ field }}</td>
                    <td>
                        {% if field.type == 300 and value == True %}
                            <i class="glyphicon glyphicon-ok text-success" title="True"></i>
                        {% elif field.type == 300 and value == False %}
                            <i class="glyphicon glyphicon-remove text-danger" title="False"></i>
                        {% elif field.type == 500 and value %}
                            {{ value|urlizetrunc:75 }}
                        {% elif field.type == 200 or value %}
                            {{ value }}
                        {% elif field.required %}
                            <span class="text-warning">Not defined</span>
                        {% else %}
                            <span class="text-muted">N/A</span>
                        {% endif %}
                    </td>
                </tr>
            {% endfor %}
        </table>
    </div>
{% endif %}
{'fraction_non_alphanumeric': 0.13043478260869565, 'fraction_numerical': 0.00923432089265102, 'mean_word_length': 1.045633359559402, 'pattern_counts': {'":': 0, '<': 47, '<?xml version=': 0, '>': 47, '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': '6604677', 'n_tokens_mistral': 701, 'n_tokens_neox': 594, 'n_words': 152}