<commit_before>(function($) {
	$(function(){
		
		// Upload fields
		/*$('<em>' + Symphony.Language.get('Remove File') + '</em>').appendTo('label.file:has(a) span.enhanced_frame').on('click.admin', function(event) {
			var span = $(this).parent(),
				name = span.find('input').attr('name');

			// Prevent clicktrough
			event.preventDefault();
			
			//Show selectbox
			span.find('select.enhanced_upload_select_hidden').addClass("show");
			// Add new empty file input
			span.find('a.enhanced_file, input.enhanced_file').remove();
			span.prepend('<input name="' + name + '" type="file">');
			span.find('em').remove();
		}); */
		
		// prevent clicks on the select box from opening the file dialog
		$('.field-enhanced_upload span.frame select').on('click.admin', function (e) {
			e.stopPropagation();
			return false;
		});
	
	});
	
})(jQuery);<commit_msg>Clean up js code<commit_after>/*
 * Script that adapts behavior from the inherited
 * Upload Field behavior
 */
(function($) {
	
	"use strict";
	
	var
	
	init = function(){
		
		// prevent clicks on the select box from opening the file dialog
		$('.field-enhanced_upload span.frame select').on('click.admin', function (e) {
			e.stopPropagation();
			return false;
		});
	
	};
	
	$(init);
	
})(jQuery);
{'fraction_non_alphanumeric': 0.1865612648221344, 'fraction_numerical': 0.0, 'mean_word_length': 3.6715867158671585, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, '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': '6329681', 'n_tokens_mistral': 460, 'n_tokens_neox': 383, 'n_words': 93}