<commit_before>var utils = {
	msnry: new Masonry( document.getElementById('message-container'), {
		// options
		columnWidth: 150,
		itemSelector: '.message'
	}),
	messages: [],
	loader: $('<div class="loader"><i class="fa fa-2x fa-refresh fa-spin"></i></div>'),
	error: function(message){
		return '<div class="error hide"><p>Oh no, an error occured!<br />' + message + '</p></div>';
	},
	warning: function(message){
		return '<div class="warning hide"><p>Oh snap!<br />' + message + '</p></div>'
	},
	message: function(message){
		return '<div class="message"><p>' + message + '</p></div>'
	},
	call: function(endpoint, type, async){
		$.ajax({
			type: type,
			url: endpoint,
			async: async,
			beforeSend: function(){
				$('body').append(utils.loader.fadeToggle('slow'));
			},
			success: utils.process,
			error: function(jqXHR, textStatus, errorThrown){
				utils.loader.fadeIn('slow');
				var error = $(utils.error(jqXHR.responseJSON.error));
				$('body').prepend(error.fadeIn('slow'));
			}
		});
	},
	process: function(data){
		utils.loader.fadeOut('slow', function(){
			this.remove()
			if(!data.result){
				var warning = $(utils.warning('There are no messages to display!'));
				$('body').prepend(warning.fadeIn('slow'));
			}
			else {
				if($('.warning').is(':visible')){
					$('.warning').fadeOut('fast');
				}
				if($('.error').is(':visible')){
					$('.error').fadeOut('fast');
				}
				var initial = $('#initial');
				if(initial.is(':visible')){
					initial.fadeOut('slow', function(){
						this.remove();
						$.each(data.data, function(i, item){
							var msg = $(utils.message(item.replace(/\n/g, '<br />'))).css('color', utils.colorize());
							$('#message-container').append(msg);
							utils.msnry.appended(msg);
						});
						utils.messages = data.data;
					});<commit_msg>Didnt initialize jquery when removing object on line 36<commit_after>var utils = {
	msnry: new Masonry( document.getElementById('message-container'), {
		// options
		columnWidth: 150,
		itemSelector: '.message'
	}),
	messages: [],
	loader: $('<div class="loader"><i class="fa fa-2x fa-refresh fa-spin"></i></div>'),
	error: function(message){
		return '<div class="error hide"><p>Oh no, an error occured!<br />' + message + '</p></div>';
	},
	warning: function(message){
		return '<div class="warning hide"><p>Oh snap!<br />' + message + '</p></div>'
	},
	message: function(message){
		return '<div class="message"><p>' + message + '</p></div>'
	},
	call: function(endpoint, type, async){
		$.ajax({
			type: type,
			url: endpoint,
			async: async,
			beforeSend: function(){
				$('body').append(utils.loader.fadeToggle('slow'));
			},
			success: utils.process,
			error: function(jqXHR, textStatus, errorThrown){
				utils.loader.fadeIn('slow');
				var error = $(utils.error(jqXHR.responseJSON.error));
				$('body').prepend(error.fadeIn('slow'));
			}
		});
	},
	process: function(data){
		utils.loader.fadeOut('slow', function(){
			$(this).remove()
			if(!data.result){
				var warning = $(utils.warning('There are no messages to display!'));
				$('body').prepend(warning.fadeIn('slow'));
			}
			else {
				if($('.warning').is(':visible')){
					$('.warning').fadeOut('fast');
				}
				if($('.error').is(':visible')){
					$('.error').fadeOut('fast');
				}
				var initial = $('#initial');
				if(initial.is(':visible')){
					initial.fadeOut('slow', function(){
						this.remove();
						$.each(data.data, function(i, item){
							var msg = $(utils.message(item.replace(/\n/g, '<br />'))).css('color', utils.colorize());
							$('#message-container').append(msg);
							utils.msnry.appended(msg);
						});
						utils.messages = data.data;
					});
{'fraction_non_alphanumeric': 0.22905936568175658, 'fraction_numerical': 0.0027107617240444567, 'mean_word_length': 3.7126436781609193, 'pattern_counts': {'":': 0, '<': 41, '<?xml version=': 0, '>': 41, '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': '4608899', 'n_tokens_mistral': 1492, 'n_tokens_neox': 1212, 'n_words': 232}