<commit_before>/* global describe, it, beforeEach */
/* jslint node: true, esnext: true */

"use strict";

const chai = require('chai');
const chaiHttp = require('chai-http');
chai.use(chaiHttp);

const assert = chai.assert;
const expect = chai.expect;
const should = chai.should();
const route = require('koa-route');
const http = require('http');

const KronosKoa = require('../lib/application_kronos');
const koaRoute = require('koa-route');


const PORT = 8199;

describe('Test dynamic add and remove of routes', function () {
	const app = new KronosKoa();
	const httpServer = http.createServer(app.callback());

	// Add a route before the server is started
	const firstRoute = koaRoute.get('/state', genericDemoHandler("My res 1"));
	app.use(firstRoute);
	app.listen(PORT);<commit_msg>fix: for trigger a build in Travis<commit_after>/* global describe, it, beforeEach */
/* jslint node: true, esnext: true */

"use strict";

const chai = require('chai');
const chaiHttp = require('chai-http');
chai.use(chaiHttp);

const assert = chai.assert;
const expect = chai.expect;
const should = chai.should();
const route = require('koa-route');
const http = require('http');

const KronosKoa = require('../lib/application_kronos');
const koaRoute = require('koa-route');

const PORT = 8199;

describe('Test dynamic add and remove of routes', function () {
	const app = new KronosKoa();
	const httpServer = http.createServer(app.callback());

	// Add a route before the server is started
	const firstRoute = koaRoute.get('/state', genericDemoHandler("My res 1"));
	app.use(firstRoute);
	app.listen(PORT);
{'fraction_non_alphanumeric': 0.151875, 'fraction_numerical': 0.00625, 'mean_word_length': 5.0643939393939394, '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': '4578647', 'n_tokens_mistral': 526, 'n_tokens_neox': 509, 'n_words': 153}