<commit_before>var path       =  require('path')
  , util = require('util')
  , http       =  require('http')
  , director   =  require('director')
  , handlebars =  require('handlebars')
  , hotplates  =  require('hotplates')
  , log        =  require('npmlog')
  , routes     =  require('./routes')
  , config     =  require('./config')
  ;

config.setEnv({ devEnvironment: 'dev' });
log.level = config().logLevel;
log.addLevel('silly', -Infinity, { fg: 'grey' });

function serveSite() {
  var router = new director.http.Router({
      '/'            :  { get :  routes.root.get          }
    , '/favicon.ico' :  { get :  routes.images.getfavicon }
    , '/css/:file'   :  { get :  routes.css.get           }
    , '/images/:file':  { get :  routes.images.get        }
  });

  var server = http.createServer(function (req, res) {

    log.info('app','%s %s', req.method, req.url);
    log.silly('headers', req.headers);     

    router.dispatch(req, res, function (err) {
      if (err) {
        log.error('app', err);
        res.writeHead(404);
        res.end();
      }
    });
  });

  server.listen(3000, function () {
    log.info('app', 'server listening on ', 3000);
  });
}
<commit_msg>no more black background on 'verbose' log<commit_after>var path       =  require('path')
  , util = require('util')
  , http       =  require('http')
  , director   =  require('director')
  , handlebars =  require('handlebars')
  , hotplates  =  require('hotplates')
  , log        =  require('npmlog')
  , routes     =  require('./routes')
  , config     =  require('./config')
  ;

config.setEnv({ devEnvironment: 'dev' });
log.level = config().logLevel;
log.addLevel('verbose', 1000, { fg: 'blue' }, 'verb');
log.addLevel('silly', -Infinity, { fg: 'grey' }, 'sill');

function serveSite() {
  var router = new director.http.Router({
      '/'            :  { get :  routes.root.get          }
    , '/favicon.ico' :  { get :  routes.images.getfavicon }
    , '/css/:file'   :  { get :  routes.css.get           }
    , '/images/:file':  { get :  routes.images.get        }
  });

  var server = http.createServer(function (req, res) {

    log.info('app','%s %s', req.method, req.url);
    log.silly('headers', req.headers);     

    router.dispatch(req, res, function (err) {
      if (err) {
        log.error('app', err);
        res.writeHead(404);
        res.end();
      }
    });
  });

  server.listen(3000, function () {
    log.info('app', 'server listening on ', 3000);
  });
}

{'fraction_non_alphanumeric': 0.19022827392871447, 'fraction_numerical': 0.010412494993992792, 'mean_word_length': 2.3306666666666667, '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': '6547715', 'n_tokens_mistral': 878, 'n_tokens_neox': 849, 'n_words': 158}