<commit_before>const path = require('path');
const webpack = require('webpack');
const babelConfig = require('./babel-config');

const env = process.env.NODE_ENV;

const babelPresets = babelConfig.presets.join(',');
const defaultPlugins = [
  new webpack.DefinePlugin({ 'process.env.NODE_ENV': JSON.stringify(env) })
];

var config = {
  devtool: 'cheap-module-eval-source-map',
  entry: [
    'eventsource-polyfill', // necessary for hot reloading with IE
    'webpack-hot-middleware/client',
    './src/app'
  ],
  output: {
    path: path.resolve('./dist'),
    filename: 'app.js',
    publicPath: '/static/'
  },
  plugins: [
    new webpack.HotModuleReplacementPlugin(),
    new webpack.NoErrorsPlugin()
  ].concat(defaultPlugins),
  resolve: {
    extensions: ['', '.jsx', '.js']
  },
  module: {
    loaders: [
      {
        test: /\.jsx?/,
        loader: 'babel',
        include: path.resolve('./src'),
        query: { presets: babelPresets }
      },
      {
        test: /\.less$/,
        loader: 'style!css!less'
      },
      {<commit_msg>improve test pattern for babel loader<commit_after>const path = require('path');
const webpack = require('webpack');
const babelConfig = require('./babel-config');

const env = process.env.NODE_ENV;

const babelPresets = babelConfig.presets.join(',');
const defaultPlugins = [
  new webpack.DefinePlugin({ 'process.env.NODE_ENV': JSON.stringify(env) })
];

var config = {
  devtool: 'cheap-module-eval-source-map',
  entry: [
    'eventsource-polyfill', // necessary for hot reloading with IE
    'webpack-hot-middleware/client',
    './src/app'
  ],
  output: {
    path: path.resolve('./dist'),
    filename: 'app.js',
    publicPath: '/static/'
  },
  plugins: [
    new webpack.HotModuleReplacementPlugin(),
    new webpack.NoErrorsPlugin()
  ].concat(defaultPlugins),
  resolve: {
    extensions: ['', '.jsx', '.js']
  },
  module: {
    loaders: [
      {
        test: /\.jsx?$/,
        loader: 'babel',
        include: path.resolve('./src'),
        query: { presets: babelPresets }
      },
      {
        test: /\.less$/,
        loader: 'style!css!less'
      },
      {
{'fraction_non_alphanumeric': 0.17405506299580029, 'fraction_numerical': 0.0, 'mean_word_length': 2.735191637630662, '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': '871331', 'n_tokens_mistral': 714, 'n_tokens_neox': 703, 'n_words': 139}