<commit_before>$(document).ready(function(){
	// Ctrl+Enter adds to the report
	$('#item').keydown(function (e) {
	  if (e.keyCode === 13 && e.ctrlKey) {
	    $('#report_item_submit').click();
	    e.preventDefault;
	  }
	});

	
	if ($('#update_notices').length) {
		var freq1=$('#update_notices').data('frequency')*1000;
		setInterval(function(){
			$.get('/notices/update_message_center');
		},freq1);
	};
	if ($('#update_tasks').length) {
		var freq2=$('#update_tasks').data('frequency')*1000;
		setInterval(function(){
			$.get('/tasks/update_tasks');
		},freq2);
	};
	if ($('#update_report').length) {
		var freq3=$('#update_report').data('frequency')*1000;
		setInterval(function(){
			var id=$('#update_report').data('id');
			$.get('/reports/'+id+'/update_reports');
		}, freq3);
	};

});<commit_msg>added cmd+enter shortcut on reports page for macs woooooo<commit_after>$(document).ready(function(){
	// Ctrl+Enter adds to the report
	$('#new_report_item #item').keydown(function (e) {
	  if (e.keyCode === 13 && (e.ctrlKey || e.metaKey)) {
	    $('#report_item_submit').click();
	    e.preventDefault();
	  }
	});


	if ($('#update_notices').length) {
		var freq1=$('#update_notices').data('frequency')*1000;
		setInterval(function(){
			$.get('/notices/update_message_center');
		},freq1);
	}
	if ($('#update_tasks').length) {
		var freq2=$('#update_tasks').data('frequency')*1000;
		setInterval(function(){
			$.get('/tasks/update_tasks');
		},freq2);
	}
	if ($('#update_report').length) {
		var freq3=$('#update_report').data('frequency')*1000;
		setInterval(function(){
			var id=$('#update_report').data('id');
			$.get('/reports/'+id+'/update_reports');
		}, freq3);
	}

});
{'fraction_non_alphanumeric': 0.24142011834319527, 'fraction_numerical': 0.023668639053254437, 'mean_word_length': 4.99645390070922, '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': '114958', 'n_tokens_mistral': 660, 'n_tokens_neox': 590, 'n_words': 84}