GitHub PullRequestReviewCommentEvent at 2014-10-10 15:10:32
Repository: presence-analyzer-lkolat
Actor: pkucmus
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-lkolat/pulls/comments/18711379","id":18711379,"diff_hunk":"@@ -35,6 +40,47 @@ def inner(*args, **kwargs):\n     return inner\n \n \n+def lock(function):\n+    @wraps(function)\n+    def inner():\n+        LOCK.acquire()\n+        result = function()\n+        LOCK.release()\n+        return result\n+    return inner\n+\n+\n+def cache(time, method_name):\n+    global CACHE\n+    global TIME\n+    CACHE[method_name] = ''","path":"src/presence_analyzer/utils.py","position":36,"original_position":36,"commit_id":"54ba26161a8b4d97186f43d759579173b7b124d9","original_commit_id":"54ba26161a8b4d97186f43d759579173b7b124d9","user":{"login":"pkucmus","id":6347418,"avatar_url":"https://avatars.githubusercontent.com/u/6347418?v=2","gravatar_id":"","url":"https://api.github.com/users/pkucmus","html_url":"https://github.com/pkucmus","followers_url":"https://api.github.com/users/pkucmus/followers","following_url":"https://api.github.com/users/pkucmus/following{/other_user}","gists_url":"https://api.github.com/users/pkucmus/gists{/gist_id}","starred_url":"https://api.github.com/users/pkucmus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pkucmus/subscriptions","organizations_url":"https://api.github.com/users/pkucmus/orgs","repos_url":"https://api.github.com/users/pkucmus/repos","events_url":"https://api.github.com/users/pkucmus/events{/privacy}","received_events_url":"https://api.github.com/users/pkucmus/received_events","type":"User","site_admin":false},"body":"I think you do not need this (check the next comment)...","created_at":"2014-10-10T15:10:32Z","updated_at":"2014-10-10T15:10:32Z","html_url":"https://github.com/stxnext-kindergarten/presence-analyzer-lkolat/pull/8#discussion_r18711379","pull_request_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-lkolat/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-lkolat/pulls/comments/18711379"},"html":{"href":"https://github.com/stxnext-kindergarten/presence-analyzer-lkolat/pull/8#discussion_r18711379"},"pull_request":{"href":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-lkolat/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-lkolat/pulls/8","id":22497529,"html_url":"https://github.com/stxnext-kindergarten/presence-analyzer-lkolat/pull/8","diff_url":"https://github.com/stxnext-kindergarten/presence-analyzer-lkolat/pull/8.diff","patch_url":"https://github.com/stxnext-kindergarten/presence-analyzer-lkolat/pull/8.patch","issue_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-lkolat/issues/8","number":8,"state":"open","locked":false,"title":"[4303] Caching.","user":{"login":"lukkolstx","id":8615387,"avatar_url":"https://avatars.githubusercontent.com/u/8615387?v=2","gravatar_id":"","url":"https://api.github.com/users/lukkolstx","html_url":"https://github.com/lukkolstx","followers_url":"https://api.github.com/users/lukkolstx/followers","following_url":"https://api.github.com/users/lukkolstx/following{/other_user}","gists_url":"https://api.github.com/users/lukkolstx/gists{/gist_id}","starred_url":"https://api.github.com/users/lukkolstx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukkolstx/subscriptions","organizations_url":"https://api.github.com/users/lukkolstx/orgs","repos_url":"https://api.github.com/users/lukkolstx/repos","events_url":"https://api.github.com/users/lukkolstx/events{/privacy}","received_events_url":"https://api.github.com/users/lukkolstx/received_events","type":"User","site_admin":false},"body":"https://gist.github.com/lukkolstx/3f505c25855214b28f8c\r\nFixed. Please review.","created_at":"2014-10-09T14:37:34Z","updated_at":"2014-10-10T15:10:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"252207d421a62c27f90399cc46cf559189026f9c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-lkolat/pulls/8/commits","review_comments_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-lkolat/pulls/8/comments","review_comment_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-lkolat/pulls/comments/{number}","comments_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-lkolat/issues/8/comments","statuses_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-lkolat/statuses/54ba26161a8b4d97186f43d759579173b7b124d9","head":{"label":"lukkolstx:bug_4303","ref":"bug_4303","sha":"54ba26161a8b4d97186f43d759579173b7b124d9","user":{"login":"lukkolstx","id":8615387,"avatar_url":"https://avatars.githubusercontent.com/u/8615387?v=2","gravatar_id":"","url":"https://api.github.com/users/lukkolstx","html_url":"https://github.com/lukkolstx","followers_url":"https://api.github.com/users/lukkolstx/followers","following_url":"https://api.github.com/users/lukkolstx/following{/other_user}","gists_url":"https://api.github.com/users/lukkolstx/gists{/gist_id}","starred_url":"https://api.github.com/users/lukkolstx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukkolstx/subscriptions","organizations_url":"https://api.github.com/users/lukkolstx/orgs","repos_url":"https://api.github.com/users/lukkolstx/repos","events_url":"https://api.github.com/users/lukkolstx/events{/privacy}","received_events_url":"https://api.github.com/users/lukkolstx/received_events","type":"User","site_admin":false},"repo":{"id":23573704,"name":"presence-analyzer-lkolat","full_name":"lukkolstx/presence-analyzer-lkolat","owner":{"login":"lukkolstx","id":8615387,"avatar_url":"https://avatars.githubusercontent.com/u/8615387?v=2","gravatar_id":"","url":"https://api.github.com/users/lukkolstx","html_url":"https://github.com/lukkolstx","followers_url":"https://api.github.com/users/lukkolstx/followers","following_url":"https://api.github.com/users/lukkolstx/following{/other_user}","gists_url":"https://api.github.com/users/lukkolstx/gists{/gist_id}","starred_url":"https://api.github.com/users/lukkolstx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukkolstx/subscriptions","organizations_url":"https://api.github.com/users/lukkolstx/orgs","repos_url":"https://api.github.com/users/lukkolstx/repos","events_url":"https://api.github.com/users/lukkolstx/events{/privacy}","received_events_url":"https://api.github.com/users/lukkolstx/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lukkolstx/presence-analyzer-lkolat","description":"","fork":true,"url":"https://api.github.com/repos/lukkolstx/presence-analyzer-lkolat","forks_url":"https://api.github.com/repos/lukkolstx/presence-analyzer-lkolat/forks","keys_url":"https://api.github.com/repos/lukkolstx/presence-analyzer-lkolat/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lukkolstx/presence-analyzer-lkolat/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lukkolstx/presence-analyzer-lkolat/teams","hooks_url":"https://api.github.com/repos/lukkolstx/presence-analyzer-lkolat/hooks","issue_events_url":"https://api.github.com/repos/lukkolstx/presence-analyzer-lkolat/issues/events{/number}","events_url":"https://api.github.com/repos/lukkolstx/presence-analyzer-lkolat/events","assignees_url":"https://api.github.com/repos/lukkolstx/presence-analyzer-lkolat/assignees{/user}","branches_url":"https://api.github.com/repos/lukkolstx/presence-analyzer-lkolat/branches{/branch}","tags_url":"https://api.github.com/repos/lukkolstx/presence-analyzer-lkolat/tags","blobs_url":"https://api.github.com/repos/lukkolstx/presence-analyzer-lkolat/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lukkolstx/presence-analyzer-lkolat/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lukkolstx/presence-analyzer-lkolat/git/refs{/sha}","trees_url":"https://api.github.com/repos/lukkolstx/presence-analyzer-lkolat/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lukkolstx/presence-analyzer-lkolat/statuses/{sha}","languages_url":"https://api.github.com/repos/lukkolstx/presence-analyzer-lkolat/languages","stargazers_url":"https://api.github.com/repos/lukkolstx/presence-analyzer-lkolat/stargazers","contributors_url":"https://api.github.com/repos/lukkolstx/presence-analyzer-lkolat/contributors","subscribers_url":"https://api.github.com/repos/lukkolstx/presence-analyzer-lkolat/subscribers","subscription_url":"https://api.github.com/repos/lukkolstx/presence-analyzer-lkolat/subscription","commits_url":"https://api.github.com/repos/lukkolstx/presence-analyzer-lkolat/commits{/sha}","git_commits_url":"https://api.github.com/repos/lukkolstx/presence-analyzer-lkolat/git/commits{/sha}","comments_url":"https://api.github.com/repos/lukkolstx/presence-analyzer-lkolat/comments{/number}","issue_comment_url":"https://api.github.com/repos/lukkolstx/presence-analyzer-lkolat/issues/comments/{number}","contents_url":"https://api.github.com/repos/lukkolstx/presence-analyzer-lkolat/contents/{+path}","compare_url":"https://api.github.com/repos/lukkolstx/presence-analyzer-lkolat/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lukkolstx/presence-analyzer-lkolat/merges","archive_url":"https://api.github.com/repos/lukkolstx/presence-analyzer-lkolat/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lukkolstx/presence-analyzer-lkolat/downloads","issues_url":"https://api.github.com/repos/lukkolstx/presence-analyzer-lkolat/issues{/number}","pulls_url":"https://api.github.com/repos/lukkolstx/presence-analyzer-lkolat/pulls{/number}","milestones_url":"https://api.github.com/repos/lukkolstx/presence-analyzer-lkolat/milestones{/number}","notifications_url":"https://api.github.com/repos/lukkolstx/presence-analyzer-lkolat/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lukkolstx/presence-analyzer-lkolat/labels{/name}","releases_url":"https://api.github.com/repos/lukkolstx/presence-analyzer-lkolat/releases{/id}","created_at":"2014-09-02T10:00:33Z","updated_at":"2014-09-01T12:38:00Z","pushed_at":"2014-10-10T12:22:12Z","git_url":"git://github.com/lukkolstx/presence-analyzer-lkolat.git","ssh_url":"git@github.com:lukkolstx/presence-analyzer-lkolat.git","clone_url":"https://github.com/lukkolstx/presence-analyzer-lkolat.git","svn_url":"https://github.com/lukkolstx/presence-analyzer-lkolat","homepage":null,"size":474,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"stxnext-kindergarten:master","ref":"master","sha":"04780b75d7344ed443b077755ce89dce25bb70ba","user":{"login":"stxnext-kindergarten","id":5575308,"avatar_url":"https://avatars.githubusercontent.com/u/5575308?v=2","gravatar_id":"","url":"https://api.github.com/users/stxnext-kindergarten","html_url":"https://github.com/stxnext-kindergarten","followers_url":"https://api.github.com/users/stxnext-kindergarten/followers","following_url":"https://api.github.com/users/stxnext-kindergarten/following{/other_user}","gists_url":"https://api.github.com/users/stxnext-kindergarten/gists{/gist_id}","starred_url":"https://api.github.com/users/stxnext-kindergarten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stxnext-kindergarten/subscriptions","organizations_url":"https://api.github.com/users/stxnext-kindergarten/orgs","repos_url":"https://api.github.com/users/stxnext-kindergarten/repos","events_url":"https://api.github.com/users/stxnext-kindergarten/events{/privacy}","received_events_url":"https://api.github.com/users/stxnext-kindergarten/received_events","type":"Organization","site_admin":false},"repo":{"id":23541890,"name":"presence-analyzer-lkolat","full_name":"stxnext-kindergarten/presence-analyzer-lkolat","owner":{"login":"stxnext-kindergarten","id":5575308,"avatar_url":"https://avatars.githubusercontent.com/u/5575308?v=2","gravatar_id":"","url":"https://api.github.com/users/stxnext-kindergarten","html_url":"https://github.com/stxnext-kindergarten","followers_url":"https://api.github.com/users/stxnext-kindergarten/followers","following_url":"https://api.github.com/users/stxnext-kindergarten/following{/other_user}","gists_url":"https://api.github.com/users/stxnext-kindergarten/gists{/gist_id}","starred_url":"https://api.github.com/users/stxnext-kindergarten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stxnext-kindergarten/subscriptions","organizations_url":"https://api.github.com/users/stxnext-kindergarten/orgs","repos_url":"https://api.github.com/users/stxnext-kindergarten/repos","events_url":"https://api.github.com/users/stxnext-kindergarten/events{/privacy}","received_events_url":"https://api.github.com/users/stxnext-kindergarten/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/stxnext-kindergarten/presence-analyzer-lkolat","description":"","fork":false,"url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-lkolat","forks_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-lkolat/forks","keys_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-lkolat/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-lkolat/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-lkolat/teams","hooks_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-lkolat/hooks","issue_events_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-lkolat/issues/events{/number}","events_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-lkolat/events","assignees_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-lkolat/assignees{/user}","branches_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-lkolat/branches{/branch}","tags_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-lkolat/tags","blobs_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-lkolat/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-lkolat/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-lkolat/git/refs{/sha}","trees_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-lkolat/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-lkolat/statuses/{sha}","languages_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-lkolat/languages","stargazers_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-lkolat/stargazers","contributors_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-lkolat/contributors","subscribers_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-lkolat/subscribers","subscription_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-lkolat/subscription","commits_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-lkolat/commits{/sha}","git_commits_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-lkolat/git/commits{/sha}","comments_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-lkolat/comments{/number}","issue_comment_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-lkolat/issues/comments/{number}","contents_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-lkolat/contents/{+path}","compare_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-lkolat/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-lkolat/merges","archive_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-lkolat/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-lkolat/downloads","issues_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-lkolat/issues{/number}","pulls_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-lkolat/pulls{/number}","milestones_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-lkolat/milestones{/number}","notifications_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-lkolat/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-lkolat/labels{/name}","releases_url":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-lkolat/releases{/id}","created_at":"2014-09-01T12:35:34Z","updated_at":"2014-09-03T07:34:35Z","pushed_at":"2014-10-06T13:12:48Z","git_url":"git://github.com/stxnext-kindergarten/presence-analyzer-lkolat.git","ssh_url":"git@github.com:stxnext-kindergarten/presence-analyzer-lkolat.git","clone_url":"https://github.com/stxnext-kindergarten/presence-analyzer-lkolat.git","svn_url":"https://github.com/stxnext-kindergarten/presence-analyzer-lkolat","homepage":null,"size":503,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-lkolat/pulls/8"},"html":{"href":"https://github.com/stxnext-kindergarten/presence-analyzer-lkolat/pull/8"},"issue":{"href":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-lkolat/issues/8"},"comments":{"href":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-lkolat/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-lkolat/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-lkolat/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-lkolat/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/stxnext-kindergarten/presence-analyzer-lkolat/statuses/54ba26161a8b4d97186f43d759579173b7b124d9"}}}}