<commit_before>var CommandManager = require('../command-manager');
var FS = require('../fs');
//CommandManager.register('pwd', pwd);

function pwd(args, stdin, stdout, stderr, next) {
  var _pwd = FS.currentPath;

  if (args === true) {
    _pwd = _pwd.replace(FS.home, '~');
  }

  if (stdout) {
    stdout.write(_pwd);
    next();
  } else {
    return _pwd;
  }
}

module.exports = pwd;<commit_msg>expose pwd as command - was commented?!?!<commit_after>var CommandManager = require('../command-manager');
var FS = require('../fs');

function pwd(args, stdin, stdout, stderr, next) {
  var _pwd = FS.currentPath;

  if (args === true) {
    _pwd = _pwd.replace(FS.home, '~');
  }

  if (stdout) {
    stdout.write(_pwd);
    next();
  } else {
    return _pwd;
  }
}

CommandManager.register('pwd', pwd);
module.exports = pwd;
{'fraction_non_alphanumeric': 0.18719806763285024, 'fraction_numerical': 0.0, 'mean_word_length': 3.363157894736842, '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': '2598484', 'n_tokens_mistral': 320, 'n_tokens_neox': 308, 'n_words': 66}