{"action":"created","comment":{"url":"https://api.github.com/repos/angelikamukhina/JavaHomeTasks/pulls/comments/106816449","pull_request_review_id":27756840,"id":106816449,"diff_hunk":"@@ -0,0 +1,90 @@\n+public class DictionaryImpl implements Dictionary {\n+    private int tableSize = 500; //initial value\n+    private List [] table = new List[tableSize];\n+    private int size = 0;\n+\n+    public int size() {\n+        return size;\n+    }\n+\n+    public boolean contains(String key) {\n+        return get(key) != null;\n+    }\n+\n+    public String get(String key) {\n+        int hash = hash(key, tableSize);\n+\n+        List lst = table[hash];\n+        if(lst == null) {\n+            return null;\n+        }\n+        return  lst.valueByKey(key);\n+    }\n+\n+    public String put(String key, String value) {\n+\n+        int hash = hash(key, tableSize);\n+\n+        if(table[hash] == null) {\n+            table[hash] = new List();\n+        }\n+        String foundValue = table[hash].findAndReplace(key, value);\n+        if(foundValue == null) {\n+            table[hash].addFront(key, value);\n+            size++;\n+        }\n+        if(Math.abs(size - 4*tableSize/3) < 0.001) {\n+            reHash();\n+        }\n+        return foundValue;\n+    }\n+\n+    public String remove(String key) {\n+        int hash = hash(key, tableSize);\n+        String deletedValue = null;\n+        if(contains(key)) {\n+            deletedValue = table[hash].deleteNode(key);\n+            size--;\n+        }\n+        return deletedValue;\n+    }\n+\n+    public void clear() {\n+        for(int i = 0; i < tableSize; i++) {\n+            table[i] = null;\n+        }\n+        size = 0;","path":"Task2/src/main/java/DictionaryImpl.java","position":56,"original_position":56,"commit_id":"663f9f7ab920731dfc5766a492a24a51f8135996","original_commit_id":"663f9f7ab920731dfc5766a492a24a51f8135996","user":{"login":"sproshev","id":4990763,"avatar_url":"https://avatars0.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":"а размер table уменьшить?","created_at":"2017-03-19T19:50:34Z","updated_at":"2017-03-19T19:55:10Z","html_url":"https://github.com/angelikamukhina/JavaHomeTasks/pull/2#discussion_r106816449","pull_request_url":"https://api.github.com/repos/angelikamukhina/JavaHomeTasks/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/angelikamukhina/JavaHomeTasks/pulls/comments/106816449"},"html":{"href":"https://github.com/angelikamukhina/JavaHomeTasks/pull/2#discussion_r106816449"},"pull_request":{"href":"https://api.github.com/repos/angelikamukhina/JavaHomeTasks/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/angelikamukhina/JavaHomeTasks/pulls/2","id":109951428,"html_url":"https://github.com/angelikamukhina/JavaHomeTasks/pull/2","diff_url":"https://github.com/angelikamukhina/JavaHomeTasks/pull/2.diff","patch_url":"https://github.com/angelikamukhina/JavaHomeTasks/pull/2.patch","issue_url":"https://api.github.com/repos/angelikamukhina/JavaHomeTasks/issues/2","number":2,"state":"open","locked":false,"title":"Java 05. ДЗ 02, Мухина Анжелика","user":{"login":"angelikamukhina","id":22622268,"avatar_url":"https://avatars0.githubusercontent.com/u/22622268?v=3","gravatar_id":"","url":"https://api.github.com/users/angelikamukhina","html_url":"https://github.com/angelikamukhina","followers_url":"https://api.github.com/users/angelikamukhina/followers","following_url":"https://api.github.com/users/angelikamukhina/following{/other_user}","gists_url":"https://api.github.com/users/angelikamukhina/gists{/gist_id}","starred_url":"https://api.github.com/users/angelikamukhina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angelikamukhina/subscriptions","organizations_url":"https://api.github.com/users/angelikamukhina/orgs","repos_url":"https://api.github.com/users/angelikamukhina/repos","events_url":"https://api.github.com/users/angelikamukhina/events{/privacy}","received_events_url":"https://api.github.com/users/angelikamukhina/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-03-09T16:25:34Z","updated_at":"2017-03-19T19:55:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f5672d9a38b92c1e0badd37eeebada31fc3e899d","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/angelikamukhina/JavaHomeTasks/pulls/2/commits","review_comments_url":"https://api.github.com/repos/angelikamukhina/JavaHomeTasks/pulls/2/comments","review_comment_url":"https://api.github.com/repos/angelikamukhina/JavaHomeTasks/pulls/comments{/number}","comments_url":"https://api.github.com/repos/angelikamukhina/JavaHomeTasks/issues/2/comments","statuses_url":"https://api.github.com/repos/angelikamukhina/JavaHomeTasks/statuses/663f9f7ab920731dfc5766a492a24a51f8135996","head":{"label":"angelikamukhina:task2","ref":"task2","sha":"663f9f7ab920731dfc5766a492a24a51f8135996","user":{"login":"angelikamukhina","id":22622268,"avatar_url":"https://avatars0.githubusercontent.com/u/22622268?v=3","gravatar_id":"","url":"https://api.github.com/users/angelikamukhina","html_url":"https://github.com/angelikamukhina","followers_url":"https://api.github.com/users/angelikamukhina/followers","following_url":"https://api.github.com/users/angelikamukhina/following{/other_user}","gists_url":"https://api.github.com/users/angelikamukhina/gists{/gist_id}","starred_url":"https://api.github.com/users/angelikamukhina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angelikamukhina/subscriptions","organizations_url":"https://api.github.com/users/angelikamukhina/orgs","repos_url":"https://api.github.com/users/angelikamukhina/repos","events_url":"https://api.github.com/users/angelikamukhina/events{/privacy}","received_events_url":"https://api.github.com/users/angelikamukhina/received_events","type":"User","site_admin":false},"repo":{"id":82930589,"name":"JavaHomeTasks","full_name":"angelikamukhina/JavaHomeTasks","owner":{"login":"angelikamukhina","id":22622268,"avatar_url":"https://avatars0.githubusercontent.com/u/22622268?v=3","gravatar_id":"","url":"https://api.github.com/users/angelikamukhina","html_url":"https://github.com/angelikamukhina","followers_url":"https://api.github.com/users/angelikamukhina/followers","following_url":"https://api.github.com/users/angelikamukhina/following{/other_user}","gists_url":"https://api.github.com/users/angelikamukhina/gists{/gist_id}","starred_url":"https://api.github.com/users/angelikamukhina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angelikamukhina/subscriptions","organizations_url":"https://api.github.com/users/angelikamukhina/orgs","repos_url":"https://api.github.com/users/angelikamukhina/repos","events_url":"https://api.github.com/users/angelikamukhina/events{/privacy}","received_events_url":"https://api.github.com/users/angelikamukhina/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/angelikamukhina/JavaHomeTasks","description":null,"fork":false,"url":"https://api.github.com/repos/angelikamukhina/JavaHomeTasks","forks_url":"https://api.github.com/repos/angelikamukhina/JavaHomeTasks/forks","keys_url":"https://api.github.com/repos/angelikamukhina/JavaHomeTasks/keys{/key_id}","collaborators_url":"https://api.github.com/repos/angelikamukhina/JavaHomeTasks/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/angelikamukhina/JavaHomeTasks/teams","hooks_url":"https://api.github.com/repos/angelikamukhina/JavaHomeTasks/hooks","issue_events_url":"https://api.github.com/repos/angelikamukhina/JavaHomeTasks/issues/events{/number}","events_url":"https://api.github.com/repos/angelikamukhina/JavaHomeTasks/events","assignees_url":"https://api.github.com/repos/angelikamukhina/JavaHomeTasks/assignees{/user}","branches_url":"https://api.github.com/repos/angelikamukhina/JavaHomeTasks/branches{/branch}","tags_url":"https://api.github.com/repos/angelikamukhina/JavaHomeTasks/tags","blobs_url":"https://api.github.com/repos/angelikamukhina/JavaHomeTasks/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/angelikamukhina/JavaHomeTasks/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/angelikamukhina/JavaHomeTasks/git/refs{/sha}","trees_url":"https://api.github.com/repos/angelikamukhina/JavaHomeTasks/git/trees{/sha}","statuses_url":"https://api.github.com/repos/angelikamukhina/JavaHomeTasks/statuses/{sha}","languages_url":"https://api.github.com/repos/angelikamukhina/JavaHomeTasks/languages","stargazers_url":"https://api.github.com/repos/angelikamukhina/JavaHomeTasks/stargazers","contributors_url":"https://api.github.com/repos/angelikamukhina/JavaHomeTasks/contributors","subscribers_url":"https://api.github.com/repos/angelikamukhina/JavaHomeTasks/subscribers","subscription_url":"https://api.github.com/repos/angelikamukhina/JavaHomeTasks/subscription","commits_url":"https://api.github.com/repos/angelikamukhina/JavaHomeTasks/commits{/sha}","git_commits_url":"https://api.github.com/repos/angelikamukhina/JavaHomeTasks/git/commits{/sha}","comments_url":"https://api.github.com/repos/angelikamukhina/JavaHomeTasks/comments{/number}","issue_comment_url":"https://api.github.com/repos/angelikamukhina/JavaHomeTasks/issues/comments{/number}","contents_url":"https://api.github.com/repos/angelikamukhina/JavaHomeTasks/contents/{+path}","compare_url":"https://api.github.com/repos/angelikamukhina/JavaHomeTasks/compare/{base}...{head}","merges_url":"https://api.github.com/repos/angelikamukhina/JavaHomeTasks/merges","archive_url":"https://api.github.com/repos/angelikamukhina/JavaHomeTasks/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/angelikamukhina/JavaHomeTasks/downloads","issues_url":"https://api.github.com/repos/angelikamukhina/JavaHomeTasks/issues{/number}","pulls_url":"https://api.github.com/repos/angelikamukhina/JavaHomeTasks/pulls{/number}","milestones_url":"https://api.github.com/repos/angelikamukhina/JavaHomeTasks/milestones{/number}","notifications_url":"https://api.github.com/repos/angelikamukhina/JavaHomeTasks/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/angelikamukhina/JavaHomeTasks/labels{/name}","releases_url":"https://api.github.com/repos/angelikamukhina/JavaHomeTasks/releases{/id}","deployments_url":"https://api.github.com/repos/angelikamukhina/JavaHomeTasks/deployments","created_at":"2017-02-23T13:37:23Z","updated_at":"2017-02-23T13:37:23Z","pushed_at":"2017-03-16T20:21:24Z","git_url":"git://github.com/angelikamukhina/JavaHomeTasks.git","ssh_url":"git@github.com:angelikamukhina/JavaHomeTasks.git","clone_url":"https://github.com/angelikamukhina/JavaHomeTasks.git","svn_url":"https://github.com/angelikamukhina/JavaHomeTasks","homepage":null,"size":92,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"angelikamukhina:master","ref":"master","sha":"dd6638420fca3c5664fa6480270c01025e75a9eb","user":{"login":"angelikamukhina","id":22622268,"avatar_url":"https://avatars0.githubusercontent.com/u/22622268?v=3","gravatar_id":"","url":"https://api.github.com/users/angelikamukhina","html_url":"https://github.com/angelikamukhina","followers_url":"https://api.github.com/users/angelikamukhina/followers","following_url":"https://api.github.com/users/angelikamukhina/following{/other_user}","gists_url":"https://api.github.com/users/angelikamukhina/gists{/gist_id}","starred_url":"https://api.github.com/users/angelikamukhina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angelikamukhina/subscriptions","organizations_url":"https://api.github.com/users/angelikamukhina/orgs","repos_url":"https://api.github.com/users/angelikamukhina/repos","events_url":"https://api.github.com/users/angelikamukhina/events{/privacy}","received_events_url":"https://api.github.com/users/angelikamukhina/received_events","type":"User","site_admin":false},"repo":{"id":82930589,"name":"JavaHomeTasks","full_name":"angelikamukhina/JavaHomeTasks","owner":{"login":"angelikamukhina","id":22622268,"avatar_url":"https://avatars0.githubusercontent.com/u/22622268?v=3","gravatar_id":"","url":"https://api.github.com/users/angelikamukhina","html_url":"https://github.com/angelikamukhina","followers_url":"https://api.github.com/users/angelikamukhina/followers","following_url":"https://api.github.com/users/angelikamukhina/following{/other_user}","gists_url":"https://api.github.com/users/angelikamukhina/gists{/gist_id}","starred_url":"https://api.github.com/users/angelikamukhina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angelikamukhina/subscriptions","organizations_url":"https://api.github.com/users/angelikamukhina/orgs","repos_url":"https://api.github.com/users/angelikamukhina/repos","events_url":"https://api.github.com/users/angelikamukhina/events{/privacy}","received_events_url":"https://api.github.com/users/angelikamukhina/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/angelikamukhina/JavaHomeTasks","description":null,"fork":false,"url":"https://api.github.com/repos/angelikamukhina/JavaHomeTasks","forks_url":"https://api.github.com/repos/angelikamukhina/JavaHomeTasks/forks","keys_url":"https://api.github.com/repos/angelikamukhina/JavaHomeTasks/keys{/key_id}","collaborators_url":"https://api.github.com/repos/angelikamukhina/JavaHomeTasks/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/angelikamukhina/JavaHomeTasks/teams","hooks_url":"https://api.github.com/repos/angelikamukhina/JavaHomeTasks/hooks","issue_events_url":"https://api.github.com/repos/angelikamukhina/JavaHomeTasks/issues/events{/number}","events_url":"https://api.github.com/repos/angelikamukhina/JavaHomeTasks/events","assignees_url":"https://api.github.com/repos/angelikamukhina/JavaHomeTasks/assignees{/user}","branches_url":"https://api.github.com/repos/angelikamukhina/JavaHomeTasks/branches{/branch}","tags_url":"https://api.github.com/repos/angelikamukhina/JavaHomeTasks/tags","blobs_url":"https://api.github.com/repos/angelikamukhina/JavaHomeTasks/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/angelikamukhina/JavaHomeTasks/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/angelikamukhina/JavaHomeTasks/git/refs{/sha}","trees_url":"https://api.github.com/repos/angelikamukhina/JavaHomeTasks/git/trees{/sha}","statuses_url":"https://api.github.com/repos/angelikamukhina/JavaHomeTasks/statuses/{sha}","languages_url":"https://api.github.com/repos/angelikamukhina/JavaHomeTasks/languages","stargazers_url":"https://api.github.com/repos/angelikamukhina/JavaHomeTasks/stargazers","contributors_url":"https://api.github.com/repos/angelikamukhina/JavaHomeTasks/contributors","subscribers_url":"https://api.github.com/repos/angelikamukhina/JavaHomeTasks/subscribers","subscription_url":"https://api.github.com/repos/angelikamukhina/JavaHomeTasks/subscription","commits_url":"https://api.github.com/repos/angelikamukhina/JavaHomeTasks/commits{/sha}","git_commits_url":"https://api.github.com/repos/angelikamukhina/JavaHomeTasks/git/commits{/sha}","comments_url":"https://api.github.com/repos/angelikamukhina/JavaHomeTasks/comments{/number}","issue_comment_url":"https://api.github.com/repos/angelikamukhina/JavaHomeTasks/issues/comments{/number}","contents_url":"https://api.github.com/repos/angelikamukhina/JavaHomeTasks/contents/{+path}","compare_url":"https://api.github.com/repos/angelikamukhina/JavaHomeTasks/compare/{base}...{head}","merges_url":"https://api.github.com/repos/angelikamukhina/JavaHomeTasks/merges","archive_url":"https://api.github.com/repos/angelikamukhina/JavaHomeTasks/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/angelikamukhina/JavaHomeTasks/downloads","issues_url":"https://api.github.com/repos/angelikamukhina/JavaHomeTasks/issues{/number}","pulls_url":"https://api.github.com/repos/angelikamukhina/JavaHomeTasks/pulls{/number}","milestones_url":"https://api.github.com/repos/angelikamukhina/JavaHomeTasks/milestones{/number}","notifications_url":"https://api.github.com/repos/angelikamukhina/JavaHomeTasks/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/angelikamukhina/JavaHomeTasks/labels{/name}","releases_url":"https://api.github.com/repos/angelikamukhina/JavaHomeTasks/releases{/id}","deployments_url":"https://api.github.com/repos/angelikamukhina/JavaHomeTasks/deployments","created_at":"2017-02-23T13:37:23Z","updated_at":"2017-02-23T13:37:23Z","pushed_at":"2017-03-16T20:21:24Z","git_url":"git://github.com/angelikamukhina/JavaHomeTasks.git","ssh_url":"git@github.com:angelikamukhina/JavaHomeTasks.git","clone_url":"https://github.com/angelikamukhina/JavaHomeTasks.git","svn_url":"https://github.com/angelikamukhina/JavaHomeTasks","homepage":null,"size":92,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/angelikamukhina/JavaHomeTasks/pulls/2"},"html":{"href":"https://github.com/angelikamukhina/JavaHomeTasks/pull/2"},"issue":{"href":"https://api.github.com/repos/angelikamukhina/JavaHomeTasks/issues/2"},"comments":{"href":"https://api.github.com/repos/angelikamukhina/JavaHomeTasks/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/angelikamukhina/JavaHomeTasks/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/angelikamukhina/JavaHomeTasks/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/angelikamukhina/JavaHomeTasks/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/angelikamukhina/JavaHomeTasks/statuses/663f9f7ab920731dfc5766a492a24a51f8135996"}}}}
{"actor":{"display_login":"sproshev"}}