{"action":"created","comment":{"url":"https://api.github.com/repos/Tribler/gumby/pulls/comments/45716495","id":45716495,"diff_hunk":"@@ -0,0 +1,260 @@\n+import os\n+from os import path\n+import base64\n+\n+import networkx as nx\n+\n+from Tribler.community.multichain.database import MultiChainDB\n+from Tribler.community.multichain.payload import EMPTY_HASH\n+from Tribler.community.multichain.community import GENESIS_ID\n+from Tribler.community.multichain.conversion import PK_LENGTH\n+\n+EMPTY_HASH_ENCODED = base64.encodestring(EMPTY_HASH)\n+GENESIS_ID_ENCODED = base64.encodestring(GENESIS_ID)\n+\n+\n+class MultiChainExperimentAnalysisDatabase(MultiChainDB):\n+    \"\"\"\n+    Extended MultiChain experiments that provides additional analysis functionality to analysis a experiment.","path":"experiments/multichain/processing/DatabaseReader.py","position":18,"original_position":18,"commit_id":"0ee671bb50c362a9a1b4a82a7b3885ddb5c1a8e7","original_commit_id":"0ee671bb50c362a9a1b4a82a7b3885ddb5c1a8e7","user":{"login":"whirm","id":529494,"avatar_url":"https://avatars.githubusercontent.com/u/529494?v=3","gravatar_id":"","url":"https://api.github.com/users/whirm","html_url":"https://github.com/whirm","followers_url":"https://api.github.com/users/whirm/followers","following_url":"https://api.github.com/users/whirm/following{/other_user}","gists_url":"https://api.github.com/users/whirm/gists{/gist_id}","starred_url":"https://api.github.com/users/whirm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whirm/subscriptions","organizations_url":"https://api.github.com/users/whirm/orgs","repos_url":"https://api.github.com/users/whirm/repos","events_url":"https://api.github.com/users/whirm/events{/privacy}","received_events_url":"https://api.github.com/users/whirm/received_events","type":"User","site_admin":false},"body":"*additional functionality to analyze an experiment","created_at":"2015-11-24T10:10:45Z","updated_at":"2015-11-24T10:10:45Z","html_url":"https://github.com/Tribler/gumby/pull/235#discussion_r45716495","pull_request_url":"https://api.github.com/repos/Tribler/gumby/pulls/235","_links":{"self":{"href":"https://api.github.com/repos/Tribler/gumby/pulls/comments/45716495"},"html":{"href":"https://github.com/Tribler/gumby/pull/235#discussion_r45716495"},"pull_request":{"href":"https://api.github.com/repos/Tribler/gumby/pulls/235"}}},"pull_request":{"url":"https://api.github.com/repos/Tribler/gumby/pulls/235","id":51538207,"html_url":"https://github.com/Tribler/gumby/pull/235","diff_url":"https://github.com/Tribler/gumby/pull/235.diff","patch_url":"https://github.com/Tribler/gumby/pull/235.patch","issue_url":"https://api.github.com/repos/Tribler/gumby/issues/235","number":235,"state":"open","locked":false,"title":"MultiChain gumby experiments","user":{"login":"snorberhuis","id":3153814,"avatar_url":"https://avatars.githubusercontent.com/u/3153814?v=3","gravatar_id":"","url":"https://api.github.com/users/snorberhuis","html_url":"https://github.com/snorberhuis","followers_url":"https://api.github.com/users/snorberhuis/followers","following_url":"https://api.github.com/users/snorberhuis/following{/other_user}","gists_url":"https://api.github.com/users/snorberhuis/gists{/gist_id}","starred_url":"https://api.github.com/users/snorberhuis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snorberhuis/subscriptions","organizations_url":"https://api.github.com/users/snorberhuis/orgs","repos_url":"https://api.github.com/users/snorberhuis/repos","events_url":"https://api.github.com/users/snorberhuis/events{/privacy}","received_events_url":"https://api.github.com/users/snorberhuis/received_events","type":"User","site_admin":false},"body":"I will squash the changes when approved.","created_at":"2015-11-23T15:36:36Z","updated_at":"2015-11-24T10:10:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"389ad84eb496a536f1f43f4d6f5030feacc2da3a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Tribler/gumby/pulls/235/commits","review_comments_url":"https://api.github.com/repos/Tribler/gumby/pulls/235/comments","review_comment_url":"https://api.github.com/repos/Tribler/gumby/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Tribler/gumby/issues/235/comments","statuses_url":"https://api.github.com/repos/Tribler/gumby/statuses/0ee671bb50c362a9a1b4a82a7b3885ddb5c1a8e7","head":{"label":"snorberhuis:devel","ref":"devel","sha":"0ee671bb50c362a9a1b4a82a7b3885ddb5c1a8e7","user":{"login":"snorberhuis","id":3153814,"avatar_url":"https://avatars.githubusercontent.com/u/3153814?v=3","gravatar_id":"","url":"https://api.github.com/users/snorberhuis","html_url":"https://github.com/snorberhuis","followers_url":"https://api.github.com/users/snorberhuis/followers","following_url":"https://api.github.com/users/snorberhuis/following{/other_user}","gists_url":"https://api.github.com/users/snorberhuis/gists{/gist_id}","starred_url":"https://api.github.com/users/snorberhuis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snorberhuis/subscriptions","organizations_url":"https://api.github.com/users/snorberhuis/orgs","repos_url":"https://api.github.com/users/snorberhuis/repos","events_url":"https://api.github.com/users/snorberhuis/events{/privacy}","received_events_url":"https://api.github.com/users/snorberhuis/received_events","type":"User","site_admin":false},"repo":{"id":31958309,"name":"gumby","full_name":"snorberhuis/gumby","owner":{"login":"snorberhuis","id":3153814,"avatar_url":"https://avatars.githubusercontent.com/u/3153814?v=3","gravatar_id":"","url":"https://api.github.com/users/snorberhuis","html_url":"https://github.com/snorberhuis","followers_url":"https://api.github.com/users/snorberhuis/followers","following_url":"https://api.github.com/users/snorberhuis/following{/other_user}","gists_url":"https://api.github.com/users/snorberhuis/gists{/gist_id}","starred_url":"https://api.github.com/users/snorberhuis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snorberhuis/subscriptions","organizations_url":"https://api.github.com/users/snorberhuis/orgs","repos_url":"https://api.github.com/users/snorberhuis/repos","events_url":"https://api.github.com/users/snorberhuis/events{/privacy}","received_events_url":"https://api.github.com/users/snorberhuis/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/snorberhuis/gumby","description":"Experiment runner framework for Dispersy and Tribler","fork":true,"url":"https://api.github.com/repos/snorberhuis/gumby","forks_url":"https://api.github.com/repos/snorberhuis/gumby/forks","keys_url":"https://api.github.com/repos/snorberhuis/gumby/keys{/key_id}","collaborators_url":"https://api.github.com/repos/snorberhuis/gumby/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/snorberhuis/gumby/teams","hooks_url":"https://api.github.com/repos/snorberhuis/gumby/hooks","issue_events_url":"https://api.github.com/repos/snorberhuis/gumby/issues/events{/number}","events_url":"https://api.github.com/repos/snorberhuis/gumby/events","assignees_url":"https://api.github.com/repos/snorberhuis/gumby/assignees{/user}","branches_url":"https://api.github.com/repos/snorberhuis/gumby/branches{/branch}","tags_url":"https://api.github.com/repos/snorberhuis/gumby/tags","blobs_url":"https://api.github.com/repos/snorberhuis/gumby/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/snorberhuis/gumby/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/snorberhuis/gumby/git/refs{/sha}","trees_url":"https://api.github.com/repos/snorberhuis/gumby/git/trees{/sha}","statuses_url":"https://api.github.com/repos/snorberhuis/gumby/statuses/{sha}","languages_url":"https://api.github.com/repos/snorberhuis/gumby/languages","stargazers_url":"https://api.github.com/repos/snorberhuis/gumby/stargazers","contributors_url":"https://api.github.com/repos/snorberhuis/gumby/contributors","subscribers_url":"https://api.github.com/repos/snorberhuis/gumby/subscribers","subscription_url":"https://api.github.com/repos/snorberhuis/gumby/subscription","commits_url":"https://api.github.com/repos/snorberhuis/gumby/commits{/sha}","git_commits_url":"https://api.github.com/repos/snorberhuis/gumby/git/commits{/sha}","comments_url":"https://api.github.com/repos/snorberhuis/gumby/comments{/number}","issue_comment_url":"https://api.github.com/repos/snorberhuis/gumby/issues/comments{/number}","contents_url":"https://api.github.com/repos/snorberhuis/gumby/contents/{+path}","compare_url":"https://api.github.com/repos/snorberhuis/gumby/compare/{base}...{head}","merges_url":"https://api.github.com/repos/snorberhuis/gumby/merges","archive_url":"https://api.github.com/repos/snorberhuis/gumby/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/snorberhuis/gumby/downloads","issues_url":"https://api.github.com/repos/snorberhuis/gumby/issues{/number}","pulls_url":"https://api.github.com/repos/snorberhuis/gumby/pulls{/number}","milestones_url":"https://api.github.com/repos/snorberhuis/gumby/milestones{/number}","notifications_url":"https://api.github.com/repos/snorberhuis/gumby/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/snorberhuis/gumby/labels{/name}","releases_url":"https://api.github.com/repos/snorberhuis/gumby/releases{/id}","created_at":"2015-03-10T13:15:33Z","updated_at":"2015-04-21T14:02:33Z","pushed_at":"2015-11-23T15:33:37Z","git_url":"git://github.com/snorberhuis/gumby.git","ssh_url":"git@github.com:snorberhuis/gumby.git","clone_url":"https://github.com/snorberhuis/gumby.git","svn_url":"https://github.com/snorberhuis/gumby","homepage":null,"size":32051,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"devel"}},"base":{"label":"Tribler:devel","ref":"devel","sha":"3d2a93e6f0ed0664ff7601f07e3eec0dfc71d6f7","user":{"login":"Tribler","id":2913489,"avatar_url":"https://avatars.githubusercontent.com/u/2913489?v=3","gravatar_id":"","url":"https://api.github.com/users/Tribler","html_url":"https://github.com/Tribler","followers_url":"https://api.github.com/users/Tribler/followers","following_url":"https://api.github.com/users/Tribler/following{/other_user}","gists_url":"https://api.github.com/users/Tribler/gists{/gist_id}","starred_url":"https://api.github.com/users/Tribler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tribler/subscriptions","organizations_url":"https://api.github.com/users/Tribler/orgs","repos_url":"https://api.github.com/users/Tribler/repos","events_url":"https://api.github.com/users/Tribler/events{/privacy}","received_events_url":"https://api.github.com/users/Tribler/received_events","type":"Organization","site_admin":false},"repo":{"id":10665607,"name":"gumby","full_name":"Tribler/gumby","owner":{"login":"Tribler","id":2913489,"avatar_url":"https://avatars.githubusercontent.com/u/2913489?v=3","gravatar_id":"","url":"https://api.github.com/users/Tribler","html_url":"https://github.com/Tribler","followers_url":"https://api.github.com/users/Tribler/followers","following_url":"https://api.github.com/users/Tribler/following{/other_user}","gists_url":"https://api.github.com/users/Tribler/gists{/gist_id}","starred_url":"https://api.github.com/users/Tribler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tribler/subscriptions","organizations_url":"https://api.github.com/users/Tribler/orgs","repos_url":"https://api.github.com/users/Tribler/repos","events_url":"https://api.github.com/users/Tribler/events{/privacy}","received_events_url":"https://api.github.com/users/Tribler/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Tribler/gumby","description":"Experiment runner framework for Dispersy and Tribler","fork":false,"url":"https://api.github.com/repos/Tribler/gumby","forks_url":"https://api.github.com/repos/Tribler/gumby/forks","keys_url":"https://api.github.com/repos/Tribler/gumby/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Tribler/gumby/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Tribler/gumby/teams","hooks_url":"https://api.github.com/repos/Tribler/gumby/hooks","issue_events_url":"https://api.github.com/repos/Tribler/gumby/issues/events{/number}","events_url":"https://api.github.com/repos/Tribler/gumby/events","assignees_url":"https://api.github.com/repos/Tribler/gumby/assignees{/user}","branches_url":"https://api.github.com/repos/Tribler/gumby/branches{/branch}","tags_url":"https://api.github.com/repos/Tribler/gumby/tags","blobs_url":"https://api.github.com/repos/Tribler/gumby/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Tribler/gumby/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Tribler/gumby/git/refs{/sha}","trees_url":"https://api.github.com/repos/Tribler/gumby/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Tribler/gumby/statuses/{sha}","languages_url":"https://api.github.com/repos/Tribler/gumby/languages","stargazers_url":"https://api.github.com/repos/Tribler/gumby/stargazers","contributors_url":"https://api.github.com/repos/Tribler/gumby/contributors","subscribers_url":"https://api.github.com/repos/Tribler/gumby/subscribers","subscription_url":"https://api.github.com/repos/Tribler/gumby/subscription","commits_url":"https://api.github.com/repos/Tribler/gumby/commits{/sha}","git_commits_url":"https://api.github.com/repos/Tribler/gumby/git/commits{/sha}","comments_url":"https://api.github.com/repos/Tribler/gumby/comments{/number}","issue_comment_url":"https://api.github.com/repos/Tribler/gumby/issues/comments{/number}","contents_url":"https://api.github.com/repos/Tribler/gumby/contents/{+path}","compare_url":"https://api.github.com/repos/Tribler/gumby/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Tribler/gumby/merges","archive_url":"https://api.github.com/repos/Tribler/gumby/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Tribler/gumby/downloads","issues_url":"https://api.github.com/repos/Tribler/gumby/issues{/number}","pulls_url":"https://api.github.com/repos/Tribler/gumby/pulls{/number}","milestones_url":"https://api.github.com/repos/Tribler/gumby/milestones{/number}","notifications_url":"https://api.github.com/repos/Tribler/gumby/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Tribler/gumby/labels{/name}","releases_url":"https://api.github.com/repos/Tribler/gumby/releases{/id}","created_at":"2013-06-13T12:27:16Z","updated_at":"2015-05-08T16:48:43Z","pushed_at":"2015-11-23T15:36:36Z","git_url":"git://github.com/Tribler/gumby.git","ssh_url":"git@github.com:Tribler/gumby.git","clone_url":"https://github.com/Tribler/gumby.git","svn_url":"https://github.com/Tribler/gumby","homepage":null,"size":34917,"stargazers_count":6,"watchers_count":6,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":19,"mirror_url":null,"open_issues_count":10,"forks":19,"open_issues":10,"watchers":6,"default_branch":"devel"}},"_links":{"self":{"href":"https://api.github.com/repos/Tribler/gumby/pulls/235"},"html":{"href":"https://github.com/Tribler/gumby/pull/235"},"issue":{"href":"https://api.github.com/repos/Tribler/gumby/issues/235"},"comments":{"href":"https://api.github.com/repos/Tribler/gumby/issues/235/comments"},"review_comments":{"href":"https://api.github.com/repos/Tribler/gumby/pulls/235/comments"},"review_comment":{"href":"https://api.github.com/repos/Tribler/gumby/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Tribler/gumby/pulls/235/commits"},"statuses":{"href":"https://api.github.com/repos/Tribler/gumby/statuses/0ee671bb50c362a9a1b4a82a7b3885ddb5c1a8e7"}}}}