<commit_before>/*globals require*/

var XMLTools = require("XMLTools").XMLTools;
var parser = new XMLTools('<animals><dog><name>Rufus</name><breed>labrador</breed></dog><dog><name>Marty</name><breed>whippet</breed></dog><cat name="Matilda"/></animals>');
Ti.API.info(parser.toJSON());
<commit_msg>Updated init sample<commit_after>/*globals require*/

var XMLTools = require("XMLTools");
var parser = new XMLTools('<animals><dog><name>Rufus</name><breed>labrador</breed></dog><dog><name>Marty</name><breed>whippet</breed></dog><cat name="Matilda"/></animals>');
Ti.API.info(parser.toJSON());

{'fraction_non_alphanumeric': 0.23181049069373943, 'fraction_numerical': 0.0, 'mean_word_length': 9.206896551724139, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 0, '>': 33, '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': '1096497', 'n_tokens_mistral': 210, 'n_tokens_neox': 203, 'n_words': 24}