<commit_before><?php
	echo Form::file($name, $attributes + array('id' => 'field-'.$name));

	// If there is an uploaded image then display it.
	// Default to the first thumbnail if thumbnails exist
	// (on the assumption this one is smaller and more suitable
	// for displaying here)
	if ($value != '' && !is_array($model->{$field->name})):
		if (count($field->thumbnails)) {
			$img_path = $field->thumbnails[0]['path'];
		} else {
			$img_path = $field->path;
		}
		echo Html::image(str_replace(DOCROOT.DIRECTORY_SEPARATOR, '', $img_path).$model->{$field->name});
	endif;
?><commit_msg>Removing more of my custom code which is going into my application and out of Jelly... I guess with ->input() being deprecated then this won't be needed any more anyway in the core...<commit_after><?php echo Form::file($name, $attributes + array('id' => 'field-'.$name)); ?>
{'fraction_non_alphanumeric': 0.1728538283062645, 'fraction_numerical': 0.001160092807424594, 'mean_word_length': 4.462025316455696, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, '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': '3488164', 'n_tokens_mistral': 279, 'n_tokens_neox': 268, 'n_words': 88}