<commit_before>$(document).on('ready', function(){
	var headerHeight = $('.navbar').height();
	var footerHeight = $('footer').height();
	var bottomPadding = 75;
	var textareaHeight = $(window).height() - headerHeight - footerHeight - bottomPadding;
	$('#code').css('height', textareaHeight);
	$('#chat').css('height', textareaHeight);
});<commit_msg>allow tab char in code textbox<commit_after>$(document).on('ready', function(){
	var headerHeight = $('.navbar').height();
	var footerHeight = $('footer').height();
	var bottomPadding = 75;
	var textareaHeight = $(window).height() - headerHeight - footerHeight - bottomPadding;
	$('#code').css('height', textareaHeight);
	$('#chat').css('height', textareaHeight);

	// allow tab character in the code textarea
	$(document).delegate('#code', 'keydown', function(e){
		var keyCode = e.keyCode || e.which;
		if (keyCode == 9) {
			e.preventDefault();
			var start = $(this).get(0).selectionStart;
			var end = $(this).get(0).selectionEnd;
			$(this).val($(this).val().substring(0, start) + '\t' + $(this).val().substring(end));
			$(this).get(0).selectionStart = $(this).get(0).selectionEnd = start + 1;
		}
	});
});
{'fraction_non_alphanumeric': 0.22098022355975924, 'fraction_numerical': 0.009458297506448839, 'mean_word_length': 5.291891891891892, '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': '3711690', 'n_tokens_mistral': 384, 'n_tokens_neox': 358, 'n_words': 79}