<commit_before>var uuid = require('node-uuid')

module.exports =
{
	generateQueryString: function(data)
	{
		var ret = [];
		for (var d in data)
			if (data[d])
				ret.push(encodeURIComponent(d) + "=" + encodeURIComponent(data[d]));
		return ret.join("&");
	},

	base64Encoding: function(data)
	{
		return new Buffer(data).toString('base64');
	},

	generateUniqueHashID: function()
	{
		return uuid.v1();
	},

	getUnixTimeStamp: function()
	{
		return Math.floor((new Date).getTime()/1000);
	}
}<commit_msg>Adding Country Mapper to Table Name<commit_after>var uuid = require('node-uuid')
var countryList 	= require('../config/country.json')
var configuration = require('../config/configuration.json')

module.exports =
{
	generateQueryString: function(data) {
		var ret = [];
		for (var d in data)
		if (data[d])
		ret.push(encodeURIComponent(d) + "=" + encodeURIComponent(data[d]));
		return ret.join("&");
	},

	base64Encoding: function(data) {
		return new Buffer(data).toString('base64');
	},

	generateUniqueHashID: function() {
		return uuid.v1();
	},

	getUnixTimeStamp: function() {
		return Math.floor((new Date).getTime()/1000);
	},

	mapCountryToTable: function(countryCode) {
		for (var i = 0; i < countryList.length; i++)
		if (countryList[i].code === countryCode)
		return configuration.RegistrationCountry + countryCode + ':'
	}
}
{'fraction_non_alphanumeric': 0.17013372956909362, 'fraction_numerical': 0.01411589895988113, 'mean_word_length': 4.635983263598327, 'pattern_counts': {'":': 0, '<': 4, '<?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': '3695317', 'n_tokens_mistral': 498, 'n_tokens_neox': 467, 'n_words': 92}