<commit_before>'use strict';

let angular = require('angular');

module.exports = angular.module('spinnaker.core.deploymentStrategy.redblack', [])
  .config(function(deploymentStrategyConfigProvider) {
    deploymentStrategyConfigProvider.registerStrategy({
      label: 'Red/Black',
      description: 'Disables previous server group as soon as new server group passes health checks',
      key: 'redblack',
      providers: ['aws', 'gce', 'cf'],
      additionalFields: ['scaleDown', 'maxRemainingAsgs'],
      additionalFieldsTemplateUrl: require('./additionalFields.html'),
    });
  });<commit_msg>default maxRemainingAsgs to 2 on redblack<commit_after>'use strict';

let angular = require('angular');

module.exports = angular.module('spinnaker.core.deploymentStrategy.redblack', [])
  .config(function(deploymentStrategyConfigProvider) {
    deploymentStrategyConfigProvider.registerStrategy({
      label: 'Red/Black',
      description: 'Disables previous server group as soon as new server group passes health checks',
      key: 'redblack',
      providers: ['aws', 'gce', 'cf'],
      additionalFields: ['scaleDown', 'maxRemainingAsgs'],
      additionalFieldsTemplateUrl: require('./additionalFields.html'),
      initializationMethod: function(command) {
        command.maxRemainingAsgs = command.maxRemainingAsgs || 2;
      },
    });
  });
{'fraction_non_alphanumeric': 0.1296978629329403, 'fraction_numerical': 0.0014738393515106854, 'mean_word_length': 4.634854771784233, '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': '264021', 'n_tokens_mistral': 360, 'n_tokens_neox': 360, 'n_words': 82}