<commit_before>var path = require('path')
  , util = require('util')
  , glue = require('cli-interface')
  , logger = require('cli-logger')
  , env = require('nenv')()
  , ttycolor = require('ttycolor')
  , styles = require('./styles/defaults')
  , pkg = require('../package.json')
  , base = path.normalize(path.join(__dirname, '..'))
  , ready = require('./ready')
  , prefix = require('./log-prefix')
  , beforeCommand = require('./before');

var LinkDown = function() {
  glue.apply(this, arguments);
};

util.inherits(LinkDown, glue);

LinkDown.prototype.configure = function() {
  var file = path.join(__dirname, pkg.name + '.md');
  var conf = {
    start: {
      time: new Date(),
      cwd: process.cwd()
    },
    stdin: true,
    trace: env.devel,
    error: {
      locales: path.join(__dirname, 'message', 'error')
    },
    command: {
      dir: path.join(__dirname, 'command'),
      required: false,
      before: beforeCommand
    },
    compiler: {
      input: [file],
      output: path.join(__dirname, this.name() + 'c.js'),
      cache: !env.devel
    },
    manual: {
      dir: path.join(base, 'doc', 'man'),
      dynamic: env.devel
    },
    help: {
      width: 26
    },
    ready: ready
  };
  this
    .configure(conf)
    .usage();
}

LinkDown.prototype.use = function() {

  var opts = {
    level: logger.INFO,
    json: false,
    symbol: '|',
    prefix: prefix
  };

  this
    .use(require('cli-mid-color'),
      {
        defaults: !env.test,
        styles: styles})
    .use(require('cli-mid-logger'), opts)
}

LinkDown.prototype.on = function() {
  this
    .on('color', function(req, arg, value) {
      // force log prefix to show ansi colors
      if(value === true) {<commit_msg>Update coverage.<commit_after>var path = require('path')
  , util = require('util')
  , glue = require('cli-interface')
  , logger = require('cli-logger')
  , env = require('nenv')()
  , ttycolor = require('ttycolor')
  , styles = require('./styles/defaults')
  , pkg = require('../package.json')
  , base = path.normalize(path.join(__dirname, '..'))
  , ready = require('./ready')
  , prefix = require('./log-prefix')
  , beforeCommand = require('./before');

var LinkDown = function() {
  glue.apply(this, arguments);
};

util.inherits(LinkDown, glue);

LinkDown.prototype.configure = function() {
  var file = path.join(__dirname, pkg.name + '.md');
  var conf = {
    start: {
      time: new Date(),
      cwd: process.cwd()
    },
    stdin: true,
    trace: env.devel,
    error: {
      locales: path.join(__dirname, 'message', 'error')
    },
    command: {
      dir: path.join(__dirname, 'command'),
      required: false,
      before: beforeCommand
    },
    compiler: {
      input: [file],
      output: path.join(__dirname, this.name() + 'c.js'),
      cache: !env.devel
    },
    manual: {
      dir: path.join(base, 'doc', 'man'),
      dynamic: env.devel
    },
    help: {
      width: 26
    },
    ready: ready
  };
  this
    .configure(conf)
    .usage();
}

LinkDown.prototype.use = function() {

  var opts = {
    level: logger.INFO,
    json: false,
    symbol: '|',
    prefix: prefix
  };

  this
    .use(require('cli-mid-color'),
      {
        defaults: !env.test,
        styles: styles})
    .use(require('cli-mid-logger'), opts)
}

LinkDown.prototype.on = function() {
  this

    // force log prefix to show ansi colors
    .on('color', function(req, arg, value) {
      /* istanbul ignore next: don't use colors in tests */
      if(value === true) {
{'fraction_non_alphanumeric': 0.1786931818181818, 'fraction_numerical': 0.0011363636363636363, 'mean_word_length': 2.5422535211267605, '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': '6489557', 'n_tokens_mistral': 1182, 'n_tokens_neox': 1157, 'n_words': 255}