<commit_before>
var template = [];

// template object
core.packageReady();


	var _TEMPLATE = function( url ) {

			this.url = url;

			this.load = function( params ) {

				if (window.XMLHttpRequest) { ajax = new XMLHttpRequest() }

				if(typeof(params) == "object" ) {

					p = JSON.stringify(params).replace(/[\"\}\{]/g, '');
					param = p.replace(/[\:]/g,"=").replace(/[\,]/g, "&");
					
					ajax.open("GET", "document/web/template/" + this.url + "?" + param, false);
					ajax.setRequestHeader("Content-Type", "text/html; charset=UTF-8");
					ajax.send(null);
					ajax_response = ajax.responseText;

					return ajax_response;

			
				} else {

					ajax.open("GET", "document/web/template/" + this.url, false);
					ajax.setRequestHeader("Content-Type", "text/html; charset=UTF-8");
					ajax.send();
					ajax_response = ajax.responseText;

					return ajax_response;

				}		

			}


			return this;

	}


<commit_msg>creating option to define custom template path<commit_after>
var template = [];

// template object
core.packageReady();


	var _TEMPLATE = function( url ) {

			this.url = url;

			this.load = function( params ) {

				if (window.XMLHttpRequest) { ajax = new XMLHttpRequest() }

				if(typeof(params) == "object" ) {

					p = JSON.stringify(params).replace(/[\"\}\{]/g, '');
					param = p.replace(/[\:]/g,"=").replace(/[\,]/g, "&");
					
					ajax.open("GET", this.url + "?" + param, false);
					ajax.setRequestHeader("Content-Type", "text/html; charset=UTF-8");
					ajax.send(null);
					ajax_response = ajax.responseText;

					return ajax_response;

			
				} else {

					ajax.open("GET", "document/web/template/" + this.url, false);
					ajax.setRequestHeader("Content-Type", "text/html; charset=UTF-8");
					ajax.send();
					ajax_response = ajax.responseText;

					return ajax_response;

				}		

			}


			return this;

	}



{'fraction_non_alphanumeric': 0.18443496801705758, 'fraction_numerical': 0.0021321961620469083, 'mean_word_length': 2.739043824701195, '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': '4004328', 'n_tokens_mistral': 812, 'n_tokens_neox': 608, 'n_words': 113}