<commit_before>$(function() {

	var slides = $( 'section.slide' );

	function fullScreen() {
		return (
			window.screenX == 0 &&
			window.screenY == 0 &&
			screen.width == window.outerWidth &&
			screen.height == window.outerHeight
		) ? true : false;
	}
	
	function turnSlide( e ) {
		if( !fullScreen() ) return;
		var current = $( document.location.hash );
		switch ( e.which ) {
			case 33 : // PgUp
			case 38 : // Up
			case 37 : // Left
				var target = current.prev( slides );
				break;
			case 34 : // PgDown
			case 40 : // Down
			case 39 : // Right
				var target = current.next( slides );
				break;
			case 32 : // Space
				var target = current[e.shiftKey ? "prev" : "next"]( slides );
				break;
			default:
				return;
		}
		e.preventDefault();
		if( !target.length ) return;
		else document.location.hash = '#' + target.attr( 'id' );
	}

	function updateView() {
		var screen = $( 'link[title=screen]' ),
			projection = $( 'link[title=projection]' ),
			fullscreen = fullScreen();
		screen.attr( 'disabled', fullscreen );
		projection.attr( 'disabled', !fullscreen );
		if( !fullscreen || $( document.location.hash ).length ) return;
		else document.location.hash = '#' + slides.first().attr( 'id' );
	}

	$( document ).
		keyup( turnSlide );
<commit_msg>code style: double quotes to single quotes<commit_after>$(function() {

	var slides = $( 'section.slide' );

	function fullScreen() {
		return (
			window.screenX == 0 &&
			window.screenY == 0 &&
			screen.width == window.outerWidth &&
			screen.height == window.outerHeight
		) ? true : false;
	}
	
	function turnSlide( e ) {
		if( !fullScreen() ) return;
		var current = $( document.location.hash );
		switch ( e.which ) {
			case 33 : // PgUp
			case 38 : // Up
			case 37 : // Left
				var target = current.prev( slides );
				break;
			case 34 : // PgDown
			case 40 : // Down
			case 39 : // Right
				var target = current.next( slides );
				break;
			case 32 : // Space
				var target = current[ e.shiftKey ? 'prev' : 'next' ]( slides );
				break;
			default:
				return;
		}
		e.preventDefault();
		if( !target.length ) return;
		else document.location.hash = '#' + target.attr( 'id' );
	}

	function updateView() {
		var screen = $( 'link[title=screen]' ),
			projection = $( 'link[title=projection]' ),
			fullscreen = fullScreen();
		screen.attr( 'disabled', fullscreen );
		projection.attr( 'disabled', !fullscreen );
		if( !fullscreen || $( document.location.hash ).length ) return;
		else document.location.hash = '#' + slides.first().attr( 'id' );
	}

	$( document ).
		keyup( turnSlide );

{'fraction_non_alphanumeric': 0.16750483558994197, 'fraction_numerical': 0.012379110251450677, 'mean_word_length': 2.808541973490427, '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': '5128901', 'n_tokens_mistral': 1017, 'n_tokens_neox': 841, 'n_words': 213}