<commit_before>{% block block_widget -%}
{%- endblock %}

{% block block_label -%}
    {% if label is defined and label is not same as(false) %}
        {%- if label is empty -%}
            {% set label = id|humanize %}
        {%- endif -%}
        <label{{ block('block_label_attributes') }}>{{ label|block_text(translation_domain) }}</label>
    {%- endif %}
{%- endblock %}

{% block block_row -%}
    {{ block_label(block) -}}
    {{ block_widget(block) -}}
{%- endblock %}

{% block block_attributes -%}
    {% set renderer = 'block_attributes_base' %}
    {%- if attr_renderer is defined -%}
        {% set renderer = attr_renderer %}
    {%- endif -%}
    {{- block(renderer) -}}
{%- endblock %}

{% block block_attributes_base -%}
    {%- if attr.class is defined -%}
        {% set attr = attr|merge({
        class: attr.class|replace({'{{ class_prefix }}': class_prefix})
        }) %}
    {%- endif -%}
    {%- if hidden -%}
        {% set attr = attr|merge({
            class: attr.class|default('') ~ ' hidden'
        }) %}
    {%- endif -%}
    {% set attributesThatContainsUri = ['src', 'href', 'action', 'cite', 'data', 'poster'] %}
    {%- for attrname, attrvalue in attr -%}
        {%- if (attrvalue is iterable) -%}
            {% set attrvalue = attrvalue|json_encode() %}
        {%- endif -%}
        {%- if attrname is same as('title') -%}
            {{- ' ' ~ attrname }}="{{ attrvalue|block_text(translation_domain)|e('html_attr') }}"
        {% elseif attrname in attributesThatContainsUri %}
            {{- ' ' ~ attrname }}="{{ attrvalue|e('html')|replace({'&amp;': '&'})|raw }}"
        {% else %}
            {{- ' ' ~ attrname }}="{{ attrvalue }}"
        {%- endif -%}
    {%- endfor -%}
{%- endblock %}

{% block block_label_attributes -%}
    {%- if label_attr.class is defined -%}
        {% set label_attr = label_attr|merge({
            class: label_attr.class|replace({'{{ class_prefix }}': class_prefix})
        }) %}
    {%- endif -%}
    {%- for attrname, attrvalue in label_attr -%}
        {%- if attrname is same as('title') -%}
            {{- ' ' ~ attrname }}="{{ attrvalue|block_text(translation_domain) }}"
        {% else %}
            {{- ' ' ~ attrname }}="{{ attrvalue }}"
        {%- endif -%}
    {%- endfor -%}
{%- endblock %}

{% block icon_block -%}
    <i class="fa-{{ icon }}{% if icon_class is defined %} {{ icon_class }}{% endif %}"></i>
{%- endblock %}

{% block input_widget -%}
    {% set attr = attr|merge({
        type: type,
    }) %}

    {% if name is defined %}
        {% set attr = attr|merge({
            name: name
        }) %}
    {% endif %}

    {% if placeholder is defined %}
        {% set attr = attr|merge({
            placeholder: placeholder|block_text(translation_domain)
        }) %}
    {% endif %}

    {% if value is defined %}
        {% set attr = attr|merge({
            value: value
        }) %}
    {% endif %}

    {% if type == 'password' %}
        {% set attr = attr|merge({
            autocomplete: 'off'
        }) %}
    {% endif %}

    <input{{ block('block_attributes') }}/>
{%- endblock %}

{% block container_widget -%}
    {% for child in block if child.vars.visible -%}
        {{ block_widget(child) }}
    {%- endfor %}
{%- endblock %}

{% block root_widget %}
<!DOCTYPE {{ doctype|default('html') }}>
<html>
    {{ block_widget(block) }}
</html>
{% endblock %}

{% block head_widget %}
    <head{{ block('block_attributes') }}>
        {{ block_widget(block) }}
    </head>
{% endblock %}

{% block title_widget -%}
    {% spaceless %}
        <title>{{ value|block_text(translation_domain) }}</title>
    {% endspaceless %}
{%- endblock %}

{% block page_title_widget -%}
    {% spaceless %}
        {% set value = value|block_text(translation_domain) %}
        {% if value|length %}
            <h3>{{ value }}</h3>
        {% endif %}
    {% endspaceless %}
{%- endblock %}

{% block meta_widget %}
    {% if charset is defined %}
        {% set attr = attr|merge({
            charset: charset
        }) %}
    {% endif %}

    {% if content is defined %}
        {% set attr = attr|merge({
            content: content
        }) %}
    {% endif %}

    {% if http_equiv is defined %}
        {% set attr = attr|merge({
            http_equiv: http_equiv
        }) %}
    {% endif %}

    {% if name is defined %}
        {% set attr = attr|merge({
            name: name<commit_msg>BB-7936: Wrong position of the title in markup on profile page (#7966)<commit_after>{% block block_widget -%}
{%- endblock %}

{% block block_label -%}
    {% if label is defined and label is not same as(false) %}
        {%- if label is empty -%}
            {% set label = id|humanize %}
        {%- endif -%}
        <label{{ block('block_label_attributes') }}>{{ label|block_text(translation_domain) }}</label>
    {%- endif %}
{%- endblock %}

{% block block_row -%}
    {{ block_label(block) -}}
    {{ block_widget(block) -}}
{%- endblock %}

{% block block_attributes -%}
    {% set renderer = 'block_attributes_base' %}
    {%- if attr_renderer is defined -%}
        {% set renderer = attr_renderer %}
    {%- endif -%}
    {{- block(renderer) -}}
{%- endblock %}

{% block block_attributes_base -%}
    {%- if attr.class is defined -%}
        {% set attr = attr|merge({
        class: attr.class|replace({'{{ class_prefix }}': class_prefix})
        }) %}
    {%- endif -%}
    {%- if hidden -%}
        {% set attr = attr|merge({
            class: attr.class|default('') ~ ' hidden'
        }) %}
    {%- endif -%}
    {% set attributesThatContainsUri = ['src', 'href', 'action', 'cite', 'data', 'poster'] %}
    {%- for attrname, attrvalue in attr -%}
        {%- if (attrvalue is iterable) -%}
            {% set attrvalue = attrvalue|json_encode() %}
        {%- endif -%}
        {%- if attrname is same as('title') -%}
            {{- ' ' ~ attrname }}="{{ attrvalue|block_text(translation_domain)|e('html_attr') }}"
        {% elseif attrname in attributesThatContainsUri %}
            {{- ' ' ~ attrname }}="{{ attrvalue|e('html')|replace({'&amp;': '&'})|raw }}"
        {% else %}
            {{- ' ' ~ attrname }}="{{ attrvalue }}"
        {%- endif -%}
    {%- endfor -%}
{%- endblock %}

{% block block_label_attributes -%}
    {%- if label_attr.class is defined -%}
        {% set label_attr = label_attr|merge({
            class: label_attr.class|replace({'{{ class_prefix }}': class_prefix})
        }) %}
    {%- endif -%}
    {%- for attrname, attrvalue in label_attr -%}
        {%- if attrname is same as('title') -%}
            {{- ' ' ~ attrname }}="{{ attrvalue|block_text(translation_domain) }}"
        {% else %}
            {{- ' ' ~ attrname }}="{{ attrvalue }}"
        {%- endif -%}
    {%- endfor -%}
{%- endblock %}

{% block icon_block -%}
    <i class="fa-{{ icon }}{% if icon_class is defined %} {{ icon_class }}{% endif %}"></i>
{%- endblock %}

{% block input_widget -%}
    {% set attr = attr|merge({
        type: type,
    }) %}

    {% if name is defined %}
        {% set attr = attr|merge({
            name: name
        }) %}
    {% endif %}

    {% if placeholder is defined %}
        {% set attr = attr|merge({
            placeholder: placeholder|block_text(translation_domain)
        }) %}
    {% endif %}

    {% if value is defined %}
        {% set attr = attr|merge({
            value: value
        }) %}
    {% endif %}

    {% if type == 'password' %}
        {% set attr = attr|merge({
            autocomplete: 'off'
        }) %}
    {% endif %}

    <input{{ block('block_attributes') }}/>
{%- endblock %}

{% block container_widget -%}
    {% for child in block if child.vars.visible -%}
        {{ block_widget(child) }}
    {%- endfor %}
{%- endblock %}

{% block root_widget %}
<!DOCTYPE {{ doctype|default('html') }}>
<html>
    {{ block_widget(block) }}
</html>
{% endblock %}

{% block head_widget %}
    <head{{ block('block_attributes') }}>
        {{ block_widget(block) }}
    </head>
{% endblock %}

{% block title_widget -%}
    {% spaceless %}
        <title>{{ value|block_text(translation_domain) }}</title>
    {% endspaceless %}
{%- endblock %}

{% block page_title_widget -%}
    {% spaceless %}
        {% set value = value|block_text(translation_domain) %}
        {% if value|length %}
            {{ value }}
        {% endif %}
    {% endspaceless %}
{%- endblock %}

{% block meta_widget %}
    {% if charset is defined %}
        {% set attr = attr|merge({
            charset: charset
        }) %}
    {% endif %}

    {% if content is defined %}
        {% set attr = attr|merge({
            content: content
        }) %}
    {% endif %}

    {% if http_equiv is defined %}
        {% set attr = attr|merge({
            http_equiv: http_equiv
        }) %}
    {% endif %}

    {% if name is defined %}
        {% set attr = attr|merge({
            name: name
{'fraction_non_alphanumeric': 0.19568151147098514, 'fraction_numerical': 0.0011246063877642825, 'mean_word_length': 2.129134412385644, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 29, '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': '6001571', 'n_tokens_mistral': 3138, 'n_tokens_neox': 2752, 'n_words': 602}