<commit_before>'use strict';
var webpack = require('webpack');

// Builds bundle usable <script>. Includes RGL and all deps, excluding React.
module.exports = {
    context: __dirname,
    entry: {
      'react-grid-layout': './index-dev.js'
    },
    output: {
      path: __dirname + "/dist",
      filename: "[name].min.js",
      libraryTarget: "umd",
      library: "ReactGridLayout"
    },
    devtool: 'source-map',
    externals: {
      // React dep should be available as window.React
      "react": "React",
      "react/addons": "React"
    },
    module: {
      loaders: [
        {test: /\.jsx?$/, exclude: /node_modules/, loader: 'babel-loader?stage=0'}
      ]
    },
    plugins: [
      new webpack.DefinePlugin({
        "process.env": {
          NODE_ENV: JSON.stringify('production')
        }
      }),
      new webpack.optimize.OccurenceOrderPlugin(),
      new webpack.optimize.DedupePlugin(),
      // See #40 - duplicated React modules don't play nice
      new webpack.NormalModuleReplacementPlugin(/\/react\/lib\/cloneWithProps/, '../../react-clonewithprops/index.js'),
      // Compress, but don't print warnings to console
      new webpack.optimize.UglifyJsPlugin({compress: {warnings: false}})
    ],
    resolve: {
      extensions: ["", ".webpack.js", ".web.js", ".js", ".jsx"]
    }
};<commit_msg>Fix duplicated react in webpack config<commit_after>var webpack = require("webpack");

// Builds bundle usable <script>. Includes RGL and all deps, excluding React.
module.exports = {
  context: __dirname,
  entry: {
    "react-grid-layout": "./index-dev.js"
  },
  output: {
    path: __dirname + "/dist",
    filename: "[name].min.js",
    libraryTarget: "umd",
    library: "ReactGridLayout"
  },
  devtool: "source-map",
  externals: {
    "react": {
      "commonjs": "react",
      "commonjs2": "react",
      "amd": "react",
      // React dep should be available as window.React, not window.react
      "root": "React"
    }
  },
  module: {
    loaders: [
      {test: /\.jsx?$/, exclude: /node_modules/, loader: "babel-loader?stage=0"}
    ]
  },
  plugins: [
    new webpack.DefinePlugin({
      "process.env": {
        NODE_ENV: JSON.stringify("production")
      }
    }),
    new webpack.optimize.OccurenceOrderPlugin(),
    new webpack.optimize.DedupePlugin(),
    // See #40 - duplicated React modules don't play nice
    new webpack.NormalModuleReplacementPlugin(/\/react\/lib\/cloneWithProps/, "../../react-clonewithprops/index.js"),
    // Compress, but don't print warnings to console
    new webpack.optimize.UglifyJsPlugin({compress: {warnings: false}})
  ],
  resolve: {
    extensions: ["", ".webpack.js", ".web.js", ".js", ".jsx"]
  }
};
{'fraction_non_alphanumeric': 0.1670989255279733, 'fraction_numerical': 0.002593553167839941, 'mean_word_length': 2.6437246963562755, 'pattern_counts': {'":': 10, '<': 5, '<?xml version=': 0, '>': 5, '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': '4288128', 'n_tokens_mistral': 876, 'n_tokens_neox': 863, 'n_words': 194}