<commit_before>const path = require('path');
const webpack = require('webpack');

module.exports = {
  devtool: 'eval',
  entry: [
    `${require.resolve('webpack-dev-server/client')}?http://localhost:9999`,
    './client/index',
  ],
  output: {
    path: path.join(__dirname, 'dist'),
    filename: 'bundle.js',
    publicPath: '/static/',
  },
  plugins: [new webpack.HotModuleReplacementPlugin()],
  module: {
    loaders: [
      {
        test: /\.js$/,
        loader: require.resolve('babel-loader'),
        query: { presets: ['babel-preset-es2015', 'babel-preset-react', 'babel-preset-stage-0'].map(require.resolve) },
        include: [path.join(__dirname, 'client'), path.resolve(__dirname, '../src')],
      },
    ],
  },
};
<commit_msg>Remove require.resolve from libs/ui webpack.config.js<commit_after>const path = require('path');
const webpack = require('webpack');

module.exports = {
  devtool: 'eval',
  entry: [
    `${require.resolve('webpack-dev-server/client')}?http://localhost:9999`,
    './client/index',
  ],
  output: {
    path: path.join(__dirname, 'dist'),
    filename: 'bundle.js',
    publicPath: '/static/',
  },
  plugins: [new webpack.HotModuleReplacementPlugin()],
  module: {
    loaders: [
      {
        test: /\.js$/,
        loader: require.resolve('babel-loader'),
        query: { presets: ['react', 'es2015', 'stage-0'] },
        include: [path.join(__dirname, 'client'), path.resolve(__dirname, '../src')],
      },
    ],
  },
};

{'fraction_non_alphanumeric': 0.20512820512820512, 'fraction_numerical': 0.012145748987854251, 'mean_word_length': 3.10803324099723, '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': '7198975', 'n_tokens_mistral': 503, 'n_tokens_neox': 487, 'n_words': 82}