<commit_before>(function() {
  'use strict';

  angular.module('dimApp')
    .directive('dimMoveItemProperties', MoveItemProperties);

  function MoveItemProperties() {
    return {
      bindToController: true,
      controller: MoveItemPropertiesCtrl,
      controllerAs: 'vm',
      scope: {
        item: '=dimMoveItemProperties',
        compareItem: '=dimCompareItem',
        infuse: '=dimInfuse',
        changeDetails: '&'
      },
      restrict: 'A',
      replace: true,
      template: [
        '<div>',
        '  <div class="item-header" ng-class="vm.classes">',
        '    <div>',
        '      <span ng-if="vm.item.trackable || vm.item.lockable || vm.item.dmg" class="icon">',
        '        <a ng-if="vm.item.lockable" href ng-click="vm.setItemState(vm.item, \'lock\')" title="{{!vm.item.locked ? \'Lock\':\'Unlock\'}} {{::vm.item.typeName}}">',
        '          <i class="lock fa" ng-class="{\'fa-lock\': vm.item.locked, \'fa-unlock-alt\': !vm.item.locked, \'is-locking\': vm.locking }"></i>',
        '        </a>',
        '        <a ng-if="vm.item.trackable" href ng-click="vm.setItemState(vm.item, \'track\')" title="{{!vm.item.tracked ? \'Track\':\'Untrack\'}} {{::vm.item.typeName}}">',
        '          <i class="lock fa" ng-class="{\'fa-star\': vm.item.tracked, \'fa-star-o\': !vm.item.tracked, \'is-locking\': vm.locking }"></i>',
        '        </a>',
        '      </span>',
        '      <a target="_new" href="http://db.destinytracker.com/inventory/item/{{ vm.item.hash }}" class="item-title">',
        '        {{vm.title}}',
        '      </a>',
        '    </div>',
        '    <div>',
        '      <span ng-if="vm.item.trackable || vm.item.lockable || vm.item.dmg" class="icon">',
        '        <img ng-if="vm.item.dmg && vm.item.dmg !== \'kinetic\'" class="element" ng-src="/images/{{ ::vm.item.dmg }}.png"/>',
        '      </span>',
        '      {{ vm.light }} {{ vm.classType }} {{ vm.item.typeName }}',
        '      <span ng-if="vm.item.objectives">({{ vm.item.percentComplete | percent }} Complete)</span>',
        '      <a ng-if="!vm.showDetailsByDefault && (vm.showDescription || vm.hasDetails) && !vm.item.classified;" href ng-click="vm.changeDetails(); vm.itemDetails = !vm.itemDetails">',
        '        <i class="info fa" ng-class="{ \'fa-chevron-circle-up\': vm.itemDetails, \'fa-chevron-circle-down\': !vm.itemDetails }">',
        '        </i>',
        '      </a>',
        '    <dim-item-tag ng-if="vm.item.lockable" item="vm.item"></dim-item-tag>',
        '    </div>',
        '  </div>',
        '  <div class="item-xp-bar" ng-if="vm.item.percentComplete != null && !vm.item.complete">',
        '    <div dim-percent-width="vm.item.percentComplete"></div>',
        '  </div>',
        '  <form name="notes"><textarea name="data" placeholder="{{ \'notes_placeholder\' | translate }}" class="item-notes" ng-maxlength="120" ng-model="vm.item.dimInfo.notes" ng-model-options="{ debounce: 250 }" ng-change="vm.updateNote()"></textarea></form>',
        '  <span class="item-notes-error" ng-show="notes.data.$error.maxlength">Error! Max 120 characters for notes.</span>',
        '  <div class="item-description" ng-if="vm.itemDetails && vm.showDescription" ng-bind="::vm.item.description"></div>',
        '  <div class="item-details" ng-if="vm.item.classified">Classified item. Bungie does not yet provide information about this item. Item is not yet transferable.</div>',
        '  <div class="stats" ng-if="vm.itemDetails && vm.hasDetails">',
        '    <div class="stat-box-row" ng-repeat="stat in vm.item.stats track by $index">',
        '      <span class="stat-box-text stat-box-cell"> {{ stat.name }} </span>',<commit_msg>limit what you can put notes on (same rules as tags)<commit_after>(function() {
  'use strict';

  angular.module('dimApp')
    .directive('dimMoveItemProperties', MoveItemProperties);

  function MoveItemProperties() {
    return {
      bindToController: true,
      controller: MoveItemPropertiesCtrl,
      controllerAs: 'vm',
      scope: {
        item: '=dimMoveItemProperties',
        compareItem: '=dimCompareItem',
        infuse: '=dimInfuse',
        changeDetails: '&'
      },
      restrict: 'A',
      replace: true,
      template: [
        '<div>',
        '  <div class="item-header" ng-class="vm.classes">',
        '    <div>',
        '      <span ng-if="vm.item.trackable || vm.item.lockable || vm.item.dmg" class="icon">',
        '        <a ng-if="vm.item.lockable" href ng-click="vm.setItemState(vm.item, \'lock\')" title="{{!vm.item.locked ? \'Lock\':\'Unlock\'}} {{::vm.item.typeName}}">',
        '          <i class="lock fa" ng-class="{\'fa-lock\': vm.item.locked, \'fa-unlock-alt\': !vm.item.locked, \'is-locking\': vm.locking }"></i>',
        '        </a>',
        '        <a ng-if="vm.item.trackable" href ng-click="vm.setItemState(vm.item, \'track\')" title="{{!vm.item.tracked ? \'Track\':\'Untrack\'}} {{::vm.item.typeName}}">',
        '          <i class="lock fa" ng-class="{\'fa-star\': vm.item.tracked, \'fa-star-o\': !vm.item.tracked, \'is-locking\': vm.locking }"></i>',
        '        </a>',
        '      </span>',
        '      <a target="_new" href="http://db.destinytracker.com/inventory/item/{{ vm.item.hash }}" class="item-title">',
        '        {{vm.title}}',
        '      </a>',
        '    </div>',
        '    <div>',
        '      <span ng-if="vm.item.trackable || vm.item.lockable || vm.item.dmg" class="icon">',
        '        <img ng-if="vm.item.dmg && vm.item.dmg !== \'kinetic\'" class="element" ng-src="/images/{{ ::vm.item.dmg }}.png"/>',
        '      </span>',
        '      {{ vm.light }} {{ vm.classType }} {{ vm.item.typeName }}',
        '      <span ng-if="vm.item.objectives">({{ vm.item.percentComplete | percent }} Complete)</span>',
        '      <a ng-if="!vm.showDetailsByDefault && (vm.showDescription || vm.hasDetails) && !vm.item.classified;" href ng-click="vm.changeDetails(); vm.itemDetails = !vm.itemDetails">',
        '        <i class="info fa" ng-class="{ \'fa-chevron-circle-up\': vm.itemDetails, \'fa-chevron-circle-down\': !vm.itemDetails }">',
        '        </i>',
        '      </a>',
        '    <dim-item-tag ng-if="vm.item.lockable" item="vm.item"></dim-item-tag>',
        '    </div>',
        '  </div>',
        '  <div class="item-xp-bar" ng-if="vm.item.percentComplete != null && !vm.item.complete">',
        '    <div dim-percent-width="vm.item.percentComplete"></div>',
        '  </div>',
        '  <form ng-if="vm.item.lockable" name="notes"><textarea name="data" placeholder="{{ \'notes_placeholder\' | translate }}" class="item-notes" ng-maxlength="120" ng-model="vm.item.dimInfo.notes" ng-model-options="{ debounce: 250 }" ng-change="vm.updateNote()"></textarea></form>',
        '  <span class="item-notes-error" ng-show="notes.data.$error.maxlength">Error! Max 120 characters for notes.</span>',
        '  <div class="item-description" ng-if="vm.itemDetails && vm.showDescription" ng-bind="::vm.item.description"></div>',
        '  <div class="item-details" ng-if="vm.item.classified">Classified item. Bungie does not yet provide information about this item. Item is not yet transferable.</div>',
        '  <div class="stats" ng-if="vm.itemDetails && vm.hasDetails">',
        '    <div class="stat-box-row" ng-repeat="stat in vm.item.stats track by $index">',
        '      <span class="stat-box-text stat-box-cell"> {{ stat.name }} </span>',
{'fraction_non_alphanumeric': 0.22284345047923323, 'fraction_numerical': 0.0023961661341853034, 'mean_word_length': 2.5156761815629385, 'pattern_counts': {'":': 2, '<': 99, '<?xml version=': 0, '>': 99, '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': '7657058', 'n_tokens_mistral': 2538, 'n_tokens_neox': 2520, 'n_words': 412}