{"action":"created","comment":{"url":"https://api.github.com/repos/AlexVanGogen/java-course-II/pulls/comments/242619410","pull_request_review_id":186171583,"id":242619410,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0MjYxOTQxMA==","diff_hunk":"@@ -0,0 +1,200 @@\n+package ru.itmo.javacourse.pool;\n+\n+import org.jetbrains.annotations.NotNull;\n+import org.jetbrains.annotations.Nullable;\n+import ru.itmo.javacourse.future.LightExecutionException;\n+import ru.itmo.javacourse.future.LightFuture;\n+\n+import java.util.*;\n+import java.util.function.Function;\n+import java.util.function.Supplier;\n+\n+/**\n+ * Simple pool with fixed threads number\n+ */\n+public class ThreadPoolImpl implements Pool {\n+\n+    @NotNull\n+    private final Queue<LightFutureImpl<?>> tasksQueue;\n+\n+    private final Thread[] workers;\n+\n+    /**\n+     * Created threads and runs them.\n+     * @param numberOfThreads numbers of threads that must be created\n+     */\n+    public ThreadPoolImpl(int numberOfThreads) {\n+        tasksQueue = new LinkedList<>();\n+        workers = new ThreadWorker[numberOfThreads];\n+        for (int i = 0; i < numberOfThreads; i++) {\n+            workers[i] = new ThreadWorker();\n+            workers[i].start();\n+        }\n+    }\n+\n+    /**\n+     * Adds given task to the pool. If there are waiting threads in the pool, one of them will start\n+     * executing that task. Otherwise, task will be added to the queue and wait until any thread\n+     * with accept it.\n+     * @param task task that must be executed\n+     * @param <T> type of result\n+     * @return a LightFuture representing completion of the task\n+     */\n+    @Override\n+    public @NotNull <T> LightFuture<T> submit(Supplier<T> task) {\n+        final LightFutureImpl<T> submittingTask = new LightFutureImpl<>(task);\n+        synchronized (tasksQueue) {\n+            tasksQueue.add(submittingTask);\n+            tasksQueue.notify();\n+        }\n+        return submittingTask;\n+    }\n+\n+    /**\n+     * Immediately stops execution and stops every thread in the pool.\n+     */\n+    @Override\n+    public void shutdown() {\n+        for (final Thread worker : workers) {\n+            worker.interrupt();\n+        }\n+    }\n+\n+    private class ThreadWorker extends Thread {\n+\n+        @Override\n+        public void run() {\n+            LightFutureImpl task;\n+            try {\n+                while (!Thread.interrupted()) {\n+                    synchronized (tasksQueue) {\n+                        while (tasksQueue.isEmpty()) {\n+                            tasksQueue.wait();\n+                        }\n+\n+                        task = tasksQueue.poll();\n+                    }\n+                    if (task != null) {\n+                        executeTask(task);\n+                    }\n+                }\n+            } catch (InterruptedException ignored) { }\n+        }\n+\n+        /**\n+         * We need synchronization here by both events (execution done / execution failed with an exception)\n+         * to have possibility to notify threads that wait the result with {@link LightFutureImpl#get()}\n+         */\n+        private void executeTask(LightFutureImpl task) {\n+            try {\n+                synchronized (task) {\n+                    task.taskResult = task.taskSupplier.get();\n+                    task.isDone = true;\n+                    task.notifyAll();\n+                }\n+            } catch (Exception e) {\n+                synchronized (task) {\n+                    task.isDone = true;\n+                    task.taskExecutionException = e;\n+                    task.notifyAll();\n+                }\n+            }\n+        }\n+    }\n+\n+    /**\n+     * Task for our custom thread pool\n+     */\n+    private class LightFutureImpl<T> implements LightFuture<T> {\n+\n+        @NotNull private final Supplier<? extends T> taskSupplier;\n+\n+        @Nullable private T taskResult;\n+\n+        @Nullable private Throwable taskExecutionException;\n+\n+        private boolean isDone;\n+\n+        public LightFutureImpl(@NotNull Supplier<? extends T> supplier) {\n+            taskSupplier = supplier;\n+            isDone = false;\n+        }\n+\n+        /**\n+         * Returns result of given task execution.\n+         * If it has not been calculated yet, waits for completion of task.\n+         * @return result of given task execution\n+         * @throws LightExecutionException if task execution failed with exception\n+         */\n+        @Nullable\n+        public synchronized T get() throws LightExecutionException {\n+            try {\n+                while (!isDone) {\n+                    wait();\n+                }\n+            } catch (InterruptedException e) {\n+                if (taskExecutionException != null) {\n+                    taskExecutionException.addSuppressed(e) ;\n+                } else {\n+                    taskExecutionException = e;\n+                }\n+            }\n+\n+            if (taskExecutionException != null) {\n+                if (taskExecutionException instanceof ChainExecutionException) {\n+                    taskExecutionException = taskExecutionException.getCause();\n+                }\n+                throw new LightExecutionException(taskExecutionException);\n+            }\n+            return taskResult;\n+        }\n+\n+        /**\n+         * Makes new task where given function is applied to the result of current task.\n+         * New task cannot be executed until current task will complete.\n+         * Method can be called multiple times. New tasks can be executed on any thread in the pool.\n+         * @param functionToApply function that will be applied to result in the next task\n+         * @param <R> result of next task execution\n+         * @return new task where given function is applied to the result of current task\n+         */\n+        @NotNull\n+        @Override\n+        public synchronized <R> LightFuture<R> thenApply(@NotNull Function<? super T, ? extends R> functionToApply) {\n+            final Supplier<R> nextTaskSupplier = () -> {\n+                try {\n+                    return functionToApply.apply(get());","path":"hw-02-pool-n-future/src/main/java/ru/itmo/javacourse/pool/ThreadPoolImpl.java","position":165,"original_position":165,"commit_id":"ffce8be21bf292d4f25d56bb644db2258bca9d4b","original_commit_id":"ffce8be21bf292d4f25d56bb644db2258bca9d4b","user":{"login":"dsavvinov","id":6999635,"node_id":"MDQ6VXNlcjY5OTk2MzU=","avatar_url":"https://avatars2.githubusercontent.com/u/6999635?v=4","gravatar_id":"","url":"https://api.github.com/users/dsavvinov","html_url":"https://github.com/dsavvinov","followers_url":"https://api.github.com/users/dsavvinov/followers","following_url":"https://api.github.com/users/dsavvinov/following{/other_user}","gists_url":"https://api.github.com/users/dsavvinov/gists{/gist_id}","starred_url":"https://api.github.com/users/dsavvinov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsavvinov/subscriptions","organizations_url":"https://api.github.com/users/dsavvinov/orgs","repos_url":"https://api.github.com/users/dsavvinov/repos","events_url":"https://api.github.com/users/dsavvinov/events{/privacy}","received_events_url":"https://api.github.com/users/dsavvinov/received_events","type":"User","site_admin":false},"body":"Когда воркер в тред пуле возьмет такую таску на исполнение, он заблокируется. Таким образом, выполнив достаточно много `thenApply` на какой-нибудь очень долгой и жирной таске, можно повесить весь тред пул, и все треды, кроме одного, будут курить в сторонке и не желать работать с новыми (независимыми) тасками. Это плохо, надо починить.","created_at":"2018-12-18T16:54:39Z","updated_at":"2018-12-18T16:57:45Z","html_url":"https://github.com/AlexVanGogen/java-course-II/pull/4#discussion_r242619410","pull_request_url":"https://api.github.com/repos/AlexVanGogen/java-course-II/pulls/4","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/AlexVanGogen/java-course-II/pulls/comments/242619410"},"html":{"href":"https://github.com/AlexVanGogen/java-course-II/pull/4#discussion_r242619410"},"pull_request":{"href":"https://api.github.com/repos/AlexVanGogen/java-course-II/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/AlexVanGogen/java-course-II/pulls/4","id":231802107,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMxODAyMTA3","html_url":"https://github.com/AlexVanGogen/java-course-II/pull/4","diff_url":"https://github.com/AlexVanGogen/java-course-II/pull/4.diff","patch_url":"https://github.com/AlexVanGogen/java-course-II/pull/4.patch","issue_url":"https://api.github.com/repos/AlexVanGogen/java-course-II/issues/4","number":4,"state":"open","locked":false,"title":"Java 06. ДЗ 04, Кузнецов Александр","user":{"login":"AlexVanGogen","id":13893590,"node_id":"MDQ6VXNlcjEzODkzNTkw","avatar_url":"https://avatars1.githubusercontent.com/u/13893590?v=4","gravatar_id":"","url":"https://api.github.com/users/AlexVanGogen","html_url":"https://github.com/AlexVanGogen","followers_url":"https://api.github.com/users/AlexVanGogen/followers","following_url":"https://api.github.com/users/AlexVanGogen/following{/other_user}","gists_url":"https://api.github.com/users/AlexVanGogen/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexVanGogen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexVanGogen/subscriptions","organizations_url":"https://api.github.com/users/AlexVanGogen/orgs","repos_url":"https://api.github.com/users/AlexVanGogen/repos","events_url":"https://api.github.com/users/AlexVanGogen/events{/privacy}","received_events_url":"https://api.github.com/users/AlexVanGogen/received_events","type":"User","site_admin":false},"body":"@dsavvinov","created_at":"2018-11-18T17:36:03Z","updated_at":"2018-12-18T16:57:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"136b2441d506941c8b50c25befac292e12a36ed1","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/AlexVanGogen/java-course-II/pulls/4/commits","review_comments_url":"https://api.github.com/repos/AlexVanGogen/java-course-II/pulls/4/comments","review_comment_url":"https://api.github.com/repos/AlexVanGogen/java-course-II/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AlexVanGogen/java-course-II/issues/4/comments","statuses_url":"https://api.github.com/repos/AlexVanGogen/java-course-II/statuses/ffce8be21bf292d4f25d56bb644db2258bca9d4b","head":{"label":"AlexVanGogen:hw-02-pool-n-future","ref":"hw-02-pool-n-future","sha":"ffce8be21bf292d4f25d56bb644db2258bca9d4b","user":{"login":"AlexVanGogen","id":13893590,"node_id":"MDQ6VXNlcjEzODkzNTkw","avatar_url":"https://avatars1.githubusercontent.com/u/13893590?v=4","gravatar_id":"","url":"https://api.github.com/users/AlexVanGogen","html_url":"https://github.com/AlexVanGogen","followers_url":"https://api.github.com/users/AlexVanGogen/followers","following_url":"https://api.github.com/users/AlexVanGogen/following{/other_user}","gists_url":"https://api.github.com/users/AlexVanGogen/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexVanGogen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexVanGogen/subscriptions","organizations_url":"https://api.github.com/users/AlexVanGogen/orgs","repos_url":"https://api.github.com/users/AlexVanGogen/repos","events_url":"https://api.github.com/users/AlexVanGogen/events{/privacy}","received_events_url":"https://api.github.com/users/AlexVanGogen/received_events","type":"User","site_admin":false},"repo":{"id":148159417,"node_id":"MDEwOlJlcG9zaXRvcnkxNDgxNTk0MTc=","name":"java-course-II","full_name":"AlexVanGogen/java-course-II","private":false,"owner":{"login":"AlexVanGogen","id":13893590,"node_id":"MDQ6VXNlcjEzODkzNTkw","avatar_url":"https://avatars1.githubusercontent.com/u/13893590?v=4","gravatar_id":"","url":"https://api.github.com/users/AlexVanGogen","html_url":"https://github.com/AlexVanGogen","followers_url":"https://api.github.com/users/AlexVanGogen/followers","following_url":"https://api.github.com/users/AlexVanGogen/following{/other_user}","gists_url":"https://api.github.com/users/AlexVanGogen/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexVanGogen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexVanGogen/subscriptions","organizations_url":"https://api.github.com/users/AlexVanGogen/orgs","repos_url":"https://api.github.com/users/AlexVanGogen/repos","events_url":"https://api.github.com/users/AlexVanGogen/events{/privacy}","received_events_url":"https://api.github.com/users/AlexVanGogen/received_events","type":"User","site_admin":false},"html_url":"https://github.com/AlexVanGogen/java-course-II","description":"Java home assignments, fall 2018","fork":false,"url":"https://api.github.com/repos/AlexVanGogen/java-course-II","forks_url":"https://api.github.com/repos/AlexVanGogen/java-course-II/forks","keys_url":"https://api.github.com/repos/AlexVanGogen/java-course-II/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AlexVanGogen/java-course-II/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AlexVanGogen/java-course-II/teams","hooks_url":"https://api.github.com/repos/AlexVanGogen/java-course-II/hooks","issue_events_url":"https://api.github.com/repos/AlexVanGogen/java-course-II/issues/events{/number}","events_url":"https://api.github.com/repos/AlexVanGogen/java-course-II/events","assignees_url":"https://api.github.com/repos/AlexVanGogen/java-course-II/assignees{/user}","branches_url":"https://api.github.com/repos/AlexVanGogen/java-course-II/branches{/branch}","tags_url":"https://api.github.com/repos/AlexVanGogen/java-course-II/tags","blobs_url":"https://api.github.com/repos/AlexVanGogen/java-course-II/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AlexVanGogen/java-course-II/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AlexVanGogen/java-course-II/git/refs{/sha}","trees_url":"https://api.github.com/repos/AlexVanGogen/java-course-II/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AlexVanGogen/java-course-II/statuses/{sha}","languages_url":"https://api.github.com/repos/AlexVanGogen/java-course-II/languages","stargazers_url":"https://api.github.com/repos/AlexVanGogen/java-course-II/stargazers","contributors_url":"https://api.github.com/repos/AlexVanGogen/java-course-II/contributors","subscribers_url":"https://api.github.com/repos/AlexVanGogen/java-course-II/subscribers","subscription_url":"https://api.github.com/repos/AlexVanGogen/java-course-II/subscription","commits_url":"https://api.github.com/repos/AlexVanGogen/java-course-II/commits{/sha}","git_commits_url":"https://api.github.com/repos/AlexVanGogen/java-course-II/git/commits{/sha}","comments_url":"https://api.github.com/repos/AlexVanGogen/java-course-II/comments{/number}","issue_comment_url":"https://api.github.com/repos/AlexVanGogen/java-course-II/issues/comments{/number}","contents_url":"https://api.github.com/repos/AlexVanGogen/java-course-II/contents/{+path}","compare_url":"https://api.github.com/repos/AlexVanGogen/java-course-II/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AlexVanGogen/java-course-II/merges","archive_url":"https://api.github.com/repos/AlexVanGogen/java-course-II/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AlexVanGogen/java-course-II/downloads","issues_url":"https://api.github.com/repos/AlexVanGogen/java-course-II/issues{/number}","pulls_url":"https://api.github.com/repos/AlexVanGogen/java-course-II/pulls{/number}","milestones_url":"https://api.github.com/repos/AlexVanGogen/java-course-II/milestones{/number}","notifications_url":"https://api.github.com/repos/AlexVanGogen/java-course-II/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AlexVanGogen/java-course-II/labels{/name}","releases_url":"https://api.github.com/repos/AlexVanGogen/java-course-II/releases{/id}","deployments_url":"https://api.github.com/repos/AlexVanGogen/java-course-II/deployments","created_at":"2018-09-10T13:26:14Z","updated_at":"2018-09-10T13:29:09Z","pushed_at":"2018-11-18T17:41:40Z","git_url":"git://github.com/AlexVanGogen/java-course-II.git","ssh_url":"git@github.com:AlexVanGogen/java-course-II.git","clone_url":"https://github.com/AlexVanGogen/java-course-II.git","svn_url":"https://github.com/AlexVanGogen/java-course-II","homepage":null,"size":158,"stargazers_count":0,"watchers_count":0,"language":null,"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":4,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"base":{"label":"AlexVanGogen:master","ref":"master","sha":"68fff5cc8698bffa3c0d80831ebf9b538ebcec6e","user":{"login":"AlexVanGogen","id":13893590,"node_id":"MDQ6VXNlcjEzODkzNTkw","avatar_url":"https://avatars1.githubusercontent.com/u/13893590?v=4","gravatar_id":"","url":"https://api.github.com/users/AlexVanGogen","html_url":"https://github.com/AlexVanGogen","followers_url":"https://api.github.com/users/AlexVanGogen/followers","following_url":"https://api.github.com/users/AlexVanGogen/following{/other_user}","gists_url":"https://api.github.com/users/AlexVanGogen/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexVanGogen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexVanGogen/subscriptions","organizations_url":"https://api.github.com/users/AlexVanGogen/orgs","repos_url":"https://api.github.com/users/AlexVanGogen/repos","events_url":"https://api.github.com/users/AlexVanGogen/events{/privacy}","received_events_url":"https://api.github.com/users/AlexVanGogen/received_events","type":"User","site_admin":false},"repo":{"id":148159417,"node_id":"MDEwOlJlcG9zaXRvcnkxNDgxNTk0MTc=","name":"java-course-II","full_name":"AlexVanGogen/java-course-II","private":false,"owner":{"login":"AlexVanGogen","id":13893590,"node_id":"MDQ6VXNlcjEzODkzNTkw","avatar_url":"https://avatars1.githubusercontent.com/u/13893590?v=4","gravatar_id":"","url":"https://api.github.com/users/AlexVanGogen","html_url":"https://github.com/AlexVanGogen","followers_url":"https://api.github.com/users/AlexVanGogen/followers","following_url":"https://api.github.com/users/AlexVanGogen/following{/other_user}","gists_url":"https://api.github.com/users/AlexVanGogen/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexVanGogen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexVanGogen/subscriptions","organizations_url":"https://api.github.com/users/AlexVanGogen/orgs","repos_url":"https://api.github.com/users/AlexVanGogen/repos","events_url":"https://api.github.com/users/AlexVanGogen/events{/privacy}","received_events_url":"https://api.github.com/users/AlexVanGogen/received_events","type":"User","site_admin":false},"html_url":"https://github.com/AlexVanGogen/java-course-II","description":"Java home assignments, fall 2018","fork":false,"url":"https://api.github.com/repos/AlexVanGogen/java-course-II","forks_url":"https://api.github.com/repos/AlexVanGogen/java-course-II/forks","keys_url":"https://api.github.com/repos/AlexVanGogen/java-course-II/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AlexVanGogen/java-course-II/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AlexVanGogen/java-course-II/teams","hooks_url":"https://api.github.com/repos/AlexVanGogen/java-course-II/hooks","issue_events_url":"https://api.github.com/repos/AlexVanGogen/java-course-II/issues/events{/number}","events_url":"https://api.github.com/repos/AlexVanGogen/java-course-II/events","assignees_url":"https://api.github.com/repos/AlexVanGogen/java-course-II/assignees{/user}","branches_url":"https://api.github.com/repos/AlexVanGogen/java-course-II/branches{/branch}","tags_url":"https://api.github.com/repos/AlexVanGogen/java-course-II/tags","blobs_url":"https://api.github.com/repos/AlexVanGogen/java-course-II/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AlexVanGogen/java-course-II/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AlexVanGogen/java-course-II/git/refs{/sha}","trees_url":"https://api.github.com/repos/AlexVanGogen/java-course-II/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AlexVanGogen/java-course-II/statuses/{sha}","languages_url":"https://api.github.com/repos/AlexVanGogen/java-course-II/languages","stargazers_url":"https://api.github.com/repos/AlexVanGogen/java-course-II/stargazers","contributors_url":"https://api.github.com/repos/AlexVanGogen/java-course-II/contributors","subscribers_url":"https://api.github.com/repos/AlexVanGogen/java-course-II/subscribers","subscription_url":"https://api.github.com/repos/AlexVanGogen/java-course-II/subscription","commits_url":"https://api.github.com/repos/AlexVanGogen/java-course-II/commits{/sha}","git_commits_url":"https://api.github.com/repos/AlexVanGogen/java-course-II/git/commits{/sha}","comments_url":"https://api.github.com/repos/AlexVanGogen/java-course-II/comments{/number}","issue_comment_url":"https://api.github.com/repos/AlexVanGogen/java-course-II/issues/comments{/number}","contents_url":"https://api.github.com/repos/AlexVanGogen/java-course-II/contents/{+path}","compare_url":"https://api.github.com/repos/AlexVanGogen/java-course-II/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AlexVanGogen/java-course-II/merges","archive_url":"https://api.github.com/repos/AlexVanGogen/java-course-II/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AlexVanGogen/java-course-II/downloads","issues_url":"https://api.github.com/repos/AlexVanGogen/java-course-II/issues{/number}","pulls_url":"https://api.github.com/repos/AlexVanGogen/java-course-II/pulls{/number}","milestones_url":"https://api.github.com/repos/AlexVanGogen/java-course-II/milestones{/number}","notifications_url":"https://api.github.com/repos/AlexVanGogen/java-course-II/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AlexVanGogen/java-course-II/labels{/name}","releases_url":"https://api.github.com/repos/AlexVanGogen/java-course-II/releases{/id}","deployments_url":"https://api.github.com/repos/AlexVanGogen/java-course-II/deployments","created_at":"2018-09-10T13:26:14Z","updated_at":"2018-09-10T13:29:09Z","pushed_at":"2018-11-18T17:41:40Z","git_url":"git://github.com/AlexVanGogen/java-course-II.git","ssh_url":"git@github.com:AlexVanGogen/java-course-II.git","clone_url":"https://github.com/AlexVanGogen/java-course-II.git","svn_url":"https://github.com/AlexVanGogen/java-course-II","homepage":null,"size":158,"stargazers_count":0,"watchers_count":0,"language":null,"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":4,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/AlexVanGogen/java-course-II/pulls/4"},"html":{"href":"https://github.com/AlexVanGogen/java-course-II/pull/4"},"issue":{"href":"https://api.github.com/repos/AlexVanGogen/java-course-II/issues/4"},"comments":{"href":"https://api.github.com/repos/AlexVanGogen/java-course-II/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/AlexVanGogen/java-course-II/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/AlexVanGogen/java-course-II/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AlexVanGogen/java-course-II/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/AlexVanGogen/java-course-II/statuses/ffce8be21bf292d4f25d56bb644db2258bca9d4b"}},"author_association":"OWNER"}}
{"actor":{"display_login":"dsavvinov"}}