<commit_before>var fs = require('fs')
var nimoy = require('./_nimoy')
var configFlag = process.argv[2] 
var exec = require('child_process').exec
var timeModified = ''
var cssMod = ''

var conf = !(configFlag) 
  ? require('./config.json')
  : require(process.argv[2])

if (conf.watch) {
  fs.watch(__dirname+'/lib', libDirChange)
  fs.watch(__dirname+'/static/style.styl', compileCSS)
}

function compileCSS (e,f) {
  if (e === 'change') {
    var ctime = fs.statSync(__dirname+'/static/style.styl').ctime.toString()
    if (cssMod !== ctime) {
      exec('notify-send "NIMOY: CSS COMPILED!"',function (e,s,es) {})
      exec('stylus static/style.styl',function (e,s,es) {})
      cssMod = ctime
    }
  }

}

function libDirChange (e,f) {
  if (e === 'change') {
    var ctime = fs.statSync(__dirname+'/lib/'+f).ctime.toString()
    if (timeModified !== ctime) {
      nimoy.compile(conf, function () {
        exec('notify-send "NIMOY: LIB COMPILED!"',function (e,s,es) {})
        process.stdout.write('wrote bundle to '+__dirname+'/'+conf.path_static+'/bundle.js'+'\n')
      })
      timeModified = ctime
    }
  }
}

nimoy.boot(conf, function (kill) {
  process.stdout.write('up on port '+conf.port+' & host '+conf.host+'\n')
  nimoy.compile(conf, function () {
    process.stdout.write('wrote bundle to '+__dirname+'/'+conf.path_static+'/bundle.js'+'\n')
  })
})
<commit_msg>fix boot format to fit 80cols<commit_after>var fs = require('fs')
var nimoy = require('./_nimoy')
var configFlag = process.argv[2] 
var exec = require('child_process').exec
var timeModified = ''
var cssMod = ''

var conf = !(configFlag) 
  ? require('./config.json')
  : require(process.argv[2])

if (conf.watch) {
  fs.watch(__dirname+'/lib', libDirChange)
  fs.watch(__dirname+'/static/style.styl', compileCSS)
}

function compileCSS (e,f) {
  if (e === 'change') {
    var ctime = fs.statSync(__dirname+'/static/style.styl').ctime.toString()
    if (cssMod !== ctime) {
      exec('notify-send "NIMOY: CSS COMPILED!"',function (e,s,es) {})
      exec('stylus static/style.styl',function (e,s,es) {})
      cssMod = ctime
    }
  }

}

function libDirChange (e,f) {
  if (e === 'change') {
    var ctime = fs.statSync(__dirname+'/lib/'+f).ctime.toString()
    if (timeModified !== ctime) {
      nimoy.compile(conf, function () {
        exec('notify-send "NIMOY: LIB COMPILED!"',function (e,s,es) {})

        process.stdout.write('wrote bundle to '
                             + __dirname+'/'+conf.path_static
                             + '/bundle.js'
                             +'\n')
      })
      timeModified = ctime
    }
  }
}

nimoy.boot(conf, function (kill) {
  process.stdout.write('up on port '+conf.port+' & host '+conf.host+'\n')
  nimoy.compile(conf, function () {
    process.stdout.write('wrote bundle to '+__dirname+'/'+conf.path_static+'/bundle.js'+'\n')
  })
})

{'fraction_non_alphanumeric': 0.19143752175426385, 'fraction_numerical': 0.002088409328228333, 'mean_word_length': 3.159189580318379, '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': '1096950', 'n_tokens_mistral': 1028, 'n_tokens_neox': 1021, 'n_words': 185}