<commit_before>module.exports = function(err, res) {
  console.log(err);
  res.status(500).json({ msg: 'server errored' });
};<commit_msg>updated handle_err to include optional status code and message<commit_after>module.exports = function(err, res, status, message) {
  console.log(err);
  res.status(status || 500).json({ msg: message || 'server error' });
};
{'fraction_non_alphanumeric': 0.16620498614958448, 'fraction_numerical': 0.01662049861495845, 'mean_word_length': 5.830188679245283, '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': '7084153', 'n_tokens_mistral': 118, 'n_tokens_neox': 111, 'n_words': 28}