<commit_before>{% load bootstrap_template_tags %}
<fieldset class="module aligned {{ fieldset.classes }}">
    {% if fieldset.name %}<h2>{{ fieldset.name }}</h2>{% endif %}
    {% if fieldset.description %}
        <div class="description">{{ fieldset.description|safe }}</div>
    {% endif %}
    {% for line in fieldset %}
            
            {% for field in line %}
                <div class="control-group{% if field.errors %} error{% endif %} {% if field.field.name %} field-{{ field.field.name }}{% endif %}">
                    {% if not line.fields|length_is:'1' and not field.is_readonly %}{{ field.errors }}{% endif %}
                        {% if field.is_checkbox %}
                            <div class="controls">
                                <label class="checkbox">
                                    {{ field.field }} <span>{{ field.label_tag }}</span>
                                </label>

                                {% for error in field.field.errors %}
                                    <span class="help-inline">{{ error }}</span>
                                {% endfor %}

                                {% if field.field.help_text %}
                                    <p class="help-block">
                                        {{ field.field.help_text|safe }}
                                    </p>
                                {% endif %}
                            </div>
                        {% else %}
                            {% if field.field|widget_type == 'adminsplitdatetime' %}
                                <div class="control-label">{{ field.label_tag }}</div>
                                <div class="controls">
                                    {% if field.is_readonly %}
                                        <p>{{ field.contents }}</p>
                                    {% else %}
                                        {{ field.field }}
                                    {% endif %}

                                    {% for error in field.field.errors %}
                                        <span class="help-inline">{{ error }}</span>
                                    {% endfor %}

                                    {% if field.field.help_text %}
                                        <p class="help-block">
                                            {{ field.field.help_text|safe }}
                                        </p>
                                    {% endif %}
                                </div>
                                {% else %}
                                <div class="control-label">{{ field.label_tag }}</div>
                                <div class="controls">
                                    {% if field.is_readonly %}
                                        <p>{{ field.contents }}</p>
                                    {% else %}
                                        {{ field.field|add_class:"span8" }}
                                        
                                    {% endif %}

                                    {% for error in field.field.errors %}
                                        <span class="help-inline">{{ error }}</span>
                                    {% endfor %}

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

                                </div>
                            {% endif %}
                        {% endif %}

                </div>
            {% endfor %}
    {% endfor %}
</fieldset>
<commit_msg>fix: adminradioselect should not have the class span8<commit_after>{% load bootstrap_template_tags %}
<fieldset class="module aligned {{ fieldset.classes }}">
    {% if fieldset.name %}<h2>{{ fieldset.name }}</h2>{% endif %}
    {% if fieldset.description %}
        <div class="description">{{ fieldset.description|safe }}</div>
    {% endif %}
    {% for line in fieldset %}
            
            {% for field in line %}
                <div class="control-group{% if field.errors %} error{% endif %} {% if field.field.name %} field-{{ field.field.name }}{% endif %}">
                    {% if not line.fields|length_is:'1' and not field.is_readonly %}{{ field.errors }}{% endif %}
                        {% if field.is_checkbox %}
                            <div class="controls">
                                <label class="checkbox">
                                    {{ field.field }} <span>{{ field.label_tag }}</span>
                                </label>

                                {% for error in field.field.errors %}
                                    <span class="help-inline">{{ error }}</span>
                                {% endfor %}

                                {% if field.field.help_text %}
                                    <p class="help-block">
                                        {{ field.field.help_text|safe }}
                                    </p>
                                {% endif %}
                            </div>
                        {% else %}
                            {% if field.field|widget_type == 'adminsplitdatetime' %}
                                <div class="control-label">{{ field.label_tag }}</div>
                                <div class="controls">
                                    {% if field.is_readonly %}
                                        <p>{{ field.contents }}</p>
                                    {% else %}
                                        {{ field.field }}
                                    {% endif %}

                                    {% for error in field.field.errors %}
                                        <span class="help-inline">{{ error }}</span>
                                    {% endfor %}

                                    {% if field.field.help_text %}
                                        <p class="help-block">
                                            {{ field.field.help_text|safe }}
                                        </p>
                                    {% endif %}
                                </div>
                                {% else %}
                                <div class="control-label">{{ field.label_tag }}</div>
                                <div class="controls">
                                    {% if field.is_readonly %}
                                        <p>{{ field.contents }}</p>
                                    {% else %}
                                        {% if field.field|widget_type == 'adminradioselect'  %}
                                            {{ field.field }}
                                        {% else %}
                                            {{ field.field|add_class:"span8" }}
                                        {% endif %}
                                        
                                    {% endif %}

                                    {% for error in field.field.errors %}
                                        <span class="help-inline">{{ error }}</span>
                                    {% endfor %}

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

                                </div>
                            {% endif %}
                        {% endif %}

                </div>
            {% endfor %}
    {% endfor %}
</fieldset>

{'fraction_non_alphanumeric': 0.11629978368749205, 'fraction_numerical': 0.0011451838656317598, 'mean_word_length': 0.6744780570941628, 'pattern_counts': {'":': 0, '<': 79, '<?xml version=': 0, '>': 79, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 96, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5932087', 'n_tokens_mistral': 1757, 'n_tokens_neox': 1468, 'n_words': 309}