{"action":"created","comment":{"url":"https://api.github.com/repos/practice271/assignments/pulls/comments/43604821","id":43604821,"diff_hunk":"@@ -0,0 +1,100 @@\n+package homeworks.hw07;\n+\n+import java.util.Arrays;\n+\n+public class JavaOrderedListArray<T extends Comparable<? super T>> extends JavaOrderedList<T> {\n+    private T[] array;\n+    private int size;\n+\n+    @Override\n+    public int size() {\n+        return size;\n+    }\n+\n+    @Override\n+    public T get(int index) {\n+        return array[index];\n+    }\n+\n+    public JavaOrderedListArray() {\n+        this.array = (T[]) new Comparable[0];\n+        this.size = array.length;\n+    }\n+\n+    @Override\n+    public void add(T object) {\n+        if (size == 0) {\n+            size++;\n+            array = Arrays.copyOf(array, size);\n+            array[0] = object;\n+        } else {\n+            size++;\n+            int index = binarySearch(object);","path":"src/main/kotlin/homeworks/hw07/JavaOrderedListArray.java","position":32,"original_position":32,"commit_id":"f2a8a63d8555434fd541625d09fa34d71970292d","original_commit_id":"f2a8a63d8555434fd541625d09fa34d71970292d","user":{"login":"anlun","id":711192,"avatar_url":"https://avatars.githubusercontent.com/u/711192?v=3","gravatar_id":"","url":"https://api.github.com/users/anlun","html_url":"https://github.com/anlun","followers_url":"https://api.github.com/users/anlun/followers","following_url":"https://api.github.com/users/anlun/following{/other_user}","gists_url":"https://api.github.com/users/anlun/gists{/gist_id}","starred_url":"https://api.github.com/users/anlun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anlun/subscriptions","organizations_url":"https://api.github.com/users/anlun/orgs","repos_url":"https://api.github.com/users/anlun/repos","events_url":"https://api.github.com/users/anlun/events{/privacy}","received_events_url":"https://api.github.com/users/anlun/received_events","type":"User","site_admin":false},"body":"Где обратка того, что ключ найден?","created_at":"2015-11-02T08:22:39Z","updated_at":"2015-11-02T08:22:39Z","html_url":"https://github.com/practice271/assignments/pull/179#discussion_r43604821","pull_request_url":"https://api.github.com/repos/practice271/assignments/pulls/179","_links":{"self":{"href":"https://api.github.com/repos/practice271/assignments/pulls/comments/43604821"},"html":{"href":"https://github.com/practice271/assignments/pull/179#discussion_r43604821"},"pull_request":{"href":"https://api.github.com/repos/practice271/assignments/pulls/179"}}},"pull_request":{"url":"https://api.github.com/repos/practice271/assignments/pulls/179","id":49365853,"html_url":"https://github.com/practice271/assignments/pull/179","diff_url":"https://github.com/practice271/assignments/pull/179.diff","patch_url":"https://github.com/practice271/assignments/pull/179.patch","issue_url":"https://api.github.com/repos/practice271/assignments/issues/179","number":179,"state":"open","locked":false,"title":"hw07","user":{"login":"SlesarevIlya","id":12837200,"avatar_url":"https://avatars.githubusercontent.com/u/12837200?v=3","gravatar_id":"","url":"https://api.github.com/users/SlesarevIlya","html_url":"https://github.com/SlesarevIlya","followers_url":"https://api.github.com/users/SlesarevIlya/followers","following_url":"https://api.github.com/users/SlesarevIlya/following{/other_user}","gists_url":"https://api.github.com/users/SlesarevIlya/gists{/gist_id}","starred_url":"https://api.github.com/users/SlesarevIlya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SlesarevIlya/subscriptions","organizations_url":"https://api.github.com/users/SlesarevIlya/orgs","repos_url":"https://api.github.com/users/SlesarevIlya/repos","events_url":"https://api.github.com/users/SlesarevIlya/events{/privacy}","received_events_url":"https://api.github.com/users/SlesarevIlya/received_events","type":"User","site_admin":false},"body":null,"created_at":"2015-11-01T05:05:26Z","updated_at":"2015-11-02T08:22:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f7867599a3a939dd266efa30aee605353cc5adb9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/practice271/assignments/pulls/179/commits","review_comments_url":"https://api.github.com/repos/practice271/assignments/pulls/179/comments","review_comment_url":"https://api.github.com/repos/practice271/assignments/pulls/comments{/number}","comments_url":"https://api.github.com/repos/practice271/assignments/issues/179/comments","statuses_url":"https://api.github.com/repos/practice271/assignments/statuses/f2a8a63d8555434fd541625d09fa34d71970292d","head":{"label":"SlesarevIlya:hw07","ref":"hw07","sha":"f2a8a63d8555434fd541625d09fa34d71970292d","user":{"login":"SlesarevIlya","id":12837200,"avatar_url":"https://avatars.githubusercontent.com/u/12837200?v=3","gravatar_id":"","url":"https://api.github.com/users/SlesarevIlya","html_url":"https://github.com/SlesarevIlya","followers_url":"https://api.github.com/users/SlesarevIlya/followers","following_url":"https://api.github.com/users/SlesarevIlya/following{/other_user}","gists_url":"https://api.github.com/users/SlesarevIlya/gists{/gist_id}","starred_url":"https://api.github.com/users/SlesarevIlya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SlesarevIlya/subscriptions","organizations_url":"https://api.github.com/users/SlesarevIlya/orgs","repos_url":"https://api.github.com/users/SlesarevIlya/repos","events_url":"https://api.github.com/users/SlesarevIlya/events{/privacy}","received_events_url":"https://api.github.com/users/SlesarevIlya/received_events","type":"User","site_admin":false},"repo":{"id":42367661,"name":"assignments","full_name":"SlesarevIlya/assignments","owner":{"login":"SlesarevIlya","id":12837200,"avatar_url":"https://avatars.githubusercontent.com/u/12837200?v=3","gravatar_id":"","url":"https://api.github.com/users/SlesarevIlya","html_url":"https://github.com/SlesarevIlya","followers_url":"https://api.github.com/users/SlesarevIlya/followers","following_url":"https://api.github.com/users/SlesarevIlya/following{/other_user}","gists_url":"https://api.github.com/users/SlesarevIlya/gists{/gist_id}","starred_url":"https://api.github.com/users/SlesarevIlya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SlesarevIlya/subscriptions","organizations_url":"https://api.github.com/users/SlesarevIlya/orgs","repos_url":"https://api.github.com/users/SlesarevIlya/repos","events_url":"https://api.github.com/users/SlesarevIlya/events{/privacy}","received_events_url":"https://api.github.com/users/SlesarevIlya/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/SlesarevIlya/assignments","description":"The repository to fork and complete assignments in it.","fork":true,"url":"https://api.github.com/repos/SlesarevIlya/assignments","forks_url":"https://api.github.com/repos/SlesarevIlya/assignments/forks","keys_url":"https://api.github.com/repos/SlesarevIlya/assignments/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SlesarevIlya/assignments/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SlesarevIlya/assignments/teams","hooks_url":"https://api.github.com/repos/SlesarevIlya/assignments/hooks","issue_events_url":"https://api.github.com/repos/SlesarevIlya/assignments/issues/events{/number}","events_url":"https://api.github.com/repos/SlesarevIlya/assignments/events","assignees_url":"https://api.github.com/repos/SlesarevIlya/assignments/assignees{/user}","branches_url":"https://api.github.com/repos/SlesarevIlya/assignments/branches{/branch}","tags_url":"https://api.github.com/repos/SlesarevIlya/assignments/tags","blobs_url":"https://api.github.com/repos/SlesarevIlya/assignments/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SlesarevIlya/assignments/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SlesarevIlya/assignments/git/refs{/sha}","trees_url":"https://api.github.com/repos/SlesarevIlya/assignments/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SlesarevIlya/assignments/statuses/{sha}","languages_url":"https://api.github.com/repos/SlesarevIlya/assignments/languages","stargazers_url":"https://api.github.com/repos/SlesarevIlya/assignments/stargazers","contributors_url":"https://api.github.com/repos/SlesarevIlya/assignments/contributors","subscribers_url":"https://api.github.com/repos/SlesarevIlya/assignments/subscribers","subscription_url":"https://api.github.com/repos/SlesarevIlya/assignments/subscription","commits_url":"https://api.github.com/repos/SlesarevIlya/assignments/commits{/sha}","git_commits_url":"https://api.github.com/repos/SlesarevIlya/assignments/git/commits{/sha}","comments_url":"https://api.github.com/repos/SlesarevIlya/assignments/comments{/number}","issue_comment_url":"https://api.github.com/repos/SlesarevIlya/assignments/issues/comments{/number}","contents_url":"https://api.github.com/repos/SlesarevIlya/assignments/contents/{+path}","compare_url":"https://api.github.com/repos/SlesarevIlya/assignments/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SlesarevIlya/assignments/merges","archive_url":"https://api.github.com/repos/SlesarevIlya/assignments/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SlesarevIlya/assignments/downloads","issues_url":"https://api.github.com/repos/SlesarevIlya/assignments/issues{/number}","pulls_url":"https://api.github.com/repos/SlesarevIlya/assignments/pulls{/number}","milestones_url":"https://api.github.com/repos/SlesarevIlya/assignments/milestones{/number}","notifications_url":"https://api.github.com/repos/SlesarevIlya/assignments/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SlesarevIlya/assignments/labels{/name}","releases_url":"https://api.github.com/repos/SlesarevIlya/assignments/releases{/id}","created_at":"2015-09-12T18:13:56Z","updated_at":"2015-09-20T00:42:10Z","pushed_at":"2015-11-01T05:04:56Z","git_url":"git://github.com/SlesarevIlya/assignments.git","ssh_url":"git@github.com:SlesarevIlya/assignments.git","clone_url":"https://github.com/SlesarevIlya/assignments.git","svn_url":"https://github.com/SlesarevIlya/assignments","homepage":null,"size":346,"stargazers_count":0,"watchers_count":0,"language":"HTML","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":"practice271:master","ref":"master","sha":"9ee8f1d54094c8e9c6fcd66d847fe3e006c060c7","user":{"login":"practice271","id":14125893,"avatar_url":"https://avatars.githubusercontent.com/u/14125893?v=3","gravatar_id":"","url":"https://api.github.com/users/practice271","html_url":"https://github.com/practice271","followers_url":"https://api.github.com/users/practice271/followers","following_url":"https://api.github.com/users/practice271/following{/other_user}","gists_url":"https://api.github.com/users/practice271/gists{/gist_id}","starred_url":"https://api.github.com/users/practice271/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/practice271/subscriptions","organizations_url":"https://api.github.com/users/practice271/orgs","repos_url":"https://api.github.com/users/practice271/repos","events_url":"https://api.github.com/users/practice271/events{/privacy}","received_events_url":"https://api.github.com/users/practice271/received_events","type":"Organization","site_admin":false},"repo":{"id":41914860,"name":"assignments","full_name":"practice271/assignments","owner":{"login":"practice271","id":14125893,"avatar_url":"https://avatars.githubusercontent.com/u/14125893?v=3","gravatar_id":"","url":"https://api.github.com/users/practice271","html_url":"https://github.com/practice271","followers_url":"https://api.github.com/users/practice271/followers","following_url":"https://api.github.com/users/practice271/following{/other_user}","gists_url":"https://api.github.com/users/practice271/gists{/gist_id}","starred_url":"https://api.github.com/users/practice271/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/practice271/subscriptions","organizations_url":"https://api.github.com/users/practice271/orgs","repos_url":"https://api.github.com/users/practice271/repos","events_url":"https://api.github.com/users/practice271/events{/privacy}","received_events_url":"https://api.github.com/users/practice271/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/practice271/assignments","description":"The repository to fork and complete assignments in it.","fork":false,"url":"https://api.github.com/repos/practice271/assignments","forks_url":"https://api.github.com/repos/practice271/assignments/forks","keys_url":"https://api.github.com/repos/practice271/assignments/keys{/key_id}","collaborators_url":"https://api.github.com/repos/practice271/assignments/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/practice271/assignments/teams","hooks_url":"https://api.github.com/repos/practice271/assignments/hooks","issue_events_url":"https://api.github.com/repos/practice271/assignments/issues/events{/number}","events_url":"https://api.github.com/repos/practice271/assignments/events","assignees_url":"https://api.github.com/repos/practice271/assignments/assignees{/user}","branches_url":"https://api.github.com/repos/practice271/assignments/branches{/branch}","tags_url":"https://api.github.com/repos/practice271/assignments/tags","blobs_url":"https://api.github.com/repos/practice271/assignments/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/practice271/assignments/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/practice271/assignments/git/refs{/sha}","trees_url":"https://api.github.com/repos/practice271/assignments/git/trees{/sha}","statuses_url":"https://api.github.com/repos/practice271/assignments/statuses/{sha}","languages_url":"https://api.github.com/repos/practice271/assignments/languages","stargazers_url":"https://api.github.com/repos/practice271/assignments/stargazers","contributors_url":"https://api.github.com/repos/practice271/assignments/contributors","subscribers_url":"https://api.github.com/repos/practice271/assignments/subscribers","subscription_url":"https://api.github.com/repos/practice271/assignments/subscription","commits_url":"https://api.github.com/repos/practice271/assignments/commits{/sha}","git_commits_url":"https://api.github.com/repos/practice271/assignments/git/commits{/sha}","comments_url":"https://api.github.com/repos/practice271/assignments/comments{/number}","issue_comment_url":"https://api.github.com/repos/practice271/assignments/issues/comments{/number}","contents_url":"https://api.github.com/repos/practice271/assignments/contents/{+path}","compare_url":"https://api.github.com/repos/practice271/assignments/compare/{base}...{head}","merges_url":"https://api.github.com/repos/practice271/assignments/merges","archive_url":"https://api.github.com/repos/practice271/assignments/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/practice271/assignments/downloads","issues_url":"https://api.github.com/repos/practice271/assignments/issues{/number}","pulls_url":"https://api.github.com/repos/practice271/assignments/pulls{/number}","milestones_url":"https://api.github.com/repos/practice271/assignments/milestones{/number}","notifications_url":"https://api.github.com/repos/practice271/assignments/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/practice271/assignments/labels{/name}","releases_url":"https://api.github.com/repos/practice271/assignments/releases{/id}","created_at":"2015-09-04T12:36:14Z","updated_at":"2015-11-01T12:55:25Z","pushed_at":"2015-11-01T17:44:28Z","git_url":"git://github.com/practice271/assignments.git","ssh_url":"git@github.com:practice271/assignments.git","clone_url":"https://github.com/practice271/assignments.git","svn_url":"https://github.com/practice271/assignments","homepage":null,"size":6404,"stargazers_count":0,"watchers_count":0,"language":"Kotlin","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":20,"mirror_url":null,"open_issues_count":36,"forks":20,"open_issues":36,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/practice271/assignments/pulls/179"},"html":{"href":"https://github.com/practice271/assignments/pull/179"},"issue":{"href":"https://api.github.com/repos/practice271/assignments/issues/179"},"comments":{"href":"https://api.github.com/repos/practice271/assignments/issues/179/comments"},"review_comments":{"href":"https://api.github.com/repos/practice271/assignments/pulls/179/comments"},"review_comment":{"href":"https://api.github.com/repos/practice271/assignments/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/practice271/assignments/pulls/179/commits"},"statuses":{"href":"https://api.github.com/repos/practice271/assignments/statuses/f2a8a63d8555434fd541625d09fa34d71970292d"}}}}