<commit_before>$(document).ready(function() {
	$('#file_action_panel').attr('activeAction', false);

	//drag/drop of files
	$('#fileList tr td.filename').draggable(dragOptions);
	$('#fileList tr[data-type="dir"] td.filename').droppable(folderDropOptions);
	$('div.crumb').droppable({
		drop: function( event, ui ) {
			var file=ui.draggable.text().trim();
			var target=$(this).attr('data-dir');
			var dir=$('#dir').val();
			while(dir.substr(0,1)=='/'){//remove extra leading /'s
				dir=dir.substr(1);
			}
			dir='/'+dir;
			if(dir.substr(-1,1)!='/'){
				dir=dir+'/';
			}
			if(target==dir){
				return;
			}
			$.ajax({
				url: 'ajax/move.php',
				data: "dir="+dir+"&file="+file+'&target='+target,
				complete: function(data){boolOperationFinished(data, function(){
					FileList.remove(file);
				});}
			});
		},
		tolerance: 'pointer'
	});
	
	// Sets the file-action buttons behaviour :
	$('td.fileaction a').live('click',function(event) {
		event.preventDefault();
		FileActions.display($(this).parent());
	});
	
	// Sets the file link behaviour :
	$('td.filename a').live('click',function(event) {
		event.preventDefault();
		var filename=$(this).text();
		var mime=$(this).parent().parent().attr('data-mime');
		var type=$(this).parent().parent().attr('data-type');
		var action=FileActions.getDefault(mime,type);
		if(action){
			action(filename);
		}
	});
	
	// Sets the select_all checkbox behaviour :
	$('#select_all').click(function() {
		if($(this).attr('checked')){
			// Check all
			$('td.selection input:checkbox').attr('checked', true);
			$('td.selection input:checkbox').parent().parent().addClass('selected');
		}else{
			// Uncheck all
			$('td.selection input:checkbox').attr('checked', false);
			$('td.selection input:checkbox').parent().parent().removeClass('selected');<commit_msg>fix broken directory links for some browsers<commit_after>$(document).ready(function() {
	$('#file_action_panel').attr('activeAction', false);

	//drag/drop of files
	$('#fileList tr td.filename').draggable(dragOptions);
	$('#fileList tr[data-type="dir"] td.filename').droppable(folderDropOptions);
	$('div.crumb').droppable({
		drop: function( event, ui ) {
			var file=ui.draggable.text().trim();
			var target=$(this).attr('data-dir');
			var dir=$('#dir').val();
			while(dir.substr(0,1)=='/'){//remove extra leading /'s
				dir=dir.substr(1);
			}
			dir='/'+dir;
			if(dir.substr(-1,1)!='/'){
				dir=dir+'/';
			}
			if(target==dir){
				return;
			}
			$.ajax({
				url: 'ajax/move.php',
				data: "dir="+dir+"&file="+file+'&target='+target,
				complete: function(data){boolOperationFinished(data, function(){
					FileList.remove(file);
				});}
			});
		},
		tolerance: 'pointer'
	});
	
	// Sets the file-action buttons behaviour :
	$('td.fileaction a').live('click',function(event) {
		event.preventDefault();
		FileActions.display($(this).parent());
	});
	
	// Sets the file link behaviour :
	$('td.filename a').live('click',function(event) {
		event.preventDefault();
		var filename=$(this).parent().parent().attr('data-file');
		var mime=$(this).parent().parent().attr('data-mime');
		var type=$(this).parent().parent().attr('data-type');
		var action=FileActions.getDefault(mime,type);
		if(action){
			action(filename);
		}
	});
	
	// Sets the select_all checkbox behaviour :
	$('#select_all').click(function() {
		if($(this).attr('checked')){
			// Check all
			$('td.selection input:checkbox').attr('checked', true);
			$('td.selection input:checkbox').parent().parent().addClass('selected');
		}else{
			// Uncheck all
			$('td.selection input:checkbox').attr('checked', false);
			$('td.selection input:checkbox').parent().parent().removeClass('selected');
{'fraction_non_alphanumeric': 0.23091499729290743, 'fraction_numerical': 0.0027070925825663237, 'mean_word_length': 4.498511904761905, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4693187', 'n_tokens_mistral': 1388, 'n_tokens_neox': 1224, 'n_words': 191}