<commit_before>// dependencies
const express = require('express');
const parser = require('body-parser');
const path = require('path');
const cors = require('cors');
// file imports
// const router = require('./router/router.js');
const db = require('../db/config.js');
// express instantiation
const app = express();
const port = process.env.PORT || 8080;
// middleware
app.use(parser.json());
app.use(parser.urlencoded());
app.use(cors());
// app.use('/api', router);
app.use(express.static(path.resolve(__dirname, '../client/static/')));<commit_msg>add routes<commit_after>// dependencies
const express = require('express');
const parser = require('body-parser');
const path = require('path');
const cors = require('cors');
// file imports
const router = require('./router/router.js');
const db = require('../db/config.js');
// express instantiation
const app = express();
const port = process.env.PORT || 8080;
// middleware
app.use(parser.json());
app.use(parser.urlencoded());
app.use(cors());
//routes
app.use(express.static(path.resolve(__dirname, '../client/static/')));
app.use('/api', router);
{'fraction_non_alphanumeric': 0.21014492753623187, 'fraction_numerical': 0.007246376811594203, 'mean_word_length': 5.104972375690608, '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': '3549306', 'n_tokens_mistral': 333, 'n_tokens_neox': 329, 'n_words': 79}