<commit_before>/* eslint-disable no-console */

const winston = require('winston')
const logger = new winston.Logger({
  transports: [
    new winston.transports.Console({
      name: 'debug-console',
      level: 'debug',
      prettyPrint: true,
      handleExceptions: true,
      json: true,
      colorize: true
    })
  ],
  exitOnError: false // don't crush no error
})
const server = require('./server')
const port = server.get('port')

server.listen(port)

if (module.hot) {
  module.hot.accept('./server', function() {
    console.log('🔁  HMR Reloading `./server`...')
  })
  console.info('✅  Server-side HMR Enabled!')
}

process.on('unhandledRejection', (reason, p) =>
  logger.error('Unhandled Rejection at: Promise ', p, reason)
)

server.on('listening', () =>
  logger.info(`Feathers application started on ${server.get('host')}:${port}`)
)

export default server<commit_msg>json: false in winston<commit_after>/* eslint-disable no-console */

const winston = require('winston')
const logger = new winston.Logger({
  transports: [
    new winston.transports.Console({
      name: 'debug-console',
      level: 'debug',
      prettyPrint: true,
      handleExceptions: true,
      json: false,
      colorize: true
    })
  ],
  exitOnError: false // don't crush no error
})
const server = require('./server')
const port = server.get('port')

server.listen(port)

if (module.hot) {
  module.hot.accept('./server', function() {
    console.log('🔁  HMR Reloading `./server`...')
  })
  console.info('✅  Server-side HMR Enabled!')
}

process.on('unhandledRejection', (reason, p) =>
  logger.error('Unhandled Rejection at: Promise ', p, reason)
)

server.on('listening', () =>
  logger.info(`Feathers application started on ${server.get('host')}:${port}`)
)

export default server
{'fraction_non_alphanumeric': 0.16927374301675976, 'fraction_numerical': 0.0, 'mean_word_length': 3.639896373056995, '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': '1719390', 'n_tokens_mistral': 592, 'n_tokens_neox': 593, 'n_words': 138}