<commit_before>'use strict';
const express = require('express');
const path = require('path');
const adaro = require('adaro'); // dust template engine
const webpack = require('webpack');
let webpackConfig;
let compiler;
const templateConfig = {
  devMode: false,
  fileHash: null,
};

// app setup
const app = express();
app.set('port', (process.env.PORT || 5000));
app.set('views', path.join(__dirname, '/src/views'));
app.engine('dust', adaro.dust());
app.set('view engine', 'dust');
app.use(express.static('dist'));

if (process.env.NODE_ENV !== 'production') {
  console.log('*** Dev build');
  templateConfig.devMode = true;
  webpackConfig = require('./webpack.dev.config.js');
  compiler = webpack(webpackConfig);
  const webpackDevMiddleware = require('webpack-dev-middleware');
  const webpackHotMiddleware = require('webpack-hot-middleware');

  app.use(webpackDevMiddleware(compiler, {
    noInfo: true,
    publicPath: webpackConfig.output.publicPath,
    stats: { colors: true },<commit_msg>touch<commit_after>'use strict';
const express = require('express');
const path = require('path');
const adaro = require('adaro'); // for dust template engine
const webpack = require('webpack');
let webpackConfig;
let compiler;
const templateConfig = {
  devMode: false,
  fileHash: null,
};

// app setup
const app = express();
app.set('port', (process.env.PORT || 5000));
app.set('views', path.join(__dirname, '/src/views'));
app.engine('dust', adaro.dust());
app.set('view engine', 'dust');
app.use(express.static('dist'));

if (process.env.NODE_ENV !== 'production') {
  console.log('*** Dev build');
  templateConfig.devMode = true;
  webpackConfig = require('./webpack.dev.config.js');
  compiler = webpack(webpackConfig);
  const webpackDevMiddleware = require('webpack-dev-middleware');
  const webpackHotMiddleware = require('webpack-hot-middleware');

  app.use(webpackDevMiddleware(compiler, {
    noInfo: true,
    publicPath: webpackConfig.output.publicPath,
    stats: { colors: true },
{'fraction_non_alphanumeric': 0.17265469061876249, 'fraction_numerical': 0.003992015968063872, 'mean_word_length': 5.426282051282051, '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': '5947399', 'n_tokens_mistral': 618, 'n_tokens_neox': 605, 'n_words': 141}