<commit_before>{# Page: NavSecondary > Configuration > Main configuration | Contenttypes | Taxonomy | ... #}

{% extends '_base/_page-nav.twig' %}

{% block page_nav 'Settings/Configuration' %}

{% block page_title context.write_allowed ? __('Edit file') : __('View file') %}

{% block page_subtitle context.basename %}

{% block page_main %}

    <div class="row">
        <div class="col-xs-12">
            {% if context.pathsegments|length > 1 %}
                <p>{{ __('Path:') }}
                    {% for path, segment in context.pathsegments %}
                        {% if not loop.first %} / {% endif %}
                        <a href="{{ path('files', {'path': path}) }}">{{ segment }}</a>
                    {% endfor %}
                </p>
            {% endif %}

            <form action="" method="post" class="form-inline" autocomplete="off">
                {{ form_widget(context.form._token) }}

                <div>
                    <textarea id="form_contents" name="form[contents]" required="required" class="CodeMirror-scroll" style="width: 98%; min-height: 350px;">{{ context.form.vars.value.contents }}</textarea>
                </div>

                <div>
                    <button type="submit" id="saveeditfile" class="btn btn-primary" {% if not context.write_allowed %}disabled{% endif %}>
                        <i class="fa fa-flag"></i> {{ __('Save') }}
                    </button>
                    <a class="btn confirm" style="margin-left: 24px;"
                       data-confirm="{{ __("Are you sure you wish to revert? Your changes will be lost, if you don't save them.") }}"
                       href="{{ path('fileedit', { 'file': context.file }) }}"
                    >
                        <i class="fa fa-undo"></i> {{ __('Revert changes') }}
                    </a>

                  <div class="relatedfiles">
                    Note, this file has related files: 
                    {% for related in context.filegroup %}
                      {% if related != context.basename %}
                        <a class="btn btn-tertiary btn-small" href="{{ path('fileedit', { 'file': '../app/config/' ~ related } )  }}">{{ related }}</a>
                      {% endif %}
                    {% endfor %}<commit_msg>Fixing to be label<commit_after>{# Page: NavSecondary > Configuration > Main configuration | Contenttypes | Taxonomy | ... #}

{% extends '_base/_page-nav.twig' %}

{% block page_nav 'Settings/Configuration' %}

{% block page_title context.write_allowed ? __('Edit file') : __('View file') %}

{% block page_subtitle context.basename %}

{% block page_main %}

    <div class="row">
        <div class="col-xs-12">
            {% if context.pathsegments|length > 1 %}
                <p>{{ __('Path:') }}
                    {% for path, segment in context.pathsegments %}
                        {% if not loop.first %} / {% endif %}
                        <a href="{{ path('files', {'path': path}) }}">{{ segment }}</a>
                    {% endfor %}
                </p>
            {% endif %}

            <form action="" method="post" class="form-inline" autocomplete="off">
                {{ form_widget(context.form._token) }}

                <div>
                    <textarea id="form_contents" name="form[contents]" required="required" class="CodeMirror-scroll" style="width: 98%; min-height: 350px;">{{ context.form.vars.value.contents }}</textarea>
                </div>

                <div>
                    <button type="submit" id="saveeditfile" class="btn btn-primary" {% if not context.write_allowed %}disabled{% endif %}>
                        <i class="fa fa-flag"></i> {{ __('Save') }}
                    </button>
                    <a class="btn confirm" style="margin-left: 24px;"
                       data-confirm="{{ __("Are you sure you wish to revert? Your changes will be lost, if you don't save them.") }}"
                       href="{{ path('fileedit', { 'file': context.file }) }}"
                    >
                        <i class="fa fa-undo"></i> {{ __('Revert changes') }}
                    </a>

                  <div class="relatedfiles">
                    {{ __("Note, this file has related files:") }} 
                    {% for related in context.filegroup %}
                      {% if related != context.basename %}
                        <a class="btn btn-tertiary btn-small" href="{{ path('fileedit', { 'file': '../app/config/' ~ related } )  }}">{{ related }}</a>
                      {% endif %}
                    {% endfor %}
{'fraction_non_alphanumeric': 0.16605085850901977, 'fraction_numerical': 0.0043468811128015645, 'mean_word_length': 1.6539792387543253, 'pattern_counts': {'":': 0, '<': 49, '<?xml version=': 0, '>': 55, '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': '7642073', 'n_tokens_mistral': 1330, 'n_tokens_neox': 1150, 'n_words': 301}