<commit_before>{% use "form_div_layout.html.twig" %}

{# Inject templates into "~/Symfony/Bridge/Twig/Resources/views/Form/form_div_layout.html.twig" #}

{% block form_row %}
	{% spaceless %}
	    {% set error = (errors|length > 0) ? ' text-danger' : '' %}
		<div class="form-group{{ error }}">
			{{ form_label(form, null, {'label_attr': {'class': 'control-label'}}) }}
			{{ form_errors(form) }}
			{{ form_widget(form, {'attr': {'class': 'form-control'}}) }}
		</div>
	{% endspaceless %}
{% endblock form_row %}

{% block form_errors %}
	{% spaceless %}
		{% if errors|length > 0 %}
			{% for error in errors %}
			<div class="alert alert-danger">{{ error.message }}</div>
			{% endfor %}
		{% endif %}
	{% endspaceless %}
{% endblock form_errors %}

{% block button_widget %}
	{% spaceless %}
		{% if label is empty %}
			{% set label = name|humanize %}
		{% endif %}
		<button class="btn {{ class|default('btn-default') }}" type="{{ type|default('button') }}" {{ block('button_attributes') }}>{{ label|trans({}, translation_domain) }}</button>
	{% endspaceless %}
{% endblock button_widget %}

{% block submit_widget %}
	{% spaceless %}
		{% set type = type|default('submit') %}
		{% set class = class|default('btn-primary') %}
		{{ block('button_widget') }}
	{% endspaceless %}
{% endblock submit_widget %}

{% block reset_widget %}
	{% spaceless %}
		{% set type = type|default('reset') %}
		{% set class = class|default('btn-danger') %}
		{{ block('button_widget') }}
	{% endspaceless %}
{% endblock reset_widget %}<commit_msg>Added a wrapper for buttons.<commit_after>{% use "form_div_layout.html.twig" %}

{# Inject templates into "~/Symfony/Bridge/Twig/Resources/views/Form/form_div_layout.html.twig" #}

{% block form_row %}
{% spaceless %}
    {% set error = (errors|length > 0) ? ' text-danger' : '' %}
	<div class="form-group{{ error }}">
		{{ form_label(form, null, {'label_attr': {'class': 'control-label'}}) }}
		{{ form_errors(form) }}
		{{ form_widget(form, {'attr': {'class': 'form-control'}}) }}
	</div>
{% endspaceless %}
{% endblock form_row %}

{% block form_errors %}
{% spaceless %}
	{% if errors|length > 0 %}
		{% for error in errors %}
		<div class="alert alert-danger">{{ error.message }}</div>
		{% endfor %}
	{% endif %}
{% endspaceless %}
{% endblock form_errors %}

{% block button_row %}
{% spaceless %}
    <div class="form-group">
        {{ form_widget(form) }}
    </div>
{% endspaceless %}
{% endblock button_row %}

{% block button_widget %}
{% spaceless %}
	{% if label is empty %}
		{% set label = name|humanize %}
	{% endif %}
	<button class="btn {{ class|default('btn-default') }}" type="{{ type|default('button') }}" {{ block('button_attributes') }}>{{ label|trans({}, translation_domain) }}</button>
{% endspaceless %}
{% endblock button_widget %}

{% block submit_widget %}
{% spaceless %}
	{% set type = type|default('submit') %}
	{% set class = class|default('btn-primary') %}
	{{ block('button_widget') }}
{% endspaceless %}
{% endblock submit_widget %}

{% block reset_widget %}
{% spaceless %}
	{% set type = type|default('reset') %}
	{% set class = class|default('btn-danger') %}
	{{ block('button_widget') }}
{% endspaceless %}
{% endblock reset_widget %}
{'fraction_non_alphanumeric': 0.21862348178137653, 'fraction_numerical': 0.0012457178449081284, 'mean_word_length': 4.48122866894198, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 21, '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': '1118939', 'n_tokens_mistral': 1264, 'n_tokens_neox': 1059, 'n_words': 216}