<commit_before>
/*

  Config.js

*/

var assign = require("lodash/assign"),
    Utils  = require("./utils"),
    config = require(Utils.makePathAbsolute("sneakers.config.js"));


// Things like extensions and mime types should be automated
var defaults = {
  fonts: [
    { path : "./fonts",   url : "/fonts",   ext : ["ttf", "otf", "eot", "woff", "svg"] }
  ],
  images: [
    { path : "./images",  url : "/images"  }
  ],
  scripts: [
    { path : "./scripts", url : "/scripts", ext : "js", bundleFolders : true },
  ],
  styles: [
    { path : "./styles",  url : "/styles",  ext : "css" }
  ],
  statics: [
    { path : "./vendor",  url : "/vendor" }
  ],
  views: [
    { path : "./views", url : "/", ext : "html" }
  ]
};


module.exports = function() {

  // Copy defaults and attach to globals
  config = assign(defaults, config);

  // Store engines
  global.engines = config.engines || {};

  // Store global variables
  global.vars = config.globals || {};
  if (/^prod/.test(process.env.NODE_ENV))
    global.vars = assign(global.vars, config["globals:production"] || {});

  return config;

}<commit_msg>config: removes global engines reference<commit_after>
/*

  Config.js

*/

var assign = require("lodash/assign"),
    Utils  = require("./utils"),
    config = require(Utils.makePathAbsolute("sneakers.config.js"));


// Things like extensions and mime types should be automated
var defaults = {
  fonts: [
    { path : "./fonts",   url : "/fonts",   ext : ["ttf", "otf", "eot", "woff", "svg"] }
  ],
  images: [
    { path : "./images",  url : "/images"  }
  ],
  scripts: [
    { path : "./scripts", url : "/scripts", ext : "js", bundleFolders : true },
  ],
  styles: [
    { path : "./styles",  url : "/styles",  ext : "css" }
  ],
  statics: [
    { path : "./vendor",  url : "/vendor" }
  ],
  views: [
    { path : "./views", url : "/", ext : "html" }
  ]
};


module.exports = function() {

  // Copy defaults and attach to globals
  config = assign(defaults, config);

  // Store global variables
  global.vars = config.globals || {};
  if (/^prod/.test(process.env.NODE_ENV))
    global.vars = assign(global.vars, config["globals:production"] || {});

  return config;

}
{'fraction_non_alphanumeric': 0.20355191256830601, 'fraction_numerical': 0.0, 'mean_word_length': 2.6986531986531985, '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': '3899997', 'n_tokens_mistral': 760, 'n_tokens_neox': 732, 'n_words': 180}