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

  angular.module('exceptionless.event')
  .directive('extendedDataItem', [function () {
    return {
      restrict: 'E',
      scope: {
        tabData: '=',
        project: '='
      },
      templateUrl: 'app/event/extended-data-item-directive.tpl.html',
      controller: ['$scope', 'projectService', function ($scope, projectService) {
        var vm = this;

        function canBePromoted() {
          return true;
        }

        function demote() {
          function onSuccess(response) {
            vm.project.promoted_tabs.splice(indexOf, 1);
          }

          function onFailure() {
            notificationService.error('An error occurred promoting tab.');
          }

          var indexOf = vm.project.promoted_tabs.indexOf(vm.tab.title);
          if (indexOf < 0) {
            return;
          }

          return projectService.promoteTab(vm.project.id, vm.tab.title).then(onSuccess, onFailure);
        }

        function isPromoted() {
          if (!vm.project || !vm.project.promoted_tabs || !vm.tab) {
            return false;
          }

          return vm.project.promoted_tabs.filter(function (tab) { return tab === vm.tab.name; }).length > 0;
        }

        function promote() {
          function onSuccess(response) {
            vm.project.promoted_tabs.push(vm.tab.title);
          }

          function onFailure() {
            notificationService.error('An error occurred promoting tab.');
          }

          return projectService.promoteTab(vm.project.id, vm.tab.title).then(onSuccess, onFailure);
        }

        var vm = this;
        vm.canBePromoted = canBePromoted;
        vm.demote = demote;
        vm.isPromoted = isPromoted;
        vm.project = $scope.project;
        vm.promote = promote;
        vm.showRaw = false;
        vm.tab = $scope.tabData;
      }],
      controllerAs: 'vm'
    };
  }]);
}());
<commit_msg>Update build.<commit_after>(function () {
  'use strict';

  angular.module('exceptionless.event')
  .directive('extendedDataItem', [function () {
    return {
      restrict: 'E',
      scope: {
        tabData: '=',
        project: '='
      },
      templateUrl: 'app/event/extended-data-item-directive.tpl.html',
      controller: ['$scope', 'notificationService', 'projectService', function ($scope, notificationService, projectService) {
        var vm = this;

        function canBePromoted() {
          return true;
        }

        function demote() {
          function onSuccess(response) {
            vm.project.promoted_tabs.splice(indexOf, 1);
          }

          function onFailure() {
            notificationService.error('An error occurred promoting tab.');
          }

          var indexOf = vm.project.promoted_tabs.indexOf(vm.tab.title);
          if (indexOf < 0) {
            return;
          }

          return projectService.promoteTab(vm.project.id, vm.tab.title).then(onSuccess, onFailure);
        }

        function isPromoted() {
          if (!vm.project || !vm.project.promoted_tabs || !vm.tab) {
            return false;
          }

          return vm.project.promoted_tabs.filter(function (tab) { return tab === vm.tab.name; }).length > 0;
        }

        function promote() {
          function onSuccess(response) {
            vm.project.promoted_tabs.push(vm.tab.title);
          }

          function onFailure() {
            notificationService.error('An error occurred promoting tab.');
          }

          return projectService.promoteTab(vm.project.id, vm.tab.title).then(onSuccess, onFailure);
        }

        vm.canBePromoted = canBePromoted;
        vm.demote = demote;
        vm.isPromoted = isPromoted;
        vm.project = $scope.project;
        vm.promote = promote;
        vm.showRaw = false;
        vm.tab = $scope.tabData;
      }],
      controllerAs: 'vm'
    };
  }]);
}());

{'fraction_non_alphanumeric': 0.12925518300486308, 'fraction_numerical': 0.0015357051446122344, 'mean_word_length': 1.9142431021625652, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5895306', 'n_tokens_mistral': 1136, 'n_tokens_neox': 1109, 'n_words': 204}