<commit_before>import dsl from 'ember-frost-navigation/utils/bind-dsl'
import asserts from 'ember-frost-navigation/utils/asserts'
import transitions from 'ember-frost-navigation/transitions/frost-navigation'

export default {
  name: 'ember-frost-navigation',
  _bindController (instance, nav, config) {
    Ember.assert(asserts.environment, config.frostNavigation && config.frostNavigation.controller)
    let ctrl  = instance.lookup(`controller:${config.frostNavigation.controller}`)
    let route = instance.lookup(`route:${config.frostNavigation.controller}`)
    route.setProperties({
      _handleTransition: function () {
        nav.set('_activeCategory', null)
      }.on('willTransition')
    })
    nav.addObserver(
      '_activeCategory',<commit_msg>good fix for pesky action transition overrides<commit_after>import dsl from 'ember-frost-navigation/utils/bind-dsl'
import asserts from 'ember-frost-navigation/utils/asserts'
import transitions from 'ember-frost-navigation/transitions/frost-navigation'

export default {
  name: 'ember-frost-navigation',
  _bindController (instance, nav, config) {
    Ember.assert(asserts.environment, config.frostNavigation && config.frostNavigation.controller)
    let ctrl  = instance.lookup(`controller:${config.frostNavigation.controller}`)
    ctrl.addObserver(
      'currentPath',
      ctrl,
      () => {
        nav.set('_activeCategory', null)
      }
    )
    nav.addObserver(
      '_activeCategory',
{'fraction_non_alphanumeric': 0.12030075187969924, 'fraction_numerical': 0.0, 'mean_word_length': 4.4222222222222225, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '1687613', 'n_tokens_mistral': 422, 'n_tokens_neox': 418, 'n_words': 75}