<commit_before>export function initialize(/* container, application */) {
  Ember.Route.reopen({
    controllerAvailable: false,
    setupController: function(controller, model) {
      this._super(controller,model);
      if (!controller.isGenerated) {
        this.set('controllerAvailable',true);
        controller.set('active',true);
      }
    },
    activate: function() {
      this._activateController(true);
    },
    deactivate: function() {
      this._activateController(false);
    },
    _activateController: function(isActive) {
      if (this.get('controllerAvailable')) {
        this.controller.set('active',isActive);
      }
    }
  });
}

export default {
  name: 'activate-controller-via-route',
  initialize: initialize
};<commit_msg>changed to isActive to prevent conflict, now for an override<commit_after>export function initialize(/* container, application */) {
  Ember.Route.reopen({
    controllerAvailable: false,
    setupController: function(controller, model) {
      this._super(controller,model);
      if (!controller.isGenerated) {
        this.set('controllerAvailable',true);
        controller.set('isActive',true);
      }
    },
    activate: function() {
      this._activateController(true);
    },
    deactivate: function() {
      this._activateController(false);
    },
    _activateController: function(isActive) {
      if (this.get('controllerAvailable')) {
        this.controller.set('isActive',isActive);
      }
    }
  });
}

export default {
  name: 'activate-controller-via-route',
  initialize: initialize
};
{'fraction_non_alphanumeric': 0.13558243157224698, 'fraction_numerical': 0.0, 'mean_word_length': 3.318681318681319, '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': '5211380', 'n_tokens_mistral': 428, 'n_tokens_neox': 427, 'n_words': 75}