<commit_before>var cp = require("child_process");
var path = require("path");
var rooted = path.join.bind(path, __dirname, "..");

module.exports = function retrieveExternalDependencies() {
  if (process.platform === "win32") {
    return Promise.resolve("");
  }<commit_msg>escape the spaces in dir for shell command<commit_after>var cp = require("child_process");
var path = require("path");
var rooted = function (dir) {
  var fullPath = path.join(__dirname, "..", dir);
  var escapedPathForShell = fullPath.replace(/ /g, "\\ ");
  return escapedPathForShell;
};

module.exports = function retrieveExternalDependencies() {
  if (process.platform === "win32") {
    return Promise.resolve("");
  }
{'fraction_non_alphanumeric': 0.1630901287553648, 'fraction_numerical': 0.005722460658082976, 'mean_word_length': 4.932203389830509, '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': '5307881', 'n_tokens_mistral': 207, 'n_tokens_neox': 198, 'n_words': 53}