<commit_before>import express from 'express'
import path from 'path'
import proxy from 'proxy-middleware'
import webpack from 'webpack'
import config from '../webpack.config.dev'
import { PORT as API_PORT } from './api-server'

const app = express()
const compiler = webpack(config)

const PORT = 3333

app.use(require('webpack-hot-middleware')(compiler))
app.use(require('webpack-dev-middleware')(compiler, {
  noInfo: true,
  publicPath: config.output.publicPath,
  stats: {
    colors: true
  }
}))

app.use(express.static('public'))
app.use('/api', proxy(`http://localhost:${API_PORT}`))

app.get('*', function(req, res) {
  res.sendFile(path.join(__dirname, '../public', 'index.html'))
})
<commit_msg>Arrow fn<commit_after>import express from 'express'
import path from 'path'
import proxy from 'proxy-middleware'
import webpack from 'webpack'
import config from '../webpack.config.dev'
import { PORT as API_PORT } from './api-server'

const app = express()
const compiler = webpack(config)

const PORT = 3333

app.use(require('webpack-hot-middleware')(compiler))
app.use(require('webpack-dev-middleware')(compiler, {
  noInfo: true,
  publicPath: config.output.publicPath,
  stats: {
    colors: true
  }
}))

app.use(express.static('public'))
app.use('/api', proxy(`http://localhost:${API_PORT}`))

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

{'fraction_non_alphanumeric': 0.1754636233951498, 'fraction_numerical': 0.005706134094151213, 'mean_word_length': 5.126637554585153, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '618268', 'n_tokens_mistral': 464, 'n_tokens_neox': 460, 'n_words': 107}