<commit_before>var path = require('path');
module.exports = {
  entry: './web/index.js',
  output: {
    path: path.resolve(__dirname, 'target/web'),
    filename: 'bundle.js'
  },
  module: {
    loaders: [
      {test: /\.js$/, loaders: ['jsx', 'babel'], exclude: /node_modules/},
      {test: /\.css$/, loader: 'style!css'}
    ]
  }
};
<commit_msg>Live-reload<commit_after>var path = require('path');

function getEntrySources(sources) {
  if (process.env.NODE_ENV !== 'production') {
    sources.push('webpack-dev-server/client?http://localhost:8080');
  }
  return sources;
}

module.exports = {
  entry: getEntrySources([
    './web/index.js'
  ]),
  output: {
    path: path.resolve(__dirname, 'target/web'),
    filename: 'bundle.js'
  },
  module: {
    loaders: [
      {test: /\.js$/, loaders: ['jsx', 'babel'], exclude: /node_modules/},
      {test: /\.css$/, loader: 'style!css'}
    ]
  }
};

{'fraction_non_alphanumeric': 0.21499448732083792, 'fraction_numerical': 0.004410143329658214, 'mean_word_length': 3.0355555555555553, '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': '3553869', 'n_tokens_mistral': 337, 'n_tokens_neox': 327, 'n_words': 59}