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

{% block form_label %}
  {% if 'checkbox' not in block_prefixes or widget_checkbox_label in ['label', 'both'] %}
    {% if label is not sameas(false) %}
      {% if label is empty %}
        {% set label = id|trans({}, translation_domain)|capitalize %}
      {% else %}
        {% set label = label|trans({}, translation_domain)|capitalize %}
      {% endif %}
      {% if not compound %}
        {% set label_attr = label_attr|merge({'for': id}) %}
      {% endif %}
      {% set label_attr_class = '' %}
      {% if horizontal %}
        {% set label_attr_class = 'control-label ' ~ label_attr_class ~ horizontal_label_class %}
      {% endif %}
      {% set label_attr = label_attr|merge({'class': label_attr.class|default('') ~ " " ~ label_attr_class ~ (required ? ' required' : ' optional') }) %}
      <label{% for attrname,attrvalue in label_attr %} {{ attrname }}="{{ attrvalue }}"{% endfor %}>
      {{ label }}{{- block('label_asterisk') }}
      {% if help_label %}
        {{ block('help_label') }}
      {% endif %}
      {% if help_label_tooltip.title %}
        {{ block('help_label_tooltip') }}
      {% endif %}
      {% if help_label_popover.title %}
        {{ block('help_label_popover') }}
      {% endif %}
      </label>

    {% endif %}
  {% endif %}
{% endblock form_label %}


{% block help_label_tooltip %}
  <span class="help-block{% if help_label_tooltip.icon is not sameas(false) %} inline{% endif %}">
    <a href="#" data-toggle="tooltip" data-placement="{{ help_label_tooltip.placement }}" data-title="{{ help_label_tooltip.title|trans({}, translation_domain) }}">
      {% if help_label_tooltip.icon is not sameas(false) %}
        <i class="fa fa-question"></i>
      {% endif %}
      {% if help_label_tooltip.text is not sameas(null) %}
        <span class="text-muted">{{ help_label_tooltip.text }}</span>
      {% endif %}
    </a>
  </span>
{% endblock help_label_tooltip %}

{% block help_label_popover %}
  <span class="help-block{% if help_label_popover.icon is not sameas(false) %} inline{% endif %}">
    <a href="#" data-toggle="popover" data-trigger="hover" data-placement="{{ help_label_popover.placement }}" data-title="{{ help_label_popover.title|trans({}, translation_domain) }}" data-content="{{ help_label_popover.content|trans({}, translation_domain) }}">
      {% if help_label_popover.icon is not sameas(false) %}
        <i class="fa fa-question"></i>
      {% endif %}
      {% if help_label_popover.text is not sameas(null) %}
        <span class="text-muted">{{ help_label_popover.text }}</span>
      {% endif %}
    </a>
  </span>
{% endblock help_label_popover %}


{%- block label_asterisk -%}
  <abbr title="{{ 'lbl.RequiredField'|trans({}, translation_domain)|ucfirst }}">*</abbr>
{%- endblock label_asterisk -%}
<commit_msg>sameas is deprecated in twig in favour of same as<commit_after>{% extends 'bootstrap_3_layout.html.twig' %}

{% block form_label %}
  {% if 'checkbox' not in block_prefixes or widget_checkbox_label in ['label', 'both'] %}
    {% if label is not same as(false) %}
      {% if label is empty %}
        {% set label = id|trans({}, translation_domain)|capitalize %}
      {% else %}
        {% set label = label|trans({}, translation_domain)|capitalize %}
      {% endif %}
      {% if not compound %}
        {% set label_attr = label_attr|merge({'for': id}) %}
      {% endif %}
      {% set label_attr_class = '' %}
      {% if horizontal %}
        {% set label_attr_class = 'control-label ' ~ label_attr_class ~ horizontal_label_class %}
      {% endif %}
      {% set label_attr = label_attr|merge({'class': label_attr.class|default('') ~ " " ~ label_attr_class ~ (required ? ' required' : ' optional') }) %}
      <label{% for attrname,attrvalue in label_attr %} {{ attrname }}="{{ attrvalue }}"{% endfor %}>
      {{ label }}{{- block('label_asterisk') }}
      {% if help_label %}
        {{ block('help_label') }}
      {% endif %}
      {% if help_label_tooltip.title %}
        {{ block('help_label_tooltip') }}
      {% endif %}
      {% if help_label_popover.title %}
        {{ block('help_label_popover') }}
      {% endif %}
      </label>

    {% endif %}
  {% endif %}
{% endblock form_label %}


{% block help_label_tooltip %}
  <span class="help-block{% if help_label_tooltip.icon is not same as(false) %} inline{% endif %}">
    <a href="#" data-toggle="tooltip" data-placement="{{ help_label_tooltip.placement }}" data-title="{{ help_label_tooltip.title|trans({}, translation_domain) }}">
      {% if help_label_tooltip.icon is not same as(false) %}
        <i class="fa fa-question"></i>
      {% endif %}
      {% if help_label_tooltip.text is not same as(null) %}
        <span class="text-muted">{{ help_label_tooltip.text }}</span>
      {% endif %}
    </a>
  </span>
{% endblock help_label_tooltip %}

{% block help_label_popover %}
  <span class="help-block{% if help_label_popover.icon is not same as(false) %} inline{% endif %}">
    <a href="#" data-toggle="popover" data-trigger="hover" data-placement="{{ help_label_popover.placement }}" data-title="{{ help_label_popover.title|trans({}, translation_domain) }}" data-content="{{ help_label_popover.content|trans({}, translation_domain) }}">
      {% if help_label_popover.icon is not same as(false) %}
        <i class="fa fa-question"></i>
      {% endif %}
      {% if help_label_popover.text is not same as(null) %}
        <span class="text-muted">{{ help_label_popover.text }}</span>
      {% endif %}
    </a>
  </span>
{% endblock help_label_popover %}


{%- block label_asterisk -%}
  <abbr title="{{ 'lbl.RequiredField'|trans({}, translation_domain)|ucfirst }}">*</abbr>
{%- endblock label_asterisk -%}

{'fraction_non_alphanumeric': 0.18165999651992343, 'fraction_numerical': 0.0003480076561684357, 'mean_word_length': 3.4045977011494255, 'pattern_counts': {'":': 0, '<': 43, '<?xml version=': 0, '>': 43, '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': '2764242', 'n_tokens_mistral': 1993, 'n_tokens_neox': 1779, 'n_words': 384}