<commit_before>module.exports = function (shipit) {
  require('shipit-deploy')(shipit)

  const deployTo = '~/guild'

  shipit.initConfig({
    default: {
      workspace: '/tmp/guild',
      deployTo,
      keepReleases: 2,
      ignores: ['.git', 'node_modules'],
      //rsync: ['--del'],
      deleteOnRollback: false,
      shallowClone: true,
      repositoryUrl: process.cwd() + '/.git',
      branch: 'production'
    },
    production: {
    }
  })

  shipit.blTask('install', () => {
    return shipit.remote(`cd ${deployTo}/current && nvm use && npm install`)
  })

  shipit.blTask('start', () => {
    return shipit.remote(`cd ${deployTo} && nvm use $(current/.nvmrc) && pm2 startOrReload current/ecosystem.json`)
  })

  shipit.blTask('stop', () => {
    return shipit.remote('pm2 stop all')
  })

  shipit.on('deployed', () => {
    shipit.start('install',  'start')
  })
}<commit_msg>Fix shipitfile<commit_after>module.exports = function (shipit) {
  require('shipit-deploy')(shipit)

  const deployTo = '~/guild'

  shipit.initConfig({
    default: {
      workspace: '/tmp/guild',
      deployTo,
      keepReleases: 2,
      ignores: ['.git', 'node_modules'],
      //rsync: ['--del'],
      deleteOnRollback: false,
      shallowClone: true,
      repositoryUrl: process.cwd() + '/.git',
      branch: 'production'
    },
    production: {
    }
  })

  shipit.blTask('install', () => {
    return shipit.remote(`cd ${deployTo}/current && nvm use && npm install`)
  })

  shipit.blTask('start', () => {
    return shipit.remote(`cd ${deployTo} && nvm use $(cat current/.nvmrc) && pm2 startOrReload current/ecosystem.json`)
  })

  shipit.blTask('stop', () => {
    return shipit.remote('pm2 stop all')
  })

  shipit.on('deployed', () => {
    shipit.start('install',  'start')
  })
}
{'fraction_non_alphanumeric': 0.19079312257348863, 'fraction_numerical': 0.0033277870216306157, 'mean_word_length': 2.9302832244008714, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '7097802', 'n_tokens_mistral': 643, 'n_tokens_neox': 625, 'n_words': 112}