<commit_before>const consumeMessages = require('./messages/consumeMessages')
const app = require('kth-node-server')
const systemRoutes = require('./server/systemroutes')
const config = require('./config')
const log = require('./server/logging')

consumeMessages.onDetached = function (msg) {
  log.info('On detached: restart process')
  process.send({action: 'restart'})
}

consumeMessages.start()

app.use(config.proxyPrefixPath.uri, systemRoutes)

// also serve the same urls without the /api prefix. TODO: this can be removed once the old, inprem servers has been removed
app.use('/api' + config.proxyPrefixPath.uri, systemRoutes)
app.start({logger: log})
//<commit_msg>Remove empty comment<commit_after>const consumeMessages = require('./messages/consumeMessages')
const app = require('kth-node-server')
const systemRoutes = require('./server/systemroutes')
const config = require('./config')
const log = require('./server/logging')

consumeMessages.onDetached = function (msg) {
  log.info('On detached: restart process')
  process.send({action: 'restart'})
}

consumeMessages.start()

app.use(config.proxyPrefixPath.uri, systemRoutes)

// also serve the same urls without the /api prefix. TODO: this can be removed once the old, inprem servers has been removed
app.use('/api' + config.proxyPrefixPath.uri, systemRoutes)
app.start({logger: log})
{'fraction_non_alphanumeric': 0.13777777777777778, 'fraction_numerical': 0.0, 'mean_word_length': 5.558252427184466, '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': '2298914', 'n_tokens_mistral': 393, 'n_tokens_neox': 390, 'n_words': 110}