<commit_before>const path = require('path');
const webpack = require("webpack");
const PROD = JSON.stringify(process.env.NODE_ENV === "production");

module.exports = {
  entry: './src/react/my-app.jsx',
  output: {
    filename: './src/bundle.js'
  },
  plugins: PROD == 'true'
    ? [
      new webpack.DefinePlugin({
        'process.env': {
          NODE_ENV: JSON.stringify('production')
        }
      }),
      new webpack.optimize.UglifyJsPlugin()
    ]
    : [new webpack.optimize.UglifyJsPlugin()],
  target: "electron-main",
  module: {
    rules: [
      {
        test: /\.jsx/,
        exclude: /node_modules/,
        use: {
          loader: 'babel-loader',
          options: {
            presets: [
              'es2015', 'react'
            ],
            "plugins": [
              [
                "lodash", {
                  "id": ["lodash", "semantic-ui-react"]
                }
              ]
            ]
          }
        }
      }, {
        test: /\.css$/,
        loader: ['style-loader', 'css-loader']
      }, {
        test: /\.(eot|svg|ttf|woff|woff2|png)$/,
        loader: 'file-loader?name=semantic/dist/themes/default/assets/fonts/[name].[ext]'
      }
    ]
  }
};
<commit_msg>fix build options<commit_after>const path = require('path');
const webpack = require("webpack");
const PROD = JSON.stringify(process.env.NODE_ENV === "production");

module.exports = {
  entry: './src/react/my-app.jsx',
  output: {
    filename: './src/bundle.js'
  },
  plugins: PROD == 'true'
    ? [
      new webpack.DefinePlugin({
        'process.env': {
          NODE_ENV: JSON.stringify('production')
        }
      }),
      new webpack.optimize.UglifyJsPlugin()
    ]
    : [new webpack.optimize.UglifyJsPlugin()],
  target: "electron-main",
  devtool: '#inline-source-map',
  module: {
    rules: [
      {
        test: /\.jsx/,
        exclude: /node_modules/,
        use: {
          loader: 'babel-loader',
          options: {
            presets: [
              'es2015', 'react'
            ],
            "plugins": [
              [
                "lodash", {
                  "id": ["lodash", "semantic-ui-react"]
                }
              ]
            ]
          }
        }
      }, {
        test: /\.css$/,
        loader: ['style-loader', 'css-loader']
      }, {
        test: /\.(eot|svg|ttf|woff|woff2|png)$/,
        loader: 'file-loader?name=semantic/dist/themes/default/assets/fonts/[name].[ext]'
      }
    ]
  }
};

{'fraction_non_alphanumeric': 0.1730228823765556, 'fraction_numerical': 0.004014452027298274, 'mean_word_length': 1.5402650356778798, 'pattern_counts': {'":': 4, '<': 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': '7104543', 'n_tokens_mistral': 837, 'n_tokens_neox': 796, 'n_words': 118}