<commit_before>var path = require('path');
var webpack = require('webpack')
var HtmlWebpackPlugin = require('html-webpack-plugin')
var ExtractTextPlugin = require("extract-text-webpack-plugin");

module.exports = {
  // context: 'src',
  entry: [
    'webpack/hot/dev-server',
    'webpack-dev-server/client?http://localhost:8080',
    path.resolve('src/js/app')
  ],

  output: {
    path: path.resolve('build'),
    filename: 'bundle.js',
    publicPath: '/'
  },

  devServer: {
    contentBase: 'src',
    stats: {
      colors: true
    },
    quiet: true,
    hot: true
  },

  //loaders are webpack essential tool to bundle files
  module: {
    loaders: [
      //transpile es6 to es5
      {
        test: /\.js$/,
        exclude: /node_modules/,
        loader: 'babel-loader'
      },
      //parse .scss into css
      {
        test: /\.scss$/,
        exclude: /node_modules/,
        loader: ExtractTextPlugin.extract("style", "css!sass")
      },
      //bundle any files within limit of 10kb into bundle.js,
      //if more than limit it will be a separate network request
      {
        test: /\.(png|jpg)$/,
        exclude: /node_modules/,
        loader: 'url-loader?limit=10000&name=images/[name].[ext]'
      }, {
        test: /\.(eot|otf|ttf)$/,
        exclude: /node_modules/,
        loader: 'url-loader?limit=10000&name=fonts/[hash].[ext]'
      }
    ]
  },

  plugins: [
    new webpack.optimize.UglifyJsPlugin({
      compress: {
        warnings: false
      }
    }),
    new ExtractTextPlugin("css/styles.css"),
    new HtmlWebpackPlugin({
      minify: {
        removeComments: true,
        collapseWhitespace: true
      },
      template: './src/index.html',
      title: 'React Webpack',
    })
  ],

  //allow require without file extension
  resolve: {
    extensions: ['', '.js', '.es6']
  }
}<commit_msg>Update build extension for es6<commit_after>var path = require('path');
var webpack = require('webpack')
var HtmlWebpackPlugin = require('html-webpack-plugin')
var ExtractTextPlugin = require("extract-text-webpack-plugin");

module.exports = {
  // context: 'src',
  entry: [
    'webpack/hot/dev-server',
    'webpack-dev-server/client?http://localhost:8080',
    path.resolve('src/js/app')
  ],

  output: {
    path: path.resolve('build'),
    filename: 'bundle.js',
    publicPath: '/'
  },

  devServer: {
    contentBase: 'src',
    stats: {
      colors: true
    },
    quiet: true,
    hot: true
  },

  //loaders are webpack essential tool to bundle files
  module: {
    loaders: [
      //transpile es6 to es5
      {
        test: /\.(js|jsx|es6)$/,
        exclude: /node_modules/,
        loader: 'babel-loader'
      },
      //parse .scss into css
      {
        test: /\.scss$/,
        exclude: /node_modules/,
        loader: ExtractTextPlugin.extract("style", "css!sass")
      },
      //bundle any files within limit of 10kb into bundle.js,
      //if more than limit it will be a separate network request
      {
        test: /\.(png|jpg)$/,
        exclude: /node_modules/,
        loader: 'url-loader?limit=10000&name=images/[name].[ext]'
      }, {
        test: /\.(eot|otf|ttf)$/,
        exclude: /node_modules/,
        loader: 'url-loader?limit=10000&name=fonts/[hash].[ext]'
      }
    ]
  },

  plugins: [
    new webpack.optimize.UglifyJsPlugin({
      compress: {
        warnings: false
      }
    }),
    new ExtractTextPlugin("css/styles.css"),
    new HtmlWebpackPlugin({
      minify: {
        removeComments: true,
        collapseWhitespace: true
      },
      template: './src/index.html',
      title: 'React Webpack',
    })
  ],

  //allow require without file extension
  resolve: {
    extensions: ['', '.js', '.es6', '.jsx']
  }
}
{'fraction_non_alphanumeric': 0.15788065293015788, 'fraction_numerical': 0.010703773080010704, 'mean_word_length': 2.1812765957446807, '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': '3171928', 'n_tokens_mistral': 1256, 'n_tokens_neox': 1188, 'n_words': 259}