<commit_before>{% load materializecss %}
{% load utils %}


{% if field|is_checkbox %}
    <div class="input col {{ classes.label }}">
        <div class="{{ classes.single_value }}">
            <p>
                {% if field.auto_id %}
                    {{ field }}
                    <label for="{{ field.auto_id }}"
                           {% if field.field.required and form.required_css_class %}class="{{ form.required_css_class }}"{% endif %}>
                        {{ field.label }}
                    </label>
                {% endif %}
                {% for error in field.errors %}
                    <p class="help-block materialize-red-text">{{ error }}</p>
                {% endfor %}

            {% if field.help_text %}
                <p class="help-block">
                    {{ field.help_text|safe }}
                </p>
            {% endif %}
            </p>
        </div>
    </div>
{% elif field|is_radio %}
    <div class="input col {{ classes.label }}">

        {% if field.auto_id %}
            <label class="control-label
                    {{ classes.label }}{% if not field.field.required %} optional{% endif %}">{{ field.label }}</label>
        {% endif %}
        {% for choice in field %}
            <p>
                {{ choice.tag }}
                <label for="{{ choice.id_for_label }}">{{ choice.choice_label }}</label>
            </p>
        {% endfor %}

        {% for error in field.errors %}
            <p class="help-block materialize-red-text">{{ error }}</p>
        {% endfor %}

        {% if field.help_text %}
            <p class="help-block">
                {{ field.help_text|safe }}
            </p>
        {% endif %}
    </div>
{% elif field|is_date_input %}
    <div class="input col {{ classes.label }}">

        <label class="active{% if not field.field.required %} optional{% endif %}"
               for="{{ field.auto_id }}">{{ field.label }}</label>
        <input type="date" id="{{ field.auto_id }}" class="datepicker"
               name="{{ field.name }}"
               value="{% if field.value %}{{ field.value }}{% endif %}"
               {% if field.field.widget.attrs.datavalue %}data-value="{{ field.field.widget.attrs.datavalue }}"{% endif %}>
        {% for error in field.errors %}
            <p class="help-block materialize-red-text">{{ error }}</p>
        {% endfor %}

        {% if field.help_text %}
            <p class="help-block">
                {{ field.help_text|safe }}
            </p>
        {% endif %}
    </div>
{% elif field|is_select %}
    <div class="input col {{ classes.label }}">
        {% if field|is_checkbox_select_multiple %}
            {% if field.auto_id %}
                <label class="control-label {{ classes.label }}
                        {% if field.field.required %}{{ form.required_css_class }}{% endif %}">{{ field.label }}</label>
            {% endif %}
            <div class="{{ classes.value }}">
                {% for choice in field %}
                    <p>
                        {{ choice.tag }}
                        <label for="{{ choice.id_for_label }}">{{ choice.choice_label }}</label>
                    </p>
                {% endfor %}

                {% for error in field.errors %}
                    <p class="help-block materialize-red-text">{{ error }}</p>
                {% endfor %}

                {% if field.help_text %}
                    <p class="help-block">
                        {{ field.help_text|safe }}
                    </p>
                {% endif %}
            </div>

        {% else %}
            <label for="{{ field.id_for_label }}">{{ field.label }}</label>
            {{ field }}
            {% for error in field.errors %}
                <p class="help-block materialize-red-text">{{ error }}</p>
            {% endfor %}

            {% if field.help_text %}
                <p class="help-block">
                    {{ field.help_text|safe }}
                </p>
            {% endif %}

        {% endif %}

    </div>

{% elif field|is_textarea %}
    <div class="input input-field col {{ classes.label }}">
        <textarea id="{{ field.auto_id }}"
                  class="materialize-textarea {{ field.field.widget.attrs.class }}"
                  name="{{ field.name }}">{% if field.value %}
            {{ field.value }}{% endif %}</textarea>
        {% if field.auto_id %}
            <label class="active
                    {{ classes.label }}{% if not field.field.required %} optional{% endif %}"
                   for="{{ field.auto_id }}">{{ field.label }}</label>
        {% endif %}

        {% for error in field.errors %}
            <p class="help-block materialize-red-text">{{ error }}</p>
        {% endfor %}

        {% if field.help_text %}
            <p class="help-block">
                {{ field.help_text|safe }}
            </p>
        {% endif %}
    </div>

{% elif field|is_file %}
    <div class="input col {{ classes.label }}">
        <p>
            {% if field.auto_id %}
                <label class="{{ classes.label }}
                        {% if field.field.required %}{{ form.required_css_class }}{% endif %}"
                       for="{{ field.auto_id }}">{{ field.label }}</label><br>
            {% endif %}
            {{ field }}
        </p>
    </div>

{% elif field|is_versatile_image_ppoi_click_widget %}
    <div class="input col file-field input-field {{ classes.label }}">
        {% if field.auto_id %}
            <label class="{{ classes.label }}"
                   for="{{ field.auto_id }}">{{ field.label }}</label>
        {% endif %}
        <div class="btn">
            <span>File</span>
            <input class="file-chooser" id="{{ field.auto_id }}_0"
                   name="{{ field.name }}_0" type="file">
            <input class="ppoi-input" id="{{ field.auto_id }}_1"
                   name="{{ field.name }}_1" type="hidden">
        </div>
        <div class="file-path-wrapper">
            <input class="file-path validate" type="text">
        </div>
        {% for error in field.errors %}
            <p class="help-block materialize-red-text">{{ error }}</p>
        {% endfor %}

        {% if field.help_text %}
            <p class="help-block">
                {{ field.help_text|safe }}
            </p>
        {% endif %}

    </div>
{% else %}

    <div class="input input-field col {{ classes.label }}">
        <div class="price-wrapper">
            {{ field }}
            {% if field.auto_id %}
                <label class="active{% if not field.field.required %} optional{% endif %}"
                       for="{{ field.auto_id }}">{{ field.label }}</label>
            {% endif %}
        </div>

        {% for error in field.errors %}
            <p class="help-block materialize-red-text">{{ error }}</p>
        {% endfor %}

        {% if field.help_text %}
            <p class="help-block">
                {{ field.help_text|safe }}
            </p>
        {% endif %}
    </div>

{% endif %}
<commit_msg>Dashboard textareas have additional spacing added to values.<commit_after>{% load materializecss %}
{% load utils %}


{% if field|is_checkbox %}
    <div class="input col {{ classes.label }}">
        <div class="{{ classes.single_value }}">
            <p>
                {% if field.auto_id %}
                    {{ field }}
                    <label for="{{ field.auto_id }}"
                           {% if field.field.required and form.required_css_class %}class="{{ form.required_css_class }}"{% endif %}>
                        {{ field.label }}
                    </label>
                {% endif %}
                {% for error in field.errors %}
                    <p class="help-block materialize-red-text">{{ error }}</p>
                {% endfor %}

            {% if field.help_text %}
                <p class="help-block">
                    {{ field.help_text|safe }}
                </p>
            {% endif %}
            </p>
        </div>
    </div>
{% elif field|is_radio %}
    <div class="input col {{ classes.label }}">

        {% if field.auto_id %}
            <label class="control-label
                    {{ classes.label }}{% if not field.field.required %} optional{% endif %}">{{ field.label }}</label>
        {% endif %}
        {% for choice in field %}
            <p>
                {{ choice.tag }}
                <label for="{{ choice.id_for_label }}">{{ choice.choice_label }}</label>
            </p>
        {% endfor %}

        {% for error in field.errors %}
            <p class="help-block materialize-red-text">{{ error }}</p>
        {% endfor %}

        {% if field.help_text %}
            <p class="help-block">
                {{ field.help_text|safe }}
            </p>
        {% endif %}
    </div>
{% elif field|is_date_input %}
    <div class="input col {{ classes.label }}">

        <label class="active{% if not field.field.required %} optional{% endif %}"
               for="{{ field.auto_id }}">{{ field.label }}</label>
        <input type="date" id="{{ field.auto_id }}" class="datepicker"
               name="{{ field.name }}"
               value="{% if field.value %}{{ field.value }}{% endif %}"
               {% if field.field.widget.attrs.datavalue %}data-value="{{ field.field.widget.attrs.datavalue }}"{% endif %}>
        {% for error in field.errors %}
            <p class="help-block materialize-red-text">{{ error }}</p>
        {% endfor %}

        {% if field.help_text %}
            <p class="help-block">
                {{ field.help_text|safe }}
            </p>
        {% endif %}
    </div>
{% elif field|is_select %}
    <div class="input col {{ classes.label }}">
        {% if field|is_checkbox_select_multiple %}
            {% if field.auto_id %}
                <label class="control-label {{ classes.label }}
                        {% if field.field.required %}{{ form.required_css_class }}{% endif %}">{{ field.label }}</label>
            {% endif %}
            <div class="{{ classes.value }}">
                {% for choice in field %}
                    <p>
                        {{ choice.tag }}
                        <label for="{{ choice.id_for_label }}">{{ choice.choice_label }}</label>
                    </p>
                {% endfor %}

                {% for error in field.errors %}
                    <p class="help-block materialize-red-text">{{ error }}</p>
                {% endfor %}

                {% if field.help_text %}
                    <p class="help-block">
                        {{ field.help_text|safe }}
                    </p>
                {% endif %}
            </div>

        {% else %}
            <label for="{{ field.id_for_label }}">{{ field.label }}</label>
            {{ field }}
            {% for error in field.errors %}
                <p class="help-block materialize-red-text">{{ error }}</p>
            {% endfor %}

            {% if field.help_text %}
                <p class="help-block">
                    {{ field.help_text|safe }}
                </p>
            {% endif %}

        {% endif %}

    </div>

{% elif field|is_textarea %}
    <div class="input input-field col {{ classes.label }}">
        <textarea id="{{ field.auto_id }}"
                  class="materialize-textarea {{ field.field.widget.attrs.class }}"
                  name="{{ field.name }}">{% if field.value %}{{ field.value }}{% endif %}</textarea>
        {% if field.auto_id %}
            <label class="active
                    {{ classes.label }}{% if not field.field.required %} optional{% endif %}"
                   for="{{ field.auto_id }}">{{ field.label }}</label>
        {% endif %}

        {% for error in field.errors %}
            <p class="help-block materialize-red-text">{{ error }}</p>
        {% endfor %}

        {% if field.help_text %}
            <p class="help-block">
                {{ field.help_text|safe }}
            </p>
        {% endif %}
    </div>

{% elif field|is_file %}
    <div class="input col {{ classes.label }}">
        <p>
            {% if field.auto_id %}
                <label class="{{ classes.label }}
                        {% if field.field.required %}{{ form.required_css_class }}{% endif %}"
                       for="{{ field.auto_id }}">{{ field.label }}</label><br>
            {% endif %}
            {{ field }}
        </p>
    </div>

{% elif field|is_versatile_image_ppoi_click_widget %}
    <div class="input col file-field input-field {{ classes.label }}">
        {% if field.auto_id %}
            <label class="{{ classes.label }}"
                   for="{{ field.auto_id }}">{{ field.label }}</label>
        {% endif %}
        <div class="btn">
            <span>File</span>
            <input class="file-chooser" id="{{ field.auto_id }}_0"
                   name="{{ field.name }}_0" type="file">
            <input class="ppoi-input" id="{{ field.auto_id }}_1"
                   name="{{ field.name }}_1" type="hidden">
        </div>
        <div class="file-path-wrapper">
            <input class="file-path validate" type="text">
        </div>
        {% for error in field.errors %}
            <p class="help-block materialize-red-text">{{ error }}</p>
        {% endfor %}

        {% if field.help_text %}
            <p class="help-block">
                {{ field.help_text|safe }}
            </p>
        {% endif %}

    </div>
{% else %}

    <div class="input input-field col {{ classes.label }}">
        <div class="price-wrapper">
            {{ field }}
            {% if field.auto_id %}
                <label class="active{% if not field.field.required %} optional{% endif %}"
                       for="{{ field.auto_id }}">{{ field.label }}</label>
            {% endif %}
        </div>

        {% for error in field.errors %}
            <p class="help-block materialize-red-text">{{ error }}</p>
        {% endfor %}

        {% if field.help_text %}
            <p class="help-block">
                {{ field.help_text|safe }}
            </p>
        {% endif %}
    </div>

{% endif %}

{'fraction_non_alphanumeric': 0.174660441426146, 'fraction_numerical': 0.0005659309564233164, 'mean_word_length': 1.4603202227636616, 'pattern_counts': {'":': 0, '<': 197, '<?xml version=': 0, '>': 197, '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': '7056190', 'n_tokens_mistral': 4306, 'n_tokens_neox': 3802, 'n_words': 841}