<commit_before>#!/usr/bin/env

from flask import request
import json
from flask.ext.restful import Resource
from karma.models import User
from karma.api.models.post import Post
from karma.api import post
from karma import db


def generate_gravatar(email):
    import urllib, hashlib

    size = 60

    gravatar_url = "http://www.gravatar.com/avatar/" + hashlib.md5(email.lower()).hexdigest() + "?"
    gravatar_url += urllib.urlencode({'s':str(size)})

    return gravatar_url<commit_msg>rename gravatar_url<commit_after>#!/usr/bin/env

from flask import request
import json
from flask.ext.restful import Resource
from karma.models import User
from karma.api.models.post import Post
from karma.api import post
from karma import db


def generate_gravatar(email):
    import urllib, hashlib

    size = 60

    gravatar_url = hashlib.md5(email.lower()).hexdigest() + "?"
    gravatar_url += urllib.urlencode({'s':str(size)})

    return gravatar_url
{'fraction_non_alphanumeric': 0.10736842105263159, 'fraction_numerical': 0.00631578947368421, 'mean_word_length': 4.342696629213483, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, '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': '2056335', 'n_tokens_mistral': 327, 'n_tokens_neox': 305, 'n_words': 81}