<commit_before>import hashlib
import urllib.parse

from django import template


register = template.Library()


@register.filter
def gravatarize(value):
    h = hashlib.md5(value.lower().encode('utf-8')).hexdigest()
    gravatar_url = "http://www.gravatar.com/avatar/" + h + "?"
    return gravatar_url + urllib.parse.urlencode({
        'd': '<EMAIL>',
        's': 50,
    })<commit_msg>Use SSL for gravatar<commit_after>import hashlib
import urllib.parse

from django import template


register = template.Library()


@register.filter
def gravatarize(value):
    h = hashlib.md5(value.lower().encode('utf-8')).hexdigest()
    gravatar_url = "https://www.gravatar.com/avatar/" + h + "?"
    return gravatar_url + urllib.parse.urlencode({
        'd': '<EMAIL>',
        's': 50,
    })
{'fraction_non_alphanumeric': 0.1598984771573604, 'fraction_numerical': 0.01015228426395939, 'mean_word_length': 3.5344827586206895, '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': '5741099', 'n_tokens_mistral': 275, 'n_tokens_neox': 264, 'n_words': 53}