<commit_before>﻿define(['../cli-js/rpc'],
function(host) {
	var makeinf=function(name) {
		return (
			function(opts,callback) {
				host.exec(callback,0,"yase",name,opts);
			});
	}
	
	var exports={};
	
	exports.initialize=makeinf("initialize");
	exports.phraseSearch=makeinf("phraseSearch");
	exports.getText=makeinf("getText");
	exports.getTextByTag=makeinf("getTextByTag");
	exports.closestTag=makeinf("closestTag");
	exports.getTagAttr=makeinf("getTagAttr");
	exports.getTagInRange=makeinf("getTagInRange");
	
	exports.fillText=makeinf("fillText");
	exports.getRange=makeinf("getRange");
	exports.findTag=makeinf("findTag");
	exports.getRaw=makeinf("getRaw");
	exports.getBlob=makeinf("getBlob");

//	exports.getpage=makeinf("getpage");
//	exports.fuzzysearch=makeinf("fuzzysearch");
	//exports.version='0.0.20'; //this is a quick hack
	host.exec(function(err,data){
		exports.version=data;
	},0,"yase","version",{});

	return exports;
});<commit_msg>add missing interface in server mode<commit_after>﻿define(['../cli-js/rpc'],
function(host) {
	var makeinf=function(name) {
		return (
			function(opts,callback) {
				host.exec(callback,0,"yase",name,opts);
			});
	}
	
	var exports={};
	
	exports.initialize=makeinf("initialize");
	exports.phraseSearch=makeinf("phraseSearch");
	exports.getText=makeinf("getText");
	exports.getTextByTag=makeinf("getTextByTag");
	exports.closestTag=makeinf("closestTag");
	exports.getTagAttr=makeinf("getTagAttr");
	exports.getTagInRange=makeinf("getTagInRange");
	
	exports.fillText=makeinf("fillText");
	exports.getRange=makeinf("getRange");
	exports.findTag=makeinf("findTag");
	exports.getRaw=makeinf("getRaw");
	exports.getBlob=makeinf("getBlob");
	exports.customfunc=makeinf("customfunc");
	exports.getTagInRange=makeinf("getTagInRange");
	

//	exports.getpage=makeinf("getpage");
//	exports.fuzzysearch=makeinf("fuzzysearch");
	//exports.version='0.0.20'; //this is a quick hack
	host.exec(function(err,data){
		exports.version=data;
	},0,"yase","version",{});

	return exports;
});
{'fraction_non_alphanumeric': 0.1882700837851158, 'fraction_numerical': 0.005914243469689502, 'mean_word_length': 7.252032520325203, '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': '4307939', 'n_tokens_mistral': 732, 'n_tokens_neox': 691, 'n_words': 75}