<commit_before>exports.default = {
  command: 'watch [servers..]',
  describe: 'watch mode',
  builder: yargs => yargs.options({
    port: { alias: 'p' },
    client: { alias: 'c', type: 'boolean' },
    bundle: { alias: 'b', type: 'boolean' }
  }),
  async handler (argv) {
    const servers = argv.servers.length ? argv.servers : ['app']
    const shelljs = require('shelljs')
    const { addonArgs } = require('../lib/helper')
    process.env.WATCH_MODE = true
    if (argv.client) {
      const args = addonArgs()
      servers.forEach(name => {
        shelljs.exec(`webpack-dev-server --config ./app/clients/${name}/webpack \
          -d --history-api-fallback --inline --progress \
          --host 0.0.0.0 ${args}`, {
            maxBuffer: 1024 * 1000
          })
      })
    } else {
      const commands = [`"nodemon --harmony --watch \
        app --ignore app/clients \
        -L -e js,es,jsx ./app/index.js -- ${servers.join(' ')}"`]
      const names = ['server']
      servers.forEach(name => {
        const server = require(`../servers/${name}`)
        if (server.clients) {
          server.clients.forEach(client => {
            names.push(`client:${client}`)
            commands.push(`"npm start watch ${client} -- -c"`)
          })
        }
      })
      shelljs.exec(commands.length > 1
        ? `concurrently -p name -n "${names.join(',')}" ${commands.join(' ')}`
        : commands[0])
    }
  }
}<commit_msg>bug fixed<commit_after>exports.default = {
  command: 'watch [servers..]',
  describe: 'watch mode',
  builder: yargs => yargs.options({
    port: { alias: 'p' },
    client: { alias: 'c', type: 'boolean' },
    bundle: { alias: 'b', type: 'boolean' }
  }),
  async handler (argv) {
    const servers = argv.servers.length ? argv.servers : ['app']
    const shelljs = require('shelljs')
    const { addonArgs } = require('../lib/helper')
    process.env.WATCH_MODE = true
    if (argv.client) {
      const args = addonArgs()
      servers.forEach(name => {
        shelljs.exec(`webpack-dev-server --config ./app/clients/${name}/webpack \
          -d --history-api-fallback --inline --progress \
          --host 0.0.0.0 ${args}`, {
            maxBuffer: 1024 * 1000
          })
      })
    } else {
      const commands = [`nodemon --harmony --watch app --ignore app/clients -L -e js,es,jsx ./app/index.js -- ${servers.join(' ')}`]
      const names = ['server']
      servers.forEach(name => {
        const server = require(`../servers/${name}`)
        if (server.clients) {
          server.clients.forEach(client => {
            names.push(`client:${client}`)
            commands.push(`"npm start watch ${client} -- -c"`)
          })
        }
      })
      console.log(commands[0])
      shelljs.exec(commands.length > 1
        ? `concurrently -p name -n "${names.join(',')}" ${commands.map(c => `"${c}"`).join(' ')}`
        : commands[0])
    }
  }
}
{'fraction_non_alphanumeric': 0.1911461908030199, 'fraction_numerical': 0.009951956074124914, 'mean_word_length': 2.071654373024236, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 14, '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': '1163676', 'n_tokens_mistral': 948, 'n_tokens_neox': 942, 'n_words': 197}