<commit_before>$j(document).ready(function(){
	G = new Game();

	$j("form#gamesetup").submit(function(e){
		e.preventDefault(); //prevent submit
		gameconfig = {
			nbrPlayer: $j('select[name="nbrplayer"]').val()-0,
			background_image : $j('select[name="background"]').val(),
			plasma_amount : $j('select[name="plasma"]').val()-0,
			timePool : $j('select[name="time_pool"]').val()*60,
			turnTimePool : $j('select[name="time_turn"]').val()-0,
			creaLimitNbr : $j('select[name="active_units"]').val()-0, //DP count as One
		};

		if( gameconfig.background_image == "random" ){
			var index = Math.floor(Math.random() * ($j('select[name="background"] option').length - 1) ) + 2;  // nth-child indices start at 1
			gameconfig.background_image = $j('select[name="background"] option:nth-child(' + index + ")").attr("value");
		}
		G.loadGame(gameconfig);
		return false; //prevent submit
	});
});<commit_msg>Change DP count in creature cap limit<commit_after>$j(document).ready(function(){
	G = new Game();

	$j("form#gamesetup").submit(function(e){
		e.preventDefault(); //prevent submit
		gameconfig = {
			nbrPlayer: $j('select[name="nbrplayer"]').val()-0,
			background_image : $j('select[name="background"]').val(),
			plasma_amount : $j('select[name="plasma"]').val()-0,
			timePool : $j('select[name="time_pool"]').val()*60,
			turnTimePool : $j('select[name="time_turn"]').val()-0,
			creaLimitNbr : $j('select[name="active_units"]').val()+1, //DP count as One
		};

		if( gameconfig.background_image == "random" ){
			var index = Math.floor(Math.random() * ($j('select[name="background"] option').length - 1) ) + 2;  // nth-child indices start at 1
			gameconfig.background_image = $j('select[name="background"] option:nth-child(' + index + ")").attr("value");
		}
		G.loadGame(gameconfig);
		return false; //prevent submit
	});
});
{'fraction_non_alphanumeric': 0.2258414766558089, 'fraction_numerical': 0.009771986970684038, 'mean_word_length': 5.1433333333333335, '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': '7616534', 'n_tokens_mistral': 700, 'n_tokens_neox': 638, 'n_words': 106}