<commit_before>{if $field.options[0] != 1 || $tiki_p_admin_trackers == 'y'}
	<input type="text" id="page_selector_{$field.fieldId}" name="{$field.ins_id}"
			{if $field.options_array[1] gt 0}size="{$field.options_array[1]}"{/if}
			value="{if $field.value}{$field.value|escape}{/if}" />
	{if $field.isMandatory ne 'y'} {* since autocomplete allows blank entry it can't be used for mandatory selection. *}     
		{autocomplete element="#page_selector_`$field.fieldId`" type='pagename'}
	{/if}
{else}
	{$field.value|escape}
{/if}<commit_msg>[FIX] Page selector autocomplete was turned off if the field was manditory, not sure why because finding the right name with manditory is even more important, should work with or without manditory being set<commit_after>{if $field.options[0] != 1 || $tiki_p_admin_trackers == 'y'}
	<input type="text" id="page_selector_{$field.fieldId}" name="{$field.ins_id}"
			{if $field.options_array[1] gt 0}size="{$field.options_array[1]}"{/if}
			value="{if $field.value}{$field.value|escape}{/if}" />
	
	{autocomplete element="#page_selector_`$field.fieldId`" type='pagename'}
{else}
	{$field.value|escape}
{/if}
{'fraction_non_alphanumeric': 0.18126094570928197, 'fraction_numerical': 0.008756567425569177, 'mean_word_length': 6.234177215189874, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '7045297', 'n_tokens_mistral': 421, 'n_tokens_neox': 396, 'n_words': 91}