<commit_before>var express = require("express");
var mixin   = require("utils/mixin");
var cors    = require("utils/cors");

var app      = express();
var messages = [];


// Support JSON bodies
app.use(express.json());

// Enable cors
cors(app);


app.post("/message", function(req, res) {
  var message = mixin({
    "timestamp": (new Date()).getTime()
  }, req.body);

  messages.push(message);
  res.send(message);
});


app.get("/messages", function(req, res) {
  res.send(messages);
});


var server = app.listen(3000, function() {
  console.log("Listening on port %d", server.address().port);
});

<commit_msg>Adjusting how port number is set<commit_after>var express = require("express");
var mixin   = require("utils/mixin");
var cors    = require("utils/cors");

var app      = express();
var messages = [];


// Support JSON bodies
app.use(express.json());

// Enable cors
cors(app);


app.post("/message", function(req, res) {
  var message = mixin({
    "timestamp": (new Date()).getTime()
  }, req.body);

  messages.push(message);
  res.send(message);
});


app.get("/messages", function(req, res) {
  res.send(messages);
});


var server = app.listen(Number(process.env.PORT || 3000), function() {
  console.log("Listening on port %d", server.address().port);
});


{'fraction_non_alphanumeric': 0.19672131147540983, 'fraction_numerical': 0.00624512099921936, 'mean_word_length': 4.047244094488189, 'pattern_counts': {'":': 2, '<': 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': '2284559', 'n_tokens_mistral': 438, 'n_tokens_neox': 419, 'n_words': 98}