<commit_before>{% load bootstrap3 %}
{% load i18n %}
{% include 'editor/fragment_levels.html' %}

<h3>
    {% trans 'Graph' %}
    <small>
        {% if space %}
            {% with space.title as space_title %}
                {% blocktrans %}in space {{ space_title }}{% endblocktrans %}
            {% endwith %}
        {% else %}
            {% with level.title as level_title %}
                {% blocktrans %}on level {{ level_title }}{% endblocktrans %}
            {% endwith %}
        {% endif %}
    </small>
</h3>

<a href="{% url 'editor.graph.settings' %}" class="btn btn-default btn-xs pull-right" data-graph-editing="{{ graph_editing }}">{% trans 'Settings' %}</a>
<p>
    <a href="{{ back_url }}">&laquo; {{ back_title }}</a>
</p>
{% bootstrap_messages %}

<form action="{{ request.path }}" method="post">
    <h4>{% trans 'Default node properties' %}</h4>
    {% bootstrap_form node_settings_form %}

    <h4>{% trans 'Default edge properties' %}</h4>
    {% bootstrap_form edge_settings_form %}

    {% bootstrap_form graph_action_form %}<commit_msg>add missing csrf token<commit_after>{% load bootstrap3 %}
{% load i18n %}
{% include 'editor/fragment_levels.html' %}

<h3>
    {% trans 'Graph' %}
    <small>
        {% if space %}
            {% with space.title as space_title %}
                {% blocktrans %}in space {{ space_title }}{% endblocktrans %}
            {% endwith %}
        {% else %}
            {% with level.title as level_title %}
                {% blocktrans %}on level {{ level_title }}{% endblocktrans %}
            {% endwith %}
        {% endif %}
    </small>
</h3>

<a href="{% url 'editor.graph.settings' %}" class="btn btn-default btn-xs pull-right" data-graph-editing="{{ graph_editing }}">{% trans 'Settings' %}</a>
<p>
    <a href="{{ back_url }}">&laquo; {{ back_title }}</a>
</p>
{% bootstrap_messages %}

<form action="{{ request.path }}" method="post">
    {% csrf_token %}

    <h4>{% trans 'Default node properties' %}</h4>
    {% bootstrap_form node_settings_form %}

    <h4>{% trans 'Default edge properties' %}</h4>
    {% bootstrap_form edge_settings_form %}

    {% bootstrap_form graph_action_form %}
{'fraction_non_alphanumeric': 0.1859180855959503, 'fraction_numerical': 0.008283479061205707, 'mean_word_length': 2.7353951890034365, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 0, '>': 33, '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': '3510970', 'n_tokens_mistral': 770, 'n_tokens_neox': 668, 'n_words': 166}