<commit_before>var es = require('event-stream');
var fetch = require('../').fetch;

if (!module.parent) {
  var user = process.argv[2] || process.env['MMCSV_USER']
    , pass = process.argv[3] || process.env['MMCSV_PASS']
    , days = process.argv[4] || process.env['MMCSV_DAYS'] || 10
    , pure = process.env['MMCSV_PARSE'] ? null : true;
    ;
  if (user && pass && days) {
    var out = pure ? es.pipeline(es.through( ), process.stdout) : null;
    console.log('#', process.argv[1], user, pass, days);
    fetch(user, pass, days, function(err, data) {
      if (!err) {
        console.log("data:", data);
        console.log("data.length:", data.length);
      } else {
        console.log('ERROR', err);<commit_msg>don't print password<commit_after>var es = require('event-stream');
var fetch = require('../').fetch;

if (!module.parent) {
  var user = process.argv[2] || process.env['MMCSV_USER']
    , pass = process.argv[3] || process.env['<PASSWORD>']
    , days = process.argv[4] || process.env['MMCSV_DAYS'] || 10
    , pure = process.env['MMCSV_PARSE'] ? null : true;
    ;
  if (user && pass && days) {
    var out = pure ? es.pipeline(es.through( ), process.stdout) : null;
    console.log('#', process.argv[1], user, days);
    fetch(user, pass, days, function(err, data) {
      if (!err) {
        console.log("data:", data);
        console.log("data.length:", data.length);
      } else {
        console.log('ERROR', err);
{'fraction_non_alphanumeric': 0.20235620235620236, 'fraction_numerical': 0.008316008316008316, 'mean_word_length': 3.197674418604651, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '1153889', 'n_tokens_mistral': 496, 'n_tokens_neox': 492, 'n_words': 104}