<commit_before>var gameLayer = {

//var Cards = require('./database/models/card.js');




	prepareGames: function(waitingRoom){
		console.log("starting to prepare game");
		console.log(waitingRoom.sockets);
		var playerLayer = require('./playerLayer.js');
		var gamesArray = [];
		//Create geolocation groups using the location data for all players in waiting room
		//var regions = geoLocationFunction(watingRoom)
		var regions = [];
		regions[0] = waitingRoom.sockets; //Make it work till we do geolocation
		console.log(regions);
		//Call make groups for each geolaction group
		for(var i = 0; i < regions.length; i++){
			console.log("Creating group for region: " + i);
			console.log(regions[i]);
			var tempArray = playerLayer.makeGroups(regions[i]) //Temp array will be an array of 10 player games
			console.log(tempArray);
			for (var j = 0; j < tempArray.length; j++){
				gamesArray.push(tempArray[j]);//We are looping through each array of 10 player games, and adding the individual games to the gamesArray
			}
		}
		

		//Get a set of cards
		gameLayer.getNewCardsArray(gamesArray)

		console.log(gamesArray);
	},<commit_msg>updating<commit_after>var gameLayer = {

//var Card = require('./database/models/card.js');




	prepareGames: function(waitingRoom){
		console.log("starting to prepare game");
		console.log(waitingRoom.sockets);
		var playerLayer = require('./playerLayer.js');
		var gamesArray = [];
		//Create geolocation groups using the location data for all players in waiting room
		//var regions = geoLocationFunction(watingRoom)
		var regions = [];
		regions[0] = waitingRoom.sockets; //Make it work till we do geolocation
		console.log(regions);
		//Call make groups for each geolaction group
		for(var i = 0; i < regions.length; i++){
			console.log("Creating group for region: " + i);
			console.log(regions[i]);
			var tempArray = playerLayer.makeGroups(regions[i]) //Temp array will be an array of 10 player games
			console.log(tempArray);
			for (var j = 0; j < tempArray.length; j++){
				gamesArray.push(tempArray[j]);//We are looping through each array of 10 player games, and adding the individual games to the gamesArray
			}
		}
		

		//Get a set of cards
		gameLayer.getNewCardsArray(gamesArray)

		console.log(gamesArray);
	},
{'fraction_non_alphanumeric': 0.12147887323943662, 'fraction_numerical': 0.006161971830985915, 'mean_word_length': 3.9092872570194386, 'pattern_counts': {'":': 0, '<': 7, '<?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': '719333', 'n_tokens_mistral': 785, 'n_tokens_neox': 675, 'n_words': 220}