<commit_before><input type="hidden" name="{{ name }}">

<div class="elementselect" id="{{ name }}">
	<div class="elements">
		{% for video in videos %}
			<div
				class="element small hasstatus removable"
				data-id="{{ video.hashed_id }}"
			>
				<input
					name="{{ name }}[]"
					type="hidden"
					value="{{ video.hashed_id }}"
				>
				<a class="delete icon"></a>
				<span class="status live"></span>
				<div class="label">
					<span class="title">{{ video.name }}</span>
				</div>
			</div>
		{% endfor %}
	</div>
	<div
		class="btn add icon dashed{% if settings.max and videos|length >= settings.max %} disabled{% endif %}"
		{% if settings.max == "1" and videos|length %}
			style="display: none"
		{% endif %}
	>
		{{ "Add a video"|t }}
	</div>
</div>

{% set jsSettings = {
	id: id|namespaceInputId,
	limit: settings.max,
	name: name|namespaceInputName,
	projectIds: settings.projects|join(",")
} %}

{% includejs %}
	new Wistia.VideoSelectInput({{ jsSettings|json_encode|raw }});
{% endincludejs %}<commit_msg>Revert "Convert single quotes to double"<commit_after><input type="hidden" name="{{ name }}">

<div class="elementselect" id="{{ name }}">
	<div class="elements">
		{% for video in videos %}
			<div
				class="element small hasstatus removable"
				data-id="{{ video.hashed_id }}"
			>
				<input
					name="{{ name }}[]"
					type="hidden"
					value="{{ video.hashed_id }}"
				>
				<a class="delete icon"></a>
				<span class="status live"></span>
				<div class="label">
					<span class="title">{{ video.name }}</span>
				</div>
			</div>
		{% endfor %}
	</div>
	<div
		class="btn add icon dashed{% if settings.max and videos|length >= settings.max %} disabled{% endif %}"
		{% if settings.max == '1' and videos|length %}
			style="display: none"
		{% endif %}
	>
		{{ 'Add a video'|t }}
	</div>
</div>

{% set jsSettings = {
	id: id|namespaceInputId,
	limit: settings.max,
	name: name|namespaceInputName,
	projectIds: settings.projects|join(',')
} %}

{% includejs %}
	new Wistia.VideoSelectInput({{ jsSettings|json_encode|raw }});
{% endincludejs %}
{'fraction_non_alphanumeric': 0.20201053135471517, 'fraction_numerical': 0.0009573958831977022, 'mean_word_length': 3.6651785714285716, 'pattern_counts': {'":': 0, '<': 39, '<?xml version=': 0, '>': 41, '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': '5262314', 'n_tokens_mistral': 855, 'n_tokens_neox': 704, 'n_words': 171}