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

const nodeExternals = require('webpack-node-externals')

const BabiliPlugin = require('babili-webpack-plugin')

module.exports = env => {
  const devMode = env !== 'production'
  const config = {
    entry: ['babel-polyfill', './src'],
    output: {
      path: __dirname + '/dist',
      filename: 'index.js'
    },
    target: 'node',
    externals: [nodeExternals()],
    devtool: devMode ? 'source-map' : undefined,
    module: {
      rules: [
        {
          test: /\.js$/,
          use: 'babel-loader',
          exclude: /node_modules/
        }
      ]
    },
    plugins: [
      new webpack.DefinePlugin({
        'process.env': {
          NODE_ENV: JSON.stringify(devMode ? 'development' : 'production')
        }
      }),
      !devMode ? new BabiliPlugin() : () => undefined,
      devMode ? new webpack.BannerPlugin({
        banner: `require('source-map-support').install();`,
        raw: true
      }) : () => undefined,

    ]
  }

  return config
}<commit_msg>💄 Dangling Comma<commit_after>const webpack = require('webpack')

const nodeExternals = require('webpack-node-externals')

const BabiliPlugin = require('babili-webpack-plugin')

module.exports = env => {
  const devMode = env !== 'production'
  const config = {
    entry: ['babel-polyfill', './src'],
    output: {
      path: __dirname + '/dist',
      filename: 'index.js'
    },
    target: 'node',
    externals: [nodeExternals()],
    devtool: devMode ? 'source-map' : undefined,
    module: {
      rules: [
        {
          test: /\.js$/,
          use: 'babel-loader',
          exclude: /node_modules/
        }
      ]
    },
    plugins: [
      new webpack.DefinePlugin({
        'process.env': {
          NODE_ENV: JSON.stringify(devMode ? 'development' : 'production')
        }
      }),
      !devMode ? new BabiliPlugin() : () => undefined,
      devMode ? new webpack.BannerPlugin({
        banner: `require('source-map-support').install();`,
        raw: true
      }) : () => undefined
    ]
  }

  return config
}
{'fraction_non_alphanumeric': 0.15984593163216176, 'fraction_numerical': 0.0, 'mean_word_length': 2.21671826625387, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '3991319', 'n_tokens_mistral': 663, 'n_tokens_neox': 640, 'n_words': 130}