<commit_before>function (event) {
	event.preventDefault();
	
	if ( !$$('#top').baseHeight ) {
		$$('#top').baseHeight = $('#top').css('height');
	}
	
	var futureHeight,futureOverflow;
	
	if ( $$(this).isDown ) {
		$$(this).isDown  = false;
		futureHeight   = $$('#top').baseHeight
		futureOverflow = 'hidden';
	} else {
		$$(this).isDown  = true;
		futureHeight   = '80%';
		futureOverflow = 'auto';
	}
	
	$('#top').css('overflow', futureOverflow);
	
	$('#top').animate({'height':futureHeight}, 'slow', "swing", function(){
		$('.btnPullDown').each(function() {
			$(this).trigger('toggle');
		});
		
		if ( $$('.btnPullDown').isDown ) {
			$("#top").one('click', function () {
				$('.btnPullDown').first().trigger('click');
			});
		}
	});
}<commit_msg>Fixing top panel toggling<commit_after>function (event) {
	event.preventDefault();
	
	if ( !$$('#top').baseHeight ) {
		$$('#top').baseHeight = $('#top').css('height');
	}
	
	var futureHeight,futureOverflow;
	
	if ( $$(this).isDown ) {
		$$(this).isDown  = false;
		futureHeight   = $$('#top').baseHeight
		futureOverflow = 'hidden';
		
		$("#top").die('click');
		
	} else {
		$$(this).isDown  = true;
		futureHeight   = '80%';
		futureOverflow = 'auto';
	}
	
	$('#top').css('overflow', futureOverflow);
	
	$('#top').animate({'height':futureHeight}, 'slow', "swing", function(){
		$('.btnPullDown').each(function() {
			$(this).trigger('toggle');
		});
		
		if ( $$('.btnPullDown').isDown ) {
			$("#top").live('click', function (event) {
				if ( event.target == this ) {
					$('.btnPullDown').first().trigger('click');
				}
			});
		}
	});
}
{'fraction_non_alphanumeric': 0.2617114303560275, 'fraction_numerical': 0.0024984384759525295, 'mean_word_length': 3.8841463414634148, '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': '5296846', 'n_tokens_mistral': 625, 'n_tokens_neox': 540, 'n_words': 82}