<commit_before>{% extends "mapentity/mapentity_detail_attributes.html" %}
{% load i18n mapentity_tags %}


{% block attributes %}
    <h3>{% trans "Attributes" %}</h3>
    <div class="groupfields">
        <h4>{{ path|verbose:"comments" }}</h4>
        {{ path.comments|default:_("None")|safe|linebreaks }}
    </div>

    <table class="table-striped table-bordered table">
        <tr>
            <th>{{ object|verbose:"draft" }}</th>
            <td>{{ object.draft|yesno|title }}</td>
        </tr>
        <tr>
            <th>{{ path|verbose:"structure" }}</th>
            <td>{{ path.structure }}</td>
        </tr>
        <tr>
            <th>{{ path|verbose:"departure" }}</th>
            <td>{{ path.departure }}</td>
        </tr>
        <tr>
            <th>{{ path|verbose:"arrival" }}</th>
            <td>{{ path.arrival }}</td>
        </tr>
        <tr>
            <th>{{ path|verbose:"comfort" }}</th>
            <td>{% if path.comfort %}{{ path.comfort }}
                {% else %}<span class="none">{% trans "None" %}</span>{% endif %}
            </td>
        </tr>
        {% include "altimetry/elevationinfo_fragment.html" %}
        <tr>
            <th>{{ path|verbose:"source" }}</th>
            <td>{% if path.source %}{{ path.source }}
                {% else %}<span class="none">{% trans "None" %}</span>{% endif %}
            </td>
        </tr><tr>
            <th>{{ path|verbose:"stake" }}</th>
            <td>{% if path.stake %}{{ path.stake }}
                {% else %}<span class="none">{% trans "None" %}</span>{% endif %}<commit_msg>fix none / add name in path detail template<commit_after>{% extends "mapentity/mapentity_detail_attributes.html" %}
{% load i18n mapentity_tags %}


{% block attributes %}
    <h3>{% trans "Attributes" %}</h3>
    <table class="table-striped table-bordered table">
        <tr>
            <th>{{ object|verbose:"name" }}</th>
            <td>{{ object.name|default:object }}</td>
        </tr>
        <tr>
            <th>{{ object|verbose:"comments" }}</th>
            <td>{% if object.comments %}
                {{ object.comments|safe|linebreaks }}
                {% else %}<span class="none">{% trans "None" %}</span>
                {% endif %}
            </td>
        </tr>
        <tr>
            <th>{{ object|verbose:"draft" }}</th>
            <td>{{ object.draft|yesno|title }}</td>
        </tr>
        <tr>
            <th>{{ path|verbose:"structure" }}</th>
            <td>{{ path.structure }}</td>
        </tr>
        <tr>
            <th>{{ path|verbose:"departure" }}</th>
            <td>{% if path.departure %}{{ path.departure }}{% else %}<span class="none">{% trans "None" %}</span>{% endif %}</td>
        </tr>
        <tr>
            <th>{{ path|verbose:"arrival" }}</th>
            <td>{% if path.arrival %}{{ path.arrival }}{% else %}<span class="none">{% trans "None" %}</span>{% endif %}</td>
        </tr>
        <tr>
            <th>{{ path|verbose:"comfort" }}</th>
            <td>{% if path.comfort %}{{ path.comfort }}
                {% else %}<span class="none">{% trans "None" %}</span>{% endif %}
            </td>
        </tr>
        {% include "altimetry/elevationinfo_fragment.html" %}
        <tr>
            <th>{{ path|verbose:"source" }}</th>
            <td>{% if path.source %}{{ path.source }}
                {% else %}<span class="none">{% trans "None" %}</span>{% endif %}
            </td>
        </tr><tr>
            <th>{{ path|verbose:"stake" }}</th>
            <td>{% if path.stake %}{{ path.stake }}
                {% else %}<span class="none">{% trans "None" %}</span>{% endif %}
{'fraction_non_alphanumeric': 0.22289321987373045, 'fraction_numerical': 0.002744990392533626, 'mean_word_length': 1.8647798742138364, 'pattern_counts': {'":': 0, '<': 123, '<?xml version=': 0, '>': 123, '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': '6716522', 'n_tokens_mistral': 1244, 'n_tokens_neox': 1139, 'n_words': 253}