<commit_before>const Koa = require('koa');
const app = new Koa();

const bodyParser = require('koa-bodyparser');
const dotEnv = require('dotenv').config();
var cors = require('koa-cors');

const Knex = require('knex');
const knexConfig = require('./knexfile');
const Model = require('objection').Model;
const knex = Knex(knexConfig.development);

Model.knex(knex);

app.use(bodyParser());
app.use(cors());

const climb = require('./routes/climb');
const route = require('./routes/route');
const index = require('./routes/index');
const panoramic = require('./routes/panoramic');
const note = require('./routes/note');
const route_note = require('./routes/route_note');

app.use(route.routes());
app.use(climb.routes());
app.use(index.routes());
app.use(panoramic.routes());
app.use(note.routes());
app.use(route_note.routes());

const PORT = 3000 || process.env.PORT;
const server = app.listen(PORT, () => {
  console.log(`listening on port: ${PORT}`);
});

module.exports = server;<commit_msg>Updating PORT env<commit_after>const Koa = require('koa');
const app = new Koa();

const bodyParser = require('koa-bodyparser');
const dotEnv = require('dotenv').config();
var cors = require('koa-cors');

const Knex = require('knex');
const knexConfig = require('./knexfile');
const Model = require('objection').Model;
const knex = Knex(knexConfig.development);

Model.knex(knex);

app.use(bodyParser());
app.use(cors());

const climb = require('./routes/climb');
const route = require('./routes/route');
const index = require('./routes/index');
const panoramic = require('./routes/panoramic');
const note = require('./routes/note');
const route_note = require('./routes/route_note');

app.use(route.routes());
app.use(climb.routes());
app.use(index.routes());
app.use(panoramic.routes());
app.use(note.routes());
app.use(route_note.routes());

const PORT = process.env.PORT || 3000;
const server = app.listen(PORT, () => {
  console.log(`listening on port: ${PORT}`);
});

module.exports = server;
{'fraction_non_alphanumeric': 0.20582329317269077, 'fraction_numerical': 0.004016064257028112, 'mean_word_length': 5.802047781569966, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '7257733', 'n_tokens_mistral': 654, 'n_tokens_neox': 666, 'n_words': 137}