<commit_before>var path = require('path'),
    url = require('url'),
    async = require('async'),
    exec = require('child_process').exec,
    icomoonPath = require.resolve('icomoon-phantomjs'),
    vm = require('vm'),
    Tempfile = require('temporary/lib/file'),
    request = require('request'),
    Zip = require('node-zip');

function IcoMoonPhantomJsEngine(options) {
  // Create a place to store files
  this.files = [];
}
IcoMoonPhantomJsEngine.prototype = {
  // Method to add new SVGs
  addSvg: function (file, cb) {
    // Save the path for later
    this.files.push(file);
    cb();
  },
  // Method to export resulting fonts/map
  'export': function (callback) {
    // Set up shared variables
    var files = this.files,
        tmp,
        zipFiles,
        namespace,
        retObj = {};

    // If there are no files, exit early
    if (files.length === 0) {
      return callback(new Error('No files were provided to `fontsmith`. Exiting early.'));
    }

    // In series
    async.waterfall([
      // Write paths to file
      function writeTmpFile (cb) {
        tmp = new Tempfile();
        tmp.writeFile(JSON.stringify(files), 'utf8', cb);
      },
      // Invoke icomoon-phantomjs
      function execIcoMoon (cb) {
        var tmpPath = tmp.path;
        // TODO: Move onto programatic API once its coded
        exec('phantomjs ' + icomoonPath + ' ' + tmpPath, cb);
      },
      // Handle any stderr errors
      function handleIcoMoon (stdout, stderr, cb) {
        // If there is an stderr
        if (stderr) {
          // Strip out lines that are complaints about fonts
          // https://github.com/twolfson/grunt-fontsmith/issues/10
          var errLines = stderr.split(/\n/g);
          var validErrLines = errLines.filter(function (line) {
            if (line.match(/(WARNING: Method userSpaceScaleFactor|CoreText performance note:)/)) {
              return false;
            }

            // Filter out falsy (empty) lines
            return line;
          });
<commit_msg>Fixed spaces in file path<commit_after>var path = require('path'),
    url = require('url'),
    async = require('async'),
    exec = require('child_process').exec,
    icomoonPath = require.resolve('icomoon-phantomjs'),
    vm = require('vm'),
    Tempfile = require('temporary/lib/file'),
    request = require('request'),
    Zip = require('node-zip');

function IcoMoonPhantomJsEngine(options) {
  // Create a place to store files
  this.files = [];
}
IcoMoonPhantomJsEngine.prototype = {
  // Method to add new SVGs
  addSvg: function (file, cb) {
    // Save the path for later
    this.files.push(file);
    cb();
  },
  // Method to export resulting fonts/map
  'export': function (callback) {
    // Set up shared variables
    var files = this.files,
        tmp,
        zipFiles,
        namespace,
        retObj = {};

    // If there are no files, exit early
    if (files.length === 0) {
      return callback(new Error('No files were provided to `fontsmith`. Exiting early.'));
    }

    // In series
    async.waterfall([
      // Write paths to file
      function writeTmpFile (cb) {
        tmp = new Tempfile();
        tmp.writeFile(JSON.stringify(files), 'utf8', cb);
      },
      // Invoke icomoon-phantomjs
      function execIcoMoon (cb) {
        var tmpPath = tmp.path;
        // TODO: Move onto programatic API once its coded
        exec('phantomjs "' + icomoonPath + '" "' + tmpPath + '"', cb);
      },
      // Handle any stderr errors
      function handleIcoMoon (stdout, stderr, cb) {
        // If there is an stderr
        if (stderr) {
          // Strip out lines that are complaints about fonts
          // https://github.com/twolfson/grunt-fontsmith/issues/10
          var errLines = stderr.split(/\n/g);
          var validErrLines = errLines.filter(function (line) {
            if (line.match(/(WARNING: Method userSpaceScaleFactor|CoreText performance note:)/)) {
              return false;
            }

            // Filter out falsy (empty) lines
            return line;
          });

{'fraction_non_alphanumeric': 0.1260132645541636, 'fraction_numerical': 0.0019651191353475803, 'mean_word_length': 2.1837372947615323, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '3495825', 'n_tokens_mistral': 1211, 'n_tokens_neox': 1178, 'n_words': 338}