<commit_before>'use strict';

angular.module('anyfetchFrontApp.gravatarDirective', [])
.directive('gravatar', function() {
    var getImageSrc = function(value, size, defaultUrl) {
      var hash = md5(value);
      var src = 'http://www.gravatar.com/avatar/' + hash + '?s=' + size + '&d=' + defaultUrl;
      return src;
    };

    return {
      restrict: 'EAC',
      link:function(scope, elm, attrs) {
        scope.$watch(attrs.gravatarEmail, function(value) {

          var size = attrs.gravatarSize || 30;
          var defaultUrl = attrs.gravatarDefault || 'mm';

          var src = getImageSrc(value, size, defaultUrl);
          var tag = '<img " src="' + src + '" >';

          elm.find('img').remove();
          elm.append(tag);
        });
      }
    };
  });<commit_msg>HTTPs for gravatar<commit_after>'use strict';

angular.module('anyfetchFrontApp.gravatarDirective', [])
.directive('gravatar', function() {
    var getImageSrc = function(value, size, defaultUrl) {
      var hash = md5(value);
      var src = 'https://www.gravatar.com/avatar/' + hash + '?s=' + size + '&d=' + defaultUrl;
      return src;
    };

    return {
      restrict: 'EAC',
      link:function(scope, elm, attrs) {
        scope.$watch(attrs.gravatarEmail, function(value) {

          var size = attrs.gravatarSize || 30;
          var defaultUrl = attrs.gravatarDefault || 'mm';

          var src = getImageSrc(value, size, defaultUrl);
          var tag = '<img " src="' + src + '" >';

          elm.find('img').remove();
          elm.append(tag);
        });
      }
    };
  });
{'fraction_non_alphanumeric': 0.1677175283732661, 'fraction_numerical': 0.0037831021437578815, 'mean_word_length': 2.412903225806452, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 1, 'lorem ipsum': 0, 'www.': 2, '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': '2628017', 'n_tokens_mistral': 511, 'n_tokens_neox': 501, 'n_words': 104}