<commit_before>var express = require('express');

var bodyParser = require('body-parser');

var app = express();

// host static client files on server
// app.use(express.static(__dirname + '/client'/* TODO: insert/change client folder path here */));

app.use(bodyParser.urlencoded({extended: true}));
app.use(bodyParser.json());

// configure server with routes
require('./config/routes')(app, express);

//start listening on given port
var port = 3000;
app.listen(port, function() {
  console.log('Listening on port', port);
});

module.exports = app;<commit_msg>Remove hardcoding of port number for Heroku<commit_after>var express = require('express');

var bodyParser = require('body-parser');

var app = express();

// host static client files on server
// app.use(express.static(__dirname + '/client'/* TODO: insert/change client folder path here */));

app.use(bodyParser.urlencoded({extended: true}));
app.use(bodyParser.json());

// configure server with routes
require('./config/routes')(app, express);

//start listening on given port
var port = process.env.PORT || 3000;
app.listen(port, function() {
  console.log('Listening on port', port);
});

module.exports = app;
{'fraction_non_alphanumeric': 0.16243654822335024, 'fraction_numerical': 0.00676818950930626, 'mean_word_length': 5.00507614213198, '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': '1626193', 'n_tokens_mistral': 352, 'n_tokens_neox': 341, 'n_words': 102}