)]}'
{"syntribos/utils/memoize.py":[{"author":{"_account_id":17709,"name":"Michael Dong","email":"michael.dong@rackspace.com","username":"mdong"},"change_message_id":"09ce9a2bee7ef34a8085d9037ec68254fadf52c2","unresolved":false,"context_lines":[{"line_number":26,"context_line":"    @wraps(func)"},{"line_number":27,"context_line":"    def decorate(*args, **kwargs):"},{"line_number":28,"context_line":"        ttl \u003d time() + 1800"},{"line_number":29,"context_line":"        func_id \u003d md5(str(func.__name__) + str(args) + str(kwargs)).digest()"},{"line_number":30,"context_line":"        if memoized_calls.get(func_id):"},{"line_number":31,"context_line":"            time_left \u003d memoized_calls[func_id][\"ttl\"] - time()"},{"line_number":32,"context_line":"            if time_left \u003e 0:"}],"source_content_type":"text/x-python","patch_set":2,"id":"9a89bdaa_5d7c5320","line":29,"range":{"start_line":29,"start_character":18,"end_line":29,"end_character":40},"updated":"2016-09-09 20:43:51.000000000","message":"I wonder if this is strictly necessary. We could probably have something like:\n\nfunc_id \u003d (args, frozenset(kwargs.items())\n\nAnd avoid having to import hashlib and avoid using a hash as a key to a hashtable","commit_id":"b49a28ae084a80a83f0b341d8f76dac0a423cb1c"},{"author":{"_account_id":15515,"name":"Charles Neill","email":"charles.neill@rackspace.com","username":"cneill"},"change_message_id":"e25db4733b7d0bb8b29704b0846f18e5e448dba8","unresolved":false,"context_lines":[{"line_number":26,"context_line":"    @wraps(func)"},{"line_number":27,"context_line":"    def decorate(*args, **kwargs):"},{"line_number":28,"context_line":"        ttl \u003d time() + 1800"},{"line_number":29,"context_line":"        func_id \u003d md5(str(func.__name__) + str(args) + str(kwargs)).digest()"},{"line_number":30,"context_line":"        if memoized_calls.get(func_id):"},{"line_number":31,"context_line":"            time_left \u003d memoized_calls[func_id][\"ttl\"] - time()"},{"line_number":32,"context_line":"            if time_left \u003e 0:"}],"source_content_type":"text/x-python","patch_set":2,"id":"9a89bdaa_7d59175b","line":29,"range":{"start_line":29,"start_character":18,"end_line":29,"end_character":40},"in_reply_to":"9a89bdaa_5d7c5320","updated":"2016-09-09 20:58:00.000000000","message":"+1 for not using hashlib/MD5 if we can get away without it","commit_id":"b49a28ae084a80a83f0b341d8f76dac0a423cb1c"}]}
