<commit_before><div ng-if="::!layertreeCtrl.isRoot" id="node-{{::layertreeCtrl.uid}}" ng-class="[layertreeCtrl.node.children ? 'group' : 'leaf', 'depth-' + layertreeCtrl.depth, gmfLayertreeCtrl.getResolutionStyle(layertreeCtrl.node), gmfLayertreeCtrl.getNoSourceStyle(layertreeCtrl), gmfLayertreeCtrl.getNodeState(layertreeCtrl)]">
  <i ng-if="layertreeCtrl.depth === 1 && gmfLayertreeCtrl.layers.length > 1" class="sortable-handle fa fa-ellipsis-v"></i>
    <a  ng-if="::layertreeCtrl.node.children"
        data-toggle="collapse"
        href="#layer-group-{{::layertreeCtrl.uid}}"
        aria-expanded="{{::layertreeCtrl.node.metadata.isExpanded}}"
        class="fa expand-node fa-fw">
    </a>
  <a href ng-click="::gmfLayertreeCtrl.toggleActive(layertreeCtrl)">
    <span class="layerIcon" ng-if="::!layertreeCtrl.node.children" ng-class="::{'no-layer-icon' : !gmfLayertreeCtrl.getLegendIconURL(layertreeCtrl)}">
      <img ng-if="::(legendIconUrl=gmfLayertreeCtrl.getLegendIconURL(layertreeCtrl))" ng-src="{{::legendIconUrl}}"></img>
    </span>
    <span ng-if="::layertreeCtrl.node.children" ng-class="['fa fa-fw', layertreeCtrl.node.children && !layertreeCtrl.layer.loading ? 'state' : 'fa-refresh fa-spin']"></span>
    <span class="name" title="{{layertreeCtrl.node.name | translate}}">{{layertreeCtrl.node.name | translate}}</span>
  </a>
  <span class="rightButtons">
    <a href="" ng-if="::layertreeCtrl.depth == 1" ng-click="gmfLayertreeCtrl.removeNode(layertreeCtrl.node)">
      <span class="fa fa-trash"></span>
    </a>
    <span ngeo-popover ng-if="!layertreeCtrl.node.mixed">
      <span ngeo-popover-anchor class="extra-actions fa fa-cog"></span>
      <div ngeo-popover-content>
        <ul>
          <li>
            <i class="fa fa-tint fa-fw"></i>
            <!-- TODO : use filter to translate Opacity -->
            <span for="layer-opactity">Opacity</span>
            <input class="input-action" name="layer-opactity" type="range" min="0" max="1" step="0.01" ng-model="layertreeCtrl.layer.opacity">
          </li>
          <li ng-if="::gmfLayertreeCtrl.getLegendURL(layertreeCtrl) && layertreeCtrl.node.metadata.legend == 'true'">
            <i class="fa fa-th-list fa-fw"></i>
            <a title="{{'Show/hide legend'|translate}}" ng-click="::gmfLayertreeCtrl.toggleNodeLegend('#node-' + layertreeCtrl.uid + '-legend')" data-toggle="collapse" href="">{{'Show/hide legend'|translate}}</a>
          </li>
        </ul>
      </div>
    </span>
    <span class="metadata" ng-if="::layertreeCtrl.node.metadata.metadataUrl">
      <span ng-if="::gmfLayertreeCtrl.openLinksInNewWindow === true">
        <a title="{{'More informations'|translate}}" href="{{::layertreeCtrl.node.metadata.metadataUrl}}" target="blank_"></a>
      </span>
      <span ng-if="::gmfLayertreeCtrl.openLinksInNewWindow !== true">
        <a title="{{'More informations'|translate}}" href="" ng-click="gmfLayertreeCtrl.displayMetadata(layertreeCtrl)"></a>
      </span>
    </span>
    <span class="zoom" title="{{'Zoom to a visible level'|translate}}" ng-click="::gmfLayertreeCtrl.zoomToResolution(layertreeCtrl.node)"></span>
    <span class="legendButton" ng-if="::gmfLayertreeCtrl.getLegendURL(layertreeCtrl) && layertreeCtrl.node.metadata.legend == 'true'">
      <a title="{{'Show/hide legend'|translate}}" data-toggle="collapse" href="#node-{{::layertreeCtrl.uid}}-legend"></a>
    </span>
  </span>
    <div ng-if="::gmfLayertreeCtrl.getLegendURL(layertreeCtrl) && layertreeCtrl.node.metadata.legend == 'true'" id="node-{{::layertreeCtrl.uid}}-legend" class="collapse legend" ng-class="::[layertreeCtrl.node.metadata.isLegendExpanded == 'true' ? 'in' : '']">
      <a title="{{'Hide legend'|translate}}" data-toggle="collapse" ng-click="::gmfLayertreeCtrl.toggleNodeLegend('#node-' + layertreeCtrl.uid + '-legend')" href="">{{'Hide legend'|translate}}</a>
      <img ng-src="{{gmfLayertreeCtrl.getLegendURL(layertreeCtrl)}}"></img>
    </div>
</div>
<ul id="layer-group-{{::layertreeCtrl.uid}}"
    ng-if="::layertreeCtrl.node.children"
    ng-class="{collapse: !layertreeCtrl.isRoot, in : layertreeCtrl.node.metadata.isExpanded}"
    ngeo-sortable="::layertreeCtrl.isRoot && gmfLayertreeCtrl.layers"
    ngeo-sortable-options="{handleClassName: 'sortable-handle', draggerClassName: 'dragger', currDragItemClassName : 'curr-drag-item'}">
  <li class="gmf-layertree-node" ng-repeat="node in layertreeCtrl.node.children"
      ng-class="'depth-' + layertreeCtrl.depth"
      ngeo-layertree="node"
      ngeo-layertree-notroot<commit_msg>The legend is now a boolean<commit_after><div ng-if="::!layertreeCtrl.isRoot" id="node-{{::layertreeCtrl.uid}}" ng-class="[layertreeCtrl.node.children ? 'group' : 'leaf', 'depth-' + layertreeCtrl.depth, gmfLayertreeCtrl.getResolutionStyle(layertreeCtrl.node), gmfLayertreeCtrl.getNoSourceStyle(layertreeCtrl), gmfLayertreeCtrl.getNodeState(layertreeCtrl)]">
  <i ng-if="layertreeCtrl.depth === 1 && gmfLayertreeCtrl.layers.length > 1" class="sortable-handle fa fa-ellipsis-v"></i>
    <a  ng-if="::layertreeCtrl.node.children"
        data-toggle="collapse"
        href="#layer-group-{{::layertreeCtrl.uid}}"
        aria-expanded="{{::layertreeCtrl.node.metadata.isExpanded}}"
        class="fa expand-node fa-fw">
    </a>
  <a href ng-click="::gmfLayertreeCtrl.toggleActive(layertreeCtrl)">
    <span class="layerIcon" ng-if="::!layertreeCtrl.node.children" ng-class="::{'no-layer-icon' : !gmfLayertreeCtrl.getLegendIconURL(layertreeCtrl)}">
      <img ng-if="::(legendIconUrl=gmfLayertreeCtrl.getLegendIconURL(layertreeCtrl))" ng-src="{{::legendIconUrl}}"></img>
    </span>
    <span ng-if="::layertreeCtrl.node.children" ng-class="['fa fa-fw', layertreeCtrl.node.children && !layertreeCtrl.layer.loading ? 'state' : 'fa-refresh fa-spin']"></span>
    <span class="name" title="{{layertreeCtrl.node.name | translate}}">{{layertreeCtrl.node.name | translate}}</span>
  </a>
  <span class="rightButtons">
    <a href="" ng-if="::layertreeCtrl.depth == 1" ng-click="gmfLayertreeCtrl.removeNode(layertreeCtrl.node)">
      <span class="fa fa-trash"></span>
    </a>
    <span ngeo-popover ng-if="!layertreeCtrl.node.mixed">
      <span ngeo-popover-anchor class="extra-actions fa fa-cog"></span>
      <div ngeo-popover-content>
        <ul>
          <li>
            <i class="fa fa-tint fa-fw"></i>
            <!-- TODO : use filter to translate Opacity -->
            <span for="layer-opactity">Opacity</span>
            <input class="input-action" name="layer-opactity" type="range" min="0" max="1" step="0.01" ng-model="layertreeCtrl.layer.opacity">
          </li>
          <li ng-if="::gmfLayertreeCtrl.getLegendURL(layertreeCtrl) && layertreeCtrl.node.metadata.legend">
            <i class="fa fa-th-list fa-fw"></i>
            <a title="{{'Show/hide legend'|translate}}" ng-click="::gmfLayertreeCtrl.toggleNodeLegend('#node-' + layertreeCtrl.uid + '-legend')" data-toggle="collapse" href="">{{'Show/hide legend'|translate}}</a>
          </li>
        </ul>
      </div>
    </span>
    <span class="metadata" ng-if="::layertreeCtrl.node.metadata.metadataUrl">
      <span ng-if="::gmfLayertreeCtrl.openLinksInNewWindow === true">
        <a title="{{'More informations'|translate}}" href="{{::layertreeCtrl.node.metadata.metadataUrl}}" target="blank_"></a>
      </span>
      <span ng-if="::gmfLayertreeCtrl.openLinksInNewWindow !== true">
        <a title="{{'More informations'|translate}}" href="" ng-click="gmfLayertreeCtrl.displayMetadata(layertreeCtrl)"></a>
      </span>
    </span>
    <span class="zoom" title="{{'Zoom to a visible level'|translate}}" ng-click="::gmfLayertreeCtrl.zoomToResolution(layertreeCtrl.node)"></span>
    <span class="legendButton" ng-if="::gmfLayertreeCtrl.getLegendURL(layertreeCtrl) && layertreeCtrl.node.metadata.legend">
      <a title="{{'Show/hide legend'|translate}}" data-toggle="collapse" href="#node-{{::layertreeCtrl.uid}}-legend"></a>
    </span>
  </span>
    <div ng-if="::gmfLayertreeCtrl.getLegendURL(layertreeCtrl) && layertreeCtrl.node.metadata.legend" id="node-{{::layertreeCtrl.uid}}-legend" class="collapse legend" ng-class="::[layertreeCtrl.node.metadata.isLegendExpanded ? 'in' : '']">
      <a title="{{'Hide legend'|translate}}" data-toggle="collapse" ng-click="::gmfLayertreeCtrl.toggleNodeLegend('#node-' + layertreeCtrl.uid + '-legend')" href="">{{'Hide legend'|translate}}</a>
      <img ng-src="{{gmfLayertreeCtrl.getLegendURL(layertreeCtrl)}}"></img>
    </div>
</div>
<ul id="layer-group-{{::layertreeCtrl.uid}}"
    ng-if="::layertreeCtrl.node.children"
    ng-class="{collapse: !layertreeCtrl.isRoot, in : layertreeCtrl.node.metadata.isExpanded}"
    ngeo-sortable="::layertreeCtrl.isRoot && gmfLayertreeCtrl.layers"
    ngeo-sortable-options="{handleClassName: 'sortable-handle', draggerClassName: 'dragger', currDragItemClassName : 'curr-drag-item'}">
  <li class="gmf-layertree-node" ng-repeat="node in layertreeCtrl.node.children"
      ng-class="'depth-' + layertreeCtrl.depth"
      ngeo-layertree="node"
      ngeo-layertree-notroot
{'fraction_non_alphanumeric': 0.19634602685450142, 'fraction_numerical': 0.0017609509134932863, 'mean_word_length': 4.5476190476190474, 'pattern_counts': {'":': 40, '<': 139, '<?xml version=': 0, '>': 139, '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': '6434019', 'n_tokens_mistral': 3241, 'n_tokens_neox': 3182, 'n_words': 418}