<commit_before>import Ember from 'ember';
import C from 'ui/utils/constants';

export default Ember.Route.extend({
  projects: Ember.inject.service(),

  model: function() {
    return this.get('store').findAll('stack');
  },

  resetController: function (controller/*, isExisting, transition*/) {
    if ( this.get('projects.current.orchestrationState.hasKubernetes') ||
        this.get('projects.current.orchestrationState.hasSwarm') ||
        this.get('projects.current.orchestrationState.hasMesos') ) {
      controller.set('which', C.EXTERNAL_ID.KIND_SYSTEM);
    } else {
      controller.set('which', C.EXTERNAL_ID.KIND_USER);
    }
  },
})<commit_msg>jshint<commit_after>import Ember from 'ember';
import C from 'ui/utils/constants';

export default Ember.Route.extend({
  projects: Ember.inject.service(),

  model: function() {
    return this.get('store').findAll('stack');
  },

  resetController: function (controller/*, isExisting, transition*/) {
    if ( this.get('projects.current.orchestrationState.hasKubernetes') ||
        this.get('projects.current.orchestrationState.hasSwarm') ||
        this.get('projects.current.orchestrationState.hasMesos') ) {
      controller.set('which', C.EXTERNAL_ID.KIND_SYSTEM);
    } else {
      controller.set('which', C.EXTERNAL_ID.KIND_USER);
    }
  },
});
{'fraction_non_alphanumeric': 0.15881458966565348, 'fraction_numerical': 0.0, 'mean_word_length': 4.124513618677042, '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': '7205490', 'n_tokens_mistral': 421, 'n_tokens_neox': 428, 'n_words': 62}