<commit_before>var highlight = require('highlight.js').highlight
  , autohighlight = require('highlight.js').highlightAuto
  , spawn = require('child_process').spawn
  , reqursive = require('reqursive')
  , marked = require('marked')
  , wrench = require('wrench')
  , utils = require('./utils')
  , async = require('async')
  , path = require('path')
  , ejs = require('ejs')
  , fs = require('fs')

var colony = module.exports = {}

marked.setOptions({
    gfm: true,
    sanitize: true,
    pedantic: false,
    highlight: function(code, lang) {
        if (!lang) return
        if (!code) return code

        if (lang === 'js') {
            lang = 'javascript'
            return highlight(lang, value)
        }

        return autohighlight(code).value
    }
})

/**
 * Load the required files' data, plus
 * markdown-formatted readme.
 * 
 * @param  {Array|String} filenames One or more filenames to traverse over.
 * @param  {Object}       options
 * @param  {Function}     callback
 */
colony.generate = function(filenames, options, callback) {
    var options = options || {}
      , callback = callback || function(){}<commit_msg>Fix variable mixup in lib/index.js<commit_after>var highlight = require('highlight.js').highlight
  , autohighlight = require('highlight.js').highlightAuto
  , spawn = require('child_process').spawn
  , reqursive = require('reqursive')
  , marked = require('marked')
  , wrench = require('wrench')
  , utils = require('./utils')
  , async = require('async')
  , path = require('path')
  , ejs = require('ejs')
  , fs = require('fs')

var colony = module.exports = {}

marked.setOptions({
    gfm: true,
    sanitize: true,
    pedantic: false,
    highlight: function(code, lang) {
        if (!lang) return
        if (!code) return code

        if (lang === 'js') {
            lang = 'javascript'
            return highlight(lang, code).value
        }

        return autohighlight(code).value
    }
})

/**
 * Load the required files' data, plus
 * markdown-formatted readme.
 * 
 * @param  {Array|String} filenames One or more filenames to traverse over.
 * @param  {Object}       options
 * @param  {Function}     callback
 */
colony.generate = function(filenames, options, callback) {
    var options = options || {}
      , callback = callback || function(){}
{'fraction_non_alphanumeric': 0.1456352636127917, 'fraction_numerical': 0.0, 'mean_word_length': 2.9505119453924915, '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': '7004078', 'n_tokens_mistral': 713, 'n_tokens_neox': 695, 'n_words': 177}