<commit_before>var fs = require('fs');
var path = require('path');
var express = require('express');
var bodyParser = require('body-parser');
var fallback = require('express-history-api-fallback')
var app = express();

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

var root = __dirname + '/dist'

app.use('/', express.static(root));
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({extended: true}));

app.use(fallback('index.html', { root: root }))<commit_msg>Fix Express problem<commit_after>var fs = require('fs');
var path = require('path');
var express = require('express');
var bodyParser = require('body-parser');
var fallback = require('express-history-api-fallback')
var app = express();

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

var root = __dirname + '/dist'

app.use('/', express.static(root));
app.use('*', express.static(root));
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({extended: true}));

// app.use(fallback('index.html', { root: root }))
{'fraction_non_alphanumeric': 0.21175278622087132, 'fraction_numerical': 0.008105369807497468, 'mean_word_length': 6.159420289855072, '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': '2420634', 'n_tokens_mistral': 327, 'n_tokens_neox': 316, 'n_words': 70}