<commit_before>/*
Initial test case for node.js support
run test using node on the commandline:
% node jathnodetest.js

var xml = require('/home/dannimda/jath/libxmljs');
var sys = require('sys');
var jath = require('/home/dannimda/jath/jathnode');
var template = [ "//label", { id: "@id", added: "@added" } ];<commit_msg>fixed require()s in node.js tests<commit_after>/*
Initial test case for node.js support
run test using node on the commandline:
% node jathnodetest.js
*/

var xml = require('libxmljs');
var sys = require('sys');
var jath = require('jath');
var template = [ "//label", { id: "@id", added: "@added" } ];
{'fraction_non_alphanumeric': 0.17174959871589085, 'fraction_numerical': 0.0, 'mean_word_length': 4.777777777777778, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '5766367', 'n_tokens_mistral': 210, 'n_tokens_neox': 209, 'n_words': 68}