<commit_before>var express = require('express')
var expressApp = express()
var path = require('path')
var pickerApp = require('./src/bootstrap')
var registerRoutes = require('./src/routes')

var port = 8080

// Open up the static files
expressApp.use(express.static('dist'))

// Serve index.html
expressApp.get('/', function(req, res) {
  res.sendFile(path.join(__dirname + '/dist/index.html'));
})

// Register API routes
registerRoutes(expressApp, pickerApp)

// Listen
expressApp.listen(port, function (err) {
  if (err) {
    console.error(err)
    return
  }<commit_msg>Use absolute path for serving static files<commit_after>var express = require('express')
var expressApp = express()
var path = require('path')
var pickerApp = require('./src/bootstrap')
var registerRoutes = require('./src/routes')

var port = 8080

// Open up the static files
expressApp.use(express.static(path.join(__dirname + '/dist')))

// Serve index.html
expressApp.get('/', function(req, res) {
  res.sendFile(path.join(__dirname + '/dist/index.html'));
})

// Register API routes
registerRoutes(expressApp, pickerApp)

// Listen
expressApp.listen(port, function (err) {
  if (err) {
    console.error(err)
    return
  }
{'fraction_non_alphanumeric': 0.15544472152950956, 'fraction_numerical': 0.006650041562759767, 'mean_word_length': 4.497716894977169, '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': '1288939', 'n_tokens_mistral': 383, 'n_tokens_neox': 375, 'n_words': 95}