<commit_before>const express = require('express')
const path = require('path')

const app = express()

app.get('/', function(req, res) {
  res.sendFile(path.join(__dirname, 'public', 'index.html'))
})

app.use(express.static(path.join(__dirname, 'public')))

app.get('*', function(req, res) {
  res.sendFile(path.join(__dirname, 'public', 'index.html'))
})

app.listen(3000, function() {
  console.log('spotty-features listening on port 3000')
})<commit_msg>Use PORT env var in server if set<commit_after>const express = require('express')
const path = require('path')

const app = express()

app.set('port', (process.env.PORT || 3000))

app.get('/', function(req, res) {
  res.sendFile(path.join(__dirname, 'public', 'index.html'))
})

app.use(express.static(path.join(__dirname, 'public')))

app.get('*', function(req, res) {
  res.sendFile(path.join(__dirname, 'public', 'index.html'))
})

app.listen(app.get('port'), function() {
  console.log(`spotty-features listening on port ${app.get('port')}`)
})
{'fraction_non_alphanumeric': 0.2077534791252485, 'fraction_numerical': 0.011928429423459244, 'mean_word_length': 5.897260273972603, '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': '6907929', 'n_tokens_mistral': 353, 'n_tokens_neox': 341, 'n_words': 70}