<commit_before>// Directive
helmsmanDirective = function(){
    return {
        restrict: 'E',
        replace: true,
        scope: {
          menus: '=',
          jumps: '=',
          locationToMenu: '='
        },
        template: '<div>' +
  '<div class="helmsman-breadcrumb">' +
    '<span class="helmsman-breadcrumb-key">{{helmsman_back_shortcut}}</span>' +
    '<span ng-repeat="item in items" ng-if="item.breadcrumb">' +
      '<a href="" \
          tabIndex="-1" \
          ng-click="setMenu(item.breadcrumb)" \
          ng-if="item.breadcrumb">{{item.label}}</a> >' +
        
    '</span>' + 
  '</div>' + 

  '<div class="helmsman-menu">' + 
    '<div class="helmsman-heading" ng-if="heading">{{heading}}</div>' + 
    '<li ng-repeat="item in items" ng-if="!item.breadcrumb">' +

      // Link
      '<a id="{{item.link}}_menu_link" \
          href="" ng-click="setMenu(item.link)" \
          tabIndex="-1" \
          ng-if="item.link">' +

        '<div class=helmsman-link>' +
          '<span class="helmsman-key">{{item.key}}</span>' + 
          '{{item.label}}' +
        '</div>' +
      '</a>' +

      // Item
      '<a tabIndex="-1" \
          ui-sref="{{item.state}}" \
          ui-sref-active="helmsman-active-item" \
          ng-if="item.state">' +

        '<div id="{{item.state}}_menu_item" ng-class="{helmsman_item: item.exists != undefined, helmsman_missing_item: item.exists == undefined}">' +
          '<span class="helmsman-key">{{item.key}}</span>' + 
          '{{item.label}}' +
        '</div>' +
      '</a>' +

    '</li>' + 

    '<div ng-if="jumps">' +
      '<div class="helmsman-heading" ng-if="heading">Jump Menu</div>' + 
      '<li ng-repeat="item in jumps" ng-if="item.link">' +

        // Jump
        '<a id="{{item.link}}_menu_link" \
            href="" ng-click="setMenu(item.link)" \
            tabIndex="-1" \
            ng-if="item.link">' +

          '<div class=helmsman-link>' +
            '<span class="helmsman-key">{{item.jump_key}}</span>' + 
            '{{item.label}}' +
          '</div>' +
        '</a>' +

      '</li>' +
        
    '</div>' +
  '</div>' +

'</div>', 
        controller: HelmsmanController
    }
};

angular.module('helmsman').directive('helmsmanDirective', helmsmanDirective)<commit_msg>Directive-Display jump states<commit_after>// Directive
helmsmanDirective = function(){
    return {
        restrict: 'E',
        replace: true,
        scope: {
          menus: '=',
          jumps: '=',
          locationToMenu: '='
        },
        template: '<div>' +
  '<div class="helmsman-breadcrumb">' +
    '<span class="helmsman-breadcrumb-key">{{helmsman_back_shortcut}}</span>' +
    '<span ng-repeat="item in items" ng-if="item.breadcrumb">' +
      '<a href="" \
          tabIndex="-1" \
          ng-click="setMenu(item.breadcrumb)" \
          ng-if="item.breadcrumb">{{item.label}}</a> >' +
        
    '</span>' + 
  '</div>' + 

  '<div class="helmsman-menu">' + 
    '<div class="helmsman-heading" ng-if="heading">{{heading}}</div>' + 
    '<li ng-repeat="item in items" ng-if="!item.breadcrumb">' +

      // Link
      '<a id="{{item.link}}_menu_link" \
          href="" ng-click="setMenu(item.link)" \
          tabIndex="-1" \
          ng-if="item.link">' +

        '<div class=helmsman-link>' +
          '<span class="helmsman-key">{{item.key}}</span>' + 
          '{{item.label}}' +
        '</div>' +
      '</a>' +

      // State
      '<a tabIndex="-1" \
          ui-sref="{{item.state}}" \
          ui-sref-active="helmsman-active-item" \
          ng-if="item.state">' +

        '<div id="{{item.state}}_menu_item" ng-class="{helmsman_item: item.exists != undefined, helmsman_missing_item: item.exists == undefined}">' +
          '<span class="helmsman-key">{{item.key}}</span>' + 
          '{{item.label}}' +
        '</div>' +
      '</a>' +

    '</li>' + 

    '<div ng-if="jumps">' +
      '<div class="helmsman-heading" ng-if="heading">Jump Menu</div>' + 
      '<li ng-repeat="item in jumps" ng-if="!item.breadcrumb">' +

        // Jump link
        '<a id="{{item.link}}_menu_link" \
            href="" ng-click="setMenu(item.link)" \
            tabIndex="-1" \
            ng-if="item.link">' +

          '<div class=helmsman-link>' +
            '<span class="helmsman-key">{{item.jump_key}}</span>' + 
            '{{item.label}}' +
          '</div>' +
        '</a>' +

        // State
        '<a tabIndex="-1" \
            ui-sref="{{item.state}}" \
            ui-sref-active="helmsman-active-item" \
            ng-if="item.state">' +

          '<div id="{{item.state}}_menu_item">' +
            '<span class="helmsman-key">{{item.jump_key}}</span>' + 
            '{{item.label}}' +
          '</div>' +
        '</a>' +
      
      '</li>' +
        
    '</div>' +
  '</div>' +

'</div>', 
        controller: HelmsmanController
    }
};

angular.module('helmsman').directive('helmsmanDirective', helmsmanDirective)
{'fraction_non_alphanumeric': 0.2250501002004008, 'fraction_numerical': 0.0018036072144288577, 'mean_word_length': 1.9567535545023698, 'pattern_counts': {'":': 0, '<': 89, '<?xml version=': 0, '>': 91, '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': '1277246', 'n_tokens_mistral': 1741, 'n_tokens_neox': 1739, 'n_words': 231}