<commit_before>(function () {
	
	// to be aded

})();<commit_msg>script.js<commit_after>(function () {

	// checks if there is a winner
	function isWon (map) {
		var digit = 1
		for (var i = 0; i < 2; i++, digit = 2) {
			if((map[0][0] == digit && map[0][1] == digit && map[0][2] == digit)
			|| (map[1][0] == digit && map[1][1] == digit && map[1][2] == digit)
			|| (map[2][0] == digit && map[2][1] == digit && map[2][2] == digit)

			|| (map[0][0] == digit && map[1][0] == digit && map[2][0] == digit)
			|| (map[0][1] == digit && map[1][1] == digit && map[2][1] == digit)
			|| (map[0][2] == digit && map[1][2] == digit && map[2][2] == digit)

			|| (map[0][0] == digit && map[1][1] == digit && map[2][2] == digit)
			|| (map[0][2] == digit && map[1][1] == digit && map[2][0] == digit))
				return digit;
		}

		return 0;	// no one won so far
	}

	function isFull (map) {
		for (var i = 0; i < 3; i++)
			for (var j = 0; j < 3; j++)
				if(map[i][j] == 0)
					return false;
		return true;
	}
	
	// 0 - empty space
	// 1 - O (computer)
	// 2 - X (player)
	var map = [
		[0, 0, 0],
		[0, 0, 0],
		[0, 0, 0]
	];

})();
{'fraction_non_alphanumeric': 0.28507596067917784, 'fraction_numerical': 0.06255585344057193, 'mean_word_length': 2.7209302325581395, 'pattern_counts': {'":': 0, '<': 6, '<?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': '6777310', 'n_tokens_mistral': 549, 'n_tokens_neox': 481, 'n_words': 126}