<commit_before>
const express = require('express')
const bodyParser = require('body-parser')
const app  = express()
const http = require('http').Server(app)
const io   = require('socket.io')(http)
const routes = require('./routes')

app.use(bodyParser.json())

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

io.on('connection', client => {
  console.log('Socket ID:', client.id);
  // send the clients id to the client itself.
  client.send(client.id);

  client.on('disconnect', function () {
    console.log('client disconnected');
  })
})

app.post('/issues', routes.issues(io))

http.listen(3000, function(){
  console.log('listening on *:3000')
})<commit_msg>Update port to process.env.PORT<commit_after>
const express = require('express')
const bodyParser = require('body-parser')
const app  = express()
const http = require('http').Server(app)
const io   = require('socket.io')(http)
const routes = require('./routes')

app.use(bodyParser.json())

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

io.on('connection', client => {
  console.log('Socket ID:', client.id);
  // send the clients id to the client itself.
  client.send(client.id);

  client.on('disconnect', function () {
    console.log('client disconnected');
  })
})

app.post('/issues', routes.issues(io))

http.listen(process.env.PORT || 3000, function(){
  console.log('listening on ' + (process.env.PORT || 3000) )
})
{'fraction_non_alphanumeric': 0.19493844049247605, 'fraction_numerical': 0.01094391244870041, 'mean_word_length': 4.692607003891051, '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': '1907371', 'n_tokens_mistral': 488, 'n_tokens_neox': 471, 'n_words': 105}