<commit_before>exports.app = function (app) {
  app.get('/error/:code', function (page, model, params) {
    page.render('error:' + params.code)
  });
};

exports.server = function (app) {
  app.all('*', function (req, res, next) {
    next('404: ' + req.url);
  });

  return function (err, req, res, next) {
    if (!err) return next();
    console.error(err.stack || err);
    var status = parseInt(err.message || err.toString());
    status = (status >= 400 && status < 600) ? status : 500;
    res.redirect('/error/' + status);
  };
};<commit_msg>remove console log<commit_after>exports.app = function (app) {
  app.get('/error/:code', function (page, model, params) {
    page.render('error:' + params.code)
  });
};

exports.server = function (app) {
  app.all('*', function (req, res, next) {
    next('404: ' + req.url);
  });

  return function (err, req, res, next) {
    if (!err) return next();
    var status = parseInt(err.message || err.toString());
    status = (status >= 400 && status < 600) ? status : 500;
    res.redirect('/error/' + status);
  };
};
{'fraction_non_alphanumeric': 0.20615671641791045, 'fraction_numerical': 0.022388059701492536, 'mean_word_length': 3.3266129032258065, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6373973', 'n_tokens_mistral': 377, 'n_tokens_neox': 356, 'n_words': 90}