{"action":"created","comment":{"url":"https://api.github.com/repos/scala-academy/castalia/pulls/comments/51810285","id":51810285,"diff_hunk":"@@ -19,9 +20,143 @@ trait Delay {\n \n \n trait DelayedDistribution extends Delay {\n-  def distributedFuture[T](mean: Double,\n-                           stdev: Double,\n-                           dist: Distribution[Double]\n-                          ): Distribution[Double] =\n-    dist.map(_*stdev + mean)\n+  def normalDistribution(mean: Double,\n+                            stdev: Double,\n+                            dist: Distribution[Double]\n+                           ): Distribution[Double] =\n+    dist.map(_ * stdev + mean)\n+\n+  def gammaDistribution(k: Double, theta: Double): Distribution[Double] = {\n+    Distribution.gamma(k, theta)\n+  }","path":"src/main/scala/castalia/Delay.scala","position":27,"original_position":27,"commit_id":"d070e82b9f76178b8800cf77fff0d5ffa64994f2","original_commit_id":"d070e82b9f76178b8800cf77fff0d5ffa64994f2","user":{"login":"TimSoethout","id":593132,"avatar_url":"https://avatars.githubusercontent.com/u/593132?v=3","gravatar_id":"","url":"https://api.github.com/users/TimSoethout","html_url":"https://github.com/TimSoethout","followers_url":"https://api.github.com/users/TimSoethout/followers","following_url":"https://api.github.com/users/TimSoethout/following{/other_user}","gists_url":"https://api.github.com/users/TimSoethout/gists{/gist_id}","starred_url":"https://api.github.com/users/TimSoethout/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TimSoethout/subscriptions","organizations_url":"https://api.github.com/users/TimSoethout/orgs","repos_url":"https://api.github.com/users/TimSoethout/repos","events_url":"https://api.github.com/users/TimSoethout/events{/privacy}","received_events_url":"https://api.github.com/users/TimSoethout/received_events","type":"User","site_admin":false},"body":"![Codacy](https://www.codacy.com/versioned/images/favicon.png) Issue found: [Non ascii characters are not allowed](https://www.codacy.com/app/scala-academy/Castalia/file/1968742661/issues/source?bid=2998213&fileBranchId=3112713#l31)","created_at":"2016-02-04T00:08:57Z","updated_at":"2016-02-04T00:08:57Z","html_url":"https://github.com/scala-academy/castalia/pull/58#discussion_r51810285","pull_request_url":"https://api.github.com/repos/scala-academy/castalia/pulls/58","_links":{"self":{"href":"https://api.github.com/repos/scala-academy/castalia/pulls/comments/51810285"},"html":{"href":"https://github.com/scala-academy/castalia/pull/58#discussion_r51810285"},"pull_request":{"href":"https://api.github.com/repos/scala-academy/castalia/pulls/58"}}},"pull_request":{"url":"https://api.github.com/repos/scala-academy/castalia/pulls/58","id":58195128,"html_url":"https://github.com/scala-academy/castalia/pull/58","diff_url":"https://github.com/scala-academy/castalia/pull/58.diff","patch_url":"https://github.com/scala-academy/castalia/pull/58.patch","issue_url":"https://api.github.com/repos/scala-academy/castalia/issues/58","number":58,"state":"open","locked":false,"title":"Feature/#5 latency distribution","user":{"login":"DieBauer","id":2719894,"avatar_url":"https://avatars.githubusercontent.com/u/2719894?v=3","gravatar_id":"","url":"https://api.github.com/users/DieBauer","html_url":"https://github.com/DieBauer","followers_url":"https://api.github.com/users/DieBauer/followers","following_url":"https://api.github.com/users/DieBauer/following{/other_user}","gists_url":"https://api.github.com/users/DieBauer/gists{/gist_id}","starred_url":"https://api.github.com/users/DieBauer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DieBauer/subscriptions","organizations_url":"https://api.github.com/users/DieBauer/orgs","repos_url":"https://api.github.com/users/DieBauer/repos","events_url":"https://api.github.com/users/DieBauer/events{/privacy}","received_events_url":"https://api.github.com/users/DieBauer/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-02-03T20:24:46Z","updated_at":"2016-02-04T00:08:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7e04760bbc86537edc214f4385b5041b8214c30c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/scala-academy/castalia/pulls/58/commits","review_comments_url":"https://api.github.com/repos/scala-academy/castalia/pulls/58/comments","review_comment_url":"https://api.github.com/repos/scala-academy/castalia/pulls/comments{/number}","comments_url":"https://api.github.com/repos/scala-academy/castalia/issues/58/comments","statuses_url":"https://api.github.com/repos/scala-academy/castalia/statuses/d070e82b9f76178b8800cf77fff0d5ffa64994f2","head":{"label":"scala-academy:feature/#5-latency-distribution","ref":"feature/#5-latency-distribution","sha":"d070e82b9f76178b8800cf77fff0d5ffa64994f2","user":{"login":"scala-academy","id":15196297,"avatar_url":"https://avatars.githubusercontent.com/u/15196297?v=3","gravatar_id":"","url":"https://api.github.com/users/scala-academy","html_url":"https://github.com/scala-academy","followers_url":"https://api.github.com/users/scala-academy/followers","following_url":"https://api.github.com/users/scala-academy/following{/other_user}","gists_url":"https://api.github.com/users/scala-academy/gists{/gist_id}","starred_url":"https://api.github.com/users/scala-academy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scala-academy/subscriptions","organizations_url":"https://api.github.com/users/scala-academy/orgs","repos_url":"https://api.github.com/users/scala-academy/repos","events_url":"https://api.github.com/users/scala-academy/events{/privacy}","received_events_url":"https://api.github.com/users/scala-academy/received_events","type":"Organization","site_admin":false},"repo":{"id":43876154,"name":"castalia","full_name":"scala-academy/castalia","owner":{"login":"scala-academy","id":15196297,"avatar_url":"https://avatars.githubusercontent.com/u/15196297?v=3","gravatar_id":"","url":"https://api.github.com/users/scala-academy","html_url":"https://github.com/scala-academy","followers_url":"https://api.github.com/users/scala-academy/followers","following_url":"https://api.github.com/users/scala-academy/following{/other_user}","gists_url":"https://api.github.com/users/scala-academy/gists{/gist_id}","starred_url":"https://api.github.com/users/scala-academy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scala-academy/subscriptions","organizations_url":"https://api.github.com/users/scala-academy/orgs","repos_url":"https://api.github.com/users/scala-academy/repos","events_url":"https://api.github.com/users/scala-academy/events{/privacy}","received_events_url":"https://api.github.com/users/scala-academy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/scala-academy/castalia","description":"API stub server","fork":false,"url":"https://api.github.com/repos/scala-academy/castalia","forks_url":"https://api.github.com/repos/scala-academy/castalia/forks","keys_url":"https://api.github.com/repos/scala-academy/castalia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/scala-academy/castalia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/scala-academy/castalia/teams","hooks_url":"https://api.github.com/repos/scala-academy/castalia/hooks","issue_events_url":"https://api.github.com/repos/scala-academy/castalia/issues/events{/number}","events_url":"https://api.github.com/repos/scala-academy/castalia/events","assignees_url":"https://api.github.com/repos/scala-academy/castalia/assignees{/user}","branches_url":"https://api.github.com/repos/scala-academy/castalia/branches{/branch}","tags_url":"https://api.github.com/repos/scala-academy/castalia/tags","blobs_url":"https://api.github.com/repos/scala-academy/castalia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/scala-academy/castalia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/scala-academy/castalia/git/refs{/sha}","trees_url":"https://api.github.com/repos/scala-academy/castalia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/scala-academy/castalia/statuses/{sha}","languages_url":"https://api.github.com/repos/scala-academy/castalia/languages","stargazers_url":"https://api.github.com/repos/scala-academy/castalia/stargazers","contributors_url":"https://api.github.com/repos/scala-academy/castalia/contributors","subscribers_url":"https://api.github.com/repos/scala-academy/castalia/subscribers","subscription_url":"https://api.github.com/repos/scala-academy/castalia/subscription","commits_url":"https://api.github.com/repos/scala-academy/castalia/commits{/sha}","git_commits_url":"https://api.github.com/repos/scala-academy/castalia/git/commits{/sha}","comments_url":"https://api.github.com/repos/scala-academy/castalia/comments{/number}","issue_comment_url":"https://api.github.com/repos/scala-academy/castalia/issues/comments{/number}","contents_url":"https://api.github.com/repos/scala-academy/castalia/contents/{+path}","compare_url":"https://api.github.com/repos/scala-academy/castalia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/scala-academy/castalia/merges","archive_url":"https://api.github.com/repos/scala-academy/castalia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/scala-academy/castalia/downloads","issues_url":"https://api.github.com/repos/scala-academy/castalia/issues{/number}","pulls_url":"https://api.github.com/repos/scala-academy/castalia/pulls{/number}","milestones_url":"https://api.github.com/repos/scala-academy/castalia/milestones{/number}","notifications_url":"https://api.github.com/repos/scala-academy/castalia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/scala-academy/castalia/labels{/name}","releases_url":"https://api.github.com/repos/scala-academy/castalia/releases{/id}","deployments_url":"https://api.github.com/repos/scala-academy/castalia/deployments","created_at":"2015-10-08T09:07:23Z","updated_at":"2016-01-12T19:43:21Z","pushed_at":"2016-02-03T21:48:58Z","git_url":"git://github.com/scala-academy/castalia.git","ssh_url":"git@github.com:scala-academy/castalia.git","clone_url":"https://github.com/scala-academy/castalia.git","svn_url":"https://github.com/scala-academy/castalia","homepage":"","size":1342,"stargazers_count":4,"watchers_count":4,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":9,"forks":3,"open_issues":9,"watchers":4,"default_branch":"develop"}},"base":{"label":"scala-academy:develop","ref":"develop","sha":"674f934f9a59a7ecc36477a87117f8e7c2f8e376","user":{"login":"scala-academy","id":15196297,"avatar_url":"https://avatars.githubusercontent.com/u/15196297?v=3","gravatar_id":"","url":"https://api.github.com/users/scala-academy","html_url":"https://github.com/scala-academy","followers_url":"https://api.github.com/users/scala-academy/followers","following_url":"https://api.github.com/users/scala-academy/following{/other_user}","gists_url":"https://api.github.com/users/scala-academy/gists{/gist_id}","starred_url":"https://api.github.com/users/scala-academy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scala-academy/subscriptions","organizations_url":"https://api.github.com/users/scala-academy/orgs","repos_url":"https://api.github.com/users/scala-academy/repos","events_url":"https://api.github.com/users/scala-academy/events{/privacy}","received_events_url":"https://api.github.com/users/scala-academy/received_events","type":"Organization","site_admin":false},"repo":{"id":43876154,"name":"castalia","full_name":"scala-academy/castalia","owner":{"login":"scala-academy","id":15196297,"avatar_url":"https://avatars.githubusercontent.com/u/15196297?v=3","gravatar_id":"","url":"https://api.github.com/users/scala-academy","html_url":"https://github.com/scala-academy","followers_url":"https://api.github.com/users/scala-academy/followers","following_url":"https://api.github.com/users/scala-academy/following{/other_user}","gists_url":"https://api.github.com/users/scala-academy/gists{/gist_id}","starred_url":"https://api.github.com/users/scala-academy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scala-academy/subscriptions","organizations_url":"https://api.github.com/users/scala-academy/orgs","repos_url":"https://api.github.com/users/scala-academy/repos","events_url":"https://api.github.com/users/scala-academy/events{/privacy}","received_events_url":"https://api.github.com/users/scala-academy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/scala-academy/castalia","description":"API stub server","fork":false,"url":"https://api.github.com/repos/scala-academy/castalia","forks_url":"https://api.github.com/repos/scala-academy/castalia/forks","keys_url":"https://api.github.com/repos/scala-academy/castalia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/scala-academy/castalia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/scala-academy/castalia/teams","hooks_url":"https://api.github.com/repos/scala-academy/castalia/hooks","issue_events_url":"https://api.github.com/repos/scala-academy/castalia/issues/events{/number}","events_url":"https://api.github.com/repos/scala-academy/castalia/events","assignees_url":"https://api.github.com/repos/scala-academy/castalia/assignees{/user}","branches_url":"https://api.github.com/repos/scala-academy/castalia/branches{/branch}","tags_url":"https://api.github.com/repos/scala-academy/castalia/tags","blobs_url":"https://api.github.com/repos/scala-academy/castalia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/scala-academy/castalia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/scala-academy/castalia/git/refs{/sha}","trees_url":"https://api.github.com/repos/scala-academy/castalia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/scala-academy/castalia/statuses/{sha}","languages_url":"https://api.github.com/repos/scala-academy/castalia/languages","stargazers_url":"https://api.github.com/repos/scala-academy/castalia/stargazers","contributors_url":"https://api.github.com/repos/scala-academy/castalia/contributors","subscribers_url":"https://api.github.com/repos/scala-academy/castalia/subscribers","subscription_url":"https://api.github.com/repos/scala-academy/castalia/subscription","commits_url":"https://api.github.com/repos/scala-academy/castalia/commits{/sha}","git_commits_url":"https://api.github.com/repos/scala-academy/castalia/git/commits{/sha}","comments_url":"https://api.github.com/repos/scala-academy/castalia/comments{/number}","issue_comment_url":"https://api.github.com/repos/scala-academy/castalia/issues/comments{/number}","contents_url":"https://api.github.com/repos/scala-academy/castalia/contents/{+path}","compare_url":"https://api.github.com/repos/scala-academy/castalia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/scala-academy/castalia/merges","archive_url":"https://api.github.com/repos/scala-academy/castalia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/scala-academy/castalia/downloads","issues_url":"https://api.github.com/repos/scala-academy/castalia/issues{/number}","pulls_url":"https://api.github.com/repos/scala-academy/castalia/pulls{/number}","milestones_url":"https://api.github.com/repos/scala-academy/castalia/milestones{/number}","notifications_url":"https://api.github.com/repos/scala-academy/castalia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/scala-academy/castalia/labels{/name}","releases_url":"https://api.github.com/repos/scala-academy/castalia/releases{/id}","deployments_url":"https://api.github.com/repos/scala-academy/castalia/deployments","created_at":"2015-10-08T09:07:23Z","updated_at":"2016-01-12T19:43:21Z","pushed_at":"2016-02-03T21:48:58Z","git_url":"git://github.com/scala-academy/castalia.git","ssh_url":"git@github.com:scala-academy/castalia.git","clone_url":"https://github.com/scala-academy/castalia.git","svn_url":"https://github.com/scala-academy/castalia","homepage":"","size":1342,"stargazers_count":4,"watchers_count":4,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":9,"forks":3,"open_issues":9,"watchers":4,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/scala-academy/castalia/pulls/58"},"html":{"href":"https://github.com/scala-academy/castalia/pull/58"},"issue":{"href":"https://api.github.com/repos/scala-academy/castalia/issues/58"},"comments":{"href":"https://api.github.com/repos/scala-academy/castalia/issues/58/comments"},"review_comments":{"href":"https://api.github.com/repos/scala-academy/castalia/pulls/58/comments"},"review_comment":{"href":"https://api.github.com/repos/scala-academy/castalia/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/scala-academy/castalia/pulls/58/commits"},"statuses":{"href":"https://api.github.com/repos/scala-academy/castalia/statuses/d070e82b9f76178b8800cf77fff0d5ffa64994f2"}}}}