<commit_before>require('./lib/ometa-js/ometa-node');
var fs = require('fs')
var sys = require('sys')

var ometaCode = fs.readFileSync('./parsers/xml.ometa') + "\n"
try {
	ometa(ometaCode)
	
	var calcSource = fs.readFileSync('./sample_input/test2.xml');
	
	var tree = XMLParser.matchAll(calcSource, "xml");
	sys.puts(tree)<commit_msg>Name fix<commit_after>require('./lib/ometa-js/ometa-node');
var fs = require('fs')
var sys = require('sys')

var ometaCode = fs.readFileSync('./parsers/xml.ometa') + "\n"
try {
	ometa(ometaCode)
	
	var code = fs.readFileSync('./sample_input/test2.xml');
	
	var tree = XMLParser.matchAll(code, "xml");
	sys.puts(tree)
{'fraction_non_alphanumeric': 0.1941448382126348, 'fraction_numerical': 0.0030816640986132513, 'mean_word_length': 4.803571428571429, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 6}, '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': '5483656', 'n_tokens_mistral': 252, 'n_tokens_neox': 242, 'n_words': 42}