<commit_before>{% macro formField(field, type) %}
				<label for="{{ field.id }}">
					{{ field.prompt }}
					<input type="{{ type }}" id="{{ field.id }}" name="{{ field.id }}"
					{% if field.value is not empty %}
						value="{{ field.value }}"
					{% endif %}
					{% if field.required is not empty %}
						required
					{% endif %}
					{% if field.placeholder is not empty %}
						placeholder="{{ field.placeholder }}"
					{% endif %}>
				</label>
{% endmacro %}


{% macro csrfField(value) %}
				<input type="hidden" name="csrf" value="{{ value }}">
{% endmacro %}


{% macro dateField(field) %}
				<label for="{{ field.id }}">
					{{ field.prompt }}
					<input type="date" id="{{ field.id }}" name="{{ field.id }}"
					{% if field.value is not empty %}
						value="{{ field.value|date("Y-m-d") }}"
					{% endif %}
					{% if field.required is not empty %}
						required
					{% endif %}
					{% if field.placeholder is not empty %}
						placeholder="{{ field.placeholder }}"
					{% endif %}>
				</label>
{% endmacro %}


{% macro fileField(field) %}
				<label for="{{ field.id }}">
					<input type="hidden" name="MAX_FILE_SIZE" value="48000000">
					{{ field.prompt }}
					<input type="file" id="{{ field.id }}" name="{{ field.id }}"
					{% if field.required is not empty %}
						required
					{% endif %}
					>
				</label>
{% endmacro %}


{% macro hiddenField(field) %}
					<input type="hidden" name="{{ field.id }}" value="{{ field.value }}">
{% endmacro %}


{% macro numberField(field) %}
	{% import _self as forms %}
	{{ forms.formField(field, 'text') }}
{% endmacro %}


{% macro passwordField(field) %}
	{% import _self as forms %}
	{{ forms.formField(field, 'password') }}
{% endmacro %}


{% macro radioField(field) %}
					<label for="{{ field.id }}-{{ field.value }}">
						<input type="radio" name="{{ field.id }}"
							id="{{ field.id }}-{{ field.value }}"
							value="{{ field.value }}">
						{{ field.prompt }}
					</label>
{% endmacro %}


{% macro textField(field) %}
	{% import _self as forms %}
	{{ forms.formField(field, 'text') }}
{% endmacro %}


{% macro urlField(field) %}
	{% import _self as forms %}
	{{ forms.formField(field, 'url') }}
{% endmacro %}


{% macro textBox(field) %}
				<label for="{{ field.id }}">
					{{ field.prompt }}
					<textarea id="{{ field.id }}" name="{{ field.id }}"
					{% if field.required is not empty %}
						required
					{% endif %}
					>{{ field.value }}</textarea>
				</label>
{% endmacro %}


{% macro submitButton(submitText) %}
				<input type="submit" value="{{ submitText }}">
				<input type="hidden" name="submitted" value="true">
{% endmacro %}<commit_msg>Added escaping to form macros<commit_after>{% macro formField(field, type) %}
				<label for="{{ field.id|e('html_attr') }}">
					{{ field.prompt }}
					<input type="{{ type|e('html_attr') }}" id="{{ field.id|e('html_attr') }}" name="{{ field.id|e('html_attr') }}"
					{% if field.value is not empty %}
						value="{{ field.value|e('html_attr') }}"
					{% endif %}
					{% if field.required is not empty %}
						required
					{% endif %}
					{% if field.placeholder is not empty %}
						placeholder="{{ field.placeholder|e('html_attr') }}"
					{% endif %}>
				</label>
{% endmacro %}


{% macro csrfField(value) %}
				<input type="hidden" name="csrf" value="{{ value|e('html_attr') }}">
{% endmacro %}


{% macro dateField(field) %}
				<label for="{{ field.id|e('html_attr') }}">
					{{ field.prompt }}
					<input type="date" id="{{ field.id|e('html_attr') }}" name="{{ field.id|e('html_attr') }}"
					{% if field.value is not empty %}
						value="{{ field.value|date("Y-m-d") }}"
					{% endif %}
					{% if field.required is not empty %}
						required
					{% endif %}
					{% if field.placeholder is not empty %}
						placeholder="{{ field.placeholder|e('html_attr') }}"
					{% endif %}>
				</label>
{% endmacro %}


{% macro fileField(field) %}
				<label for="{{ field.id|e('html_attr') }}">
					<input type="hidden" name="MAX_FILE_SIZE" value="48000000">
					{{ field.prompt }}
					<input type="file"
						id="{{ field.id|e('html_attr') }}"
						name="{{ field.id|e('html_attr') }}"
					{% if field.required is not empty %}
						required
					{% endif %}
					>
				</label>
{% endmacro %}


{% macro hiddenField(field) %}
					<input type="hidden"
						name="{{ field.id|e('html_attr') }}"
						value="{{ field.value|e('html_attr') }}">
{% endmacro %}


{% macro numberField(field) %}
	{% import _self as forms %}
	{{ forms.formField(field, 'text') }}
{% endmacro %}


{% macro passwordField(field) %}
	{% import _self as forms %}
	{{ forms.formField(field, 'password') }}
{% endmacro %}


{% macro radioField(field) %}
					<label for="{{ field.id|e('html_attr') }}-{{ field.value|e('html_attr') }}">
						<input type="radio" name="{{ field.id|e('html_attr') }}"
							id="{{ field.id|e('html_attr') }}-{{ field.value|e('html_attr') }}"
							{% if field.checked %}checked{% endif %}
							value="{{ field.value|e('html_attr') }}">
						{{ field.prompt }}
					</label>
{% endmacro %}


{% macro textField(field) %}
	{% import _self as forms %}
	{{ forms.formField(field, 'text') }}
{% endmacro %}


{% macro urlField(field) %}
	{% import _self as forms %}
	{{ forms.formField(field, 'url') }}
{% endmacro %}


{% macro textBox(field) %}
				<label for="{{ field.id|e('html_attr') }}">
					{{ field.prompt }}
					<textarea id="{{ field.id|e('html_attr') }}" name="{{ field.id|e('html_attr') }}"
					{% if field.required is not empty %}
						required
					{% endif %}
					>{{ field.value }}</textarea>
				</label>
{% endmacro %}


{% macro submitButton(submitText) %}
				<input type="submit" value="{{ submitText|e('html_attr') }}">
				<input type="hidden" name="submitted" value="true">
{% endmacro %}
{'fraction_non_alphanumeric': 0.2247596153846154, 'fraction_numerical': 0.0027472527472527475, 'mean_word_length': 3.099225897255454, 'pattern_counts': {'":': 0, '<': 45, '<?xml version=': 0, '>': 45, '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': '1345875', 'n_tokens_mistral': 2568, 'n_tokens_neox': 1846, 'n_words': 420}