<commit_before>import React from 'react';
import { Server } from 'http';
import { match, RouterContext } from 'react-router';
import { renderToString } from 'react-dom/server';

import server_config from './config.js';
import routes from '../routes';
import NotFoundPage from '../components/notfoundpage';

const port = process.env.PORT || 3000;
const app = server_config.app();
// const conn_mongo = server_config.conn_mongo();
const server = new Server(app);

// Development configuration
if (process.env.NODE_ENV !== 'production') {
    const webpack = require('webpack')
    const webpackDevMiddleware = require('webpack-dev-middleware')
    const webpackHotMiddleware = require('webpack-hot-middleware')
    const config = require('../../webpack.dev.config.js')
    const compiler = webpack(config)

    app.use(webpackHotMiddleware(compiler))
    app.use(webpackDevMiddleware(compiler, {
        noInfo: true,
        publicPath: config.output.publicPath
    }))<commit_msg>Revert " aa"<commit_after>import React from 'react';
import { Server } from 'http';
import { match, RouterContext } from 'react-router';
import { renderToString } from 'react-dom/server';

import server_config from './config.js';
import routes from '../routes';
import NotFoundPage from '../components/notfoundpage';

const port = process.env.PORT || 3000;
const app = server_config.app();
const conn_mongo = server_config.conn_mongo();
const server = new Server(app);

// Development configuration
if (process.env.NODE_ENV !== 'production') {
    const webpack = require('webpack')
    const webpackDevMiddleware = require('webpack-dev-middleware')
    const webpackHotMiddleware = require('webpack-hot-middleware')
    const config = require('../../webpack.dev.config.js')
    const compiler = webpack(config)

    app.use(webpackHotMiddleware(compiler))
    app.use(webpackDevMiddleware(compiler, {
        noInfo: true,
        publicPath: config.output.publicPath
    }))
{'fraction_non_alphanumeric': 0.13496932515337423, 'fraction_numerical': 0.00408997955010225, 'mean_word_length': 4.376373626373627, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '194830', 'n_tokens_mistral': 556, 'n_tokens_neox': 552, 'n_words': 139}