{"action":"created","comment":{"url":"https://api.github.com/repos/java-course-au/assignments-2016-1/pulls/comments/59132992","id":59132992,"diff_hunk":"@@ -0,0 +1,89 @@\n+package ru.spbau.mit;\n+\n+import static org.junit.Assert.*;\n+import org.junit.Test;\n+\n+import java.util.ArrayList;\n+import java.util.Arrays;\n+/**\n+ * Created by vbv on 22.03.16.\n+ */\n+public class CollectionsTest {\n+\n+    @Test\n+    public void test1() {\n+        Function1<Integer, Integer> plus1 = new Function1<Integer, Integer>() {\n+            @Override\n+            public Integer apply(Integer x) {\n+                return x + 1;\n+            }\n+        };\n+\n+        Predicate<Integer> isEven = new Predicate<Integer>() {\n+            @Override\n+            public Boolean apply(Integer x) {\n+                return x % 2 == 0;\n+            }\n+        };\n+\n+        final ArrayList<Integer> toTest = new ArrayList<Integer>(Arrays.asList(1, 2));\n+\n+        Iterable<Integer> toMap = Collections.map(plus1, toTest);\n+        final int listSecond = 3;\n+        assertEquals(toMap, Arrays.asList(2, listSecond));\n+\n+        Iterable<Integer> toFilter = Collections.filter(isEven, toTest);\n+        assertEquals(toFilter, Arrays.asList(2));","path":"src/test/java/ru/spbau/mit/CollectionsTest.java","position":36,"original_position":36,"commit_id":"51364c1ce193e63de22ac140996ce7400a0c079d","original_commit_id":"51364c1ce193e63de22ac140996ce7400a0c079d","user":{"login":"sproshev","id":4990763,"avatar_url":"https://avatars.githubusercontent.com/u/4990763?v=3","gravatar_id":"","url":"https://api.github.com/users/sproshev","html_url":"https://github.com/sproshev","followers_url":"https://api.github.com/users/sproshev/followers","following_url":"https://api.github.com/users/sproshev/following{/other_user}","gists_url":"https://api.github.com/users/sproshev/gists{/gist_id}","starred_url":"https://api.github.com/users/sproshev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sproshev/subscriptions","organizations_url":"https://api.github.com/users/sproshev/orgs","repos_url":"https://api.github.com/users/sproshev/repos","events_url":"https://api.github.com/users/sproshev/events{/privacy}","received_events_url":"https://api.github.com/users/sproshev/received_events","type":"User","site_admin":false},"body":"Collections.singletonList(...)","created_at":"2016-04-10T12:34:11Z","updated_at":"2016-04-10T12:34:11Z","html_url":"https://github.com/java-course-au/assignments-2016-1/pull/112#discussion_r59132992","pull_request_url":"https://api.github.com/repos/java-course-au/assignments-2016-1/pulls/112","_links":{"self":{"href":"https://api.github.com/repos/java-course-au/assignments-2016-1/pulls/comments/59132992"},"html":{"href":"https://github.com/java-course-au/assignments-2016-1/pull/112#discussion_r59132992"},"pull_request":{"href":"https://api.github.com/repos/java-course-au/assignments-2016-1/pulls/112"}}},"pull_request":{"url":"https://api.github.com/repos/java-course-au/assignments-2016-1/pulls/112","id":63647079,"html_url":"https://github.com/java-course-au/assignments-2016-1/pull/112","diff_url":"https://github.com/java-course-au/assignments-2016-1/pull/112.diff","patch_url":"https://github.com/java-course-au/assignments-2016-1/pull/112.patch","issue_url":"https://api.github.com/repos/java-course-au/assignments-2016-1/issues/112","number":112,"state":"open","locked":false,"title":"Java05. ДЗ 03, Слабодкин Андрей, подгруппа 2","user":{"login":"slabodkin","id":17272080,"avatar_url":"https://avatars.githubusercontent.com/u/17272080?v=3","gravatar_id":"","url":"https://api.github.com/users/slabodkin","html_url":"https://github.com/slabodkin","followers_url":"https://api.github.com/users/slabodkin/followers","following_url":"https://api.github.com/users/slabodkin/following{/other_user}","gists_url":"https://api.github.com/users/slabodkin/gists{/gist_id}","starred_url":"https://api.github.com/users/slabodkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slabodkin/subscriptions","organizations_url":"https://api.github.com/users/slabodkin/orgs","repos_url":"https://api.github.com/users/slabodkin/repos","events_url":"https://api.github.com/users/slabodkin/events{/privacy}","received_events_url":"https://api.github.com/users/slabodkin/received_events","type":"User","site_admin":false},"body":"@sproshev \r\nПроверялка на покрытие тестами какая-то очень странная. ","created_at":"2016-03-21T23:08:33Z","updated_at":"2016-04-10T12:34:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"934155fad88bb973f13ef75768f4287cedb519f2","assignee":{"login":"sproshev","id":4990763,"avatar_url":"https://avatars.githubusercontent.com/u/4990763?v=3","gravatar_id":"","url":"https://api.github.com/users/sproshev","html_url":"https://github.com/sproshev","followers_url":"https://api.github.com/users/sproshev/followers","following_url":"https://api.github.com/users/sproshev/following{/other_user}","gists_url":"https://api.github.com/users/sproshev/gists{/gist_id}","starred_url":"https://api.github.com/users/sproshev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sproshev/subscriptions","organizations_url":"https://api.github.com/users/sproshev/orgs","repos_url":"https://api.github.com/users/sproshev/repos","events_url":"https://api.github.com/users/sproshev/events{/privacy}","received_events_url":"https://api.github.com/users/sproshev/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/java-course-au/assignments-2016-1/pulls/112/commits","review_comments_url":"https://api.github.com/repos/java-course-au/assignments-2016-1/pulls/112/comments","review_comment_url":"https://api.github.com/repos/java-course-au/assignments-2016-1/pulls/comments{/number}","comments_url":"https://api.github.com/repos/java-course-au/assignments-2016-1/issues/112/comments","statuses_url":"https://api.github.com/repos/java-course-au/assignments-2016-1/statuses/51364c1ce193e63de22ac140996ce7400a0c079d","head":{"label":"slabodkin:03-functional-java","ref":"03-functional-java","sha":"51364c1ce193e63de22ac140996ce7400a0c079d","user":{"login":"slabodkin","id":17272080,"avatar_url":"https://avatars.githubusercontent.com/u/17272080?v=3","gravatar_id":"","url":"https://api.github.com/users/slabodkin","html_url":"https://github.com/slabodkin","followers_url":"https://api.github.com/users/slabodkin/followers","following_url":"https://api.github.com/users/slabodkin/following{/other_user}","gists_url":"https://api.github.com/users/slabodkin/gists{/gist_id}","starred_url":"https://api.github.com/users/slabodkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slabodkin/subscriptions","organizations_url":"https://api.github.com/users/slabodkin/orgs","repos_url":"https://api.github.com/users/slabodkin/repos","events_url":"https://api.github.com/users/slabodkin/events{/privacy}","received_events_url":"https://api.github.com/users/slabodkin/received_events","type":"User","site_admin":false},"repo":{"id":52745973,"name":"assignments-2016-1","full_name":"slabodkin/assignments-2016-1","owner":{"login":"slabodkin","id":17272080,"avatar_url":"https://avatars.githubusercontent.com/u/17272080?v=3","gravatar_id":"","url":"https://api.github.com/users/slabodkin","html_url":"https://github.com/slabodkin","followers_url":"https://api.github.com/users/slabodkin/followers","following_url":"https://api.github.com/users/slabodkin/following{/other_user}","gists_url":"https://api.github.com/users/slabodkin/gists{/gist_id}","starred_url":"https://api.github.com/users/slabodkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slabodkin/subscriptions","organizations_url":"https://api.github.com/users/slabodkin/orgs","repos_url":"https://api.github.com/users/slabodkin/repos","events_url":"https://api.github.com/users/slabodkin/events{/privacy}","received_events_url":"https://api.github.com/users/slabodkin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/slabodkin/assignments-2016-1","description":"Домашнее задания по Java","fork":true,"url":"https://api.github.com/repos/slabodkin/assignments-2016-1","forks_url":"https://api.github.com/repos/slabodkin/assignments-2016-1/forks","keys_url":"https://api.github.com/repos/slabodkin/assignments-2016-1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/slabodkin/assignments-2016-1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/slabodkin/assignments-2016-1/teams","hooks_url":"https://api.github.com/repos/slabodkin/assignments-2016-1/hooks","issue_events_url":"https://api.github.com/repos/slabodkin/assignments-2016-1/issues/events{/number}","events_url":"https://api.github.com/repos/slabodkin/assignments-2016-1/events","assignees_url":"https://api.github.com/repos/slabodkin/assignments-2016-1/assignees{/user}","branches_url":"https://api.github.com/repos/slabodkin/assignments-2016-1/branches{/branch}","tags_url":"https://api.github.com/repos/slabodkin/assignments-2016-1/tags","blobs_url":"https://api.github.com/repos/slabodkin/assignments-2016-1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/slabodkin/assignments-2016-1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/slabodkin/assignments-2016-1/git/refs{/sha}","trees_url":"https://api.github.com/repos/slabodkin/assignments-2016-1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/slabodkin/assignments-2016-1/statuses/{sha}","languages_url":"https://api.github.com/repos/slabodkin/assignments-2016-1/languages","stargazers_url":"https://api.github.com/repos/slabodkin/assignments-2016-1/stargazers","contributors_url":"https://api.github.com/repos/slabodkin/assignments-2016-1/contributors","subscribers_url":"https://api.github.com/repos/slabodkin/assignments-2016-1/subscribers","subscription_url":"https://api.github.com/repos/slabodkin/assignments-2016-1/subscription","commits_url":"https://api.github.com/repos/slabodkin/assignments-2016-1/commits{/sha}","git_commits_url":"https://api.github.com/repos/slabodkin/assignments-2016-1/git/commits{/sha}","comments_url":"https://api.github.com/repos/slabodkin/assignments-2016-1/comments{/number}","issue_comment_url":"https://api.github.com/repos/slabodkin/assignments-2016-1/issues/comments{/number}","contents_url":"https://api.github.com/repos/slabodkin/assignments-2016-1/contents/{+path}","compare_url":"https://api.github.com/repos/slabodkin/assignments-2016-1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/slabodkin/assignments-2016-1/merges","archive_url":"https://api.github.com/repos/slabodkin/assignments-2016-1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/slabodkin/assignments-2016-1/downloads","issues_url":"https://api.github.com/repos/slabodkin/assignments-2016-1/issues{/number}","pulls_url":"https://api.github.com/repos/slabodkin/assignments-2016-1/pulls{/number}","milestones_url":"https://api.github.com/repos/slabodkin/assignments-2016-1/milestones{/number}","notifications_url":"https://api.github.com/repos/slabodkin/assignments-2016-1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/slabodkin/assignments-2016-1/labels{/name}","releases_url":"https://api.github.com/repos/slabodkin/assignments-2016-1/releases{/id}","deployments_url":"https://api.github.com/repos/slabodkin/assignments-2016-1/deployments","created_at":"2016-02-28T21:43:14Z","updated_at":"2016-02-16T09:51:58Z","pushed_at":"2016-03-21T23:04:12Z","git_url":"git://github.com/slabodkin/assignments-2016-1.git","ssh_url":"git@github.com:slabodkin/assignments-2016-1.git","clone_url":"https://github.com/slabodkin/assignments-2016-1.git","svn_url":"https://github.com/slabodkin/assignments-2016-1","homepage":null,"size":29,"stargazers_count":0,"watchers_count":0,"language":null,"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":"java-course-au:03-functional-java","ref":"03-functional-java","sha":"8d0dbceb13c7b52b8ff20c41ffd758effa952ef7","user":{"login":"java-course-au","id":14248092,"avatar_url":"https://avatars.githubusercontent.com/u/14248092?v=3","gravatar_id":"","url":"https://api.github.com/users/java-course-au","html_url":"https://github.com/java-course-au","followers_url":"https://api.github.com/users/java-course-au/followers","following_url":"https://api.github.com/users/java-course-au/following{/other_user}","gists_url":"https://api.github.com/users/java-course-au/gists{/gist_id}","starred_url":"https://api.github.com/users/java-course-au/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/java-course-au/subscriptions","organizations_url":"https://api.github.com/users/java-course-au/orgs","repos_url":"https://api.github.com/users/java-course-au/repos","events_url":"https://api.github.com/users/java-course-au/events{/privacy}","received_events_url":"https://api.github.com/users/java-course-au/received_events","type":"Organization","site_admin":false},"repo":{"id":51825249,"name":"assignments-2016-1","full_name":"java-course-au/assignments-2016-1","owner":{"login":"java-course-au","id":14248092,"avatar_url":"https://avatars.githubusercontent.com/u/14248092?v=3","gravatar_id":"","url":"https://api.github.com/users/java-course-au","html_url":"https://github.com/java-course-au","followers_url":"https://api.github.com/users/java-course-au/followers","following_url":"https://api.github.com/users/java-course-au/following{/other_user}","gists_url":"https://api.github.com/users/java-course-au/gists{/gist_id}","starred_url":"https://api.github.com/users/java-course-au/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/java-course-au/subscriptions","organizations_url":"https://api.github.com/users/java-course-au/orgs","repos_url":"https://api.github.com/users/java-course-au/repos","events_url":"https://api.github.com/users/java-course-au/events{/privacy}","received_events_url":"https://api.github.com/users/java-course-au/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/java-course-au/assignments-2016-1","description":"Домашнее задания по Java","fork":false,"url":"https://api.github.com/repos/java-course-au/assignments-2016-1","forks_url":"https://api.github.com/repos/java-course-au/assignments-2016-1/forks","keys_url":"https://api.github.com/repos/java-course-au/assignments-2016-1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/java-course-au/assignments-2016-1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/java-course-au/assignments-2016-1/teams","hooks_url":"https://api.github.com/repos/java-course-au/assignments-2016-1/hooks","issue_events_url":"https://api.github.com/repos/java-course-au/assignments-2016-1/issues/events{/number}","events_url":"https://api.github.com/repos/java-course-au/assignments-2016-1/events","assignees_url":"https://api.github.com/repos/java-course-au/assignments-2016-1/assignees{/user}","branches_url":"https://api.github.com/repos/java-course-au/assignments-2016-1/branches{/branch}","tags_url":"https://api.github.com/repos/java-course-au/assignments-2016-1/tags","blobs_url":"https://api.github.com/repos/java-course-au/assignments-2016-1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/java-course-au/assignments-2016-1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/java-course-au/assignments-2016-1/git/refs{/sha}","trees_url":"https://api.github.com/repos/java-course-au/assignments-2016-1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/java-course-au/assignments-2016-1/statuses/{sha}","languages_url":"https://api.github.com/repos/java-course-au/assignments-2016-1/languages","stargazers_url":"https://api.github.com/repos/java-course-au/assignments-2016-1/stargazers","contributors_url":"https://api.github.com/repos/java-course-au/assignments-2016-1/contributors","subscribers_url":"https://api.github.com/repos/java-course-au/assignments-2016-1/subscribers","subscription_url":"https://api.github.com/repos/java-course-au/assignments-2016-1/subscription","commits_url":"https://api.github.com/repos/java-course-au/assignments-2016-1/commits{/sha}","git_commits_url":"https://api.github.com/repos/java-course-au/assignments-2016-1/git/commits{/sha}","comments_url":"https://api.github.com/repos/java-course-au/assignments-2016-1/comments{/number}","issue_comment_url":"https://api.github.com/repos/java-course-au/assignments-2016-1/issues/comments{/number}","contents_url":"https://api.github.com/repos/java-course-au/assignments-2016-1/contents/{+path}","compare_url":"https://api.github.com/repos/java-course-au/assignments-2016-1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/java-course-au/assignments-2016-1/merges","archive_url":"https://api.github.com/repos/java-course-au/assignments-2016-1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/java-course-au/assignments-2016-1/downloads","issues_url":"https://api.github.com/repos/java-course-au/assignments-2016-1/issues{/number}","pulls_url":"https://api.github.com/repos/java-course-au/assignments-2016-1/pulls{/number}","milestones_url":"https://api.github.com/repos/java-course-au/assignments-2016-1/milestones{/number}","notifications_url":"https://api.github.com/repos/java-course-au/assignments-2016-1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/java-course-au/assignments-2016-1/labels{/name}","releases_url":"https://api.github.com/repos/java-course-au/assignments-2016-1/releases{/id}","deployments_url":"https://api.github.com/repos/java-course-au/assignments-2016-1/deployments","created_at":"2016-02-16T09:51:58Z","updated_at":"2016-02-16T09:51:58Z","pushed_at":"2016-04-09T15:59:05Z","git_url":"git://github.com/java-course-au/assignments-2016-1.git","ssh_url":"git@github.com:java-course-au/assignments-2016-1.git","clone_url":"https://github.com/java-course-au/assignments-2016-1.git","svn_url":"https://github.com/java-course-au/assignments-2016-1","homepage":null,"size":469,"stargazers_count":0,"watchers_count":0,"language":null,"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":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/java-course-au/assignments-2016-1/pulls/112"},"html":{"href":"https://github.com/java-course-au/assignments-2016-1/pull/112"},"issue":{"href":"https://api.github.com/repos/java-course-au/assignments-2016-1/issues/112"},"comments":{"href":"https://api.github.com/repos/java-course-au/assignments-2016-1/issues/112/comments"},"review_comments":{"href":"https://api.github.com/repos/java-course-au/assignments-2016-1/pulls/112/comments"},"review_comment":{"href":"https://api.github.com/repos/java-course-au/assignments-2016-1/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/java-course-au/assignments-2016-1/pulls/112/commits"},"statuses":{"href":"https://api.github.com/repos/java-course-au/assignments-2016-1/statuses/51364c1ce193e63de22ac140996ce7400a0c079d"}}}}