<commit_before>'use strict';

ngDefine('cockpit.directives', [ 'angular', 'bpmn/Bpmn' ], function(module, angular, Bpmn) {
  
  var Directive = function (ProcessDefinitionResource) {
    return {
      restrict: 'EAC',
      template: '<span ng-hide="$loaded">' + 
                '  <i class="icon-loading"></i> loading process diagram...' +
                '</span>',
      link: function(scope, element, attrs) {
        
        scope.$watch(attrs['processDefinitionId'], function(processDefinitionId) {
          if (processDefinitionId) {
            
            // set the element id to processDiagram_*
            var elementId = 'processDiagram_' + processDefinitionId.replace(/:/g, '_');
            element.attr('id', elementId);
            
            ProcessDefinitionResource<commit_msg>chore(diagram/preview): replace dots with underscore<commit_after>'use strict';

ngDefine('cockpit.directives', [ 'angular', 'bpmn/Bpmn' ], function(module, angular, Bpmn) {
  
  var Directive = function (ProcessDefinitionResource) {
    return {
      restrict: 'EAC',
      template: '<span ng-hide="$loaded">' + 
                '  <i class="icon-loading"></i> loading process diagram...' +
                '</span>',
      link: function(scope, element, attrs) {
        
        scope.$watch(attrs['processDefinitionId'], function(processDefinitionId) {
          if (processDefinitionId) {
            
            // set the element id to processDiagram_*
            var elementId = 'processDiagram_' + processDefinitionId.replace(/[.|:]/g, '_');
            element.attr('id', elementId);
            
            ProcessDefinitionResource
{'fraction_non_alphanumeric': 0.13793103448275862, 'fraction_numerical': 0.0, 'mean_word_length': 2.4103092783505153, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, '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': '1359166', 'n_tokens_mistral': 449, 'n_tokens_neox': 445, 'n_words': 93}