<commit_before>module.exports = function (app) {
  app.assets = {};

  var css = app.require('./lib/css.js')
    , js = app.require('./lib/js.js')
    , templates = app.require('./lib/templates.js');

  if (app.conf.get('assets:optimize') === 'enabled') {
    app.hook('start').add(-503, css.optimize);
    app.hook('start').add(-502, js.optimize);
    app.hook('start').add(-501, templates.optimize);
  }

  return app.assets;
};<commit_msg>Fixes error with disabled optimization and incomplete conf.<commit_after>module.exports = function (app) {
  app.assets = {};

  if (app.conf.get('assets:optimize') === 'enabled') {
    app.hook('start').add(-503, app.require('./lib/css.js').optimize);
    app.hook('start').add(-502, app.require('./lib/js.js').optimize);
    app.hook('start').add(-501, app.require('./lib/templates.js').optimize);
  }

  return app.assets;
};
{'fraction_non_alphanumeric': 0.22873563218390805, 'fraction_numerical': 0.020689655172413793, 'mean_word_length': 3.733695652173913, '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': '6154018', 'n_tokens_mistral': 310, 'n_tokens_neox': 291, 'n_words': 44}