<commit_before>$(document).ready(function() {
	
	$('#manual_backup_button').click(function() {
		$(this).attr('disabled', 'disabled');
		$('#ajax_loader').show();
		$('#backup_result').html('');

		callback = function(data) {
			$('#ajax_loader').hide();
			if ('success' == data.status) {
				$('#backup_result').html('Success! Refresh the page to see the new bundle.').removeClass('error').addClass('success');
			} else {
				$('#backup_result').html('Error! ' + data.message).removeClass('success').addClass('error');
			}
			$('#manual_backup_button').removeAttr("disabled");
		};
	
		var application_name = $(this).attr('data-application-name');
		$.post('/applications/' + application_name, callback, 'json');
	});
	
});<commit_msg>Refactor javascript<commit_after>$(document).ready(function() {
	
	$('#manual_backup_button').click(function() {
		var callback, applicationName;
		
		$(this).attr('disabled', 'disabled');
		$('#ajax_loader').show();
		$('#backup_result').html('');

		callback = function(data) {
			$('#ajax_loader').hide();
			if ('success' === data.status) {
				$('#backup_result').html('Success! Refresh the page to see the new bundle.').removeClass('error').addClass('success');
			} else {
				$('#backup_result').html('Error! ' + data.message).removeClass('success').addClass('error');
			}
			$('#manual_backup_button').removeAttr("disabled");
		};
	
		applicationName = $(this).attr('data-application-name');
		$.post('/applications/' + applicationName, callback, 'json');
	});
	
});
{'fraction_non_alphanumeric': 0.23432343234323433, 'fraction_numerical': 0.0, 'mean_word_length': 5.343096234309623, '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': '1819608', 'n_tokens_mistral': 502, 'n_tokens_neox': 453, 'n_words': 67}