<commit_before>$(document).ready( function() {
	var fsvs = $.fn.fsvs({
		speed : 1000,
		bodyID : 'fsvs-body',
		selector : '> .slide',
		mouseSwipeDisance : 40,
		afterSlide : function(){},
		beforeSlide : function(){},
		endSlide : function(){},
		mouseWheelEvents : true,
		mouseDragEvents : true,
		touchEvents : true,
		arrowKeyEvents : true,
		pagination : true,
		nthClasses : false,
		detectHash : true
	});

	var username = "Player";
	var $player = $('.game-slide header label');
	var $header = $('.game-slide header');
	var $nameInput = $('#name');
	var $saveButton = $('.game-slide header button');

	$player.on("click", function() {

		$nameInput.val($player.text());
		$header.toggleClass('editMode');


	});

	$nameInput.on("keypress", function(e) {
		var key = e.keyCode || e.which;
		if (key == '13') {
			$saveButton.click();
		}
	});
	
	$saveButton.on("click", function() {

		$header.toggleClass('editMode');
		$player.text($nameInput.val());

		username = $player.text();
	});

});<commit_msg>Caching username<commit_after>$(document).ready( function() {
	var username = localStorage.getItem('username') ? localStorage.getItem('username') : "Player";
	
	var $player = $('.game-slide header label');
	var $header = $('.game-slide header');
	var $nameInput = $('#name');
	var $saveButton = $('.game-slide header button');

	$player.text(username);

	var fsvs = $.fn.fsvs({
		speed : 1000,
		bodyID : 'fsvs-body',
		selector : '> .slide',
		mouseSwipeDisance : 40,
		afterSlide : function(){},
		beforeSlide : function(){},
		endSlide : function(){},
		mouseWheelEvents : true,
		mouseDragEvents : true,
		touchEvents : true,
		arrowKeyEvents : true,
		pagination : true,
		nthClasses : false,
		detectHash : true
	});


	$player.on("click", function() {
		$nameInput.val($player.text());
		$header.toggleClass('editMode');

	});

	$nameInput.on("keypress", function(e) {
		var key = e.keyCode || e.which;
		if (key == '13') {
			$saveButton.click();
		}
	});

	$saveButton.on("click", function() {
		$header.toggleClass('editMode');
		$player.text($nameInput.val());

		username = $player.text();
		localStorage.setItem("username", username);
	});

});
{'fraction_non_alphanumeric': 0.2, 'fraction_numerical': 0.007373271889400922, 'mean_word_length': 4.144549763033176, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '1266649', 'n_tokens_mistral': 825, 'n_tokens_neox': 735, 'n_words': 152}