<commit_before>/*
Auto-runs grunt in $GIRDER_PATH after the webpack build finishes
(only happens with webpack --watch)

make sure to export GIRDER_PATH=path/to/your/girder/installation
before webpack --watch
*/

var exec = require('child_process').exec;

module.exports = {
  apply: function (compiler) {
    compiler.plugin('emit', (compilation, callback) => {
      if (compilation.options.watch === true) {
        exec('cd $GIRDER_PATH && grunt --force', function (error, stdout, stderr) {
          if (error) {<commit_msg>Remove grunt --force option<commit_after>/*
Auto-runs grunt in $GIRDER_PATH after the webpack build finishes
(only happens with webpack --watch)

make sure to export GIRDER_PATH=path/to/your/girder/installation
before webpack --watch
*/

var exec = require('child_process').exec;

module.exports = {
  apply: function (compiler) {
    compiler.plugin('emit', (compilation, callback) => {
      if (compilation.options.watch === true) {
        exec('cd $GIRDER_PATH && grunt', function (error, stdout, stderr) {
          if (error) {
{'fraction_non_alphanumeric': 0.1318267419962335, 'fraction_numerical': 0.0, 'mean_word_length': 3.853881278538813, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '1962635', 'n_tokens_mistral': 336, 'n_tokens_neox': 333, 'n_words': 94}