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

var path = require('path');

var production = (process.env.NODE_ENV === 'production');

var config = {
  entry: path.resolve(__dirname, 'src/index'),
  output: {
    path: path.resolve(__dirname, 'build'),
    filename: 'bundle.js'
  },
  resolve: {
      extensions: ['', '.js', '.jsx']
  },
  module: {
    loaders: [
      {
        test: /\.jsx?$/,
        exclude: /node_modules/,
        loader: 'babel-loader',
        query: {
          presets: ['react', 'es2015']
        }
      },
      {
        test: /\.css$/, 
        loader: "style-loader!css-loader"
      }
    ]
  },
  plugins: production ? [
    new webpack.optimize.UglifyJsPlugin({
      compress: {
        warnings: false<commit_msg>Added js to use babel<commit_after>var webpack = require('webpack');

var path = require('path');

var production = (process.env.NODE_ENV === 'production');

var config = {
  entry: path.resolve(__dirname, 'src/index'),
  output: {
    path: path.resolve(__dirname, 'build'),
    filename: 'bundle.js'
  },
  resolve: {
      extensions: ['', '.js', '.jsx']
  },
  module: {
    loaders: [
      {
        test: /\.jsx?$/,
        exclude: /node_modules/,
        loader: 'babel-loader',
        query: {
          presets: ['react', 'es2015']
        }
      },
      {
        test: /\.js?$/,
        exclude: /node_modules/,
        loader: 'babel-loader',
        query: {
          presets: ['react', 'es2015']
        }
      },
      {
        test: /\.css$/, 
        loader: "style-loader!css-loader"
      }
    ]
  },
  plugins: production ? [
    new webpack.optimize.UglifyJsPlugin({
      compress: {
        warnings: false
{'fraction_non_alphanumeric': 0.17511792452830188, 'fraction_numerical': 0.007075471698113208, 'mean_word_length': 1.9461805555555556, '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': '6567032', 'n_tokens_mistral': 571, 'n_tokens_neox': 553, 'n_words': 109}