<commit_before>$(document).ready(function(){
	function redact() {
		$('.message').find('p').each(function(){
			// split each paragraph by newline
			var text = $(this).text().split('\n'),
			redacted = '';
			$(text).each(function(k, line){

				// loop through each line, split newlines by spaces
				// to create blocks of text
				var blocks = line.split(' ');
				$(blocks).each(function(k, block){

					// randomly choose if redacted or not
					if(Math.random() * 10 > 5) {
						redacted += '<span class="redacted"> ' + block + ' </span>';
					}
					else {
						redacted += block;
					}
				});
			});

			// update html
			$(this).html(redacted);
			return;
		});
		return;
	}
	$('#redactor').on('click', function(){
		redact();
		$(this).text('Redact it again.');
	});
});<commit_msg>Prevnt removal of spaces<commit_after>$(document).ready(function(){
	function redact() {
		$('.message').find('p').each(function(){
			// split each paragraph by newline
			var text = $(this).text().split('\n'),
			redacted = '';
			$(text).each(function(k, line){

				// loop through each line, split newlines by spaces
				// to create blocks of text
				var blocks = line.split(' ');
				$(blocks).each(function(k, block){

					// randomly choose if redacted or not
					if(Math.random() * 10 > 5) {
						redacted += ' <span class="redacted">' + block + '</span> ';
					}
					else {
						redacted += ( ' ' + block + ' ');
					}
				});
			});

			// update html
			$(this).html(redacted);
			return;
		});
		return;
	}
	$('#redactor').on('click', function(){
		redact();
		$(this).text('Redact it again.');
	});
});
{'fraction_non_alphanumeric': 0.2105911330049261, 'fraction_numerical': 0.003694581280788177, 'mean_word_length': 2.7185354691075516, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 9, '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': '6236073', 'n_tokens_mistral': 676, 'n_tokens_neox': 525, 'n_words': 125}