<commit_before>- var hasFile = item.get(field.paths.exists)
.field.type-localfile(data-field-type=field.type, data-field-path=field.path, data-field-collapse=field.collapse ? 'true' : false, data-field-depends-on=field.dependsOn, data-field-noedit=field.noedit ? 'true' : 'false', data-field-value=hasFile ? 'true' : 'false')
	label.field-label= field.label
	input(type='file', name=field.paths.upload).field-upload
	input(type='hidden', name=field.paths.action, value='').field-action
	.field-ui(class=hasFile ? 'has-file' : false)
		.file-container
			.file-details
				if hasFile
					.file-values
						div.field-value
							if field.hasFormatter()
								!=field.format(item)
							else
								=field.format(item)
				.upload-queued.pull-left
					.alert.alert-success File <span class="file-name"></span>selected - save to upload
				.delete-queued.pull-left
					.alert.alert-danger
		.file-toolbar
			div.pull-left
				a(href=js).btn.btn-default.btn-upload-file=(hasFile ? 'Change' : 'Upload' ) + ' File'
				a(href=js, data-alt-text='Delete File', style=(hasFile ? '' : 'display: none;')).btn.btn-link.btn-cancel.btn-delete-file Remove File
				a(href=js, data-alt-text='Cancel Upload', style='display: none;').btn.btn-link.btn-cancel.btn-cancel-file Cancel Upload
				a(href=js, style='display: none;').btn.btn-link.btn-cancel.btn-undo-file Undo Remove
		if field.note
			.field-note!= field.note<commit_msg>Disables file toolbar in admin UI if the field is a noedit.<commit_after>- var hasFile = item.get(field.paths.exists)
.field.type-localfile(data-field-type=field.type, data-field-path=field.path, data-field-collapse=field.collapse ? 'true' : false, data-field-depends-on=field.dependsOn, data-field-noedit=field.noedit ? 'true' : 'false', data-field-value=hasFile ? 'true' : 'false')
	label.field-label= field.label
	input(type='file', name=field.paths.upload).field-upload
	input(type='hidden', name=field.paths.action, value='').field-action
	.field-ui(class=hasFile ? 'has-file' : false)
		.file-container
			.file-details
				if hasFile
					.file-values
						div.field-value
							if field.hasFormatter()
								!=field.format(item)
							else
								=field.format(item)
				.upload-queued.pull-left
					.alert.alert-success File <span class="file-name"></span>selected - save to upload
				.delete-queued.pull-left
					.alert.alert-danger
		if !field.noedit
			.file-toolbar
				div.pull-left
					a(href=js).btn.btn-default.btn-upload-file=(hasFile ? 'Change' : 'Upload' ) + ' File'
					a(href=js, data-alt-text='Delete File', style=(hasFile ? '' : 'display: none;')).btn.btn-link.btn-cancel.btn-delete-file Remove File
					a(href=js, data-alt-text='Cancel Upload', style='display: none;').btn.btn-link.btn-cancel.btn-cancel-file Cancel Upload
					a(href=js, style='display: none;').btn.btn-link.btn-cancel.btn-undo-file Undo Remove
		if field.note
			.field-note!= field.note
{'fraction_non_alphanumeric': 0.16843910806174958, 'fraction_numerical': 0.0, 'mean_word_length': 3.65814696485623, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '4875401', 'n_tokens_mistral': 1160, 'n_tokens_neox': 1005, 'n_words': 166}