<commit_before>import path from 'path';
import debug from 'debug';
import express from 'express';
import history from 'connect-history-api-fallback';
import morgan from 'morgan';
import cookieParser from 'cookie-parser';
import bodyParser from 'body-parser';

import apiTest from './routes/apiTest';
import apiNotExists from './routes/apiNotExists';

var app = express();

app.use(morgan('dev'));
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: false }));
app.use(cookieParser());
<commit_msg>Add cors and compression<commit_after>import path from 'path';
import debug from 'debug';
import express from 'express';
import history from 'connect-history-api-fallback';
import morgan from 'morgan';
import cookieParser from 'cookie-parser';
import bodyParser from 'body-parser';
import compression from 'compression';
import cors from 'cors';

import apiTest from './routes/apiTest';
import apiNotExists from './routes/apiNotExists';

var app = express();

app.use(compression());
app.use(cors());
app.use(morgan('dev'));
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: false }));
app.use(cookieParser());

{'fraction_non_alphanumeric': 0.14834205933682373, 'fraction_numerical': 0.0, 'mean_word_length': 6.6466666666666665, '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': '3539709', 'n_tokens_mistral': 334, 'n_tokens_neox': 339, 'n_words': 103}