<commit_before>/**
 * Created by nuintun on 2015/4/27.
 */

'use strict';

var duplexer = require('duplexer');
var util = require('./lib/util');
var cache = require('./lib/cache');
var include = require('./lib/include');
var concat = require('./lib/concat');

/**
 * main
 * @param options
 * @returns {Duplexer|*}
 */
function main(options){
  var input = include(options);
  var output = concat();
  var duplex = duplexer({ objectMode: true }, input, output);

  input.pipe(output);

  return duplex;
}

main.cache = {};
main.cache.clean = cache.clean;
main.cwd = util.cwd;
main.debug = util.debug;
main.colors = util.colors;

/**
 * exports module
 */
module.exports = main;
<commit_msg>use async plugin<commit_after>/**
 * Created by nuintun on 2015/4/27.
 */

'use strict';

var duplexer = require('duplexer');
var util = require('./lib/util');
var cache = require('./lib/cache');
var include = require('./lib/include');
var concat = require('./lib/concat');

/**
 * main
 * @param options
 * @returns {Duplexer|*}
 */
function main(options){
  var input = include(options);
  var output = concat();
  var duplex = duplexer({ objectMode: true }, input, output);

  input.pipe(output);

  return duplex;
}

main.cache = {};
main.cache.clean = cache.clean;
main.cwd = util.cwd;
main.debug = util.debug;
main.colors = util.colors;
main.defaults = {};
main.defaults.plugins = require('./lib/plugins').defaults;

/**
 * exports module
 */
module.exports = main;

{'fraction_non_alphanumeric': 0.18673050615595074, 'fraction_numerical': 0.009575923392612859, 'mean_word_length': 3.8125, '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': '2024740', 'n_tokens_mistral': 500, 'n_tokens_neox': 477, 'n_words': 123}