<commit_before>var express = require('express');
var app = express();
var items = require('./data/items');

app.get('/items', function (req, res) {
  res.json(items);
});

app.use(express.static('.'));

app.get('/', function (req, res) {
  res.sendFile(__dirname + '/index.html');
});

app.listen(3000, function () {
  console.log('App running on port 3000');
});
<commit_msg>Use environment port instead of hardcoded one<commit_after>var express = require('express');
var app = express();
var items = require('./data/items');
var port = process.env.PORT || 3000;

app.get('/items', function (req, res) {
  res.json(items);
});

app.use(express.static('.'));

app.get('/', function (req, res) {
  res.sendFile(__dirname + '/index.html');
});

app.listen(port, function () {
  console.log('App running on port ' + port);
});

{'fraction_non_alphanumeric': 0.21723300970873785, 'fraction_numerical': 0.014563106796116505, 'mean_word_length': 4.612244897959184, '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': '4454088', 'n_tokens_mistral': 282, 'n_tokens_neox': 269, 'n_words': 66}