<commit_before>/**
 * common api
 */
var print;
var exports;



/**
 * get root path
 */
function getRootPath() {
	var curWwwPath = window.document.location.href;
	var pathName = window.document.location.pathname;
	var pos = curWwwPath.indexOf(pathName);
	var localhostPath = curWwwPath.substring(0, pos);
	var projectName = pathName.substring(0, pathName.substr(1).indexOf('/') + 1);

	return (localhostPath + projectName);
}

/**
 * print table
 * @param cont		cont=$('#xxxTable').html();
 */
function printTable(cont){
	var wind=window.open('about:blank', '', '');
    
    wind.document.write(
    		'<style>@media print{.no-print{display:none;}.no-wrap{word-break: ' + 
    		'keep-all;white-space:nowrap;}} @media all{th,td{border:1px solid #000;}' + 
    		'table{border-collapse:collapse;width:95%;}}</style><table>'+cont+'</table>');
    wind.print();
}

/**
 * export excel
 * @param url	url<commit_msg>solve print css problem<commit_after>/**
 * common api
 */
var print;
var exports;



/**
 * get root path
 */
function getRootPath() {
	var curWwwPath = window.document.location.href;
	var pathName = window.document.location.pathname;
	var pos = curWwwPath.indexOf(pathName);
	var localhostPath = curWwwPath.substring(0, pos);
	var projectName = pathName.substring(0, pathName.substr(1).indexOf('/') + 1);

	return (localhostPath + projectName);
}

/**
 * print table
 * @param cont		cont=$('#xxxTable').html();
 */
function printTable(cont){
	var wind=window.open('about:blank', '', '');
    
    wind.document.write(
    		'<style>' +
    			'@media print{' +
    				'.no-print{' + 
    					'display:none;' + 
    				'}' + 
    				'.no-wrap{' + 
    					'word-break: keep-all;' + 
    					'white-space:nowrap;' + 
    				'}' + 
    			'}' + 
    			'@media all{' + 
    				'th,td{' + 
    					'border:1px solid #000;' + 
    				'}' + 
    				'table{' + 
    					'border-collapse:collapse;width:95%;' + 
    				'}' + 
    			'}' + 
    			'@page{' +
    				'size: landscape' +
    			'}' +
    		'</style>' + 
    		'<table>'+cont+'</table>');
    wind.print();
}

/**
 * export excel
 * @param url	url
{'fraction_non_alphanumeric': 0.19239793524167056, 'fraction_numerical': 0.009385265133740028, 'mean_word_length': 2.780141843971631, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '7556488', 'n_tokens_mistral': 848, 'n_tokens_neox': 773, 'n_words': 130}