<commit_before>import jsonrpc = module('../api/jsonrpc')
import type = module('../api/type')
import dcase = module('../api/dcase')

jsonrpc.add('version', function(params: any, callback: type.Callback) {
	callback.onSuccess('version 1.0');
});

jsonrpc.addModule(dcase);
// for (var fn in dcase) {
// 	if (typeof dcase[fn] === 'function') jsonrpc.add(fn, dcase[fn]);
// }

export var httpHandler = jsonrpc.httpHandler;<commit_msg>refactoring<commit_after>import jsonrpc = module('../api/jsonrpc')
import type = module('../api/type')
import dcase = module('../api/dcase')

jsonrpc.add('version', function(params: any, callback: type.Callback) {
	callback.onSuccess('version 1.0');
});

jsonrpc.addModule(dcase);

export var httpHandler = jsonrpc.httpHandler;
{'fraction_non_alphanumeric': 0.190224570673712, 'fraction_numerical': 0.005284015852047556, 'mean_word_length': 5.213114754098361, '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': '5240425', 'n_tokens_mistral': 255, 'n_tokens_neox': 251, 'n_words': 52}