<commit_before>{% extends 'form_div_layout.html.twig' %}

{% block grid_row_attributes %}
    {% set grid_attr = grid_attr|default('') %}
    {% for key,val in grid %}
        {% if val is not empty %}
            {% set grid_attr = (grid_attr|default('') ~ ' col-' ~ key ~ '-' ~ val[1])|trim %}
        {% endif %}
    {% endfor %}
{% endblock grid_row_attributes %}

{% block grid_label_attributes %}
    {% set grid_attr = grid_attr|default('') %}
    {% for key,val in grid %}
        {% if val is not empty %}
            {% set grid_attr = (grid_attr|default('') ~ ' col-' ~ key ~ '-' ~ val[1])|trim %}
        {% endif %}
    {% endfor %}
{% endblock grid_label_attributes %}

{% block form_start %}
    {% set attr = attr|merge({ role: 'form' }) %}
    {% if horizontal %}
        {% set attr = attr|merge({ class: (attr.class|default('') ~ ' form-horizontal')|trim}) %}
    {% elseif inline %}
        {% set attr = attr|merge({ class: (attr.class|default('') ~ ' form-inline')|trim}) %}
    {% endif %}
    {{ parent() }}
{% endblock form_start %}

{% block form_row_attributes %}
    {% spaceless %}
        {{ block('grid_row_attributes') }}
        {% if id is not empty %} id="{{ id ~ '-control' }}"{% endif %}
        {% set row_attr = row_attr|default({})|merge({ class: (row_attr.class|default('') ~ ' ' ~ grid_attr)|trim}) %}
        {% for attrname, attrvalue in row_attr %} {{ attrname }}="{{ attrvalue }}"{% endfor %}
    {% endspaceless %}
{% endblock form_row_attributes %}

{% block form_row %}
    {% spaceless %}
        <div class="form-group">
            {{ form_label(form) }}
            {% if horizontal and not inline %}<div{{ block('form_row_attributes') }}>{% endif %}
            {{ form_widget(form) }}
            {% if form.parent == null %}
                {{ form_errors(form) }}
            {% endif %}
            {% if horizontal and not inline %}</div>{% endif %}
        </div>
    {% endspaceless %}
{% endblock form_row %}

{% block form_help %}
    {% spaceless %}
        {% if help is not empty %}
            <span class="help-block">{{ help|trans({}, translation_domain) }}</span>
        {% endif %}
    {% endspaceless %}
{% endblock form_help %}

{% block form_label %}
    {% if horizontal and not inline %}
        {{ block('grid_label_attributes') }}
        {% set label_attr = label_attr|default({})|merge({ class: (label_attr.class|default('') ~ ' control-label ' ~ grid_attr)|trim}) %}
    {% endif %}
    {{ parent() }}
{% endblock form_label %}

{% block form_widget_simple %}
    {% spaceless %}
        {{ parent() }}
        {{ block('form_help') }}
    {% endspaceless %}
{% endblock form_widget_simple %}

{% block widget_attributes %}
    {% set attr = attr|merge({ class: (attr.class|default('') ~ ' form-control')|trim}) %}
    {{ parent() }}
{% endblock widget_attributes %}

{% block date_widget %}
    {% if widget == 'single_text' %}
        {% set attr = attr|merge({ class: (attr.class|default('') ~ ' form-control-inline')|trim}) %}
    {% endif %}
    {{ parent() }}
{% endblock date_widget %}

{% block time_widget %}
    {% if widget == 'single_text' %}
        {% set attr = attr|merge({ class: (attr.class|default('') ~ ' form-control-inline')|trim}) %}
    {% endif %}
    {{ parent() }}
{% endblock time_widget %}

{% block button_row %}
    {% spaceless %}
        <div class="form-group">
            {% if horizontal and not inline %}<div{{ block('button_row_attributes') }}>
            {% endif %}
            {{ form_widget(form) }}
            {% if horizontal and not inline %}</div>{% endif %}
        </div>
    {% endspaceless %}
{% endblock button_row %}

{% block button_row_attributes %}
    {% spaceless %}
        {% set grid_attr = grid_attr|default('') %}
        {% for key,val in grid %}
            {% if val is not empty %}
                {% set grid_attr = (grid_attr|default('') ~ ' col-' ~ key ~ '-offset-' ~ val[0] ~ ' col-' ~ key ~ '-' ~val[1])|trim %}
            {% endif %}
        {% endfor %}<commit_msg>Remove grid_attributes blocks<commit_after>{% extends 'form_div_layout.html.twig' %}

{% block form_start %}
    {% set attr = attr|merge({ role: 'form' }) %}
    {% if horizontal %}
        {% set attr = attr|merge({ class: (attr.class|default('') ~ ' form-horizontal')|trim}) %}
    {% elseif inline %}
        {% set attr = attr|merge({ class: (attr.class|default('') ~ ' form-inline')|trim}) %}
    {% endif %}
    {{ parent() }}
{% endblock form_start %}

{% block form_row_attributes %}
    {% spaceless %}
        {% set grid_attr = grid_attr|default('') %}
        {% for key,val in grid %}
            {% if val is not empty %}
                {% set grid_attr = (grid_attr|default('') ~ ' col-' ~ key ~ '-' ~ val[1])|trim %}
            {% endif %}
        {% endfor %}
        {% if id is not empty %} id="{{ id ~ '-control' }}"{% endif %}
        {% set row_attr = row_attr|default({})|merge({ class: (row_attr.class|default('') ~ ' ' ~ grid_attr)|trim}) %}
        {% for attrname, attrvalue in row_attr %} {{ attrname }}="{{ attrvalue }}"{% endfor %}
    {% endspaceless %}
{% endblock form_row_attributes %}

{% block form_row %}
    {% spaceless %}
        <div class="form-group">
            {{ form_label(form) }}
            {% if horizontal and not inline %}<div{{ block('form_row_attributes') }}>{% endif %}
                {{ form_widget(form) }}
                {% if form.parent == null %}
                    {{ form_errors(form) }}
                {% endif %}
                {% if horizontal and not inline %}</div>{% endif %}
        </div>
    {% endspaceless %}
{% endblock form_row %}

{% block form_help %}
    {% spaceless %}
        {% if help is not empty %}
            <span class="help-block">{{ help|trans({}, translation_domain) }}</span>
        {% endif %}
    {% endspaceless %}
{% endblock form_help %}

{% block form_label %}
    {% if horizontal and not inline %}
        {% set grid_attr = grid_attr|default('') %}
        {% for key,val in grid %}
            {% if val is not empty %}
                {% set grid_attr = (grid_attr|default('') ~ ' col-' ~ key ~ '-' ~ val[0])|trim %}
            {% endif %}
        {% endfor %}
        {% set label_attr = label_attr|default({})|merge({ class: (label_attr.class|default('') ~ ' control-label ' ~ grid_attr)|trim}) %}
    {% endif %}
    {{ parent() }}
{% endblock form_label %}

{% block form_widget_simple %}
    {% spaceless %}
        {{ parent() }}
        {{ block('form_help') }}
    {% endspaceless %}
{% endblock form_widget_simple %}

{% block widget_attributes %}
    {% set attr = attr|merge({ class: (attr.class|default('') ~ ' form-control')|trim}) %}
    {{ parent() }}
{% endblock widget_attributes %}

{% block date_widget %}
    {% if widget == 'single_text' %}
        {% set attr = attr|merge({ class: (attr.class|default('') ~ ' form-control-inline')|trim}) %}
    {% endif %}
    {{ parent() }}
{% endblock date_widget %}

{% block time_widget %}
    {% if widget == 'single_text' %}
        {% set attr = attr|merge({ class: (attr.class|default('') ~ ' form-control-inline')|trim}) %}
    {% endif %}
    {{ parent() }}
{% endblock time_widget %}

{% block button_row %}
    {% spaceless %}
        <div class="form-group">
            {% if horizontal and not inline %}<div{{ block('button_row_attributes') }}>
                {% endif %}
                {{ form_widget(form) }}
                {% if horizontal and not inline %}</div>{% endif %}
        </div>
    {% endspaceless %}
{% endblock button_row %}

{% block button_row_attributes %}
    {% spaceless %}
        {% set grid_attr = grid_attr|default('') %}
        {% for key,val in grid %}
            {% if val is not empty %}
                {% set grid_attr = (grid_attr|default('') ~ ' col-' ~ key ~ '-offset-' ~ val[0] ~ ' col-' ~ key ~ '-' ~val[1])|trim %}
            {% endif %}
        {% endfor %}
{'fraction_non_alphanumeric': 0.19782718544719555, 'fraction_numerical': 0.001010611419909045, 'mean_word_length': 2.4526820758831227, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, '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': '6863784', 'n_tokens_mistral': 2764, 'n_tokens_neox': 2368, 'n_words': 544}