<commit_before>{% extends 'djiffy/canvas_detail.html' %}

{% block javascript %}
    {{ block.super }}
    {# enable annotation functionality if user has appropriate permissions #}
    {% if perms.interventions.add_intervention %}
        {% include 'snippets/annotator_init.html' %}
    {% endif %}
{% endblock %}<commit_msg>Enable annotator display if user has permission to view annotations #63<commit_after>{% extends 'djiffy/canvas_detail.html' %}

{% block javascript %}
    {{ block.super }}
    {# enable annotation functionality if user has appropriate permissions #}
    {% if perms.interventions.add_intervention or perms.interventions.view_intervention %}
        {% include 'snippets/annotator_init.html' %}
    {% endif %}
{% endblock %}
{'fraction_non_alphanumeric': 0.12649800266311584, 'fraction_numerical': 0.002663115845539281, 'mean_word_length': 4.115646258503402, 'pattern_counts': {'":': 0, '<': 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': '4134411', 'n_tokens_mistral': 241, 'n_tokens_neox': 200, 'n_words': 52}