<commit_before>const path = require('path');


module.exports = function makeWebpackConfig() {
  /**
   * Config
   * Reference: http://webpack.github.io/docs/configuration.html
   * This is the object where all configuration gets set
   */
  const config = {};

  config.isparta = {
    embedSource: true,
    noAutoWrap: true,
    babel: {
      plugins: 'rewire',
    },
  };

  config.debug = true;

  config.devtool = 'inline-source-map';

  // Initialize module
  config.module = {
    preLoaders: [],
    loaders: [{
      test: /\.js$/,
      loader: 'babel-loader',
      exclude: /node_modules/,
    }, {
      test: /\.json$/,
      loader: 'json',
    }],
  };

  // ISPARTA LOADER
  // Reference: https://github.com/ColCh/isparta-instrumenter-loader
  // Instrument JS files with Isparta for subsequent code coverage reporting
  // Skips node_modules and files that end with .test.js

  // config.module.preLoaders.push({
  //   test: /\.js$/,
  //   include: [
  //     path.resolve(__dirname, '../../src')],
  //   exclude: /\.spec\.js/,
  //   loader: 'isparta-instrumenter',
  // });

  config.plugins = [];

  return config;
}();<commit_msg>chore: fix sourcemap lines to be correct<commit_after>const path = require('path');


module.exports = function makeWebpackConfig() {
  /**
   * Config
   * Reference: http://webpack.github.io/docs/configuration.html
   * This is the object where all configuration gets set
   */
  const config = {};

  config.isparta = {
    embedSource: true,
    noAutoWrap: true,
    babel: {
      plugins: 'rewire',
    },
  };

  config.debug = false;

  config.devtool = 'eval-source-map';

  // Initialize module
  config.module = {
    preLoaders: [],
    loaders: [{
      test: /\.js$/,
      loader: 'babel-loader?retainLines=true',
      exclude: /node_modules/,
    }, {
      test: /\.json$/,
      loader: 'json',
    }],
  };

  // ISPARTA LOADER
  // Reference: https://github.com/ColCh/isparta-instrumenter-loader
  // Instrument JS files with Isparta for subsequent code coverage reporting
  // Skips node_modules and files that end with .test.js

  // config.module.preLoaders.push({
  //   test: /\.js$/,
  //   include: [
  //     path.resolve(__dirname, '../../src')],
  //   exclude: /\.spec\.js/,
  //   loader: 'isparta-instrumenter',
  // });

  config.plugins = [];

  return config;
}();
{'fraction_non_alphanumeric': 0.16730199068191445, 'fraction_numerical': 0.0, 'mean_word_length': 2.3314527503526095, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '5080971', 'n_tokens_mistral': 794, 'n_tokens_neox': 763, 'n_words': 170}