<commit_before>'use strict';

/**
 * @fileoverview Punchcard CMS Demo
 */
const punchcard = require('punchcard-cms');
const config = require('config');

const application = () => {
  return punchcard();
};

/*
  @description run the server if and only if this file is being run directly. Ignoring from code coverage as it's not possible to actually cover these lines.
 */
/* istanbul ignore next */
if (!module.parent) {
  application.then(app => {
    app.listen(config.env.port, () => {
      // Mean to console.log out, so disabling
      console.log(`Server starting on ${config.env.url}`); // eslint-disable-line no-console
    });
  }).catch(e => {
    // Mean to console.log out, so disabling
    console.error(e.stack); // eslint-disable-line no-console<commit_msg>:bug: Fix Application start<commit_after>'use strict';

/**
 * @fileoverview Punchcard CMS Demo
 */
const punchcard = require('punchcard-cms');
const config = require('config');

const application = () => {
  return punchcard();
};

/*
  @description run the server if and only if this file is being run directly. Ignoring from code coverage as it's not possible to actually cover these lines.
 */
/* istanbul ignore next */
if (!module.parent) {
  application().then(app => {
    app.listen(config.env.port, () => {
      // Mean to console.log out, so disabling
      console.log(`Server starting on ${config.env.url}`); // eslint-disable-line no-console
    });
  }).catch(e => {
    // Mean to console.log out, so disabling
    console.error(e.stack); // eslint-disable-line no-console
{'fraction_non_alphanumeric': 0.147247119078105, 'fraction_numerical': 0.0, 'mean_word_length': 3.390449438202247, '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': '1927803', 'n_tokens_mistral': 467, 'n_tokens_neox': 456, 'n_words': 146}