<commit_before> /* eslint-disable-line import/no-unresolved */

import webpack from 'webpack';
import path from 'path';
import Dashboard from 'webpack-dashboard';
import DashboardPlugin from 'webpack-dashboard/plugin';
import webpackDistConfig from './webpack.config.dist.babel';
import {
  ROOT,
  babelrc
} from './config';

/* Suppresses Webpack 2 `parseQuery` deprecation warning...
  https://github.com/webpack/loader-utils/issues/56 */
process.noDeprecation = true;

const { setData } = new Dashboard ();

export default Object.assign ({}, webpackDistConfig, {
  entry: [
    'react-hot-loader/patch',
    'webpack/hot/only-dev-server',
    path.resolve (ROOT, 'src/root.hot.jsx'),
    path.resolve (ROOT, 'src/index.html')
  ],
  devtool: 'eval',
  devServer: {
    hot: true,
    host: '0.0.0.0',
    contentBase: path.resolve (ROOT, 'dist'),
    publicPath: '/',
    stats: { colors: true },
    quiet: true
  },
  plugins: [
    new DashboardPlugin (_Dashboard.setData),
    new webpack.NamedModulesPlugin (),
    new webpack.HotModuleReplacementPlugin ()
    /* ...webpackDistConfig.plugins */
  ],
  module: {
    rules: [
      ...webpackDistConfig.module.rules.slice (0, 0),
      {
        test: /\.(js|jsx)?/,
        exclude: /node_modules/,
        loader: 'babel-loader',
        options: Object.assign ({}, babelrc, {
          babelrc: false,
          presets: babelrc.presets.map ((preset) => {
            if (preset === 'es2015') {
              return [ 'es2015', { modules: false } ];
            }
            return preset;
          }),
          plugins: [
            'react-hot-loader/babel',
            ...babelrc.plugins.filter (plugin => plugin !== 'add-module-exports')
          ]
        })
      },
      ...webpackDistConfig.module.rules.slice (1)
    ]
  }
});
<commit_msg>Removed deprecated _Dashboard variable from<commit_after> /* eslint-disable-line import/no-unresolved */

import webpack from 'webpack';
import path from 'path';
import Dashboard from 'webpack-dashboard';
import DashboardPlugin from 'webpack-dashboard/plugin';
import webpackDistConfig from './webpack.config.dist.babel';
import {
  ROOT,
  babelrc
} from './config';

/* Suppresses Webpack 2 `parseQuery` deprecation warning...
  https://github.com/webpack/loader-utils/issues/56 */
process.noDeprecation = true;

const { setData } = new Dashboard ();

export default Object.assign ({}, webpackDistConfig, {
  entry: [
    'react-hot-loader/patch',
    'webpack/hot/only-dev-server',
    path.resolve (ROOT, 'src/root.hot.jsx'),
    path.resolve (ROOT, 'src/index.html')
  ],
  devtool: 'eval',
  devServer: {
    hot: true,
    host: '0.0.0.0',
    contentBase: path.resolve (ROOT, 'dist'),
    publicPath: '/',
    stats: { colors: true },
    quiet: true
  },
  plugins: [
    new DashboardPlugin (setData),
    new webpack.NamedModulesPlugin (),
    new webpack.HotModuleReplacementPlugin ()
    /* ...webpackDistConfig.plugins */
  ],
  module: {
    rules: [
      ...webpackDistConfig.module.rules.slice (0, 0),
      {
        test: /\.(js|jsx)?/,
        exclude: /node_modules/,
        loader: 'babel-loader',
        options: Object.assign ({}, babelrc, {
          babelrc: false,
          presets: babelrc.presets.map ((preset) => {
            if (preset === 'es2015') {
              return [ 'es2015', { modules: false } ];
            }
            return preset;
          }),
          plugins: [
            'react-hot-loader/babel',
            ...babelrc.plugins.filter (plugin => plugin !== 'add-module-exports')
          ]
        })
      },
      ...webpackDistConfig.module.rules.slice (1)
    ]
  }
});

{'fraction_non_alphanumeric': 0.15694330320460148, 'fraction_numerical': 0.009860312243221035, 'mean_word_length': 2.3877551020408165, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '4502372', 'n_tokens_mistral': 1170, 'n_tokens_neox': 1136, 'n_words': 236}