<commit_before>var sys = require("sys");

function print (m, cr) { process.stdio.writeError(m+(cr===false?"":"\n")); return print };

var npm = require("./npm"), sys = require("sys");
npm.install("http://github.com/isaacs/npm/tarball/master", function (er, ok) {
  if (er) {
    sys.error("\nFailed after "+ok.length+" step(s)\n");
    throw er;
  }
  // sys.debug(sys.inspect(npm.get("npm")));
  npm.activate("npm", npm.get("npm")._versions[0], function (er, ok) {
    if (er) {
      sys.error("\nFailed to activate\n");
      throw er;
    }
    print("It worked!");
  });
})<commit_msg>Report 0 steps if we didn't even get that far.<commit_after>var sys = require("sys");

function print (m, cr) { process.stdio.writeError(m+(cr===false?"":"\n")); return print };

var npm = require("./npm"), sys = require("sys");
npm.install("http://github.com/isaacs/npm/tarball/master", function (er, ok) {
  if (er) {
    sys.error("\nFailed after "+(ok && ok.length || 0)+" step(s)\n");
    throw er;
  }
  // sys.debug(sys.inspect(npm.get("npm")));
  npm.activate("npm", npm.get("npm")._versions[0], function (er, ok) {
    if (er) {
      sys.error("\nFailed to activate\n");
      throw er;
    }
    print("It worked!");
  });
})
{'fraction_non_alphanumeric': 0.23491027732463296, 'fraction_numerical': 0.0032626427406199023, 'mean_word_length': 3.5613382899628254, 'pattern_counts': {'":': 2, '<': 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': '2170671', 'n_tokens_mistral': 458, 'n_tokens_neox': 434, 'n_words': 95}