<commit_before>$(function() {

	var SM = new SpriteManager();

	$('#game').hide();

	preloadImages(sprites);

	var zIndex = 1;

	$.each(sprites, function (k, sprite_data) {
		sprite_data.zIndex = zIndex++;
		SM.addSprite((new Sprite(sprite_data)).init($('#game')));
	});

	$('#game').on('click dblclick', function(event) {
		var x = event.pageX - $(this).position().left,
			y = event.pageY - $(this).position().top;

		// honor game field bounds
		x = Math.max(64, x);
		y = Math.max(64, y);
		x = Math.min($(this).width()-64, x);
		y = Math.min($(this).height()-64, y);

		$('.sprite').trigger('move', {
			x : x,
			y : y,
			speed: event.type === 'dblclick' ? 1.6 : 1
		});

	});

	SM.updateSprites();

	$('#game')
		.show()
		.on('resize', function() {
			$(this).find('.sprite').each(function() {<commit_msg>do not hide and show game frame<commit_after>$(function() {

	var SM = new SpriteManager();

	preloadImages(sprites);

	var zIndex = 1;

	$.each(sprites, function (k, sprite_data) {
		sprite_data.zIndex = zIndex++;
		SM.addSprite((new Sprite(sprite_data)).init($('#game')));
	});

	$('#game').on('click dblclick', function(event) {
		var x = event.pageX - $(this).position().left,
			y = event.pageY - $(this).position().top;

		// honor game field bounds
		x = Math.max(64, x);
		y = Math.max(64, y);
		x = Math.min($(this).width()-64, x);
		y = Math.min($(this).height()-64, y);

		$('.sprite').trigger('move', {
			x : x,
			y : y,
			speed: event.type === 'dblclick' ? 1.6 : 1
		});

	});

	SM.updateSprites();

	$('#game')
		.on('resize', function() {
			$(this).find('.sprite').each(function() {
{'fraction_non_alphanumeric': 0.243343653250774, 'fraction_numerical': 0.014860681114551083, 'mean_word_length': 3.526610644257703, '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': '2235938', 'n_tokens_mistral': 697, 'n_tokens_neox': 621, 'n_words': 124}