<commit_before>/**
 * @module server
 *
 * Start up the Trails Application.
 */

'use strict'

const app = require('./')
const TrailsApp = require('trails')
const server = new TrailsApp(app)

server.start().catch(err => server.stop(err))
<commit_msg>[trails] update server.js to be compat with v2<commit_after>/**
 * @module server
 *
 * Start up the Trails Application.
 */

'use strict'

const TrailsApp = require('trails')
const app = require('./')
const server = new TrailsApp(app)

server.start().catch(err => server.stop(err))

{'fraction_non_alphanumeric': 0.15947467166979362, 'fraction_numerical': 0.001876172607879925, 'mean_word_length': 4.393939393939394, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '849253', 'n_tokens_mistral': 174, 'n_tokens_neox': 172, 'n_words': 51}