<commit_before>angular.module('ng-image-delay', [])
  .directive('ngDelaySrc', function() {
    return {
      restrict: 'A',
      priority: 99,
      link: function(scope, element, attr) {
        attr.$observe('ngDelaySrc', function(value) {
          attr.$set('data-delay-src', value);
        });
      }
    };
  });<commit_msg>disable ie8<commit_after>angular.module('ng-image-delay', [])
  .directive('ngDelaySrc', function() {
    return {
      restrict: 'A',
      priority: 99,
      link: function(scope, element, attr) {
        attr.$observe('ngDelaySrc', function(value) {
          if (/MSIE 8/.test(navigator.userAgent)) {
            attr.$set('src', value);
            element.prop('src', value);
          } else {
            attr.$set('data-delay-src', value);
          }
        });
      }
    };
});
{'fraction_non_alphanumeric': 0.1823671497584541, 'fraction_numerical': 0.007246376811594203, 'mean_word_length': 2.16412213740458, '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': '2924026', 'n_tokens_mistral': 264, 'n_tokens_neox': 258, 'n_words': 41}