<commit_before>/*
 * broadway.js: Top-level include for the broadway module. 
 *
 * (C) 2011, Nodejitsu Inc.
 * MIT LICENSE
 *
 */

var broadway = exports;

broadway.App      = require('./broadway/app');
broadway.common   = require('./broadway/common');
broadway.features = require('./broadway/features');<commit_msg>[api fix] Properly expose components of broadway<commit_after>/*
 * broadway.js: Top-level include for the broadway module. 
 *
 * (C) 2011, Nodejitsu Inc.
 * MIT LICENSE
 *
 */

var fs = require('fs');

var broadway = exports;

broadway.App      = require('./broadway/app').App;
broadway.common   = require('./broadway/common');
broadway.features = require('./broadway/features');
broadway.plugins  = {};

//
// Define each of our plugins as a lazy loaded `require` statement
//
fs.readdirSync(__dirname + '/broadway/plugins').forEach(function (plugin) {
  plugin = plugin.replace('.js', '');
  broadway.plugins.__defineGetter__(plugin, function () {
    return require('./broadway/plugins/' + plugin);
  });
});
{'fraction_non_alphanumeric': 0.1679611650485437, 'fraction_numerical': 0.007766990291262136, 'mean_word_length': 3.8632075471698113, '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': '6367898', 'n_tokens_mistral': 326, 'n_tokens_neox': 313, 'n_words': 76}