<commit_before>/*
Up : 38
Down : 40
Right : 39
Left : 37
Enter : 13
SpaceBar : 32
Shift : 16
*/

var walking;
walking = false;

$(document).keydown(function(e) {
	//var element = $(".joshua");
	if(e.keyCode == 32) {
		//alert("hi");
		$(".joshua").css("width", "80px");
		$(".joshua").css("background-image", "url(../image/joshua-sprite-walk.png");
		walking = true;
	} else {
		walking = false;
	}
});

if (!walking) {
	$(".joshua").css("width", "88px");
}
<commit_msg>Update joshuaSprite.js<commit_after>/*
Up : 38
Down : 40
Right : 39
Left : 37
Enter : 13
SpaceBar : 32
Shift : 16
*/

var walking;

$(document).keydown(function(e) {
	//var element = $(".joshua");
	if(e.keyCode == 32) {
		//alert("hi");
		$(".joshua").css("width", "80px");
		$(".joshua").css("background-image", "url(../image/joshua-sprite-walk.png");
	}
});

$(document).keyup(function(e) {
	if(e.keyCode == 32) {
		$(".joshua").css("width", "88px");
	}
});

{'fraction_non_alphanumeric': 0.25806451612903225, 'fraction_numerical': 0.04516129032258064, 'mean_word_length': 3.7258883248730963, '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': '1750537', 'n_tokens_mistral': 435, 'n_tokens_neox': 388, 'n_words': 73}