<commit_before>"use strict";
var NO_DB = true;
var fs = require('fs');
var compression = require('compression');
var express = require('express');
//var munge = require('./data/dqcdm_munge');
require('babel-polyfill');
var _ = require('supergroup-es6').default; // why need default?
var webpack = require('webpack');
var config = require('./webpack.config');
var compiler = webpack(config);

var app = new express();
var port = process.env.PORT || 5000;
app.use(compression())
app.use(express.static('static/data/cms-synpuf'))

app.use(express.static('static'))
//app.use('/data', express.static('static/data'));

app.use(webpackDevMiddleware(compiler, { noInfo: true, publicPath: config.output.publicPath }));

var isDevelopment = (process.env.NODE_ENV !== 'production');
if (isDevelopment) {
  var webpackDevMiddleware = require('webpack-dev-middleware');
  var webpackHotMiddleware = require('webpack-hot-middleware');
  app.use(webpackHotMiddleware(compiler));
}

app.listen(port, function(error) {
  if (error) {
    console.error(error);
  } else {
    console.info("==> 🌎  Listening on port %s. Open up http://localhost:%s/ in your browser.", port, port);
  }
});


app.use(function(req, res) {
  res.sendFile(__dirname + '/index.html');
});

<commit_msg>probably won't help<commit_after>"use strict";
var NO_DB = true;
var fs = require('fs');
var compression = require('compression');
var express = require('express');
//var munge = require('./data/dqcdm_munge');
require('babel-polyfill');
var _ = require('supergroup-es6').default; // why need default?
var webpack = require('webpack');
var config = require('./webpack.config');
var compiler = webpack(config);
var webpackDevMiddleware = require('webpack-dev-middleware');

var app = new express();
var port = process.env.PORT || 5000;
app.use(compression())
app.use(express.static('static/data/cms-synpuf'))

app.use(express.static('static'))
//app.use('/data', express.static('static/data'));

app.use(webpackDevMiddleware(compiler, { noInfo: true, publicPath: config.output.publicPath }));

var isDevelopment = (process.env.NODE_ENV !== 'production');
if (isDevelopment) {
  var webpackHotMiddleware = require('webpack-hot-middleware');
  app.use(webpackHotMiddleware(compiler));
}

app.listen(port, function(error) {
  if (error) {
    console.error(error);
  } else {
    console.info("==> 🌎  Listening on port %s. Open up http://localhost:%s/ in your browser.", port, port);
  }
});


app.use(function(req, res) {
  res.sendFile(__dirname + '/index.html');
});


{'fraction_non_alphanumeric': 0.18393987341772153, 'fraction_numerical': 0.003955696202531646, 'mean_word_length': 5.306733167082294, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1809897', 'n_tokens_mistral': 829, 'n_tokens_neox': 803, 'n_words': 176}