<commit_before>import express from 'express';
import {urlencoded, json } from 'body-parser';
import cookieParser from 'cookie-parser';
import cors from 'cors';

import { notFoundHandler, errorHandler } from './middleware/middleware'
import firstApiVersion from './api/v1';

function startServer()
{
	const app = express();
	const port = 3010;

	app.use(cors());
	app.use(urlencoded({ extended: true }));
	app.use(json());
	app.use(cookieParser())

	app.use('/v1', firstApiVersion());
	app.use(notFoundHandler);
	app.use(errorHandler);

	app.listen(port);
	console.log('Server listening on port ' + port);
}


export { startServer }<commit_msg>I forgot to add index to the import.<commit_after>import express from 'express';
import {urlencoded, json } from 'body-parser';
import cookieParser from 'cookie-parser';
import cors from 'cors';

import { notFoundHandler, errorHandler } from './middleware/middleware'
import firstApiVersion from './api/v1/index';

function startServer()
{
	const app = express();
	const port = 3010;

	app.use(cors());
	app.use(urlencoded({ extended: true }));
	app.use(json());
	app.use(cookieParser());

	app.use('/v1', firstApiVersion());
	app.use(notFoundHandler);
	app.use(errorHandler);

	app.listen(port);
	console.log('Server listening on port ' + port);
}


export { startServer };
{'fraction_non_alphanumeric': 0.15641609719058466, 'fraction_numerical': 0.009111617312072893, 'mean_word_length': 5.336538461538462, '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': '2678068', 'n_tokens_mistral': 430, 'n_tokens_neox': 417, 'n_words': 111}