<commit_before>var fork = require('child_process').fork
var path = require('path')
var filewatcher = require('filewatcher')
var ipc = require('./ipc')
var cli = require('./cli')

module.exports = function(args) {

  // The child_process
  var child

  // Parse command line options
  var opts = cli.parseOpts(args)

  // Inject wrap.js into the args array
  var main = cli.injectScript(args, __dirname + '/wrap.js')

  var cfg = require('./cfg')(main, opts)
  var log = require('./log')(cfg)
  var notify = require('./notify')(cfg, log)

  // Run ./dedupe.js as prelaod script
  if (cfg.dedupe) process.env.NODE_DEV_PRELOAD = __dirname + '/dedupe'

  var watcher = filewatcher()

  watcher.on('change', function(file) {
    if (cfg.clear) process.stdout.write('\033[2J\033[H')
    notify('Restarting', file + ' has been modified')
    watcher.removeAll()<commit_msg>fix typo<commit_after>var fork = require('child_process').fork
var path = require('path')
var filewatcher = require('filewatcher')
var ipc = require('./ipc')
var cli = require('./cli')

module.exports = function(args) {

  // The child_process
  var child

  // Parse command line options
  var opts = cli.parseOpts(args)

  // Inject wrap.js into the args array
  var main = cli.injectScript(args, __dirname + '/wrap.js')

  var cfg = require('./cfg')(main, opts)
  var log = require('./log')(cfg)
  var notify = require('./notify')(cfg, log)

  // Run ./dedupe.js as preload script
  if (cfg.dedupe) process.env.NODE_DEV_PRELOAD = __dirname + '/dedupe'

  var watcher = filewatcher()

  watcher.on('change', function(file) {
    if (cfg.clear) process.stdout.write('\033[2J\033[H')
    notify('Restarting', file + ' has been modified')
    watcher.removeAll()
{'fraction_non_alphanumeric': 0.15981470758540822, 'fraction_numerical': 0.008106543138390272, 'mean_word_length': 3.7472527472527473, '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': '4458297', 'n_tokens_mistral': 598, 'n_tokens_neox': 571, 'n_words': 148}