<commit_before>const path = require('path');
const webpack = require('webpack');
const TerserPlugin = require('terser-webpack-plugin');
const ExtractTextPlugin = require('mini-css-extract-plugin');
const HtmlPlugin = require('html-webpack-plugin');
const CopyPlugin = require('copy-webpack-plugin');

const aliasModules = (names) => {
  return Object.fromEntries(
    names.map((name) => [
      name,
      path.resolve(__dirname, `node_modules/${name}`),
    ]),
  );
};

const esmpaths = (names) => {
  return names.map((name) => path.resolve(__dirname, `node_modules/${name}`));
};

const govuiDeps = [
  'core-js',
  'react',
  'react-router-dom',
  '@xorkevin/substation',
  '@xorkevin/turbine',
  '@xorkevin/nuke',
];

const esModules = [
  '@xorkevin/substation',
  '@xorkevin/turbine',
  '@xorkevin/nuke',
];

const temp = new Set();

const createConfig = (env, argv) => {
  const config = {
    target: 'web',

    context: path.resolve(__dirname, 'src'),
    entry: {
      main: ['main.js'],<commit_msg>Clean unused in webpack.config.js<commit_after>const path = require('path');
const webpack = require('webpack');
const TerserPlugin = require('terser-webpack-plugin');
const ExtractTextPlugin = require('mini-css-extract-plugin');
const HtmlPlugin = require('html-webpack-plugin');
const CopyPlugin = require('copy-webpack-plugin');

const aliasModules = (names) => {
  return Object.fromEntries(
    names.map((name) => [
      name,
      path.resolve(__dirname, `node_modules/${name}`),
    ]),
  );
};

const esmpaths = (names) => {
  return names.map((name) => path.resolve(__dirname, `node_modules/${name}`));
};

const govuiDeps = [
  'core-js',
  'react',
  'react-router-dom',
  '@xorkevin/substation',
  '@xorkevin/turbine',
  '@xorkevin/nuke',
];

const esModules = [
  '@xorkevin/substation',
  '@xorkevin/turbine',
  '@xorkevin/nuke',
];

const createConfig = (env, argv) => {
  const config = {
    target: 'web',

    context: path.resolve(__dirname, 'src'),
    entry: {
      main: ['main.js'],
{'fraction_non_alphanumeric': 0.18864197530864196, 'fraction_numerical': 0.0, 'mean_word_length': 4.221649484536083, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, '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': '7428370', 'n_tokens_mistral': 709, 'n_tokens_neox': 710, 'n_words': 128}