<commit_before>(function($){
    $.fn.disableSelection = function() {
        return this
                 .attr('unselectable', 'on')
                 .css('user-select', 'none')
                 .on('selectstart', false);
    };
})(jQuery);

$(document).ready(function () {
	var canvas = $('canvas')[0],
		ctx = canvas.getContext('2d'),
		h = window.innerHeight,
		w = window.innerWidth,
		stars  = [],
		lasers = [],
		aliens = [],
		mouse = {
			x: 0,
			y: 0
		},
		ship_x = 0,
		ship_y = 0,
		alien_speed = 4,
		alien_rate = 2000,
		score = 0,
		game_over = false;
		
		canvas.height = h;
		canvas.width = w;

	var play = setInterval(paintScreen, 30);

	init();

	setTimeout(function () {
		$('.info').fadeOut('1500');
	}, 1500);


	$('canvas').on('mousemove', function (e) {
		mouse.x = e.clientX;
		mouse.y = e.clientY;
	});

	document.addEventListener('touchmove', function (e) {
    	e.preventDefault();

    	mouse.x = e.clientX;
		mouse.y = e.clientY;
	}, false);

	$('canvas').on('click', function () {
		lasers.push(new Laser(ship_x, ship_y))
	});

	function init() {
		makeStars();
		makeAliens();
	};

	function paintScreen() {
		ctx.fillStyle = '#02041f';
		ctx.fillRect(0,0,w,h);<commit_msg>Fix bug<commit_after>(function($){
    $.fn.disableSelection = function() {
        return this
                 .attr('unselectable', 'on')
                 .css('user-select', 'none')
                 .on('selectstart', false);
    };
})(jQuery);

$(document).ready(function () {
	var canvas = $('canvas')[0],
		ctx = canvas.getContext('2d'),
		h = window.innerHeight,
		w = window.innerWidth,
		stars  = [],
		lasers = [],
		aliens = [],
		mouse = {
			x: 0,
			y: 0
		},
		ship_x = 0,
		ship_y = 0,
		alien_speed = 4,
		alien_rate = 2000,
		score = 0,
		game_over = false;
		
		canvas.height = h;
		canvas.width = w;

	var play = setInterval(paintScreen, 30);

	init();

	setTimeout(function () {
		$('.info').fadeOut('1500');
	}, 1500);


	$('canvas').on('mousemove', function (e) {
		mouse.x = e.clientX;
		mouse.y = e.clientY;
	});

	document.addEventListener('touchmove', function (e) {
    	e.preventDefault();

    	mouse.x = e.pageX;
		mouse.y = e.pageY;
	}, false);

	$('canvas').on('click', function () {
		lasers.push(new Laser(ship_x, ship_y))
	});

	function init() {
		makeStars();
		makeAliens();
	};

	function paintScreen() {
		ctx.fillStyle = '#02041f';
		ctx.fillRect(0,0,w,h);
{'fraction_non_alphanumeric': 0.19767441860465115, 'fraction_numerical': 0.02408637873754153, 'mean_word_length': 2.7640625, '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': '2851888', 'n_tokens_mistral': 1018, 'n_tokens_neox': 883, 'n_words': 168}