<commit_before>/** index.js
* @file: /src/app/routes/index.js
* @description: Main file for loading express routes
* @parameters: Object(app), Object(resources)
* @returns: Express routes
*/

module.exports = function (app, resources) {
  //Redirect checking
  require('./redirect')(app, resources)

  //Auth routes
  require('./auth')(app)

  //Ajax routes
  require('./ajax/unauthenticated')(app, resources)
  require('./ajax/authenticated')(app, resources)
  require('./ajax/privileged')(app, resources)

  //Page routes
  require('./pages/unauthenticated')(app, resources)
  require('./pages/authenticated')(app, resources)
  require('./pages/privileged')(app, resources)

  //Post routes
  require('./post')(app, resources)

  //Error (404/500) routes
  require('./error')(app, resources)
}<commit_msg>Load renamed file<commit_after>/** index.js
* @file: /src/app/routes/index.js
* @description: Main file for loading express routes
* @parameters: Object(app), Object(resources)
* @returns: Express routes
*/

module.exports = function (app, resources) {
  //Setup routes required before everything else
  require('./setup')(app, resources)

  //Auth routes
  require('./auth')(app)

  //Ajax routes
  require('./ajax/unauthenticated')(app, resources)
  require('./ajax/authenticated')(app, resources)
  require('./ajax/privileged')(app, resources)

  //Page routes
  require('./pages/unauthenticated')(app, resources)
  require('./pages/authenticated')(app, resources)
  require('./pages/privileged')(app, resources)

  //Post routes
  require('./post')(app, resources)

  //Error (404/500) routes
  require('./error')(app, resources)
}
{'fraction_non_alphanumeric': 0.18026796589524968, 'fraction_numerical': 0.007308160779537149, 'mean_word_length': 4.494983277591973, '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': '886663', 'n_tokens_mistral': 515, 'n_tokens_neox': 489, 'n_words': 112}