<commit_before>'use strict';

var path = require('path');
var webpack = require('webpack');

module.exports = function(main) {
  var modulePaths = [
    'web_modules', 
    'node_modules',
    path.resolve(__dirname, '../web_modules'),
    path.resolve(__dirname, '../node_modules')
  ];

  return {
    devtool: 'cheap-module-source-map ',
    entry: [
        'webpack-dev-server/client?http://0.0.0.0:8080',
        'webpack/hot/only-dev-server',
        path.join(__dirname, 'debug-host.jsx')
    ],
    output: {
      path: __dirname,
      filename: 'bundle.js'
    },
    resolve: {
      extensions: ['', '.js', '.jsx'],
      modulesDirectories: modulePaths,
      alias: {
        'react-pack-debug-root-component': main
      }
    },
    resolveLoader: {
      modulesDirectories: modulePaths
    },
    module: {
      loaders: [
        {
          test: /\.jsx$/,
          loaders: ['react-hot', 'babel-loader']
        },<commit_msg>apply babel transforms to ordinary js<commit_after>'use strict';

var path = require('path');
var webpack = require('webpack');

module.exports = function(main) {
  var modulePaths = [
    'web_modules', 
    'node_modules',
    path.resolve(__dirname, '../web_modules'),
    path.resolve(__dirname, '../node_modules')
  ];

  return {
    devtool: 'cheap-module-source-map ',
    entry: [
        'webpack-dev-server/client?http://0.0.0.0:8080',
        'webpack/hot/only-dev-server',
        path.join(__dirname, 'debug-host.jsx')
    ],
    output: {
      path: __dirname,
      filename: 'bundle.js'
    },
    resolve: {
      extensions: ['', '.js', '.jsx'],
      modulesDirectories: modulePaths,
      alias: {
        'react-pack-debug-root-component': main
      }
    },
    resolveLoader: {
      modulesDirectories: modulePaths
    },
    module: {
      loaders: [
        {
          test: /\.jsx?$/,
          loaders: ['react-hot', 'babel-loader']
        },
{'fraction_non_alphanumeric': 0.16865594187856772, 'fraction_numerical': 0.008303061754021795, 'mean_word_length': 2.2348993288590604, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '6289444', 'n_tokens_mistral': 631, 'n_tokens_neox': 615, 'n_words': 105}