<commit_before>$(function() {
		$("button,input[type=submit]").addClass("button");
		
		$('#newAlbum').on("click", function(){
			var name = prompt("Please enter name of the new album", "");
			self.location  = "/index/newAlbum?name=" + escape(name);
		})

});



// Initialize the widget when the DOM is ready
$(function() {
	$("#uploader").plupload({
		// General settings
		runtimes : 'html5,flash,silverlight,html4',
		url : '/upload.php',


		// User can upload no more then 200 files in one go (sets multiple_queues to false)
		max_file_count: 200,

		chunk_size: '1mb',

		// Resize images on clientside if we can
		resize : {
			width : 800, 
			height : 600, 
			quality : 70,
			crop: true // crop to exact dimensions
		},

		filters : {
			// Maximum file size
			max_file_size : '1000mb',
			// Specify what files to browse for
			mime_types: [
				{title : "Image files", extensions : "jpg,gif,png,jpeg,pjpeg"}
			]
		},

		// Rename files by clicking on their titles
		rename: true,

		// Sort files
		sortable: true,
<commit_msg>reload the view when all files are uploaded<commit_after>$(function() {
		$("button,input[type=submit]").addClass("button");
		
		$('#newAlbum').on("click", function(){
			var name = prompt("Please enter name of the new album", "");
			self.location  = "/index/newAlbum?name=" + escape(name);
		})

});



// Initialize the widget when the DOM is ready
$(function() {
	_upload_url = '/upload.php';
	if (window.currentAlbum != "undefined"){
		_upload_url += '?currentAlbum=' + window.currentAlbum;
	}
	
	$("#uploader").plupload({
		// General settings
		runtimes : 'html5,flash,silverlight,html4',
		url : _upload_url,

		complete : function(){
			self.location = self.location;

		},
		

		// User can upload no more then 200 files in one go (sets multiple_queues to false)
		max_file_count: 200,

		chunk_size: '1mb',

		// Resize images on clientside if we can
		resize : {
			width : 800, 
			height : 600, 
			quality : 70,
			crop: true // crop to exact dimensions
		},

		filters : {
			// Maximum file size
			max_file_size : '1000mb',
			// Specify what files to browse for
			mime_types: [
				{title : "Image files", extensions : "jpg,gif,png,jpeg,pjpeg"}
			]
		},

		// Rename files by clicking on their titles
		rename: true,

		// Sort files
		sortable: true,

{'fraction_non_alphanumeric': 0.14667817083692838, 'fraction_numerical': 0.0181190681622088, 'mean_word_length': 3.1859205776173285, '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': '5157281', 'n_tokens_mistral': 914, 'n_tokens_neox': 749, 'n_words': 223}