<commit_before>var http = require('http');
var options = {
  host: 'us.battle.net',
  path: '/api/wow/character/' + process.argv[2] + '/' + process.argv[3] + '?fields=mounts'
};

http.get(options, function(res) {
	console.log('STATUS: ' + res.statusCode);
	console.log('HEADERS: ' + JSON.stringify(res.headers));
	var body = '';

	res.on('data', function (chunk) {
		body += chunk;
		/*
		function find() {
		    for (var key in chunk) {
		        if (check.hasOwnProperty(key)) {
		            var current = paises[key];

		            if (creatureId == 32153) {
		               console.log("true");
		            } else { console.log("false"); }
		        }
		    }
		}
		*/
	});

	res.on('end', function() {
        var response = JSON.parse(body);
        console.log("Got response: ", response);
    });
}).on('error', function(e) {
  console.log('ERROR: ' + e.message);
});<commit_msg>implemented doug's creature finder<commit_after>var http = require('http');
var options = {
  host: 'us.battle.net',
  path: '/api/wow/character/' + process.argv[2] + '/' + process.argv[3] + '?fields=mounts'
};

http.get(options, function(res) {
	console.log('STATUS: ' + res.statusCode);
	console.log('HEADERS: ' + JSON.stringify(res.headers));
	var body = '';

	res.on('data', function (chunk) {
		body += chunk;
	});

	res.on('end', function() {
        var response = JSON.parse(body);
        //console.log("Got response: ", response);

        response.mounts.collected.forEach(function(entry) {
        	if(entry.creatureId == 32153) {
        		console.log("Player has mount: " + entry.name)
        	}
        });
    });
}).on('error', function(e) {
  console.log('ERROR: ' + e.message);
});
{'fraction_non_alphanumeric': 0.2002362669816893, 'fraction_numerical': 0.008269344359125812, 'mean_word_length': 2.747787610619469, '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': '7257154', 'n_tokens_mistral': 610, 'n_tokens_neox': 570, 'n_words': 102}