<commit_before>var contextPath = null;

//console log ================================
var PRD_MODE = false; //change = true if on production
if(typeof(console) === 'undefined') {
   console = {};
}

if(!PRD_MODE || typeof(console.log) === 'undefined') {
//   console.log = console.error = console.info = console.debug = console.warn = console.trace = console.dir = console.dirxml = console.group = console.groupEnd = console.time = console.timeEnd = console.assert = console.profile = function() {};
}
// console log ================================

function getContextPath() {
	if (contextPath == null) {
		contextPath = $('#contextPath').val();
	}
	return contextPath;
}

function getURL(url) {
	if (url.indexOf('/') == 0) {
		return getContextPath() + url;
	} else {
		return getContextPath() + '/' + url;
	}
}

function getValueById(id) {<commit_msg>update util.js<commit_after>var contextPath = null;

//console log ================================
var PRD_MODE = false; //change = true if on production
if(typeof(console) === 'undefined') {
   console = {};
}

if(!PRD_MODE || typeof(console.log) === 'undefined') {
   console.log = console.error = console.info = console.debug = console.warn = console.trace = console.dir = console.dirxml = console.group = console.groupEnd = console.time = console.timeEnd = console.assert = console.profile = function() {};
}
// console log ================================

function getContextPath() {
	if (contextPath == null) {
		contextPath = $('#contextPath').val();
	}
	return contextPath;
}

function getURL(url) {
	if (url.indexOf('/') == 0) {
		return getContextPath() + url;
	} else {
		return getContextPath() + '/' + url;
	}
}

function getValueById(id) {
{'fraction_non_alphanumeric': 0.23085914669783753, 'fraction_numerical': 0.0011689070718877848, 'mean_word_length': 4.4696485623003195, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '5346265', 'n_tokens_mistral': 527, 'n_tokens_neox': 510, 'n_words': 119}