{"action":"created","comment":{"url":"https://api.github.com/repos/java8-course/streams/pulls/comments/81098514","pull_request_review_id":2102631,"id":81098514,"diff_hunk":"@@ -49,11 +84,12 @@ public void sumEpamDurations() {\n             }\r\n         }\r\n \r\n-        // TODO\r\n-        throw new UnsupportedOperationException();\r\n-\r\n-        // int result = ???\r\n-        // assertEquals(expected, result);\r\n+        int result = employees.stream()\r\n+                .flatMap(employee -> employee.getJobHistory().stream())\r\n+                .filter(jhe -> jhe.getEmployer().equals(\"epam\"))\r\n+                .mapToInt(JobHistoryEntry::getDuration)\r\n+                .reduce(0, (left, right) -> left + right);\r","path":"src/test/java/part1/exercise/StreamsExercise1.java","position":95,"original_position":95,"commit_id":"faae11182670b35a6c0d014d8366aa1711118616","original_commit_id":"faae11182670b35a6c0d014d8366aa1711118616","user":{"login":"Aldaer","id":18621832,"avatar_url":"https://avatars.githubusercontent.com/u/18621832?v=3","gravatar_id":"","url":"https://api.github.com/users/Aldaer","html_url":"https://github.com/Aldaer","followers_url":"https://api.github.com/users/Aldaer/followers","following_url":"https://api.github.com/users/Aldaer/following{/other_user}","gists_url":"https://api.github.com/users/Aldaer/gists{/gist_id}","starred_url":"https://api.github.com/users/Aldaer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aldaer/subscriptions","organizations_url":"https://api.github.com/users/Aldaer/orgs","repos_url":"https://api.github.com/users/Aldaer/repos","events_url":"https://api.github.com/users/Aldaer/events{/privacy}","received_events_url":"https://api.github.com/users/Aldaer/received_events","type":"User","site_admin":false},"body":"OK","created_at":"2016-09-29T09:34:51Z","updated_at":"2016-09-29T09:35:54Z","html_url":"https://github.com/java8-course/streams/pull/4#discussion_r81098514","pull_request_url":"https://api.github.com/repos/java8-course/streams/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/java8-course/streams/pulls/comments/81098514"},"html":{"href":"https://github.com/java8-course/streams/pull/4#discussion_r81098514"},"pull_request":{"href":"https://api.github.com/repos/java8-course/streams/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/java8-course/streams/pulls/4","id":87270697,"html_url":"https://github.com/java8-course/streams/pull/4","diff_url":"https://github.com/java8-course/streams/pull/4.diff","patch_url":"https://github.com/java8-course/streams/pull/4.patch","issue_url":"https://api.github.com/repos/java8-course/streams/issues/4","number":4,"state":"open","locked":false,"title":"Stream Exercises","user":{"login":"Aldaer","id":18621832,"avatar_url":"https://avatars.githubusercontent.com/u/18621832?v=3","gravatar_id":"","url":"https://api.github.com/users/Aldaer","html_url":"https://github.com/Aldaer","followers_url":"https://api.github.com/users/Aldaer/followers","following_url":"https://api.github.com/users/Aldaer/following{/other_user}","gists_url":"https://api.github.com/users/Aldaer/gists{/gist_id}","starred_url":"https://api.github.com/users/Aldaer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aldaer/subscriptions","organizations_url":"https://api.github.com/users/Aldaer/orgs","repos_url":"https://api.github.com/users/Aldaer/repos","events_url":"https://api.github.com/users/Aldaer/events{/privacy}","received_events_url":"https://api.github.com/users/Aldaer/received_events","type":"User","site_admin":false},"body":"Exercises 1 and 2 completed.\r\nArtem Lodygin <artem_lodygin@epam.com>","created_at":"2016-09-29T08:53:02Z","updated_at":"2016-09-29T09:35:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/java8-course/streams/pulls/4/commits","review_comments_url":"https://api.github.com/repos/java8-course/streams/pulls/4/comments","review_comment_url":"https://api.github.com/repos/java8-course/streams/pulls/comments{/number}","comments_url":"https://api.github.com/repos/java8-course/streams/issues/4/comments","statuses_url":"https://api.github.com/repos/java8-course/streams/statuses/faae11182670b35a6c0d014d8366aa1711118616","head":{"label":"Aldaer:master","ref":"master","sha":"faae11182670b35a6c0d014d8366aa1711118616","user":{"login":"Aldaer","id":18621832,"avatar_url":"https://avatars.githubusercontent.com/u/18621832?v=3","gravatar_id":"","url":"https://api.github.com/users/Aldaer","html_url":"https://github.com/Aldaer","followers_url":"https://api.github.com/users/Aldaer/followers","following_url":"https://api.github.com/users/Aldaer/following{/other_user}","gists_url":"https://api.github.com/users/Aldaer/gists{/gist_id}","starred_url":"https://api.github.com/users/Aldaer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aldaer/subscriptions","organizations_url":"https://api.github.com/users/Aldaer/orgs","repos_url":"https://api.github.com/users/Aldaer/repos","events_url":"https://api.github.com/users/Aldaer/events{/privacy}","received_events_url":"https://api.github.com/users/Aldaer/received_events","type":"User","site_admin":false},"repo":{"id":69357426,"name":"streams","full_name":"Aldaer/streams","owner":{"login":"Aldaer","id":18621832,"avatar_url":"https://avatars.githubusercontent.com/u/18621832?v=3","gravatar_id":"","url":"https://api.github.com/users/Aldaer","html_url":"https://github.com/Aldaer","followers_url":"https://api.github.com/users/Aldaer/followers","following_url":"https://api.github.com/users/Aldaer/following{/other_user}","gists_url":"https://api.github.com/users/Aldaer/gists{/gist_id}","starred_url":"https://api.github.com/users/Aldaer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aldaer/subscriptions","organizations_url":"https://api.github.com/users/Aldaer/orgs","repos_url":"https://api.github.com/users/Aldaer/repos","events_url":"https://api.github.com/users/Aldaer/events{/privacy}","received_events_url":"https://api.github.com/users/Aldaer/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Aldaer/streams","description":null,"fork":true,"url":"https://api.github.com/repos/Aldaer/streams","forks_url":"https://api.github.com/repos/Aldaer/streams/forks","keys_url":"https://api.github.com/repos/Aldaer/streams/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Aldaer/streams/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Aldaer/streams/teams","hooks_url":"https://api.github.com/repos/Aldaer/streams/hooks","issue_events_url":"https://api.github.com/repos/Aldaer/streams/issues/events{/number}","events_url":"https://api.github.com/repos/Aldaer/streams/events","assignees_url":"https://api.github.com/repos/Aldaer/streams/assignees{/user}","branches_url":"https://api.github.com/repos/Aldaer/streams/branches{/branch}","tags_url":"https://api.github.com/repos/Aldaer/streams/tags","blobs_url":"https://api.github.com/repos/Aldaer/streams/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Aldaer/streams/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Aldaer/streams/git/refs{/sha}","trees_url":"https://api.github.com/repos/Aldaer/streams/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Aldaer/streams/statuses/{sha}","languages_url":"https://api.github.com/repos/Aldaer/streams/languages","stargazers_url":"https://api.github.com/repos/Aldaer/streams/stargazers","contributors_url":"https://api.github.com/repos/Aldaer/streams/contributors","subscribers_url":"https://api.github.com/repos/Aldaer/streams/subscribers","subscription_url":"https://api.github.com/repos/Aldaer/streams/subscription","commits_url":"https://api.github.com/repos/Aldaer/streams/commits{/sha}","git_commits_url":"https://api.github.com/repos/Aldaer/streams/git/commits{/sha}","comments_url":"https://api.github.com/repos/Aldaer/streams/comments{/number}","issue_comment_url":"https://api.github.com/repos/Aldaer/streams/issues/comments{/number}","contents_url":"https://api.github.com/repos/Aldaer/streams/contents/{+path}","compare_url":"https://api.github.com/repos/Aldaer/streams/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Aldaer/streams/merges","archive_url":"https://api.github.com/repos/Aldaer/streams/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Aldaer/streams/downloads","issues_url":"https://api.github.com/repos/Aldaer/streams/issues{/number}","pulls_url":"https://api.github.com/repos/Aldaer/streams/pulls{/number}","milestones_url":"https://api.github.com/repos/Aldaer/streams/milestones{/number}","notifications_url":"https://api.github.com/repos/Aldaer/streams/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Aldaer/streams/labels{/name}","releases_url":"https://api.github.com/repos/Aldaer/streams/releases{/id}","deployments_url":"https://api.github.com/repos/Aldaer/streams/deployments","created_at":"2016-09-27T13:05:56Z","updated_at":"2016-09-27T13:05:57Z","pushed_at":"2016-09-29T08:50:15Z","git_url":"git://github.com/Aldaer/streams.git","ssh_url":"git@github.com:Aldaer/streams.git","clone_url":"https://github.com/Aldaer/streams.git","svn_url":"https://github.com/Aldaer/streams","homepage":null,"size":21,"stargazers_count":0,"watchers_count":0,"language":"Java","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":"java8-course:master","ref":"master","sha":"a8081284a8cf090455c124cbef40e2f75c389944","user":{"login":"java8-course","id":22320891,"avatar_url":"https://avatars.githubusercontent.com/u/22320891?v=3","gravatar_id":"","url":"https://api.github.com/users/java8-course","html_url":"https://github.com/java8-course","followers_url":"https://api.github.com/users/java8-course/followers","following_url":"https://api.github.com/users/java8-course/following{/other_user}","gists_url":"https://api.github.com/users/java8-course/gists{/gist_id}","starred_url":"https://api.github.com/users/java8-course/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/java8-course/subscriptions","organizations_url":"https://api.github.com/users/java8-course/orgs","repos_url":"https://api.github.com/users/java8-course/repos","events_url":"https://api.github.com/users/java8-course/events{/privacy}","received_events_url":"https://api.github.com/users/java8-course/received_events","type":"Organization","site_admin":false},"repo":{"id":69353661,"name":"streams","full_name":"java8-course/streams","owner":{"login":"java8-course","id":22320891,"avatar_url":"https://avatars.githubusercontent.com/u/22320891?v=3","gravatar_id":"","url":"https://api.github.com/users/java8-course","html_url":"https://github.com/java8-course","followers_url":"https://api.github.com/users/java8-course/followers","following_url":"https://api.github.com/users/java8-course/following{/other_user}","gists_url":"https://api.github.com/users/java8-course/gists{/gist_id}","starred_url":"https://api.github.com/users/java8-course/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/java8-course/subscriptions","organizations_url":"https://api.github.com/users/java8-course/orgs","repos_url":"https://api.github.com/users/java8-course/repos","events_url":"https://api.github.com/users/java8-course/events{/privacy}","received_events_url":"https://api.github.com/users/java8-course/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/java8-course/streams","description":null,"fork":false,"url":"https://api.github.com/repos/java8-course/streams","forks_url":"https://api.github.com/repos/java8-course/streams/forks","keys_url":"https://api.github.com/repos/java8-course/streams/keys{/key_id}","collaborators_url":"https://api.github.com/repos/java8-course/streams/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/java8-course/streams/teams","hooks_url":"https://api.github.com/repos/java8-course/streams/hooks","issue_events_url":"https://api.github.com/repos/java8-course/streams/issues/events{/number}","events_url":"https://api.github.com/repos/java8-course/streams/events","assignees_url":"https://api.github.com/repos/java8-course/streams/assignees{/user}","branches_url":"https://api.github.com/repos/java8-course/streams/branches{/branch}","tags_url":"https://api.github.com/repos/java8-course/streams/tags","blobs_url":"https://api.github.com/repos/java8-course/streams/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/java8-course/streams/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/java8-course/streams/git/refs{/sha}","trees_url":"https://api.github.com/repos/java8-course/streams/git/trees{/sha}","statuses_url":"https://api.github.com/repos/java8-course/streams/statuses/{sha}","languages_url":"https://api.github.com/repos/java8-course/streams/languages","stargazers_url":"https://api.github.com/repos/java8-course/streams/stargazers","contributors_url":"https://api.github.com/repos/java8-course/streams/contributors","subscribers_url":"https://api.github.com/repos/java8-course/streams/subscribers","subscription_url":"https://api.github.com/repos/java8-course/streams/subscription","commits_url":"https://api.github.com/repos/java8-course/streams/commits{/sha}","git_commits_url":"https://api.github.com/repos/java8-course/streams/git/commits{/sha}","comments_url":"https://api.github.com/repos/java8-course/streams/comments{/number}","issue_comment_url":"https://api.github.com/repos/java8-course/streams/issues/comments{/number}","contents_url":"https://api.github.com/repos/java8-course/streams/contents/{+path}","compare_url":"https://api.github.com/repos/java8-course/streams/compare/{base}...{head}","merges_url":"https://api.github.com/repos/java8-course/streams/merges","archive_url":"https://api.github.com/repos/java8-course/streams/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/java8-course/streams/downloads","issues_url":"https://api.github.com/repos/java8-course/streams/issues{/number}","pulls_url":"https://api.github.com/repos/java8-course/streams/pulls{/number}","milestones_url":"https://api.github.com/repos/java8-course/streams/milestones{/number}","notifications_url":"https://api.github.com/repos/java8-course/streams/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/java8-course/streams/labels{/name}","releases_url":"https://api.github.com/repos/java8-course/streams/releases{/id}","deployments_url":"https://api.github.com/repos/java8-course/streams/deployments","created_at":"2016-09-27T12:20:43Z","updated_at":"2016-09-27T12:24:54Z","pushed_at":"2016-09-29T08:53:02Z","git_url":"git://github.com/java8-course/streams.git","ssh_url":"git@github.com:java8-course/streams.git","clone_url":"https://github.com/java8-course/streams.git","svn_url":"https://github.com/java8-course/streams","homepage":null,"size":22,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":4,"forks":5,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/java8-course/streams/pulls/4"},"html":{"href":"https://github.com/java8-course/streams/pull/4"},"issue":{"href":"https://api.github.com/repos/java8-course/streams/issues/4"},"comments":{"href":"https://api.github.com/repos/java8-course/streams/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/java8-course/streams/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/java8-course/streams/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/java8-course/streams/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/java8-course/streams/statuses/faae11182670b35a6c0d014d8366aa1711118616"}}}}
{"actor":{"display_login":"Aldaer"}}