# Path: vilya/libs/avatar.py
# def get_gravatar_url(email, size=140):
#     normalized_email = email.encode('utf8').lower()
#     url = "https://secure.gravatar.com/avatar/%s?%s" % (
#         hashlib.md5(normalized_email).hexdigest(),
#         urllib.urlencode({'d': DEFAULT_USER,
#                           's': str(size),
#                           'r': 'x'}))
#     return url


from datetime import datetime
from pytz import FixedOffset
from ..libs.avatar import get_gravatar_url
        from ..services import users
# -*- coding: utf-8 -*-



class Commit(object):

    def __init__(self, commit):
        self.commit = commit

    @property
    def author(self):
        email = self.commit.author.email
        user = users.first(email=email)
        if not user:
            return None
        return user

    @property

# Path: vilya/libs/avatar.py
# def get_gravatar_url(email, size=140):
#     normalized_email = email.encode('utf8').lower()
#     url = "https://secure.gravatar.com/avatar/%s?%s" % (
#         hashlib.md5(normalized_email).hexdigest(),
#         urllib.urlencode({'d': DEFAULT_USER,
#                           's': str(size),
#                           'r': 'x'}))
#     return url


# Path: vilya/projects/commit.py
from datetime import datetime
from pytz import FixedOffset
from ..libs.avatar import get_gravatar_url
        from ..services import users

# -*- coding: utf-8 -*-



class Commit(object):

    def __init__(self, commit):
        self.commit = commit

    @property
    def author(self):
        email = self.commit.author.email
        user = users.first(email=email)
        if not user:
            return None
        return user

    @property

    def author_time(self):