<commit_before>{% macro render_field(field, addon, prepend, tooltip, label_text) %}
        <div class="form-group{% if field.errors %} has-error{% endif %}">
            {{ render_label(field, tooltip, label_text) }}
                {% if addon %}
                <div class="{% if prepend %}input-group{%else%}input-group{%endif%}">
                    {% if prepend %}
                        <span class="input-group-addon">{{addon|safe}}</span>
                        {{field(**kwargs)}}
                    {% else %}
                        {{field(**kwargs)}}
                        <span class="input-group-addon">{{addon|safe}}</span>
                    {% endif %}
                </div>
                {% else %}
                    {{field(**kwargs)}}
                {% endif %}
            {% if field.errors %}
                {% for error in field.errors %}
                    <span class="help-block"><small>{{ error }}</small></span>
                {% endfor %}
            {% else %}
                <span><small>&nbsp;</small></span>
            {% endif %}
        </div>
{% endmacro %}


{% macro render_label(field, tooltip, text) %}
    {% if tooltip and text %}
        {{ field.label(class="sr-only", style='width:148px', text=text) }}
        <div style="float:left; padding-top:5px;margin-bottom:5px;font-size:18px;">
            &nbsp;<i rel="tooltip" data-title="{{tooltip|safe}}" class="glyphicon glyphicon-question-sign"></i></div>
        {% elif tooltip and not text %}
        {{ field.label(class="sr-only", style='width:148px') }}
        <div style="float:left; padding-top:5px;margin-bottom:5px;font-size:18px;">
            &nbsp;<i rel="tooltip" data-title="{{tooltip|safe}}" class="glyphicon glyphicon-question-sign"></i></div>
    {% elif not tooltip and text %}
        {{ field.label(class="sr-only", text=text) }}
    {% else %}
        {{ field.label(class="sr-only") }}
    {% endif %}
{% endmacro %}

{% macro render_field_horizontal(field, addon, prepend, tooltip, label_text) %}
        <div class="form-group {% if field.errors %} has-error{% endif %}">
            {{ render_label_horizontal(field, tooltip, label_text) }}
                {% if addon %}
                <div class="{% if prepend %}input-group{%else%}input-group{%endif%}">
                    {% if prepend %}
                        <div class="col-xs-9 remove-padding">
                            <span class="input-group-addon">{{addon|safe}}</span>
                            {{field(**kwargs)}}
                        </div>
                    {% else %}
                        <div class="col-xs-9 remove-padding">
                            {{field(**kwargs)}}
                            <span class="input-group-addon">{{addon|safe}}</span>
                        </div>
                    {% endif %}
                </div>
                {% else %}
                    <div class="col-xs-9 remove-padding">
                        {{field(**kwargs)}}
                    </div>
                {% endif %}
            {% if field.errors %}
                {% for error in field.errors %}
                    <span class="help-block"><small>{{ error }}</small></span>
                {% endfor %}
            {% else %}
                <span><small>&nbsp;</small></span>
            {% endif %}
        </div>
{% endmacro %}


{% macro render_label_horizontal(field, tooltip, text) %}
    {% if tooltip and text %}
        {{ field.label(class="col-xs-3 control-label", style='width:148px', text=text) }}
        <div style="float:left; padding-top:5px;margin-bottom:5px;font-size:18px;">
            &nbsp;<i rel="tooltip" data-title="{{tooltip|safe}}" class="glyphicon glyphicon-question-sign"></i></div>
        {% elif tooltip and not text %}
        {{ field.label(class="col-xs-3 control-label", style='width:148px') }}
        <div style="float:left; padding-top:5px;margin-bottom:5px;font-size:18px;">
            &nbsp;<i rel="tooltip" data-title="{{tooltip|safe}}" class="glyphicon glyphicon-question-sign"></i></div>
    {% elif not tooltip and text %}
        {{ field.label(class="col-xs-3 control-label", text=text) }}
    {% else %}
        {{ field.label(class="col-xs-3 control-label") }}
    {% endif %}
{% endmacro %}
<commit_msg>Allow for setting of form sizes via macro<commit_after>{% macro render_field(field, addon, prepend, tooltip, label_text) %}
        <div class="form-group{% if field.errors %} has-error{% endif %}">
            {{ render_label(field, tooltip, label_text) }}
                {% if addon %}
                <div class="{% if prepend %}input-group{%else%}input-group{%endif%}">
                    {% if prepend %}
                        <span class="input-group-addon">{{addon|safe}}</span>
                        {{field(**kwargs)}}
                    {% else %}
                        {{field(**kwargs)}}
                        <span class="input-group-addon">{{addon|safe}}</span>
                    {% endif %}
                </div>
                {% else %}
                    {{field(**kwargs)}}
                {% endif %}
            {% if field.errors %}
                {% for error in field.errors %}
                    <span class="help-block"><small>{{ error }}</small></span>
                {% endfor %}
            {% else %}
                <span><small>&nbsp;</small></span>
            {% endif %}
        </div>
{% endmacro %}


{% macro render_label(field, tooltip, text) %}
    {% if tooltip and text %}
        {{ field.label(class="sr-only", style='width:148px', text=text) }}
        <div style="float:left; padding-top:5px;margin-bottom:5px;font-size:18px;">
            &nbsp;<i rel="tooltip" data-title="{{tooltip|safe}}" class="glyphicon glyphicon-question-sign"></i></div>
        {% elif tooltip and not text %}
        {{ field.label(class="sr-only", style='width:148px') }}
        <div style="float:left; padding-top:5px;margin-bottom:5px;font-size:18px;">
            &nbsp;<i rel="tooltip" data-title="{{tooltip|safe}}" class="glyphicon glyphicon-question-sign"></i></div>
    {% elif not tooltip and text %}
        {{ field.label(class="sr-only", text=text) }}
    {% else %}
        {{ field.label(class="sr-only") }}
    {% endif %}
{% endmacro %}

{% macro render_field_horizontal(field, addon, prepend, tooltip, label_text, input_size='col-xs-9', label_size='col-xs-3') %}
        <div class="form-group vcenter hcenter{% if field.errors %} has-error{% endif %}">
            {{ render_label_horizontal(field, tooltip, label_text, label_size) }}
                {% if addon %}
                <div class="{% if prepend %}input-group{%else%}input-group{%endif%}">
                    {% if prepend %}
                        <div class="{{input_size}} remove-padding">
                            <span class="input-group-addon">{{addon|safe}}</span>
                            {{field(**kwargs)}}
                        </div>
                    {% else %}
                        <div class="{{input_size}} remove-padding">
                            {{field(**kwargs)}}
                            <span class="input-group-addon">{{addon|safe}}</span>
                        </div>
                    {% endif %}
                </div>
                {% else %}
                    <div class="{{input_size}} remove-padding">
                        {{field(**kwargs)}}
                    </div>
                {% endif %}
            {% if field.errors %}
                {% for error in field.errors %}
                    <span class="help-block"><small>{{ error }}</small></span>
                {% endfor %}
            {% else %}
                <span><small>&nbsp;</small></span>
            {% endif %}
        </div>
{% endmacro %}


{% macro render_label_horizontal(field, tooltip, text, label_size) %}
    {% if tooltip and text %}
        {{ field.label(class="{{label_size}} control-label", style='width:148px', text=text) }}
        <div style="float:left; padding-top:5px;margin-bottom:5px;font-size:18px;">
            &nbsp;<i rel="tooltip" data-title="{{tooltip|safe}}" class="glyphicon glyphicon-question-sign"></i></div>
        {% elif tooltip and not text %}
        {{ field.label(class="{{label_size}} control-label", style='width:148px') }}
        <div style="float:left; padding-top:5px;margin-bottom:5px;font-size:18px;">
            &nbsp;<i rel="tooltip" data-title="{{tooltip|safe}}" class="glyphicon glyphicon-question-sign"></i></div>
    {% elif not tooltip and text %}
        {{ field.label(class="{{label_size}} control-label", text=text) }}
    {% else %}
        {{ field.label(class="{{label_size}} control-label") }}
    {% endif %}
{% endmacro %}

{'fraction_non_alphanumeric': 0.18204688393367638, 'fraction_numerical': 0.007432818753573471, 'mean_word_length': 1.8149340199549404, 'pattern_counts': {'":': 0, '<': 111, '<?xml version=': 0, '>': 111, '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': '2105661', 'n_tokens_mistral': 2741, 'n_tokens_neox': 2366, 'n_words': 435}