<commit_before>require('./db/connection');

const Koa = require('koa');
const bodyParser = require('koa-bodyparser');
const logger = require('koa-logger');
const json = require('koa-json');
const onerror = require('koa-onerror');
const router = require('./routes');
const cors = require('./helpers/cors');
const auth = require('./helpers/auth');

(() => {
  const app = new Koa();
  onerror(app);
  app.use(bodyParser({}))
    .use(json())
    .use(logger())
    .use(cors())
  router.map(el => app.use(el.routes()));
  app.listen(3003);
})();
<commit_msg>ADD - PORT env var<commit_after>require('./db/connection');

const Koa = require('koa');
const bodyParser = require('koa-bodyparser');
const logger = require('koa-logger');
const json = require('koa-json');
const onerror = require('koa-onerror');
const router = require('./routes');
const cors = require('./helpers/cors');

(() => {
  const app = new Koa();
  onerror(app);
  app.use(bodyParser({}))
    .use(json())
    .use(logger())
    .use(cors());
  router.map(el => app.use(el.routes()));
  app.listen(process.env.PORT || 3003);
})();

{'fraction_non_alphanumeric': 0.22859744990892533, 'fraction_numerical': 0.007285974499089253, 'mean_word_length': 4.522613065326633, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '1397793', 'n_tokens_mistral': 376, 'n_tokens_neox': 377, 'n_words': 75}