<commit_before>{% load i18n %}

{# Edit form #}
<form style="display:none;" class="editable-form" method="post" 
    action="{% url edit %}" id="{{ uuid }}" 
    {% if form.is_multipart %} enctype="multipart/form-data"{% endif %}>
    {% for field in form %}
        {{ field }}
        {% if not field.is_hidden %}<br />{% endif %}
    {% endfor %}
    <input type="submit" value="{% trans "Save" %}" class="button" />
    <input type="button" value="{% trans "Cancel" %}" class="button" />
</form>

{# Original content wrapped in span #}
<div class="editable-original">{{ original }}</div>

{# Edit link #}
<a style="display:none;" class="editable-link" href="#" 
    rel="#{{ uuid }}">{% trans "Edit" %}</a>

{# Edit highlight #}
<div style="display:none;" class="editable-highlight"></div>

<commit_msg>add csrf_token to form for inline editing (django 1.2 fails without this.)<commit_after>{% load i18n %}

{# Edit form #}
<form style="display:none;" class="editable-form" method="post" 
    action="{% url edit %}" id="{{ uuid }}" 
    {% if form.is_multipart %} enctype="multipart/form-data"{% endif %}>
    {% csrf_token %}
    {% for field in form %}
        {{ field }}
        {% if not field.is_hidden %}<br />{% endif %}
    {% endfor %}
    <input type="submit" value="{% trans "Save" %}" class="button" />
    <input type="button" value="{% trans "Cancel" %}" class="button" />
</form>

{# Original content wrapped in span #}
<div class="editable-original">{{ original }}</div>

{# Edit link #}
<a style="display:none;" class="editable-link" href="#" 
    rel="#{{ uuid }}">{% trans "Edit" %}</a>

{# Edit highlight #}
<div style="display:none;" class="editable-highlight"></div>


{'fraction_non_alphanumeric': 0.22523584905660377, 'fraction_numerical': 0.003537735849056604, 'mean_word_length': 3.918840579710145, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 25, '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': '974536', 'n_tokens_mistral': 606, 'n_tokens_neox': 559, 'n_words': 146}