{"action":"created","comment":{"url":"https://api.github.com/repos/JMagn/JMagn-kodilla-java/pulls/comments/205947716","pull_request_review_id":141321546,"id":205947716,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwNTk0NzcxNg==","diff_hunk":"@@ -0,0 +1,45 @@\n+package com.kodilla.testing.forum.statistics;\n+\n+public class ForumStatisctics {\n+\n+    private int usersNumber;\n+    private int postsNumber;\n+    private int commentsNumber;\n+    private double postsPerUser;\n+    private double commentsPerUser;\n+    private double commentsPerPost;\n+\n+    public void calculateAdvStatistics(Statistics statistics) {\n+        this.usersNumber = statistics.usersNames().size();\n+        if (usersNumber > 0) {\n+            this.postsNumber = statistics.postsCount();\n+            this.postsPerUser = (double)postsNumber / usersNumber;\n+        }\n+        if (usersNumber > 0 && postsNumber > 0) {\n+            this.commentsNumber = statistics.commentsCount();","path":"kodilla-testing/src/main/java/com/kodilla/testing/forum/statistics/ForumStatisctics.java","position":19,"original_position":19,"commit_id":"ad7da8883c92503042398df40c0025fdc3acf15a","original_commit_id":"ad7da8883c92503042398df40c0025fdc3acf15a","user":{"login":"mps4dev","id":39836779,"node_id":"MDQ6VXNlcjM5ODM2Nzc5","avatar_url":"https://avatars0.githubusercontent.com/u/39836779?v=4","gravatar_id":"","url":"https://api.github.com/users/mps4dev","html_url":"https://github.com/mps4dev","followers_url":"https://api.github.com/users/mps4dev/followers","following_url":"https://api.github.com/users/mps4dev/following{/other_user}","gists_url":"https://api.github.com/users/mps4dev/gists{/gist_id}","starred_url":"https://api.github.com/users/mps4dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mps4dev/subscriptions","organizations_url":"https://api.github.com/users/mps4dev/orgs","repos_url":"https://api.github.com/users/mps4dev/repos","events_url":"https://api.github.com/users/mps4dev/events{/privacy}","received_events_url":"https://api.github.com/users/mps4dev/received_events","type":"User","site_admin":false},"body":"j.w.","created_at":"2018-07-28T16:41:55Z","updated_at":"2018-07-28T16:44:41Z","html_url":"https://github.com/JMagn/JMagn-kodilla-java/pull/5#discussion_r205947716","pull_request_url":"https://api.github.com/repos/JMagn/JMagn-kodilla-java/pulls/5","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/JMagn/JMagn-kodilla-java/pulls/comments/205947716"},"html":{"href":"https://github.com/JMagn/JMagn-kodilla-java/pull/5#discussion_r205947716"},"pull_request":{"href":"https://api.github.com/repos/JMagn/JMagn-kodilla-java/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/JMagn/JMagn-kodilla-java/pulls/5","id":204592316,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA0NTkyMzE2","html_url":"https://github.com/JMagn/JMagn-kodilla-java/pull/5","diff_url":"https://github.com/JMagn/JMagn-kodilla-java/pull/5.diff","patch_url":"https://github.com/JMagn/JMagn-kodilla-java/pull/5.patch","issue_url":"https://api.github.com/repos/JMagn/JMagn-kodilla-java/issues/5","number":5,"state":"open","locked":false,"title":"Task 5 from module 6","user":{"login":"JMagn","id":40744844,"node_id":"MDQ6VXNlcjQwNzQ0ODQ0","avatar_url":"https://avatars1.githubusercontent.com/u/40744844?v=4","gravatar_id":"","url":"https://api.github.com/users/JMagn","html_url":"https://github.com/JMagn","followers_url":"https://api.github.com/users/JMagn/followers","following_url":"https://api.github.com/users/JMagn/following{/other_user}","gists_url":"https://api.github.com/users/JMagn/gists{/gist_id}","starred_url":"https://api.github.com/users/JMagn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JMagn/subscriptions","organizations_url":"https://api.github.com/users/JMagn/orgs","repos_url":"https://api.github.com/users/JMagn/repos","events_url":"https://api.github.com/users/JMagn/events{/privacy}","received_events_url":"https://api.github.com/users/JMagn/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-07-28T13:03:44Z","updated_at":"2018-07-28T16:44:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"59154ec8e5b9f537514c7193b01874de4d8b7269","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/JMagn/JMagn-kodilla-java/pulls/5/commits","review_comments_url":"https://api.github.com/repos/JMagn/JMagn-kodilla-java/pulls/5/comments","review_comment_url":"https://api.github.com/repos/JMagn/JMagn-kodilla-java/pulls/comments{/number}","comments_url":"https://api.github.com/repos/JMagn/JMagn-kodilla-java/issues/5/comments","statuses_url":"https://api.github.com/repos/JMagn/JMagn-kodilla-java/statuses/ad7da8883c92503042398df40c0025fdc3acf15a","head":{"label":"JMagn:task65","ref":"task65","sha":"ad7da8883c92503042398df40c0025fdc3acf15a","user":{"login":"JMagn","id":40744844,"node_id":"MDQ6VXNlcjQwNzQ0ODQ0","avatar_url":"https://avatars1.githubusercontent.com/u/40744844?v=4","gravatar_id":"","url":"https://api.github.com/users/JMagn","html_url":"https://github.com/JMagn","followers_url":"https://api.github.com/users/JMagn/followers","following_url":"https://api.github.com/users/JMagn/following{/other_user}","gists_url":"https://api.github.com/users/JMagn/gists{/gist_id}","starred_url":"https://api.github.com/users/JMagn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JMagn/subscriptions","organizations_url":"https://api.github.com/users/JMagn/orgs","repos_url":"https://api.github.com/users/JMagn/repos","events_url":"https://api.github.com/users/JMagn/events{/privacy}","received_events_url":"https://api.github.com/users/JMagn/received_events","type":"User","site_admin":false},"repo":{"id":141127805,"node_id":"MDEwOlJlcG9zaXRvcnkxNDExMjc4MDU=","name":"JMagn-kodilla-java","full_name":"JMagn/JMagn-kodilla-java","owner":{"login":"JMagn","id":40744844,"node_id":"MDQ6VXNlcjQwNzQ0ODQ0","avatar_url":"https://avatars1.githubusercontent.com/u/40744844?v=4","gravatar_id":"","url":"https://api.github.com/users/JMagn","html_url":"https://github.com/JMagn","followers_url":"https://api.github.com/users/JMagn/followers","following_url":"https://api.github.com/users/JMagn/following{/other_user}","gists_url":"https://api.github.com/users/JMagn/gists{/gist_id}","starred_url":"https://api.github.com/users/JMagn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JMagn/subscriptions","organizations_url":"https://api.github.com/users/JMagn/orgs","repos_url":"https://api.github.com/users/JMagn/repos","events_url":"https://api.github.com/users/JMagn/events{/privacy}","received_events_url":"https://api.github.com/users/JMagn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/JMagn/JMagn-kodilla-java","description":"Kurs Kodilla","fork":false,"url":"https://api.github.com/repos/JMagn/JMagn-kodilla-java","forks_url":"https://api.github.com/repos/JMagn/JMagn-kodilla-java/forks","keys_url":"https://api.github.com/repos/JMagn/JMagn-kodilla-java/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JMagn/JMagn-kodilla-java/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JMagn/JMagn-kodilla-java/teams","hooks_url":"https://api.github.com/repos/JMagn/JMagn-kodilla-java/hooks","issue_events_url":"https://api.github.com/repos/JMagn/JMagn-kodilla-java/issues/events{/number}","events_url":"https://api.github.com/repos/JMagn/JMagn-kodilla-java/events","assignees_url":"https://api.github.com/repos/JMagn/JMagn-kodilla-java/assignees{/user}","branches_url":"https://api.github.com/repos/JMagn/JMagn-kodilla-java/branches{/branch}","tags_url":"https://api.github.com/repos/JMagn/JMagn-kodilla-java/tags","blobs_url":"https://api.github.com/repos/JMagn/JMagn-kodilla-java/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JMagn/JMagn-kodilla-java/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JMagn/JMagn-kodilla-java/git/refs{/sha}","trees_url":"https://api.github.com/repos/JMagn/JMagn-kodilla-java/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JMagn/JMagn-kodilla-java/statuses/{sha}","languages_url":"https://api.github.com/repos/JMagn/JMagn-kodilla-java/languages","stargazers_url":"https://api.github.com/repos/JMagn/JMagn-kodilla-java/stargazers","contributors_url":"https://api.github.com/repos/JMagn/JMagn-kodilla-java/contributors","subscribers_url":"https://api.github.com/repos/JMagn/JMagn-kodilla-java/subscribers","subscription_url":"https://api.github.com/repos/JMagn/JMagn-kodilla-java/subscription","commits_url":"https://api.github.com/repos/JMagn/JMagn-kodilla-java/commits{/sha}","git_commits_url":"https://api.github.com/repos/JMagn/JMagn-kodilla-java/git/commits{/sha}","comments_url":"https://api.github.com/repos/JMagn/JMagn-kodilla-java/comments{/number}","issue_comment_url":"https://api.github.com/repos/JMagn/JMagn-kodilla-java/issues/comments{/number}","contents_url":"https://api.github.com/repos/JMagn/JMagn-kodilla-java/contents/{+path}","compare_url":"https://api.github.com/repos/JMagn/JMagn-kodilla-java/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JMagn/JMagn-kodilla-java/merges","archive_url":"https://api.github.com/repos/JMagn/JMagn-kodilla-java/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JMagn/JMagn-kodilla-java/downloads","issues_url":"https://api.github.com/repos/JMagn/JMagn-kodilla-java/issues{/number}","pulls_url":"https://api.github.com/repos/JMagn/JMagn-kodilla-java/pulls{/number}","milestones_url":"https://api.github.com/repos/JMagn/JMagn-kodilla-java/milestones{/number}","notifications_url":"https://api.github.com/repos/JMagn/JMagn-kodilla-java/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JMagn/JMagn-kodilla-java/labels{/name}","releases_url":"https://api.github.com/repos/JMagn/JMagn-kodilla-java/releases{/id}","deployments_url":"https://api.github.com/repos/JMagn/JMagn-kodilla-java/deployments","created_at":"2018-07-16T11:10:07Z","updated_at":"2018-07-27T15:14:22Z","pushed_at":"2018-07-28T13:03:45Z","git_url":"git://github.com/JMagn/JMagn-kodilla-java.git","ssh_url":"git@github.com:JMagn/JMagn-kodilla-java.git","clone_url":"https://github.com/JMagn/JMagn-kodilla-java.git","svn_url":"https://github.com/JMagn/JMagn-kodilla-java","homepage":null,"size":65,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"JMagn:master","ref":"master","sha":"2c62c0ea9e84bb14dc17f5c82f0a4ad4780148c4","user":{"login":"JMagn","id":40744844,"node_id":"MDQ6VXNlcjQwNzQ0ODQ0","avatar_url":"https://avatars1.githubusercontent.com/u/40744844?v=4","gravatar_id":"","url":"https://api.github.com/users/JMagn","html_url":"https://github.com/JMagn","followers_url":"https://api.github.com/users/JMagn/followers","following_url":"https://api.github.com/users/JMagn/following{/other_user}","gists_url":"https://api.github.com/users/JMagn/gists{/gist_id}","starred_url":"https://api.github.com/users/JMagn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JMagn/subscriptions","organizations_url":"https://api.github.com/users/JMagn/orgs","repos_url":"https://api.github.com/users/JMagn/repos","events_url":"https://api.github.com/users/JMagn/events{/privacy}","received_events_url":"https://api.github.com/users/JMagn/received_events","type":"User","site_admin":false},"repo":{"id":141127805,"node_id":"MDEwOlJlcG9zaXRvcnkxNDExMjc4MDU=","name":"JMagn-kodilla-java","full_name":"JMagn/JMagn-kodilla-java","owner":{"login":"JMagn","id":40744844,"node_id":"MDQ6VXNlcjQwNzQ0ODQ0","avatar_url":"https://avatars1.githubusercontent.com/u/40744844?v=4","gravatar_id":"","url":"https://api.github.com/users/JMagn","html_url":"https://github.com/JMagn","followers_url":"https://api.github.com/users/JMagn/followers","following_url":"https://api.github.com/users/JMagn/following{/other_user}","gists_url":"https://api.github.com/users/JMagn/gists{/gist_id}","starred_url":"https://api.github.com/users/JMagn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JMagn/subscriptions","organizations_url":"https://api.github.com/users/JMagn/orgs","repos_url":"https://api.github.com/users/JMagn/repos","events_url":"https://api.github.com/users/JMagn/events{/privacy}","received_events_url":"https://api.github.com/users/JMagn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/JMagn/JMagn-kodilla-java","description":"Kurs Kodilla","fork":false,"url":"https://api.github.com/repos/JMagn/JMagn-kodilla-java","forks_url":"https://api.github.com/repos/JMagn/JMagn-kodilla-java/forks","keys_url":"https://api.github.com/repos/JMagn/JMagn-kodilla-java/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JMagn/JMagn-kodilla-java/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JMagn/JMagn-kodilla-java/teams","hooks_url":"https://api.github.com/repos/JMagn/JMagn-kodilla-java/hooks","issue_events_url":"https://api.github.com/repos/JMagn/JMagn-kodilla-java/issues/events{/number}","events_url":"https://api.github.com/repos/JMagn/JMagn-kodilla-java/events","assignees_url":"https://api.github.com/repos/JMagn/JMagn-kodilla-java/assignees{/user}","branches_url":"https://api.github.com/repos/JMagn/JMagn-kodilla-java/branches{/branch}","tags_url":"https://api.github.com/repos/JMagn/JMagn-kodilla-java/tags","blobs_url":"https://api.github.com/repos/JMagn/JMagn-kodilla-java/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JMagn/JMagn-kodilla-java/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JMagn/JMagn-kodilla-java/git/refs{/sha}","trees_url":"https://api.github.com/repos/JMagn/JMagn-kodilla-java/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JMagn/JMagn-kodilla-java/statuses/{sha}","languages_url":"https://api.github.com/repos/JMagn/JMagn-kodilla-java/languages","stargazers_url":"https://api.github.com/repos/JMagn/JMagn-kodilla-java/stargazers","contributors_url":"https://api.github.com/repos/JMagn/JMagn-kodilla-java/contributors","subscribers_url":"https://api.github.com/repos/JMagn/JMagn-kodilla-java/subscribers","subscription_url":"https://api.github.com/repos/JMagn/JMagn-kodilla-java/subscription","commits_url":"https://api.github.com/repos/JMagn/JMagn-kodilla-java/commits{/sha}","git_commits_url":"https://api.github.com/repos/JMagn/JMagn-kodilla-java/git/commits{/sha}","comments_url":"https://api.github.com/repos/JMagn/JMagn-kodilla-java/comments{/number}","issue_comment_url":"https://api.github.com/repos/JMagn/JMagn-kodilla-java/issues/comments{/number}","contents_url":"https://api.github.com/repos/JMagn/JMagn-kodilla-java/contents/{+path}","compare_url":"https://api.github.com/repos/JMagn/JMagn-kodilla-java/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JMagn/JMagn-kodilla-java/merges","archive_url":"https://api.github.com/repos/JMagn/JMagn-kodilla-java/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JMagn/JMagn-kodilla-java/downloads","issues_url":"https://api.github.com/repos/JMagn/JMagn-kodilla-java/issues{/number}","pulls_url":"https://api.github.com/repos/JMagn/JMagn-kodilla-java/pulls{/number}","milestones_url":"https://api.github.com/repos/JMagn/JMagn-kodilla-java/milestones{/number}","notifications_url":"https://api.github.com/repos/JMagn/JMagn-kodilla-java/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JMagn/JMagn-kodilla-java/labels{/name}","releases_url":"https://api.github.com/repos/JMagn/JMagn-kodilla-java/releases{/id}","deployments_url":"https://api.github.com/repos/JMagn/JMagn-kodilla-java/deployments","created_at":"2018-07-16T11:10:07Z","updated_at":"2018-07-27T15:14:22Z","pushed_at":"2018-07-28T13:03:45Z","git_url":"git://github.com/JMagn/JMagn-kodilla-java.git","ssh_url":"git@github.com:JMagn/JMagn-kodilla-java.git","clone_url":"https://github.com/JMagn/JMagn-kodilla-java.git","svn_url":"https://github.com/JMagn/JMagn-kodilla-java","homepage":null,"size":65,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/JMagn/JMagn-kodilla-java/pulls/5"},"html":{"href":"https://github.com/JMagn/JMagn-kodilla-java/pull/5"},"issue":{"href":"https://api.github.com/repos/JMagn/JMagn-kodilla-java/issues/5"},"comments":{"href":"https://api.github.com/repos/JMagn/JMagn-kodilla-java/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/JMagn/JMagn-kodilla-java/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/JMagn/JMagn-kodilla-java/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/JMagn/JMagn-kodilla-java/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/JMagn/JMagn-kodilla-java/statuses/ad7da8883c92503042398df40c0025fdc3acf15a"}},"author_association":"OWNER"}}
{"actor":{"display_login":"mps4dev"}}