<commit_before><?php 
	if(!isset($selected_id)){
		$selected_id = '';
	}
 ?>

<label for="id_<?= $dropdown_name; ?>" <?php if(isset($is_required) && $is_required){ echo 'class="required"'; } ?>><?= FormHelper::labelDisplayName($dropdown_name); ?>:</label>
<div class="related-widget-wrapper">
    <select id="id_<?= $dropdown_name; ?>" name="<?= $dropdown_name; ?>" <?php if(isset($is_required) && $is_required){ echo 'required="required"'; } ?>>
        <option value="" <?= FormHelper::getSelected($selected_id, ''); ?>>---------</option>
        <?php foreach($dropdown_items as $dropdown_item): ?>
        	<option value="<?= $dropdown_item['id']; ?>" <?= FormHelper::getSelected($selected_id, $dropdown_item['id']); ?>><?= $model::toHTML($dropdown_item); ?></option>
        <?php endforeach;  ?>
    </select>
</div> <commit_msg>Escape input names and ids in dropdown list<commit_after><?php 
	if(!isset($selected_id)){
		$selected_id = '';
	}
 ?>

<label for="id_<?= htmlentities($dropdown_name); ?>" <?php if(isset($is_required) && $is_required){ echo 'class="required"'; } ?>><?= FormHelper::labelDisplayName($dropdown_name); ?>:</label>
<div class="related-widget-wrapper">
    <select id="id_<?= htmlentities($dropdown_name); ?>" name="<?= htmlentities($dropdown_name); ?>" <?php if(isset($is_required) && $is_required){ echo 'required="required"'; } ?>>
        <option value="" <?= FormHelper::getSelected($selected_id, ''); ?>>---------</option>
        <?php foreach($dropdown_items as $dropdown_item): ?>
        	<option value="<?= $dropdown_item['id']; ?>" <?= FormHelper::getSelected($selected_id, $dropdown_item['id']); ?>><?= $model::toHTML($dropdown_item); ?></option>
        <?php endforeach;  ?>
    </select>
</div> 
{'fraction_non_alphanumeric': 0.2502870264064294, 'fraction_numerical': 0.0, 'mean_word_length': 5.552631578947368, 'pattern_counts': {'":': 0, '<': 49, '<?xml version=': 0, '>': 49, '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': '1675018', 'n_tokens_mistral': 555, 'n_tokens_neox': 564, 'n_words': 95}