<commit_before>const express = require('express');
const path = require('path');
const debug = require('debug')('app:api server');

const app = express();

if (process.env.NODE_ENV === 'production') {
  debug('Server is being run in production, meaning it will only serve static assets');
  app.use(express.static(path.join(__dirname, 'client/build')));
}

const port = process.env.PORT || 3001;
app.listen(port, () => {
  debug(`Server is now running on port ${port}`);
});<commit_msg>build: Add index serve back to server<commit_after>const express = require('express');
const path = require('path');
const debug = require('debug')('app:api server');

const app = express();

if (process.env.NODE_ENV === 'production') {
  debug('Server is being run in production, meaning it will only serve static assets');
  app.use(express.static(path.join(__dirname, 'client/build')));
}

app.get('*', (req, res) => {
  res.sendFile(path.resolve(__dirname, 'client/build', 'index.html'));
});

const port = process.env.PORT || 3001;
app.listen(port, () => {
  debug(`Server is now running on port ${port}`);
});
{'fraction_non_alphanumeric': 0.184377838328792, 'fraction_numerical': 0.007266121707538601, 'mean_word_length': 5.482352941176471, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 6, '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': '1134214', 'n_tokens_mistral': 340, 'n_tokens_neox': 335, 'n_words': 98}