{"action":"created","comment":{"url":"https://api.github.com/repos/maidsafe/routing_sims/pulls/comments/84426052","pull_request_review_id":5203805,"id":84426052,"diff_hunk":"@@ -444,6 +446,34 @@ impl Tool for SimTool {\n                 }\n             };\n         }\n-        unimplemented!();\n+\n+        if self.any_group {\n+            unimplemented!();\n+        } else {\n+            // Calculate probability of compromise of one selected group.\n+\n+            // Take the group appearing first in self.groups. Since hash-maps\n+            // are randomly ordered in Rust, there should be nothing special\n+            // about this group.","path":"src/sim.rs","position":126,"original_position":126,"commit_id":"7b2719caf7517e612f62465df80a3ebf0ef777e7","original_commit_id":"7b2719caf7517e612f62465df80a3ebf0ef777e7","user":{"login":"afck","id":7894725,"avatar_url":"https://avatars.githubusercontent.com/u/7894725?v=3","gravatar_id":"","url":"https://api.github.com/users/afck","html_url":"https://github.com/afck","followers_url":"https://api.github.com/users/afck/followers","following_url":"https://api.github.com/users/afck/following{/other_user}","gists_url":"https://api.github.com/users/afck/gists{/gist_id}","starred_url":"https://api.github.com/users/afck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/afck/subscriptions","organizations_url":"https://api.github.com/users/afck/orgs","repos_url":"https://api.github.com/users/afck/repos","events_url":"https://api.github.com/users/afck/events{/privacy}","received_events_url":"https://api.github.com/users/afck/received_events","type":"User","site_admin":false},"body":"It would probably be more useful to compute the distribution of these probabilities across all groups, i.e. do the computation below for every group and maybe print the mean value and standard deviation.","created_at":"2016-10-21T06:44:51Z","updated_at":"2016-10-21T06:45:54Z","html_url":"https://github.com/maidsafe/routing_sims/pull/6#discussion_r84426052","pull_request_url":"https://api.github.com/repos/maidsafe/routing_sims/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/maidsafe/routing_sims/pulls/comments/84426052"},"html":{"href":"https://github.com/maidsafe/routing_sims/pull/6#discussion_r84426052"},"pull_request":{"href":"https://api.github.com/repos/maidsafe/routing_sims/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/maidsafe/routing_sims/pulls/6","id":90246150,"html_url":"https://github.com/maidsafe/routing_sims/pull/6","diff_url":"https://github.com/maidsafe/routing_sims/pull/6.diff","patch_url":"https://github.com/maidsafe/routing_sims/pull/6.patch","issue_url":"https://api.github.com/repos/maidsafe/routing_sims/issues/6","number":6,"state":"open","locked":false,"title":"Simulate network to find group sizes","user":{"login":"dhardy","id":134893,"avatar_url":"https://avatars.githubusercontent.com/u/134893?v=3","gravatar_id":"","url":"https://api.github.com/users/dhardy","html_url":"https://github.com/dhardy","followers_url":"https://api.github.com/users/dhardy/followers","following_url":"https://api.github.com/users/dhardy/following{/other_user}","gists_url":"https://api.github.com/users/dhardy/gists{/gist_id}","starred_url":"https://api.github.com/users/dhardy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhardy/subscriptions","organizations_url":"https://api.github.com/users/dhardy/orgs","repos_url":"https://api.github.com/users/dhardy/repos","events_url":"https://api.github.com/users/dhardy/events{/privacy}","received_events_url":"https://api.github.com/users/dhardy/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-10-20T17:32:30Z","updated_at":"2016-10-21T06:45:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"32e5eb2365588f33200a90080647da38e63f7d10","assignee":{"login":"afck","id":7894725,"avatar_url":"https://avatars.githubusercontent.com/u/7894725?v=3","gravatar_id":"","url":"https://api.github.com/users/afck","html_url":"https://github.com/afck","followers_url":"https://api.github.com/users/afck/followers","following_url":"https://api.github.com/users/afck/following{/other_user}","gists_url":"https://api.github.com/users/afck/gists{/gist_id}","starred_url":"https://api.github.com/users/afck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/afck/subscriptions","organizations_url":"https://api.github.com/users/afck/orgs","repos_url":"https://api.github.com/users/afck/repos","events_url":"https://api.github.com/users/afck/events{/privacy}","received_events_url":"https://api.github.com/users/afck/received_events","type":"User","site_admin":false},"assignees":[{"login":"afck","id":7894725,"avatar_url":"https://avatars.githubusercontent.com/u/7894725?v=3","gravatar_id":"","url":"https://api.github.com/users/afck","html_url":"https://github.com/afck","followers_url":"https://api.github.com/users/afck/followers","following_url":"https://api.github.com/users/afck/following{/other_user}","gists_url":"https://api.github.com/users/afck/gists{/gist_id}","starred_url":"https://api.github.com/users/afck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/afck/subscriptions","organizations_url":"https://api.github.com/users/afck/orgs","repos_url":"https://api.github.com/users/afck/repos","events_url":"https://api.github.com/users/afck/events{/privacy}","received_events_url":"https://api.github.com/users/afck/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/maidsafe/routing_sims/pulls/6/commits","review_comments_url":"https://api.github.com/repos/maidsafe/routing_sims/pulls/6/comments","review_comment_url":"https://api.github.com/repos/maidsafe/routing_sims/pulls/comments{/number}","comments_url":"https://api.github.com/repos/maidsafe/routing_sims/issues/6/comments","statuses_url":"https://api.github.com/repos/maidsafe/routing_sims/statuses/7b2719caf7517e612f62465df80a3ebf0ef777e7","head":{"label":"dhardy:master","ref":"master","sha":"7b2719caf7517e612f62465df80a3ebf0ef777e7","user":{"login":"dhardy","id":134893,"avatar_url":"https://avatars.githubusercontent.com/u/134893?v=3","gravatar_id":"","url":"https://api.github.com/users/dhardy","html_url":"https://github.com/dhardy","followers_url":"https://api.github.com/users/dhardy/followers","following_url":"https://api.github.com/users/dhardy/following{/other_user}","gists_url":"https://api.github.com/users/dhardy/gists{/gist_id}","starred_url":"https://api.github.com/users/dhardy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhardy/subscriptions","organizations_url":"https://api.github.com/users/dhardy/orgs","repos_url":"https://api.github.com/users/dhardy/repos","events_url":"https://api.github.com/users/dhardy/events{/privacy}","received_events_url":"https://api.github.com/users/dhardy/received_events","type":"User","site_admin":false},"repo":{"id":71266065,"name":"routing_sims","full_name":"dhardy/routing_sims","owner":{"login":"dhardy","id":134893,"avatar_url":"https://avatars.githubusercontent.com/u/134893?v=3","gravatar_id":"","url":"https://api.github.com/users/dhardy","html_url":"https://github.com/dhardy","followers_url":"https://api.github.com/users/dhardy/followers","following_url":"https://api.github.com/users/dhardy/following{/other_user}","gists_url":"https://api.github.com/users/dhardy/gists{/gist_id}","starred_url":"https://api.github.com/users/dhardy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhardy/subscriptions","organizations_url":"https://api.github.com/users/dhardy/orgs","repos_url":"https://api.github.com/users/dhardy/repos","events_url":"https://api.github.com/users/dhardy/events{/privacy}","received_events_url":"https://api.github.com/users/dhardy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dhardy/routing_sims","description":"Routing simulations","fork":true,"url":"https://api.github.com/repos/dhardy/routing_sims","forks_url":"https://api.github.com/repos/dhardy/routing_sims/forks","keys_url":"https://api.github.com/repos/dhardy/routing_sims/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dhardy/routing_sims/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dhardy/routing_sims/teams","hooks_url":"https://api.github.com/repos/dhardy/routing_sims/hooks","issue_events_url":"https://api.github.com/repos/dhardy/routing_sims/issues/events{/number}","events_url":"https://api.github.com/repos/dhardy/routing_sims/events","assignees_url":"https://api.github.com/repos/dhardy/routing_sims/assignees{/user}","branches_url":"https://api.github.com/repos/dhardy/routing_sims/branches{/branch}","tags_url":"https://api.github.com/repos/dhardy/routing_sims/tags","blobs_url":"https://api.github.com/repos/dhardy/routing_sims/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dhardy/routing_sims/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dhardy/routing_sims/git/refs{/sha}","trees_url":"https://api.github.com/repos/dhardy/routing_sims/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dhardy/routing_sims/statuses/{sha}","languages_url":"https://api.github.com/repos/dhardy/routing_sims/languages","stargazers_url":"https://api.github.com/repos/dhardy/routing_sims/stargazers","contributors_url":"https://api.github.com/repos/dhardy/routing_sims/contributors","subscribers_url":"https://api.github.com/repos/dhardy/routing_sims/subscribers","subscription_url":"https://api.github.com/repos/dhardy/routing_sims/subscription","commits_url":"https://api.github.com/repos/dhardy/routing_sims/commits{/sha}","git_commits_url":"https://api.github.com/repos/dhardy/routing_sims/git/commits{/sha}","comments_url":"https://api.github.com/repos/dhardy/routing_sims/comments{/number}","issue_comment_url":"https://api.github.com/repos/dhardy/routing_sims/issues/comments{/number}","contents_url":"https://api.github.com/repos/dhardy/routing_sims/contents/{+path}","compare_url":"https://api.github.com/repos/dhardy/routing_sims/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dhardy/routing_sims/merges","archive_url":"https://api.github.com/repos/dhardy/routing_sims/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dhardy/routing_sims/downloads","issues_url":"https://api.github.com/repos/dhardy/routing_sims/issues{/number}","pulls_url":"https://api.github.com/repos/dhardy/routing_sims/pulls{/number}","milestones_url":"https://api.github.com/repos/dhardy/routing_sims/milestones{/number}","notifications_url":"https://api.github.com/repos/dhardy/routing_sims/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dhardy/routing_sims/labels{/name}","releases_url":"https://api.github.com/repos/dhardy/routing_sims/releases{/id}","deployments_url":"https://api.github.com/repos/dhardy/routing_sims/deployments","created_at":"2016-10-18T16:02:03Z","updated_at":"2016-10-18T16:02:36Z","pushed_at":"2016-10-20T17:31:38Z","git_url":"git://github.com/dhardy/routing_sims.git","ssh_url":"git@github.com:dhardy/routing_sims.git","clone_url":"https://github.com/dhardy/routing_sims.git","svn_url":"https://github.com/dhardy/routing_sims","homepage":null,"size":63,"stargazers_count":0,"watchers_count":0,"language":"Rust","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":"maidsafe:master","ref":"master","sha":"a9fe75da56f24a949a3fc0e5b4da815ae7016f94","user":{"login":"maidsafe","id":536423,"avatar_url":"https://avatars.githubusercontent.com/u/536423?v=3","gravatar_id":"","url":"https://api.github.com/users/maidsafe","html_url":"https://github.com/maidsafe","followers_url":"https://api.github.com/users/maidsafe/followers","following_url":"https://api.github.com/users/maidsafe/following{/other_user}","gists_url":"https://api.github.com/users/maidsafe/gists{/gist_id}","starred_url":"https://api.github.com/users/maidsafe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maidsafe/subscriptions","organizations_url":"https://api.github.com/users/maidsafe/orgs","repos_url":"https://api.github.com/users/maidsafe/repos","events_url":"https://api.github.com/users/maidsafe/events{/privacy}","received_events_url":"https://api.github.com/users/maidsafe/received_events","type":"Organization","site_admin":false},"repo":{"id":71262502,"name":"routing_sims","full_name":"maidsafe/routing_sims","owner":{"login":"maidsafe","id":536423,"avatar_url":"https://avatars.githubusercontent.com/u/536423?v=3","gravatar_id":"","url":"https://api.github.com/users/maidsafe","html_url":"https://github.com/maidsafe","followers_url":"https://api.github.com/users/maidsafe/followers","following_url":"https://api.github.com/users/maidsafe/following{/other_user}","gists_url":"https://api.github.com/users/maidsafe/gists{/gist_id}","starred_url":"https://api.github.com/users/maidsafe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maidsafe/subscriptions","organizations_url":"https://api.github.com/users/maidsafe/orgs","repos_url":"https://api.github.com/users/maidsafe/repos","events_url":"https://api.github.com/users/maidsafe/events{/privacy}","received_events_url":"https://api.github.com/users/maidsafe/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/maidsafe/routing_sims","description":"Routing simulations","fork":false,"url":"https://api.github.com/repos/maidsafe/routing_sims","forks_url":"https://api.github.com/repos/maidsafe/routing_sims/forks","keys_url":"https://api.github.com/repos/maidsafe/routing_sims/keys{/key_id}","collaborators_url":"https://api.github.com/repos/maidsafe/routing_sims/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/maidsafe/routing_sims/teams","hooks_url":"https://api.github.com/repos/maidsafe/routing_sims/hooks","issue_events_url":"https://api.github.com/repos/maidsafe/routing_sims/issues/events{/number}","events_url":"https://api.github.com/repos/maidsafe/routing_sims/events","assignees_url":"https://api.github.com/repos/maidsafe/routing_sims/assignees{/user}","branches_url":"https://api.github.com/repos/maidsafe/routing_sims/branches{/branch}","tags_url":"https://api.github.com/repos/maidsafe/routing_sims/tags","blobs_url":"https://api.github.com/repos/maidsafe/routing_sims/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/maidsafe/routing_sims/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/maidsafe/routing_sims/git/refs{/sha}","trees_url":"https://api.github.com/repos/maidsafe/routing_sims/git/trees{/sha}","statuses_url":"https://api.github.com/repos/maidsafe/routing_sims/statuses/{sha}","languages_url":"https://api.github.com/repos/maidsafe/routing_sims/languages","stargazers_url":"https://api.github.com/repos/maidsafe/routing_sims/stargazers","contributors_url":"https://api.github.com/repos/maidsafe/routing_sims/contributors","subscribers_url":"https://api.github.com/repos/maidsafe/routing_sims/subscribers","subscription_url":"https://api.github.com/repos/maidsafe/routing_sims/subscription","commits_url":"https://api.github.com/repos/maidsafe/routing_sims/commits{/sha}","git_commits_url":"https://api.github.com/repos/maidsafe/routing_sims/git/commits{/sha}","comments_url":"https://api.github.com/repos/maidsafe/routing_sims/comments{/number}","issue_comment_url":"https://api.github.com/repos/maidsafe/routing_sims/issues/comments{/number}","contents_url":"https://api.github.com/repos/maidsafe/routing_sims/contents/{+path}","compare_url":"https://api.github.com/repos/maidsafe/routing_sims/compare/{base}...{head}","merges_url":"https://api.github.com/repos/maidsafe/routing_sims/merges","archive_url":"https://api.github.com/repos/maidsafe/routing_sims/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/maidsafe/routing_sims/downloads","issues_url":"https://api.github.com/repos/maidsafe/routing_sims/issues{/number}","pulls_url":"https://api.github.com/repos/maidsafe/routing_sims/pulls{/number}","milestones_url":"https://api.github.com/repos/maidsafe/routing_sims/milestones{/number}","notifications_url":"https://api.github.com/repos/maidsafe/routing_sims/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/maidsafe/routing_sims/labels{/name}","releases_url":"https://api.github.com/repos/maidsafe/routing_sims/releases{/id}","deployments_url":"https://api.github.com/repos/maidsafe/routing_sims/deployments","created_at":"2016-10-18T15:25:48Z","updated_at":"2016-10-19T14:22:33Z","pushed_at":"2016-10-20T17:32:30Z","git_url":"git://github.com/maidsafe/routing_sims.git","ssh_url":"git@github.com:maidsafe/routing_sims.git","clone_url":"https://github.com/maidsafe/routing_sims.git","svn_url":"https://github.com/maidsafe/routing_sims","homepage":null,"size":54,"stargazers_count":0,"watchers_count":0,"language":"Rust","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":1,"forks":3,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/maidsafe/routing_sims/pulls/6"},"html":{"href":"https://github.com/maidsafe/routing_sims/pull/6"},"issue":{"href":"https://api.github.com/repos/maidsafe/routing_sims/issues/6"},"comments":{"href":"https://api.github.com/repos/maidsafe/routing_sims/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/maidsafe/routing_sims/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/maidsafe/routing_sims/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/maidsafe/routing_sims/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/maidsafe/routing_sims/statuses/7b2719caf7517e612f62465df80a3ebf0ef777e7"}}}}
{"actor":{"display_login":"afck"}}