<commit_before>var utils = require('shipit-utils');

/**
 * Symfony tasks
 */

module.exports = function (gruntOrShipit) {
  require('./vendors')(gruntOrShipit);
  require('./cache')(gruntOrShipit);
  require('./assets')(gruntOrShipit);

  utils.registerTask(gruntOrShipit, 'symfony:install', [
    'symfony:cache',
    'symfony:assets'
  ]);


  var shipit = utils.getShipit(gruntOrShipit);

  // Install vendors locally
  shipit.on('fetched', function() {
    shipit.start('symfony:vendors');
  });

  shipit.on('start', function() {
    // Prepare new release on server before publish
    var event = shipit.config.symfony.installOn || 'updated'; // or 'sharedEnd'
    shipit.on(event, function() {
      shipit.start('symfony:install');
    });
  });
};<commit_msg>Fix case where installOn is undefined<commit_after>var utils = require('shipit-utils');

/**
 * Symfony tasks
 */

module.exports = function (gruntOrShipit) {
  require('./vendors')(gruntOrShipit);
  require('./cache')(gruntOrShipit);
  require('./assets')(gruntOrShipit);

  utils.registerTask(gruntOrShipit, 'symfony:install', [
    'symfony:cache',
    'symfony:assets'
  ]);


  var shipit = utils.getShipit(gruntOrShipit);

  // Install vendors locally
  shipit.on('fetched', function() {
    shipit.start('symfony:vendors');
  });

  shipit.on('start', function() {
    // Prepare new release on server before publish
    var event = shipit.config.symfony.installOn;
    event = event !== undefined ? event : 'updated'; // or 'sharedEnd'
    shipit.on(event, function() {
      shipit.start('symfony:install');
    });
  });
};
{'fraction_non_alphanumeric': 0.17166042446941324, 'fraction_numerical': 0.0, 'mean_word_length': 3.9628482972136223, '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': '3912683', 'n_tokens_mistral': 543, 'n_tokens_neox': 548, 'n_words': 93}