{"action":"created","comment":{"url":"https://api.github.com/repos/techno-aads/sorting/pulls/comments/155959966","pull_request_review_id":82362216,"id":155959966,"diff_hunk":"@@ -0,0 +1,56 @@\n+package ru.mail.polis.sort;\n+\n+import java.lang.reflect.Array;\n+import java.util.Comparator;\n+\n+public class MergeSort<T extends Comparable<T>> extends AbstractSortOnComparisons<T> {\n+\n+    public MergeSort() {\n+    }\n+\n+    public MergeSort(Comparator<? super T> comparator) {\n+        super(comparator);\n+    }\n+\n+    @Override\n+    public void sort(T[] data) {\n+        T[] result = mergeSort(data, 0, data.length - 1);\n+        System.arraycopy(result, 0, data, 0, result.length);\n+    }\n+\n+    @SuppressWarnings(\"unchecked\")\n+    private T[] mergeSort(T[] data, int left, int right) {\n+        if (left == right) {\n+            T[] res = (T[]) Array.newInstance(data.getClass().getComponentType(), 1);","path":"src/ru/mail/polis/sort/MergeSort.java","position":24,"original_position":24,"commit_id":"1e049ab44f7c3408fdd355bc5047969c792b9bc6","original_commit_id":"1e049ab44f7c3408fdd355bc5047969c792b9bc6","user":{"login":"techno-aads","id":23221034,"avatar_url":"https://avatars1.githubusercontent.com/u/23221034?v=4","gravatar_id":"","url":"https://api.github.com/users/techno-aads","html_url":"https://github.com/techno-aads","followers_url":"https://api.github.com/users/techno-aads/followers","following_url":"https://api.github.com/users/techno-aads/following{/other_user}","gists_url":"https://api.github.com/users/techno-aads/gists{/gist_id}","starred_url":"https://api.github.com/users/techno-aads/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/techno-aads/subscriptions","organizations_url":"https://api.github.com/users/techno-aads/orgs","repos_url":"https://api.github.com/users/techno-aads/repos","events_url":"https://api.github.com/users/techno-aads/events{/privacy}","received_events_url":"https://api.github.com/users/techno-aads/received_events","type":"User","site_admin":false},"body":"`@SuppressWarnings(\"unchecked\")`\r\nhttp://microfork.com/suppresswarnings/","created_at":"2017-12-10T20:58:53Z","updated_at":"2017-12-10T20:58:53Z","html_url":"https://github.com/techno-aads/sorting/pull/42#discussion_r155959966","pull_request_url":"https://api.github.com/repos/techno-aads/sorting/pulls/42","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/techno-aads/sorting/pulls/comments/155959966"},"html":{"href":"https://github.com/techno-aads/sorting/pull/42#discussion_r155959966"},"pull_request":{"href":"https://api.github.com/repos/techno-aads/sorting/pulls/42"}}},"pull_request":{"url":"https://api.github.com/repos/techno-aads/sorting/pulls/42","id":156064012,"html_url":"https://github.com/techno-aads/sorting/pull/42","diff_url":"https://github.com/techno-aads/sorting/pull/42.diff","patch_url":"https://github.com/techno-aads/sorting/pull/42.patch","issue_url":"https://api.github.com/repos/techno-aads/sorting/issues/42","number":42,"state":"open","locked":false,"title":"Hometask 2 done","user":{"login":"sudzhaev","id":14860904,"avatar_url":"https://avatars0.githubusercontent.com/u/14860904?v=4","gravatar_id":"","url":"https://api.github.com/users/sudzhaev","html_url":"https://github.com/sudzhaev","followers_url":"https://api.github.com/users/sudzhaev/followers","following_url":"https://api.github.com/users/sudzhaev/following{/other_user}","gists_url":"https://api.github.com/users/sudzhaev/gists{/gist_id}","starred_url":"https://api.github.com/users/sudzhaev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sudzhaev/subscriptions","organizations_url":"https://api.github.com/users/sudzhaev/orgs","repos_url":"https://api.github.com/users/sudzhaev/repos","events_url":"https://api.github.com/users/sudzhaev/events{/privacy}","received_events_url":"https://api.github.com/users/sudzhaev/received_events","type":"User","site_admin":false},"body":"Sortings and benchmarks","created_at":"2017-12-03T14:56:21Z","updated_at":"2017-12-10T20:58:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"20f0dff20523e650c7bf4f17f92954a2a154c228","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/techno-aads/sorting/pulls/42/commits","review_comments_url":"https://api.github.com/repos/techno-aads/sorting/pulls/42/comments","review_comment_url":"https://api.github.com/repos/techno-aads/sorting/pulls/comments{/number}","comments_url":"https://api.github.com/repos/techno-aads/sorting/issues/42/comments","statuses_url":"https://api.github.com/repos/techno-aads/sorting/statuses/1e049ab44f7c3408fdd355bc5047969c792b9bc6","head":{"label":"sudzhaev:master","ref":"master","sha":"1e049ab44f7c3408fdd355bc5047969c792b9bc6","user":{"login":"sudzhaev","id":14860904,"avatar_url":"https://avatars0.githubusercontent.com/u/14860904?v=4","gravatar_id":"","url":"https://api.github.com/users/sudzhaev","html_url":"https://github.com/sudzhaev","followers_url":"https://api.github.com/users/sudzhaev/followers","following_url":"https://api.github.com/users/sudzhaev/following{/other_user}","gists_url":"https://api.github.com/users/sudzhaev/gists{/gist_id}","starred_url":"https://api.github.com/users/sudzhaev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sudzhaev/subscriptions","organizations_url":"https://api.github.com/users/sudzhaev/orgs","repos_url":"https://api.github.com/users/sudzhaev/repos","events_url":"https://api.github.com/users/sudzhaev/events{/privacy}","received_events_url":"https://api.github.com/users/sudzhaev/received_events","type":"User","site_admin":false},"repo":{"id":112874163,"name":"sorting","full_name":"sudzhaev/sorting","owner":{"login":"sudzhaev","id":14860904,"avatar_url":"https://avatars0.githubusercontent.com/u/14860904?v=4","gravatar_id":"","url":"https://api.github.com/users/sudzhaev","html_url":"https://github.com/sudzhaev","followers_url":"https://api.github.com/users/sudzhaev/followers","following_url":"https://api.github.com/users/sudzhaev/following{/other_user}","gists_url":"https://api.github.com/users/sudzhaev/gists{/gist_id}","starred_url":"https://api.github.com/users/sudzhaev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sudzhaev/subscriptions","organizations_url":"https://api.github.com/users/sudzhaev/orgs","repos_url":"https://api.github.com/users/sudzhaev/repos","events_url":"https://api.github.com/users/sudzhaev/events{/privacy}","received_events_url":"https://api.github.com/users/sudzhaev/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sudzhaev/sorting","description":"Sorting benchmark","fork":true,"url":"https://api.github.com/repos/sudzhaev/sorting","forks_url":"https://api.github.com/repos/sudzhaev/sorting/forks","keys_url":"https://api.github.com/repos/sudzhaev/sorting/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sudzhaev/sorting/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sudzhaev/sorting/teams","hooks_url":"https://api.github.com/repos/sudzhaev/sorting/hooks","issue_events_url":"https://api.github.com/repos/sudzhaev/sorting/issues/events{/number}","events_url":"https://api.github.com/repos/sudzhaev/sorting/events","assignees_url":"https://api.github.com/repos/sudzhaev/sorting/assignees{/user}","branches_url":"https://api.github.com/repos/sudzhaev/sorting/branches{/branch}","tags_url":"https://api.github.com/repos/sudzhaev/sorting/tags","blobs_url":"https://api.github.com/repos/sudzhaev/sorting/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sudzhaev/sorting/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sudzhaev/sorting/git/refs{/sha}","trees_url":"https://api.github.com/repos/sudzhaev/sorting/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sudzhaev/sorting/statuses/{sha}","languages_url":"https://api.github.com/repos/sudzhaev/sorting/languages","stargazers_url":"https://api.github.com/repos/sudzhaev/sorting/stargazers","contributors_url":"https://api.github.com/repos/sudzhaev/sorting/contributors","subscribers_url":"https://api.github.com/repos/sudzhaev/sorting/subscribers","subscription_url":"https://api.github.com/repos/sudzhaev/sorting/subscription","commits_url":"https://api.github.com/repos/sudzhaev/sorting/commits{/sha}","git_commits_url":"https://api.github.com/repos/sudzhaev/sorting/git/commits{/sha}","comments_url":"https://api.github.com/repos/sudzhaev/sorting/comments{/number}","issue_comment_url":"https://api.github.com/repos/sudzhaev/sorting/issues/comments{/number}","contents_url":"https://api.github.com/repos/sudzhaev/sorting/contents/{+path}","compare_url":"https://api.github.com/repos/sudzhaev/sorting/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sudzhaev/sorting/merges","archive_url":"https://api.github.com/repos/sudzhaev/sorting/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sudzhaev/sorting/downloads","issues_url":"https://api.github.com/repos/sudzhaev/sorting/issues{/number}","pulls_url":"https://api.github.com/repos/sudzhaev/sorting/pulls{/number}","milestones_url":"https://api.github.com/repos/sudzhaev/sorting/milestones{/number}","notifications_url":"https://api.github.com/repos/sudzhaev/sorting/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sudzhaev/sorting/labels{/name}","releases_url":"https://api.github.com/repos/sudzhaev/sorting/releases{/id}","deployments_url":"https://api.github.com/repos/sudzhaev/sorting/deployments","created_at":"2017-12-02T20:23:20Z","updated_at":"2017-12-02T20:23:22Z","pushed_at":"2017-12-05T18:45:49Z","git_url":"git://github.com/sudzhaev/sorting.git","ssh_url":"git@github.com:sudzhaev/sorting.git","clone_url":"https://github.com/sudzhaev/sorting.git","svn_url":"https://github.com/sudzhaev/sorting","homepage":null,"size":4563,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"techno-aads:sudzhaev","ref":"sudzhaev","sha":"c7d7f162a2c8a278c847e2f4bc5422716957c8df","user":{"login":"techno-aads","id":23221034,"avatar_url":"https://avatars1.githubusercontent.com/u/23221034?v=4","gravatar_id":"","url":"https://api.github.com/users/techno-aads","html_url":"https://github.com/techno-aads","followers_url":"https://api.github.com/users/techno-aads/followers","following_url":"https://api.github.com/users/techno-aads/following{/other_user}","gists_url":"https://api.github.com/users/techno-aads/gists{/gist_id}","starred_url":"https://api.github.com/users/techno-aads/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/techno-aads/subscriptions","organizations_url":"https://api.github.com/users/techno-aads/orgs","repos_url":"https://api.github.com/users/techno-aads/repos","events_url":"https://api.github.com/users/techno-aads/events{/privacy}","received_events_url":"https://api.github.com/users/techno-aads/received_events","type":"User","site_admin":false},"repo":{"id":72670520,"name":"sorting","full_name":"techno-aads/sorting","owner":{"login":"techno-aads","id":23221034,"avatar_url":"https://avatars1.githubusercontent.com/u/23221034?v=4","gravatar_id":"","url":"https://api.github.com/users/techno-aads","html_url":"https://github.com/techno-aads","followers_url":"https://api.github.com/users/techno-aads/followers","following_url":"https://api.github.com/users/techno-aads/following{/other_user}","gists_url":"https://api.github.com/users/techno-aads/gists{/gist_id}","starred_url":"https://api.github.com/users/techno-aads/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/techno-aads/subscriptions","organizations_url":"https://api.github.com/users/techno-aads/orgs","repos_url":"https://api.github.com/users/techno-aads/repos","events_url":"https://api.github.com/users/techno-aads/events{/privacy}","received_events_url":"https://api.github.com/users/techno-aads/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/techno-aads/sorting","description":"Sorting benchmark","fork":false,"url":"https://api.github.com/repos/techno-aads/sorting","forks_url":"https://api.github.com/repos/techno-aads/sorting/forks","keys_url":"https://api.github.com/repos/techno-aads/sorting/keys{/key_id}","collaborators_url":"https://api.github.com/repos/techno-aads/sorting/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/techno-aads/sorting/teams","hooks_url":"https://api.github.com/repos/techno-aads/sorting/hooks","issue_events_url":"https://api.github.com/repos/techno-aads/sorting/issues/events{/number}","events_url":"https://api.github.com/repos/techno-aads/sorting/events","assignees_url":"https://api.github.com/repos/techno-aads/sorting/assignees{/user}","branches_url":"https://api.github.com/repos/techno-aads/sorting/branches{/branch}","tags_url":"https://api.github.com/repos/techno-aads/sorting/tags","blobs_url":"https://api.github.com/repos/techno-aads/sorting/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/techno-aads/sorting/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/techno-aads/sorting/git/refs{/sha}","trees_url":"https://api.github.com/repos/techno-aads/sorting/git/trees{/sha}","statuses_url":"https://api.github.com/repos/techno-aads/sorting/statuses/{sha}","languages_url":"https://api.github.com/repos/techno-aads/sorting/languages","stargazers_url":"https://api.github.com/repos/techno-aads/sorting/stargazers","contributors_url":"https://api.github.com/repos/techno-aads/sorting/contributors","subscribers_url":"https://api.github.com/repos/techno-aads/sorting/subscribers","subscription_url":"https://api.github.com/repos/techno-aads/sorting/subscription","commits_url":"https://api.github.com/repos/techno-aads/sorting/commits{/sha}","git_commits_url":"https://api.github.com/repos/techno-aads/sorting/git/commits{/sha}","comments_url":"https://api.github.com/repos/techno-aads/sorting/comments{/number}","issue_comment_url":"https://api.github.com/repos/techno-aads/sorting/issues/comments{/number}","contents_url":"https://api.github.com/repos/techno-aads/sorting/contents/{+path}","compare_url":"https://api.github.com/repos/techno-aads/sorting/compare/{base}...{head}","merges_url":"https://api.github.com/repos/techno-aads/sorting/merges","archive_url":"https://api.github.com/repos/techno-aads/sorting/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/techno-aads/sorting/downloads","issues_url":"https://api.github.com/repos/techno-aads/sorting/issues{/number}","pulls_url":"https://api.github.com/repos/techno-aads/sorting/pulls{/number}","milestones_url":"https://api.github.com/repos/techno-aads/sorting/milestones{/number}","notifications_url":"https://api.github.com/repos/techno-aads/sorting/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/techno-aads/sorting/labels{/name}","releases_url":"https://api.github.com/repos/techno-aads/sorting/releases{/id}","deployments_url":"https://api.github.com/repos/techno-aads/sorting/deployments","created_at":"2016-11-02T18:43:47Z","updated_at":"2017-11-13T17:34:44Z","pushed_at":"2017-12-10T18:38:30Z","git_url":"git://github.com/techno-aads/sorting.git","ssh_url":"git@github.com:techno-aads/sorting.git","clone_url":"https://github.com/techno-aads/sorting.git","svn_url":"https://github.com/techno-aads/sorting","homepage":null,"size":4552,"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":57,"mirror_url":null,"archived":false,"open_issues_count":6,"license":null,"forks":57,"open_issues":6,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/techno-aads/sorting/pulls/42"},"html":{"href":"https://github.com/techno-aads/sorting/pull/42"},"issue":{"href":"https://api.github.com/repos/techno-aads/sorting/issues/42"},"comments":{"href":"https://api.github.com/repos/techno-aads/sorting/issues/42/comments"},"review_comments":{"href":"https://api.github.com/repos/techno-aads/sorting/pulls/42/comments"},"review_comment":{"href":"https://api.github.com/repos/techno-aads/sorting/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/techno-aads/sorting/pulls/42/commits"},"statuses":{"href":"https://api.github.com/repos/techno-aads/sorting/statuses/1e049ab44f7c3408fdd355bc5047969c792b9bc6"}},"author_association":"NONE"}}
{"actor":{"display_login":"techno-aads"}}