<commit_before>var stage, board, tiles, fleets, scale, sWid, is_dragging;
var lastMouse = { x:0, y:0 };
var is_dragging = false;

$(document).ready(function() {

	init_stage();

	document.addEventListener('keyup', handleKeyUp, false);
	document.addEventListener('keydown', handleKeyDown, false);

});

/**
 * Called from createAll in game.js after all assets are loaded. 
 * Clears old game globals, re-sets defaults.
 */
var setGlobals = function() {
	stage.removeChild(board);
	board = new createjs.Container();
	tiles = [];
	fleetshapes = {};
	scale = 0.65;
};

var handleKeyUp = function( e ) {
	switch (e.keyCode) {
		case 189: // dash
			zoomBoard(-0.05);
			break;
		case 187: // equals (plus sign)
			zoomBoard(0.05);
			break;
		default:
			break;
	}

};

var handleKeyDown = function( e ) {
	switch (e.keyCode) {
		case 37: // left arrow
			moveBoard(-1, 0);
			break;
		case 38: // up arrow
			moveBoard(0, -1);
			break;
		case 39:
			moveBoard(1, 0);
			break;
		case 40:
			moveBoard(0, 1);
			break;
		case 32:
			drawExplosion(500, 300, 1.0);
			drawShield(800, 300, 1.0);
			break;
		default:
			break;
	}
};<commit_msg>remove space bar testing<commit_after>var stage, board, tiles, fleets, scale, sWid, is_dragging;
var lastMouse = { x:0, y:0 };
var is_dragging = false;

$(document).ready(function() {

	init_stage();

	document.addEventListener('keyup', handleKeyUp, false);
	document.addEventListener('keydown', handleKeyDown, false);

});

/**
 * Called from createAll in game.js after all assets are loaded. 
 * Clears old game globals, re-sets defaults.
 */
var setGlobals = function() {
	stage.removeChild(board);
	board = new createjs.Container();
	tiles = [];
	fleetshapes = {};
	scale = 0.65;
};

var handleKeyUp = function( e ) {
	switch (e.keyCode) {
		case 189: // dash
			zoomBoard(-0.05);
			break;
		case 187: // equals (plus sign)
			zoomBoard(0.05);
			break;
		default:
			break;
	}

};

var handleKeyDown = function( e ) {
	switch (e.keyCode) {
		case 37: // left arrow
			moveBoard(-1, 0);
			break;
		case 38: // up arrow
			moveBoard(0, -1);
			break;
		case 39:
			moveBoard(1, 0);
			break;
		case 40:
			moveBoard(0, 1);
			break;
		default:
			break;
	}
};
{'fraction_non_alphanumeric': 0.15356656065424806, 'fraction_numerical': 0.03816447069513857, 'mean_word_length': 3.2674418604651163, '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': '6051439', 'n_tokens_mistral': 954, 'n_tokens_neox': 806, 'n_words': 216}