<commit_before>(function() {
  var module;

  module = angular.module('xdmessage', []);

}).call(this);

;(function() {
  var module;

  module = angular.module('xdmessage');

  module.directive('postMessage', function($window, xdmessage) {
    return {
      restrict: 'EA',
      scope: {
        xdmessageParams: '=',
        remoteUrl: '=',
        eventName: '=',
        exports: '=postMessageExports'
      },
      link: function($scope, $element, $attributes) {
        if ($scope.remoteUrl == null) {
          throw 'Attribute `remoteUrl` is expected';
        }
        if ($scope.eventName == null) {
          throw 'Attribute `eventName` is expected';
        }
        return xdmessage.create($scope.remoteUrl, {
          container: $element[0],
          xdmessageParams: $scope.xdmessageParams
        }, function(xdm) {
          xdm.on($scope.eventName, function(message, callback) {
            var _ref;
            message = JSON.parse(message);
            return (_ref = $scope.exports) != null ? _ref.onMessage(message, callback) : void 0;
          });
          xdm.on('ready', function() {
            var _ref;
            return (_ref = $scope.exports) != null ? typeof _ref.onReady === "function" ? _ref.onReady() : void 0 : void 0;
          });
          $scope.exports.sendMessage = function(message, callback) {
            message = JSON.stringify(message);
            return xdm.invoke($scope.eventName, message, callback);
          };
          return xdm.open();
        });
      }
    };
  });

}).call(this);

;(function() {
  var key, module, opener, search, term, terms, token, value, _i, _len, _ref;

  module = angular.module('xdmessage');

  opener = null;<commit_msg>chore(build): full build<commit_after>(function() {
  var module;

  module = angular.module('xdmessage', []);

}).call(this);

;(function() {
  var module;

  module = angular.module('xdmessage');

  module.directive('postMessage', function($window, xdmessage) {
    return {
      restrict: 'EA',
      scope: {
        xdmessageParams: '=',
        remoteUrl: '=',
        eventName: '=',
        exports: '=postMessageExports'
      },
      link: function($scope, $element, $attributes) {
        if ($scope.remoteUrl == null) {
          throw 'Attribute `remoteUrl` is expected';
        }
        if ($scope.eventName == null) {
          throw 'Attribute `eventName` is expected';
        }
        return xdmessage.create($scope.remoteUrl, {
          container: $element[0],
          xdmessageParams: $scope.xdmessageParams
        }, function(xdm) {
          xdm.on($scope.eventName, function(message, callback) {
            return $scope.$apply(function() {
              var _ref;
              message = JSON.parse(message);
              return (_ref = $scope.exports) != null ? _ref.onMessage(message, callback) : void 0;
            });
          });
          xdm.on('ready', function() {
            return $scope.$apply(function() {
              var _ref;
              return (_ref = $scope.exports) != null ? typeof _ref.onReady === "function" ? _ref.onReady() : void 0 : void 0;
            });
          });
          $scope.exports.sendMessage = function(message, callback) {
            message = JSON.stringify(message);
            return xdm.invoke($scope.eventName, message, callback);
          };
          return xdm.open();
        });
      }
    };
  });

}).call(this);

;(function() {
  var key, module, opener, search, term, terms, token, value, _i, _len, _ref;

  module = angular.module('xdmessage');

  opener = null;
{'fraction_non_alphanumeric': 0.15210717276025676, 'fraction_numerical': 0.0022327658386826683, 'mean_word_length': 2.1632833186231246, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '6148324', 'n_tokens_mistral': 1055, 'n_tokens_neox': 1033, 'n_words': 225}