{"action":"created","comment":{"url":"https://api.github.com/repos/vandenheuvel/tribler/pulls/comments/117956374","pull_request_review_id":39703374,"id":117956374,"diff_hunk":"@@ -369,19 +373,14 @@ def get_edges(self, nodes=None):\n                 self.page_rank.add_edge(edge[1], edge[0])\n         return edges\n \n-    def get_page_rank(self, public_key):\n+    def get_page_ranks(self):\n         \"\"\"\n-        Return the page rank of a certain node.\n+        If the page ranks are not yet cached in self.ranks, then fetch and store them.\n \n-        :param public_key: the public key of the given node\n-        :return: the page rank of the given node","path":"Tribler/community/multichain/community.py","position":34,"original_position":34,"commit_id":"8ba7cb97814c6b3771e1e651ab2b715f5d9f0e1c","original_commit_id":"8ba7cb97814c6b3771e1e651ab2b715f5d9f0e1c","user":{"login":"vandenheuvel","id":20440137,"avatar_url":"https://avatars0.githubusercontent.com/u/20440137?v=3","gravatar_id":"","url":"https://api.github.com/users/vandenheuvel","html_url":"https://github.com/vandenheuvel","followers_url":"https://api.github.com/users/vandenheuvel/followers","following_url":"https://api.github.com/users/vandenheuvel/following{/other_user}","gists_url":"https://api.github.com/users/vandenheuvel/gists{/gist_id}","starred_url":"https://api.github.com/users/vandenheuvel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vandenheuvel/subscriptions","organizations_url":"https://api.github.com/users/vandenheuvel/orgs","repos_url":"https://api.github.com/users/vandenheuvel/repos","events_url":"https://api.github.com/users/vandenheuvel/events{/privacy}","received_events_url":"https://api.github.com/users/vandenheuvel/received_events","type":"User","site_admin":false},"body":"Could you add a `:return:` comment?","created_at":"2017-05-23T10:36:35Z","updated_at":"2017-05-23T10:37:10Z","html_url":"https://github.com/vandenheuvel/tribler/pull/142#discussion_r117956374","pull_request_url":"https://api.github.com/repos/vandenheuvel/tribler/pulls/142","_links":{"self":{"href":"https://api.github.com/repos/vandenheuvel/tribler/pulls/comments/117956374"},"html":{"href":"https://github.com/vandenheuvel/tribler/pull/142#discussion_r117956374"},"pull_request":{"href":"https://api.github.com/repos/vandenheuvel/tribler/pulls/142"}}},"pull_request":{"url":"https://api.github.com/repos/vandenheuvel/tribler/pulls/142","id":121744214,"html_url":"https://github.com/vandenheuvel/tribler/pull/142","diff_url":"https://github.com/vandenheuvel/tribler/pull/142.diff","patch_url":"https://github.com/vandenheuvel/tribler/pull/142.patch","issue_url":"https://api.github.com/repos/vandenheuvel/tribler/issues/142","number":142,"state":"open","locked":false,"title":"READY: Fix pagerank bug","user":{"login":"yinghaodai","id":15821371,"avatar_url":"https://avatars3.githubusercontent.com/u/15821371?v=3","gravatar_id":"","url":"https://api.github.com/users/yinghaodai","html_url":"https://github.com/yinghaodai","followers_url":"https://api.github.com/users/yinghaodai/followers","following_url":"https://api.github.com/users/yinghaodai/following{/other_user}","gists_url":"https://api.github.com/users/yinghaodai/gists{/gist_id}","starred_url":"https://api.github.com/users/yinghaodai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yinghaodai/subscriptions","organizations_url":"https://api.github.com/users/yinghaodai/orgs","repos_url":"https://api.github.com/users/yinghaodai/repos","events_url":"https://api.github.com/users/yinghaodai/events{/privacy}","received_events_url":"https://api.github.com/users/yinghaodai/received_events","type":"User","site_admin":false},"body":"#141 ","created_at":"2017-05-22T10:21:32Z","updated_at":"2017-05-23T10:37:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7d6cf63c8bd5902accd291ea7d90af677aec2a0a","assignee":null,"assignees":[],"requested_reviewers":[{"login":"rkeulemans","id":15815946,"avatar_url":"https://avatars0.githubusercontent.com/u/15815946?v=3","gravatar_id":"","url":"https://api.github.com/users/rkeulemans","html_url":"https://github.com/rkeulemans","followers_url":"https://api.github.com/users/rkeulemans/followers","following_url":"https://api.github.com/users/rkeulemans/following{/other_user}","gists_url":"https://api.github.com/users/rkeulemans/gists{/gist_id}","starred_url":"https://api.github.com/users/rkeulemans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rkeulemans/subscriptions","organizations_url":"https://api.github.com/users/rkeulemans/orgs","repos_url":"https://api.github.com/users/rkeulemans/repos","events_url":"https://api.github.com/users/rkeulemans/events{/privacy}","received_events_url":"https://api.github.com/users/rkeulemans/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/vandenheuvel/tribler/pulls/142/commits","review_comments_url":"https://api.github.com/repos/vandenheuvel/tribler/pulls/142/comments","review_comment_url":"https://api.github.com/repos/vandenheuvel/tribler/pulls/comments{/number}","comments_url":"https://api.github.com/repos/vandenheuvel/tribler/issues/142/comments","statuses_url":"https://api.github.com/repos/vandenheuvel/tribler/statuses/8ba7cb97814c6b3771e1e651ab2b715f5d9f0e1c","head":{"label":"vandenheuvel:fix_pagerank_bug","ref":"fix_pagerank_bug","sha":"8ba7cb97814c6b3771e1e651ab2b715f5d9f0e1c","user":{"login":"vandenheuvel","id":20440137,"avatar_url":"https://avatars0.githubusercontent.com/u/20440137?v=3","gravatar_id":"","url":"https://api.github.com/users/vandenheuvel","html_url":"https://github.com/vandenheuvel","followers_url":"https://api.github.com/users/vandenheuvel/followers","following_url":"https://api.github.com/users/vandenheuvel/following{/other_user}","gists_url":"https://api.github.com/users/vandenheuvel/gists{/gist_id}","starred_url":"https://api.github.com/users/vandenheuvel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vandenheuvel/subscriptions","organizations_url":"https://api.github.com/users/vandenheuvel/orgs","repos_url":"https://api.github.com/users/vandenheuvel/repos","events_url":"https://api.github.com/users/vandenheuvel/events{/privacy}","received_events_url":"https://api.github.com/users/vandenheuvel/received_events","type":"User","site_admin":false},"repo":{"id":82468882,"name":"tribler","full_name":"vandenheuvel/tribler","owner":{"login":"vandenheuvel","id":20440137,"avatar_url":"https://avatars0.githubusercontent.com/u/20440137?v=3","gravatar_id":"","url":"https://api.github.com/users/vandenheuvel","html_url":"https://github.com/vandenheuvel","followers_url":"https://api.github.com/users/vandenheuvel/followers","following_url":"https://api.github.com/users/vandenheuvel/following{/other_user}","gists_url":"https://api.github.com/users/vandenheuvel/gists{/gist_id}","starred_url":"https://api.github.com/users/vandenheuvel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vandenheuvel/subscriptions","organizations_url":"https://api.github.com/users/vandenheuvel/orgs","repos_url":"https://api.github.com/users/vandenheuvel/repos","events_url":"https://api.github.com/users/vandenheuvel/events{/privacy}","received_events_url":"https://api.github.com/users/vandenheuvel/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vandenheuvel/tribler","description":"Privacy enhanced BitTorrent client with P2P content discovery","fork":true,"url":"https://api.github.com/repos/vandenheuvel/tribler","forks_url":"https://api.github.com/repos/vandenheuvel/tribler/forks","keys_url":"https://api.github.com/repos/vandenheuvel/tribler/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vandenheuvel/tribler/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vandenheuvel/tribler/teams","hooks_url":"https://api.github.com/repos/vandenheuvel/tribler/hooks","issue_events_url":"https://api.github.com/repos/vandenheuvel/tribler/issues/events{/number}","events_url":"https://api.github.com/repos/vandenheuvel/tribler/events","assignees_url":"https://api.github.com/repos/vandenheuvel/tribler/assignees{/user}","branches_url":"https://api.github.com/repos/vandenheuvel/tribler/branches{/branch}","tags_url":"https://api.github.com/repos/vandenheuvel/tribler/tags","blobs_url":"https://api.github.com/repos/vandenheuvel/tribler/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vandenheuvel/tribler/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vandenheuvel/tribler/git/refs{/sha}","trees_url":"https://api.github.com/repos/vandenheuvel/tribler/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vandenheuvel/tribler/statuses/{sha}","languages_url":"https://api.github.com/repos/vandenheuvel/tribler/languages","stargazers_url":"https://api.github.com/repos/vandenheuvel/tribler/stargazers","contributors_url":"https://api.github.com/repos/vandenheuvel/tribler/contributors","subscribers_url":"https://api.github.com/repos/vandenheuvel/tribler/subscribers","subscription_url":"https://api.github.com/repos/vandenheuvel/tribler/subscription","commits_url":"https://api.github.com/repos/vandenheuvel/tribler/commits{/sha}","git_commits_url":"https://api.github.com/repos/vandenheuvel/tribler/git/commits{/sha}","comments_url":"https://api.github.com/repos/vandenheuvel/tribler/comments{/number}","issue_comment_url":"https://api.github.com/repos/vandenheuvel/tribler/issues/comments{/number}","contents_url":"https://api.github.com/repos/vandenheuvel/tribler/contents/{+path}","compare_url":"https://api.github.com/repos/vandenheuvel/tribler/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vandenheuvel/tribler/merges","archive_url":"https://api.github.com/repos/vandenheuvel/tribler/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vandenheuvel/tribler/downloads","issues_url":"https://api.github.com/repos/vandenheuvel/tribler/issues{/number}","pulls_url":"https://api.github.com/repos/vandenheuvel/tribler/pulls{/number}","milestones_url":"https://api.github.com/repos/vandenheuvel/tribler/milestones{/number}","notifications_url":"https://api.github.com/repos/vandenheuvel/tribler/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vandenheuvel/tribler/labels{/name}","releases_url":"https://api.github.com/repos/vandenheuvel/tribler/releases{/id}","deployments_url":"https://api.github.com/repos/vandenheuvel/tribler/deployments","created_at":"2017-02-19T15:30:32Z","updated_at":"2017-05-15T07:09:35Z","pushed_at":"2017-05-23T10:36:28Z","git_url":"git://github.com/vandenheuvel/tribler.git","ssh_url":"git@github.com:vandenheuvel/tribler.git","clone_url":"https://github.com/vandenheuvel/tribler.git","svn_url":"https://github.com/vandenheuvel/tribler","homepage":"http://www.tribler.org","size":117083,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":40,"forks":0,"open_issues":40,"watchers":1,"default_branch":"master"}},"base":{"label":"vandenheuvel:master","ref":"master","sha":"fad6e0fc61a376e966464a94557c69851b5e95c0","user":{"login":"vandenheuvel","id":20440137,"avatar_url":"https://avatars0.githubusercontent.com/u/20440137?v=3","gravatar_id":"","url":"https://api.github.com/users/vandenheuvel","html_url":"https://github.com/vandenheuvel","followers_url":"https://api.github.com/users/vandenheuvel/followers","following_url":"https://api.github.com/users/vandenheuvel/following{/other_user}","gists_url":"https://api.github.com/users/vandenheuvel/gists{/gist_id}","starred_url":"https://api.github.com/users/vandenheuvel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vandenheuvel/subscriptions","organizations_url":"https://api.github.com/users/vandenheuvel/orgs","repos_url":"https://api.github.com/users/vandenheuvel/repos","events_url":"https://api.github.com/users/vandenheuvel/events{/privacy}","received_events_url":"https://api.github.com/users/vandenheuvel/received_events","type":"User","site_admin":false},"repo":{"id":82468882,"name":"tribler","full_name":"vandenheuvel/tribler","owner":{"login":"vandenheuvel","id":20440137,"avatar_url":"https://avatars0.githubusercontent.com/u/20440137?v=3","gravatar_id":"","url":"https://api.github.com/users/vandenheuvel","html_url":"https://github.com/vandenheuvel","followers_url":"https://api.github.com/users/vandenheuvel/followers","following_url":"https://api.github.com/users/vandenheuvel/following{/other_user}","gists_url":"https://api.github.com/users/vandenheuvel/gists{/gist_id}","starred_url":"https://api.github.com/users/vandenheuvel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vandenheuvel/subscriptions","organizations_url":"https://api.github.com/users/vandenheuvel/orgs","repos_url":"https://api.github.com/users/vandenheuvel/repos","events_url":"https://api.github.com/users/vandenheuvel/events{/privacy}","received_events_url":"https://api.github.com/users/vandenheuvel/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vandenheuvel/tribler","description":"Privacy enhanced BitTorrent client with P2P content discovery","fork":true,"url":"https://api.github.com/repos/vandenheuvel/tribler","forks_url":"https://api.github.com/repos/vandenheuvel/tribler/forks","keys_url":"https://api.github.com/repos/vandenheuvel/tribler/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vandenheuvel/tribler/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vandenheuvel/tribler/teams","hooks_url":"https://api.github.com/repos/vandenheuvel/tribler/hooks","issue_events_url":"https://api.github.com/repos/vandenheuvel/tribler/issues/events{/number}","events_url":"https://api.github.com/repos/vandenheuvel/tribler/events","assignees_url":"https://api.github.com/repos/vandenheuvel/tribler/assignees{/user}","branches_url":"https://api.github.com/repos/vandenheuvel/tribler/branches{/branch}","tags_url":"https://api.github.com/repos/vandenheuvel/tribler/tags","blobs_url":"https://api.github.com/repos/vandenheuvel/tribler/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vandenheuvel/tribler/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vandenheuvel/tribler/git/refs{/sha}","trees_url":"https://api.github.com/repos/vandenheuvel/tribler/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vandenheuvel/tribler/statuses/{sha}","languages_url":"https://api.github.com/repos/vandenheuvel/tribler/languages","stargazers_url":"https://api.github.com/repos/vandenheuvel/tribler/stargazers","contributors_url":"https://api.github.com/repos/vandenheuvel/tribler/contributors","subscribers_url":"https://api.github.com/repos/vandenheuvel/tribler/subscribers","subscription_url":"https://api.github.com/repos/vandenheuvel/tribler/subscription","commits_url":"https://api.github.com/repos/vandenheuvel/tribler/commits{/sha}","git_commits_url":"https://api.github.com/repos/vandenheuvel/tribler/git/commits{/sha}","comments_url":"https://api.github.com/repos/vandenheuvel/tribler/comments{/number}","issue_comment_url":"https://api.github.com/repos/vandenheuvel/tribler/issues/comments{/number}","contents_url":"https://api.github.com/repos/vandenheuvel/tribler/contents/{+path}","compare_url":"https://api.github.com/repos/vandenheuvel/tribler/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vandenheuvel/tribler/merges","archive_url":"https://api.github.com/repos/vandenheuvel/tribler/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vandenheuvel/tribler/downloads","issues_url":"https://api.github.com/repos/vandenheuvel/tribler/issues{/number}","pulls_url":"https://api.github.com/repos/vandenheuvel/tribler/pulls{/number}","milestones_url":"https://api.github.com/repos/vandenheuvel/tribler/milestones{/number}","notifications_url":"https://api.github.com/repos/vandenheuvel/tribler/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vandenheuvel/tribler/labels{/name}","releases_url":"https://api.github.com/repos/vandenheuvel/tribler/releases{/id}","deployments_url":"https://api.github.com/repos/vandenheuvel/tribler/deployments","created_at":"2017-02-19T15:30:32Z","updated_at":"2017-05-15T07:09:35Z","pushed_at":"2017-05-23T10:36:28Z","git_url":"git://github.com/vandenheuvel/tribler.git","ssh_url":"git@github.com:vandenheuvel/tribler.git","clone_url":"https://github.com/vandenheuvel/tribler.git","svn_url":"https://github.com/vandenheuvel/tribler","homepage":"http://www.tribler.org","size":117083,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":40,"forks":0,"open_issues":40,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/vandenheuvel/tribler/pulls/142"},"html":{"href":"https://github.com/vandenheuvel/tribler/pull/142"},"issue":{"href":"https://api.github.com/repos/vandenheuvel/tribler/issues/142"},"comments":{"href":"https://api.github.com/repos/vandenheuvel/tribler/issues/142/comments"},"review_comments":{"href":"https://api.github.com/repos/vandenheuvel/tribler/pulls/142/comments"},"review_comment":{"href":"https://api.github.com/repos/vandenheuvel/tribler/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/vandenheuvel/tribler/pulls/142/commits"},"statuses":{"href":"https://api.github.com/repos/vandenheuvel/tribler/statuses/8ba7cb97814c6b3771e1e651ab2b715f5d9f0e1c"}}}}
{"actor":{"display_login":"vandenheuvel"}}