<commit_before>{% load frontend_extras %}
<div class="form-group">
	{% if icon %}
		<label class="sr-only" for="{{ field.id_for_label }}">{{ field.label }}</label>
		<div class="input-group">
			<div class="input-group-addon">{% glyphicon icon %}</div>
			{{ widget }}
			{% if field.errors %}<small class="error">{{ field.errors }}</small>{% endif %}
		</div>
	{% else %}
		<div class="input-group">
			<label class="input-group-addon" for="{{ field.id_for_label }}">{{ field.label }}</label>
			{{ widget }}
			{% if field.errors %}<small class="error">{{ field.errors }}</small>{% endif %}
		</div>
	{% endif %}
</div><commit_msg>Refactoring and fixing of Bootstrap field template<commit_after>{% load frontend_extras %}
<div class="form-group{% if field.errors %} has-error{% endif %}">
	{% if not icon %}
	{% endif %}
	<div class="input-group">
		{% if icon %}
			<div class="input-group-addon">{% glyphicon icon %}</div>
			<label class="input-group-addon sr-only" for="{{ field.id_for_label }}">{{ field.label }}</label>
		{% else %}
			<label class="input-group-addon" for="{{ field.id_for_label }}">{{ field.label }}</label>
		{% endif %}
		{{ widget }}
	</div>
	{% if field.errors %}<span class="help-block">{{ field.errors }}</span>{% endif %}
</div>
{'fraction_non_alphanumeric': 0.23790642347343377, 'fraction_numerical': 0.0, 'mean_word_length': 4.302521008403361, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 31, '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': '1675008', 'n_tokens_mistral': 500, 'n_tokens_neox': 428, 'n_words': 101}