<commit_before>/*
 * This file defines additional webpack configuration for this plugin.
 * It will be bundled into the webpack configuration at build time.
 */
var path = require('path');
var webpack = require('webpack');

module.exports = {
  resolve: {
    modules: [path.resolve(__dirname, 'node_modules/perseus/node_modules')]
  },
  resolveLoader: {
    modules: [path.resolve(__dirname, 'node_modules/perseus/node_modules')]
  },
  module: {
    rules: [
      {
        test: /perseus\/[\w\/\-\_]*\.jsx?$/,
        loader: 'string-replace-loader',
        enforce: 'pre',
        options: {
          multiple: [
            // Replace url reference to throbber.gif to be in a findable location
            {
              search: '"url(/images/throbber.gif) no-repeat"',
              replace: '"url(/static/images/throbber.gif) no-repeat"'
            },
            // Replace ngettext style messages with ICU syntax
            {
              search: /%\(([\w_]+)\)s/,<commit_msg>Bringing 'webpack' to existence in webpack config file.<commit_after>/*
 * This file defines additional webpack configuration for this plugin.
 * It will be bundled into the webpack configuration at build time.
 */
var path = require('path');
var webpack = require('perseus/node_modules/webpack');

module.exports = {
  resolve: {
    modules: [path.resolve(__dirname, 'node_modules/perseus/node_modules')]
  },
  resolveLoader: {
    modules: [path.resolve(__dirname, 'node_modules/perseus/node_modules')]
  },
  module: {
    rules: [
      {
        test: /perseus\/[\w\/\-\_]*\.jsx?$/,
        loader: 'string-replace-loader',
        enforce: 'pre',
        options: {
          multiple: [
            // Replace url reference to throbber.gif to be in a findable location
            {
              search: '"url(/images/throbber.gif) no-repeat"',
              replace: '"url(/static/images/throbber.gif) no-repeat"'
            },
            // Replace ngettext style messages with ICU syntax
            {
              search: /%\(([\w_]+)\)s/,
{'fraction_non_alphanumeric': 0.14104441190824793, 'fraction_numerical': 0.0, 'mean_word_length': 2.2283464566929134, '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': '4362260', 'n_tokens_mistral': 613, 'n_tokens_neox': 592, 'n_words': 150}