<commit_before>import base64
import hashlib
import hmac
import simplejson
import time

from mezzanine import template

register = template.Library()


@register.simple_tag
def disqus_id_for(obj):
    """
    Returns a unique identifier for the object to be used in
    DISQUS JavaScript.
    """
    return "%s-%s" % (obj._meta.object_name, obj.id)

@register.inclusion_tag("generic/includes/disqus_sso.html", takes_context=True)<commit_msg>Use Django's simplejson.<commit_after>import base64
import hashlib
import hmac
import time

from django.utils import simplejson

from mezzanine import template

register = template.Library()


@register.simple_tag
def disqus_id_for(obj):
    """
    Returns a unique identifier for the object to be used in
    DISQUS JavaScript.
    """
    return "%s-%s" % (obj._meta.object_name, obj.id)

@register.inclusion_tag("generic/includes/disqus_sso.html", takes_context=True)
{'fraction_non_alphanumeric': 0.09539473684210527, 'fraction_numerical': 0.0043859649122807015, 'mean_word_length': 4.635802469135802, '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': '244252', 'n_tokens_mistral': 296, 'n_tokens_neox': 286, 'n_words': 79}