<commit_before>
(function(window, document) {
	"use strict";

	var AerisMaps = window.AerisMaps || {};
	window.AerisMaps = AerisMaps;

	/**
	 * Private utility functions
	 */
	var extend = function(target, object) {
		for (var i in object) {
			if (object.hasOwnProperty(i)) {
				if (typeof target[i] == "object" && target.hasOwnProperty(i) && target[i] != null) {
					extend(target[i], object[i]);
				} else {
					target[i] = object[i];
				}
			}
		}
		return target;
	};
	var keys = function(o) {
		if (typeof o != 'object') return [];
		var keys = [];
		for (var key in o) if (hasOwnProperty.call(o, key)) keys.push(key);
		return keys;
	};
	var isDate = function(date) {
		return date.constructor.toString().indexOf("Date") > -1;
	};
	var formatDate = function(date, format) {
		var hours = date.getHours();
		var ttime = "AM";

		if (format.indexOf("t") > -1 && hours > 12) {
			hours = hours - 12;
			ttime = "PM";
		}

		var o = {
			"M+": date.getMonth() + 1, //month
			"d+": date.getDate(),    //day
			"h+": hours,   //hour
			"m+": date.getMinutes(), //minute
			"s+": date.getSeconds(), //second
			"q+": Math.floor((date.getMonth() + 3) / 3),  //quarter
			"S": date.getMilliseconds(), //millisecond,
			"t+": ttime
		};

		if (/(y+)/.test(format)) {
			format = format.replace(RegExp.$1, (date.getFullYear() + "").substr(4 - RegExp.$1.length));
		}

		for (var k in o) {
			if (new RegExp("(" + k + ")").test(format)) {
				format = format.replace(RegExp.$1, RegExp.$1.length == 1 ? o[k] : ("00" + o[k]).substr(("" + o[k]).length));
			}
		}
		return format;
	};
	var parseTemplate = function(tpl, data) {
		var val = tpl;
		for (var key in data) {
			val = val.replace('{{' + key + '}}', data[key]);
		}<commit_msg>fix 12pm display bug in timestamp<commit_after>
(function(window, document) {
	"use strict";

	var AerisMaps = window.AerisMaps || {};
	window.AerisMaps = AerisMaps;

	/**
	 * Private utility functions
	 */
	var extend = function(target, object) {
		for (var i in object) {
			if (object.hasOwnProperty(i)) {
				if (typeof target[i] == "object" && target.hasOwnProperty(i) && target[i] != null) {
					extend(target[i], object[i]);
				} else {
					target[i] = object[i];
				}
			}
		}
		return target;
	};
	var keys = function(o) {
		if (typeof o != 'object') return [];
		var keys = [];
		for (var key in o) if (hasOwnProperty.call(o, key)) keys.push(key);
		return keys;
	};
	var isDate = function(date) {
		return date.constructor.toString().indexOf("Date") > -1;
	};
	var formatDate = function(date, format) {
		var hours = date.getHours();
		var ttime = "AM";

		if (format.indexOf("t") > -1 && hours >= 12) {
			if (hours > 12) hours = hours - 12;
			ttime = "PM";
		}

		var o = {
			"M+": date.getMonth() + 1, //month
			"d+": date.getDate(),    //day
			"h+": hours,   //hour
			"m+": date.getMinutes(), //minute
			"s+": date.getSeconds(), //second
			"q+": Math.floor((date.getMonth() + 3) / 3),  //quarter
			"S": date.getMilliseconds(), //millisecond,
			"t+": ttime
		};

		if (/(y+)/.test(format)) {
			format = format.replace(RegExp.$1, (date.getFullYear() + "").substr(4 - RegExp.$1.length));
		}

		for (var k in o) {
			if (new RegExp("(" + k + ")").test(format)) {
				format = format.replace(RegExp.$1, RegExp.$1.length == 1 ? o[k] : ("00" + o[k]).substr(("" + o[k]).length));
			}
		}
		return format;
	};
	var parseTemplate = function(tpl, data) {
		var val = tpl;
		for (var key in data) {
			val = val.replace('{{' + key + '}}', data[key]);
		}
{'fraction_non_alphanumeric': 0.21430607010544314, 'fraction_numerical': 0.010829296095753777, 'mean_word_length': 2.961625282167043, 'pattern_counts': {'":': 16, '<': 3, '<?xml version=': 0, '>': 10, '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': '78147', 'n_tokens_mistral': 1519, 'n_tokens_neox': 1331, 'n_words': 320}