<commit_before>import { startServer, logger } from "./../server/index"

import SocketHandler from "./socket"
import RouteHandler from "./route"
import AuthenticationHandler from "./authentication"

export { logger }

export default _startServer

export const __useDefault = true

if (require.main === module) {
  _startServer()
}

function _startServer(port = 3000) {
  return startServer(port, {
    SocketHandler,
    RouteHandler,
    AuthenticationHandler
  })
}<commit_msg>clear universe state on startup<commit_after>import { startServer, logger } from "./../server/index"

import SocketHandler from "./socket"
import RouteHandler from "./route"
import AuthenticationHandler from "./authentication"

import Universe from "./models/universe"

export { logger }

export default _startServer

export const __useDefault = true

if (require.main === module) {
  _startServer()
}

function _startServer(port = 3000) {
  Universe.init()

  return startServer(port, {
    SocketHandler,
    RouteHandler,
    AuthenticationHandler
  })
}
{'fraction_non_alphanumeric': 0.10628019323671498, 'fraction_numerical': 0.007729468599033816, 'mean_word_length': 4.395833333333333, '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': '3050045', 'n_tokens_mistral': 297, 'n_tokens_neox': 283, 'n_words': 85}