<commit_before>'use strict';

/**
 * @fileoverview Punchcard CMS Init
 */
const express = require('express');
const config = require('config');

const users = require('./lib/users');
const indexRoutes = require('./lib/routes/index');
const contentTypesRoutes = require('./lib/routes/content-types');
const init = require('./lib/init');

const application = express();

// Initialize the Database
const initApp = () => {
  return init(application).then(initialized => {
    const app = initialized;

    /*
      @name home page route
      @description create route for the site landing page
     */
    app.use('/', indexRoutes);

    /*
      @name content types route
      @description create routes for all content type configurations in ./content-types
     */
    app.use('/content', contentTypesRoutes);

    /*
      @name users route
      @description create routes for users
     */
    app.use('/users', users);

    /*
      @name 404
      @description catch 404 and forward to error handler
     */
    app.use((req, res, next) => {
      const err = new Error('Not Found');
      err.status = 404;
      next(err);
    });

    // error handlers

    // development error handler
    // will print stacktrace
    if (app.get('env') === 'development') {
      app.use((err, req, res) => {
        res.status(err.status || 500);
        res.render('error', {
          message: err.message,
          error: err,
        });
      });
    }
<commit_msg>:bug: not correctly pointing to routes<commit_after>'use strict';

/**
 * @fileoverview Punchcard CMS Init
 */
const express = require('express');
const config = require('config');

const users = require('./lib/users');
const indexRoutes = require('./lib/routes/index');
const contentTypesRoutes = require('./lib/routes/content-types');
const init = require('./lib/init');

const application = express();

// Initialize the Database
const initApp = () => {
  return init(application).then(initialized => {
    const app = initialized;

    /*
      @name home page route
      @description create route for the site landing page
     */
    app.use('/', indexRoutes);

    /*
      @name content types route
      @description create routes for all content type configurations in ./content-types
     */
    app.use('/content', contentTypesRoutes);

    /*
      @name users route
      @description create routes for users
     */
    app.use('/users', users.userRoutes);

    /*
      @name 404
      @description catch 404 and forward to error handler
     */
    app.use((req, res, next) => {
      const err = new Error('Not Found');
      err.status = 404;
      next(err);
    });

    // error handlers

    // development error handler
    // will print stacktrace
    if (app.get('env') === 'development') {
      app.use((err, req, res) => {
        res.status(err.status || 500);
        res.render('error', {
          message: err.message,
          error: err,
        });
      });
    }

{'fraction_non_alphanumeric': 0.14434724091520862, 'fraction_numerical': 0.008075370121130552, 'mean_word_length': 2.436994219653179, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '3237226', 'n_tokens_mistral': 849, 'n_tokens_neox': 810, 'n_words': 243}