<commit_before>/*jslint indent:2,white:true,sloppy:true,node:true */
/*
 * freedom.js Node runtime
 */

'use strict';

var fdom = module.exports = {};

require('../../freedom.js');<commit_msg>bit of progress on node entrypoint.<commit_after>
/*jslint indent:2,white:true,sloppy:true,node:true */
/*
 * freedom.js Node runtime
 */

'use strict';

var sources = [
  '/..',
  '/../proxy',
  '/../../interface'
];

sources.forEach(function(dir) {
  require('fs').readdirSync(__dirname + dir).forEach(function(file) {
    if (file.match(/.+\.js/) !== null) {
      require(__dirname + dir + '/' + file);
    }
  });
});

module.exports.freedom = fdom.setup(global, undefined, {
  portType: 'nodeVM'
});
delete global.fdom;
{'fraction_non_alphanumeric': 0.2175732217573222, 'fraction_numerical': 0.002789400278940028, 'mean_word_length': 3.573248407643312, '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': '2708765', 'n_tokens_mistral': 255, 'n_tokens_neox': 252, 'n_words': 43}