<commit_before>/* globals require */
'use strict';

const config = require('./config');

let data = require('./data')(config);

const app = require('./config/application')(data);

require('./routes')({ app, data });

if (config.envMode === 'DEVELOPMENT') {
    app.listen(config.port, () => console.log(`it works on port: ${config.port}`));
} else {
    app.listen();
}<commit_msg>another attempt to fix bug with Heroku port requirements<commit_after>/* globals require */
/* eslint-disable no-process-env */
'use strict';

const config = require('./config');

let data = require('./data')(config);

const app = require('./config/application')(data);

require('./routes')({ app, data });

const port = process.env.PORT || config.port;
app.listen(port, () => console.log(`it works on port: ${port}`));
{'fraction_non_alphanumeric': 0.2125, 'fraction_numerical': 0.0, 'mean_word_length': 4.601398601398602, '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': '7494287', 'n_tokens_mistral': 244, 'n_tokens_neox': 246, 'n_words': 65}