<commit_before>textToGame = function(text, seed) {
	var game = JSON.parse(text)

	if (game.version != 11) {
		alert("Invalid version number: " + json_game.version);
	}

	//Adds determinism (when used with https://github.com/davidbau/seedrandom) to color scramble.
	console.log(seed);
	Math.seedrandom(seed);

	//Hardcoding colors:
    var colors = ['0x6DB6FF',
                  '0x490092',
                  '0x24ff24',
                  '0x009292',
                  '0xFFB677',
                  '0xffff6d',
                  '0xB66DFF',
                  '0x924900',
                 ];

	var x, i;
	for (i = colors.length; i; i--) {
		var j = Math.floor(Math.random() * i);
		x = colors[i - 1];
		colors[i - 1] = colors[j];
		colors[j] = x;
	}

	game.players = []
	game.players.push({name: 'NULL', color: "0x888888"});
	for(i = 0; i < game.num_players; i++) {
		game.players.push({name: game.player_names[i], color: colors[i] });
		console.log(game.players[game.players.length - 1].color);
	}
	delete game.player_names;

	console.log(game.players);

	var maxProd = 0;
	for(var a = 0; a < game.height; a++) {<commit_msg>Update color palette after more feedback.<commit_after>textToGame = function(text, seed) {
	var game = JSON.parse(text)

	if (game.version != 11) {
		alert("Invalid version number: " + json_game.version);
	}

	//Adds determinism (when used with https://github.com/davidbau/seedrandom) to color scramble.
	console.log(seed);
	Math.seedrandom(seed);

	//Hardcoding colors:
    var colors = [
                  '0x24ff24', // 14 Green
                  '0x6DB6FF', // 9 Cyan
                  '0xffff6d', // 15 Yellow
                  '0xB66DFF', // 8 Lavender
                  '0xFF6DB6', // 4 Pink
                  '0x924900', // 12 Brown
                  '0x006DDB', // 7 Blue
                  '0xFFB6db', // 5 Cotton Candy
                 ];

	var x, i;
	for (i = colors.length; i; i--) {
		var j = Math.floor(Math.random() * i);
		x = colors[i - 1];
		colors[i - 1] = colors[j];
		colors[j] = x;
	}

	game.players = []
	game.players.push({name: 'NULL', color: "0x888888"});
	for(i = 0; i < game.num_players; i++) {
		game.players.push({name: game.player_names[i], color: colors[i] });
		console.log(game.players[game.players.length - 1].color);
	}
	delete game.player_names;

	console.log(game.players);

	var maxProd = 0;
	for(var a = 0; a < game.height; a++) {
{'fraction_non_alphanumeric': 0.16416040100250626, 'fraction_numerical': 0.045112781954887216, 'mean_word_length': 2.2061579651941097, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '4126286', 'n_tokens_mistral': 968, 'n_tokens_neox': 862, 'n_words': 190}