<commit_before>const WebpackOnBuildPlugin = require('on-build-webpack')
const replace = require('replace')
const path = require('path')
const fs = require('fs')

// Workaround for https://github.com/ethereum/web3.js/issues/555:
module.exports = new WebpackOnBuildPlugin(function (stats) {
    const bundle = path.resolve(__dirname, '..', 'dist', 'bundle.js')
    if (fs.existsSync(bundle)) {
      replace({
        regex: '\u00A0',
        replacement: ' ',
        paths: [ bundle ]
      })
    }
  })<commit_msg>Fix style violations.<commit_after>const WebpackOnBuildPlugin = require('on-build-webpack')
const replace = require('replace')
const path = require('path')
const fs = require('fs')

// Workaround for https://github.com/ethereum/web3.js/issues/555:
module.exports = new WebpackOnBuildPlugin(function (stats) {
  const bundle = path.resolve(__dirname, '..', 'dist', 'bundle.js')
  if (fs.existsSync(bundle)) {
    replace({
      regex: '\u00A0',
      replacement: ' ',
      paths: [ bundle ]
    })
  }
})
{'fraction_non_alphanumeric': 0.16536203522504891, 'fraction_numerical': 0.0136986301369863, 'mean_word_length': 3.608108108108108, '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': '5622105', 'n_tokens_mistral': 327, 'n_tokens_neox': 321, 'n_words': 66}