<commit_before>var na = require('../../datasets/NA.json');
var eune = require('../../datasets/EUNE.json');
var async = require('async');
var credentials = require('../../credentials.js');
var matchSchematizer = require('./matchSchematizer.js');
var Match = require('../../models/match.js');


module.exports = {
	loadDataSet: function(region) {
		var toProcess;
		var riot;
		switch(region) {
			case "na":
				toProcess = na;
				riot = require('./riot.js')({
					type: "match",
					key: credentials.riot.key,
					region: 'na'
				});
				break;
			case "eune":
				toProcess = eune;
				break;
		}
		async.eachSeries(na, function(match, cb) {
			Match.findOne({ matchId: match }, function(err, match) {			
				if(match) {<commit_msg>fixed bug with conflicting var names<commit_after>var na = require('../../datasets/NA.json');
var eune = require('../../datasets/EUNE.json');
var async = require('async');
var credentials = require('../../credentials.js');
var matchSchematizer = require('./matchSchematizer.js');
var Match = require('../../models/match.js');


module.exports = {
	loadDataSet: function(region) {
		var toProcess;
		var riot;
		switch(region) {
			case "na":
				toProcess = na;
				riot = require('./riot.js')({
					type: "match",
					key: credentials.riot.key,
					region: 'na'
				});
				break;
			case "eune":
				toProcess = eune;
				break;
		}
		async.eachSeries(na, function(match, cb) {
			Match.findOne({ matchId: match }, function(err, dbMatch) {			
				if(dbMatch) {
{'fraction_non_alphanumeric': 0.18895542248835662, 'fraction_numerical': 0.0, 'mean_word_length': 3.0869565217391304, 'pattern_counts': {'":': 4, '<': 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': '1261566', 'n_tokens_mistral': 595, 'n_tokens_neox': 495, 'n_words': 111}