<commit_before>angular.module('mwUI.Menu')

  .directive('mwMenuTop', function ($rootScope, $timeout) {
    return {
      scope: {
        menu: '=mwMenuTop'
      },
      transclude: true,
      templateUrl: 'uikit/mw-menu/directives/templates/mw_menu_top.html',
      controller: function(){
        var menu = new mwUI.Menu.MwMenu();

        this.getMenu = function(){
          return menu;
        }
      },
      link: function(scope, el, attrs, ctrl){
        scope.entries = ctrl.getMenu();

        scope.unCollapse = function() {
          var collapseEl = el.find('.navbar-collapse');
          if(collapseEl.hasClass('in')) {
            collapseEl.collapse('hide');
          }
        };

        $rootScope.$on('$locationChangeSuccess', function(){
          scope.unCollapse();
        });

        scope.$on('mw-menu:triggerReorder', _.throttle(function(){
          $timeout(function(){
            scope.$broadcast('mw-menu:reorder');
          });
        }));

        scope.$on('mw-menu:triggerResort', _.throttle(function(){
          $timeout(function(){
            scope.$broadcast('mw-menu:resort');
            scope.entries.sort();
          });
        }));
      }
    };<commit_msg>add missing semicolon<commit_after>angular.module('mwUI.Menu')

  .directive('mwMenuTop', function ($rootScope, $timeout) {
    return {
      scope: {
        menu: '=mwMenuTop'
      },
      transclude: true,
      templateUrl: 'uikit/mw-menu/directives/templates/mw_menu_top.html',
      controller: function(){
        var menu = new mwUI.Menu.MwMenu();

        this.getMenu = function(){
          return menu;
        };
      },
      link: function(scope, el, attrs, ctrl){
        scope.entries = ctrl.getMenu();

        scope.unCollapse = function() {
          var collapseEl = el.find('.navbar-collapse');
          if(collapseEl.hasClass('in')) {
            collapseEl.collapse('hide');
          }
        };

        $rootScope.$on('$locationChangeSuccess', function(){
          scope.unCollapse();
        });

        scope.$on('mw-menu:triggerReorder', _.throttle(function(){
          $timeout(function(){
            scope.$broadcast('mw-menu:reorder');
          });
        }));

        scope.$on('mw-menu:triggerResort', _.throttle(function(){
          $timeout(function(){
            scope.$broadcast('mw-menu:resort');
            scope.entries.sort();
          });
        }));
      }
    };
{'fraction_non_alphanumeric': 0.1623721881390593, 'fraction_numerical': 0.0, 'mean_word_length': 1.9720534629404618, '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': '351414', 'n_tokens_mistral': 733, 'n_tokens_neox': 706, 'n_words': 100}