<commit_before>/**
 *  @file routes.js
 */
const express = require('express'),
  storage = require('node-persist')

const categorize = require('./middlewares').categorize,
  validateGroup = require('./middlewares').validateGroup,
  handlers = require('./middlewares').handlers

exports.init = (bot) => {
  storage.initSync()

  const router = express.Router()

  const url = '/bot/:id/:name'

  handlers = handlers.map(handle => handle(bot))

  // handle group messages
  router.post.apply(router, [url, categorize, validateGroup].concat(handlers))

  // handle user messages
  router.post.apply(router, [url].concat(handlers))

  return router
}<commit_msg>Fix assigning to constant<commit_after>/**
 *  @file routes.js
 */
const express = require('express'),
  storage = require('node-persist')

const categorize = require('./middlewares').categorize,
  validateGroup = require('./middlewares').validateGroup

let handlers = require('./middlewares').handlers

exports.init = (bot) => {
  storage.initSync()

  const router = express.Router()

  const url = '/bot/:id/:name'

  handlers = handlers.map(handle => handle(bot))

  // handle group messages
  router.post.apply(router, [url, categorize, validateGroup].concat(handlers))

  // handle user messages
  router.post.apply(router, [url].concat(handlers))

  return router
}
{'fraction_non_alphanumeric': 0.1586466165413534, 'fraction_numerical': 0.0, 'mean_word_length': 4.366935483870968, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '1001186', 'n_tokens_mistral': 409, 'n_tokens_neox': 397, 'n_words': 86}