<commit_before>{% load templatetag_handlebars %}
{% load i18n %}
{% load static %}

{% tplhandlebars "components/bb-flash" %}
    {{#if data.text}}
        <div class="flash {{unbound data.type}}">{{data.text}}</div>
    {{/if}}
{% endtplhandlebars %}


{% tplhandlebars "components/bb-form-field" %}
    <li class="control-group has-popover" {{bindAttr data-content=hint}}>
        <label class="control-label">
            {{label}}
            <br /><small>{{undertext}}</small>
        </label>
        <div {{bindAttr class=":controls className"}}>
            {{yield}}
        </div>
        {{#if errors }}
            <div class="has-errors">{{#each errors }}<p>{{this}}</p>{{/each}}</div>
        {{/if}}
    </li>
{% endtplhandlebars %}


{% tplhandlebars "components/bb-text-area" %}
    {{#bb-form-field hint=hint label=label errors=errors undertext=undertext}}
        {{view Em.TextArea valueBinding="value" nameBinding=name placeholderBinding=placeholder maxlengthBinding=maxlength
               rowsBinding=rows colsBinding=cols classBinding="errors.length:error" classBinding=extraClasses}}
    {{/bb-form-field}}
{% endtplhandlebars %}


{% tplhandlebars "components/bb-text-field" %}
    {{#bb-form-field hint=hint label=label errors=errors contentBinding='content' undertext=undertext}}
        {{view Em.TextField step=step nameBinding=name valueBinding='value' placeholderBinding=placeholder
            maxlengthBinding=maxlength classBinding='errors.length:error' typeBinding=type classBinding=extraClasses}}
    {{/bb-form-field}}
{% endtplhandlebars %}


{% tplhandlebars "components/bb-radio" %}
    {{#bb-form-field hint=hint label=label errors=errors}}
        {{view Em.TextField valueBinding='value' nameBinding=name placeholderBinding=placeholder
               classBinding="errors.length:error" typeBinding=type classBinding=extraClasses}}
    {{/bb-form-field}}
{% endtplhandlebars %}

{% tplhandlebars "components/bb-select-language" %}
    {{#bb-form-field hint=hint label=label errors=errors}}
        {{view "App.LanguageSelectView" selectionBinding='selection' nameBinding=name valueBinding='value'}}
    {{/bb-form-field}}
{% endtplhandlebars %}

{% tplhandlebars "components/bb-select-country" %}
    {{#bb-form-field hint=hint label=label errors=errors}}
        {{view "App.CountrySelectView" selectionBinding='selection' valueBinding='value'}}
    {{/bb-form-field}}
{% endtplhandlebars %}

{% tplhandlebars "components/bb-select-generic" %}
    {{#bb-form-field hint=hint label=label errors=errors}}
        {{view Em.Select contentBinding='options' nameBinding=name optionValuePathBinding='valueProperty' optionLabelPathBinding='labelProperty'
               promptBinding='prompt' selectionBinding='value' classBinding="errors.length:error"}}
    {{/bb-form-field}}
{% endtplhandlebars %}

{% tplhandlebars "components/bb-select" %}
    {{#bb-form-field hint=hint label=label errors=errors}}
        {{view Em.Select contentBinding='options' nameBinding=name optionValuePath="content.value" optionLabelPath="content.text"
               selectedValueBinding='value' classBinding="errors.length:error" classBinding=extraClasses}}
    {{/bb-form-field}}
{% endtplhandlebars %}<commit_msg>need the name attribute for testing<commit_after>{% load templatetag_handlebars %}
{% load i18n %}
{% load static %}

{% tplhandlebars "components/bb-flash" %}
    {{#if data.text}}
        <div class="flash {{unbound data.type}}">{{data.text}}</div>
    {{/if}}
{% endtplhandlebars %}


{% tplhandlebars "components/bb-form-field" %}
    <li class="control-group has-popover" {{bindAttr data-content=hint}}>
        <label class="control-label">
            {{label}}
            <br /><small>{{undertext}}</small>
        </label>
        <div {{bindAttr class=":controls className"}}>
            {{yield}}
        </div>
        {{#if errors }}
            <div class="has-errors">{{#each errors }}<p>{{this}}</p>{{/each}}</div>
        {{/if}}
    </li>
{% endtplhandlebars %}


{% tplhandlebars "components/bb-text-area" %}
    {{#bb-form-field hint=hint label=label errors=errors undertext=undertext}}
        {{view Em.TextArea valueBinding="value" nameBinding=name placeholderBinding=placeholder maxlengthBinding=maxlength
               rowsBinding=rows colsBinding=cols classBinding="errors.length:error" classBinding=extraClasses}}
    {{/bb-form-field}}
{% endtplhandlebars %}


{% tplhandlebars "components/bb-text-field" %}
    {{#bb-form-field hint=hint label=label errors=errors contentBinding='content' undertext=undertext}}
        {{view Em.TextField step=step nameBinding=name valueBinding='value' placeholderBinding=placeholder
            maxlengthBinding=maxlength classBinding='errors.length:error' typeBinding=type classBinding=extraClasses}}
    {{/bb-form-field}}
{% endtplhandlebars %}


{% tplhandlebars "components/bb-radio" %}
    {{#bb-form-field hint=hint label=label errors=errors}}
        {{view Em.TextField valueBinding='value' nameBinding=name placeholderBinding=placeholder
               classBinding="errors.length:error" typeBinding=type classBinding=extraClasses}}
    {{/bb-form-field}}
{% endtplhandlebars %}

{% tplhandlebars "components/bb-select-language" %}
    {{#bb-form-field hint=hint label=label errors=errors}}
        {{view "App.LanguageSelectView" selectionBinding='selection' nameBinding=name valueBinding='value'}}
    {{/bb-form-field}}
{% endtplhandlebars %}

{% tplhandlebars "components/bb-select-country" %}
    {{#bb-form-field hint=hint label=label errors=errors}}
        {{view "App.CountrySelectView" selectionBinding='selection' nameBinding=name valueBinding='value'}}
    {{/bb-form-field}}
{% endtplhandlebars %}

{% tplhandlebars "components/bb-select-generic" %}
    {{#bb-form-field hint=hint label=label errors=errors}}
        {{view Em.Select contentBinding='options' nameBinding=name optionValuePathBinding='valueProperty' optionLabelPathBinding='labelProperty'
               promptBinding='prompt' selectionBinding='value' classBinding="errors.length:error"}}
    {{/bb-form-field}}
{% endtplhandlebars %}

{% tplhandlebars "components/bb-select" %}
    {{#bb-form-field hint=hint label=label errors=errors}}
        {{view Em.Select contentBinding='options' nameBinding=name optionValuePath="content.value" optionLabelPath="content.text"
               selectedValueBinding='value' classBinding="errors.length:error" classBinding=extraClasses}}
    {{/bb-form-field}}
{% endtplhandlebars %}
{'fraction_non_alphanumeric': 0.15742589463984027, 'fraction_numerical': 0.0006143449546920596, 'mean_word_length': 4.315918367346939, 'pattern_counts': {'":': 2, '<': 33, '<?xml version=': 0, '>': 33, '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': '3429766', 'n_tokens_mistral': 1966, 'n_tokens_neox': 1873, 'n_words': 324}