{"action":"created","comment":{"url":"https://api.github.com/repos/SberTechJavaSchool/Homework/pulls/comments/177096790","pull_request_review_id":106909967,"id":177096790,"diff_hunk":"@@ -0,0 +1,99 @@\n+package ru.sberbank.homework.bedarev.externalization;\n+\n+import ru.sberbank.homework.common.CachePathProvider;\n+import ru.sberbank.homework.common.City;\n+import ru.sberbank.homework.common.Route;\n+import ru.sberbank.homework.common.RouteService;\n+\n+import java.io.*;\n+import java.time.LocalDate;\n+import java.util.HashMap;\n+import java.util.List;\n+import java.util.UUID;\n+\n+\n+public class ExternalizeRouteService extends RouteService<City, Route<City>> {\n+    private HashMap<String, String> routeHashMap = new HashMap<>();\n+    private String newFilePath;\n+    private String uuid;\n+    private Long timeSerialize;\n+    private Long timeDeserialize;\n+\n+    public ExternalizeRouteService(CachePathProvider cachePathProvider) {\n+        super(cachePathProvider, false);\n+    }\n+\n+    @Override\n+    public Route<City> getRoute(String from, String to) {\n+        String key = from + \"_\" + to;\n+        String filePath = routeHashMap.get(key);\n+        Route<City> route = null;\n+\n+        if (filePath == null) {\n+            newFilePath = pathProvider.getCacheDirectoryPath() + File.separatorChar + from + \"_\" + to + \".dat\";\n+            route = super.getRoute(from, to);\n+            routeHashMap.put(key, newFilePath);\n+        }\n+\n+        if (filePath != null) {","path":"hw07/src/main/java/ru/sberbank/homework/bedarev/externalization/ExternalizeRouteService.java","position":38,"original_position":38,"commit_id":"219c6cdb1f251e8302aabb9d4dc1492b44e286ae","original_commit_id":"ebce9bed8ef8c77aeea71ecb49d4f55471bc36ca","user":{"login":"bormoshka","id":1025327,"avatar_url":"https://avatars3.githubusercontent.com/u/1025327?v=4","gravatar_id":"","url":"https://api.github.com/users/bormoshka","html_url":"https://github.com/bormoshka","followers_url":"https://api.github.com/users/bormoshka/followers","following_url":"https://api.github.com/users/bormoshka/following{/other_user}","gists_url":"https://api.github.com/users/bormoshka/gists{/gist_id}","starred_url":"https://api.github.com/users/bormoshka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bormoshka/subscriptions","organizations_url":"https://api.github.com/users/bormoshka/orgs","repos_url":"https://api.github.com/users/bormoshka/repos","events_url":"https://api.github.com/users/bormoshka/events{/privacy}","received_events_url":"https://api.github.com/users/bormoshka/received_events","type":"User","site_admin":false},"body":"так... а что-то я не вижу где он экстернализируется.","created_at":"2018-03-26T13:51:17Z","updated_at":"2018-03-26T13:51:23Z","html_url":"https://github.com/SberTechJavaSchool/Homework/pull/162#discussion_r177096790","pull_request_url":"https://api.github.com/repos/SberTechJavaSchool/Homework/pulls/162","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/SberTechJavaSchool/Homework/pulls/comments/177096790"},"html":{"href":"https://github.com/SberTechJavaSchool/Homework/pull/162#discussion_r177096790"},"pull_request":{"href":"https://api.github.com/repos/SberTechJavaSchool/Homework/pulls/162"}},"in_reply_to_id":176914887},"pull_request":{"url":"https://api.github.com/repos/SberTechJavaSchool/Homework/pulls/162","id":175777659,"html_url":"https://github.com/SberTechJavaSchool/Homework/pull/162","diff_url":"https://github.com/SberTechJavaSchool/Homework/pull/162.diff","patch_url":"https://github.com/SberTechJavaSchool/Homework/pull/162.patch","issue_url":"https://api.github.com/repos/SberTechJavaSchool/Homework/issues/162","number":162,"state":"open","locked":false,"title":"task 4 and 7 bedarev","user":{"login":"evbedarev","id":23324033,"avatar_url":"https://avatars3.githubusercontent.com/u/23324033?v=4","gravatar_id":"","url":"https://api.github.com/users/evbedarev","html_url":"https://github.com/evbedarev","followers_url":"https://api.github.com/users/evbedarev/followers","following_url":"https://api.github.com/users/evbedarev/following{/other_user}","gists_url":"https://api.github.com/users/evbedarev/gists{/gist_id}","starred_url":"https://api.github.com/users/evbedarev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evbedarev/subscriptions","organizations_url":"https://api.github.com/users/evbedarev/orgs","repos_url":"https://api.github.com/users/evbedarev/repos","events_url":"https://api.github.com/users/evbedarev/events{/privacy}","received_events_url":"https://api.github.com/users/evbedarev/received_events","type":"User","site_admin":false},"body":"homework","created_at":"2018-03-18T22:34:10Z","updated_at":"2018-03-26T13:51:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bb6527634d1943be6a7ce3f0e969dd0fa6a23b13","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/SberTechJavaSchool/Homework/pulls/162/commits","review_comments_url":"https://api.github.com/repos/SberTechJavaSchool/Homework/pulls/162/comments","review_comment_url":"https://api.github.com/repos/SberTechJavaSchool/Homework/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SberTechJavaSchool/Homework/issues/162/comments","statuses_url":"https://api.github.com/repos/SberTechJavaSchool/Homework/statuses/219c6cdb1f251e8302aabb9d4dc1492b44e286ae","head":{"label":"evbedarev:task_4_and_7","ref":"task_4_and_7","sha":"219c6cdb1f251e8302aabb9d4dc1492b44e286ae","user":{"login":"evbedarev","id":23324033,"avatar_url":"https://avatars3.githubusercontent.com/u/23324033?v=4","gravatar_id":"","url":"https://api.github.com/users/evbedarev","html_url":"https://github.com/evbedarev","followers_url":"https://api.github.com/users/evbedarev/followers","following_url":"https://api.github.com/users/evbedarev/following{/other_user}","gists_url":"https://api.github.com/users/evbedarev/gists{/gist_id}","starred_url":"https://api.github.com/users/evbedarev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evbedarev/subscriptions","organizations_url":"https://api.github.com/users/evbedarev/orgs","repos_url":"https://api.github.com/users/evbedarev/repos","events_url":"https://api.github.com/users/evbedarev/events{/privacy}","received_events_url":"https://api.github.com/users/evbedarev/received_events","type":"User","site_admin":false},"repo":{"id":125197021,"name":"Homework","full_name":"evbedarev/Homework","owner":{"login":"evbedarev","id":23324033,"avatar_url":"https://avatars3.githubusercontent.com/u/23324033?v=4","gravatar_id":"","url":"https://api.github.com/users/evbedarev","html_url":"https://github.com/evbedarev","followers_url":"https://api.github.com/users/evbedarev/followers","following_url":"https://api.github.com/users/evbedarev/following{/other_user}","gists_url":"https://api.github.com/users/evbedarev/gists{/gist_id}","starred_url":"https://api.github.com/users/evbedarev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evbedarev/subscriptions","organizations_url":"https://api.github.com/users/evbedarev/orgs","repos_url":"https://api.github.com/users/evbedarev/repos","events_url":"https://api.github.com/users/evbedarev/events{/privacy}","received_events_url":"https://api.github.com/users/evbedarev/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/evbedarev/Homework","description":"Домашняя работа","fork":true,"url":"https://api.github.com/repos/evbedarev/Homework","forks_url":"https://api.github.com/repos/evbedarev/Homework/forks","keys_url":"https://api.github.com/repos/evbedarev/Homework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/evbedarev/Homework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/evbedarev/Homework/teams","hooks_url":"https://api.github.com/repos/evbedarev/Homework/hooks","issue_events_url":"https://api.github.com/repos/evbedarev/Homework/issues/events{/number}","events_url":"https://api.github.com/repos/evbedarev/Homework/events","assignees_url":"https://api.github.com/repos/evbedarev/Homework/assignees{/user}","branches_url":"https://api.github.com/repos/evbedarev/Homework/branches{/branch}","tags_url":"https://api.github.com/repos/evbedarev/Homework/tags","blobs_url":"https://api.github.com/repos/evbedarev/Homework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/evbedarev/Homework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/evbedarev/Homework/git/refs{/sha}","trees_url":"https://api.github.com/repos/evbedarev/Homework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/evbedarev/Homework/statuses/{sha}","languages_url":"https://api.github.com/repos/evbedarev/Homework/languages","stargazers_url":"https://api.github.com/repos/evbedarev/Homework/stargazers","contributors_url":"https://api.github.com/repos/evbedarev/Homework/contributors","subscribers_url":"https://api.github.com/repos/evbedarev/Homework/subscribers","subscription_url":"https://api.github.com/repos/evbedarev/Homework/subscription","commits_url":"https://api.github.com/repos/evbedarev/Homework/commits{/sha}","git_commits_url":"https://api.github.com/repos/evbedarev/Homework/git/commits{/sha}","comments_url":"https://api.github.com/repos/evbedarev/Homework/comments{/number}","issue_comment_url":"https://api.github.com/repos/evbedarev/Homework/issues/comments{/number}","contents_url":"https://api.github.com/repos/evbedarev/Homework/contents/{+path}","compare_url":"https://api.github.com/repos/evbedarev/Homework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/evbedarev/Homework/merges","archive_url":"https://api.github.com/repos/evbedarev/Homework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/evbedarev/Homework/downloads","issues_url":"https://api.github.com/repos/evbedarev/Homework/issues{/number}","pulls_url":"https://api.github.com/repos/evbedarev/Homework/pulls{/number}","milestones_url":"https://api.github.com/repos/evbedarev/Homework/milestones{/number}","notifications_url":"https://api.github.com/repos/evbedarev/Homework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/evbedarev/Homework/labels{/name}","releases_url":"https://api.github.com/repos/evbedarev/Homework/releases{/id}","deployments_url":"https://api.github.com/repos/evbedarev/Homework/deployments","created_at":"2018-03-14T10:41:32Z","updated_at":"2018-03-14T10:41:34Z","pushed_at":"2018-03-26T09:25:20Z","git_url":"git://github.com/evbedarev/Homework.git","ssh_url":"git@github.com:evbedarev/Homework.git","clone_url":"https://github.com/evbedarev/Homework.git","svn_url":"https://github.com/evbedarev/Homework","homepage":null,"size":677,"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":"tasks"}},"base":{"label":"SberTechJavaSchool:bedarev","ref":"bedarev","sha":"27a82eb4dedc852a299ac067e921bbfbb4c104ac","user":{"login":"SberTechJavaSchool","id":36043895,"avatar_url":"https://avatars3.githubusercontent.com/u/36043895?v=4","gravatar_id":"","url":"https://api.github.com/users/SberTechJavaSchool","html_url":"https://github.com/SberTechJavaSchool","followers_url":"https://api.github.com/users/SberTechJavaSchool/followers","following_url":"https://api.github.com/users/SberTechJavaSchool/following{/other_user}","gists_url":"https://api.github.com/users/SberTechJavaSchool/gists{/gist_id}","starred_url":"https://api.github.com/users/SberTechJavaSchool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SberTechJavaSchool/subscriptions","organizations_url":"https://api.github.com/users/SberTechJavaSchool/orgs","repos_url":"https://api.github.com/users/SberTechJavaSchool/repos","events_url":"https://api.github.com/users/SberTechJavaSchool/events{/privacy}","received_events_url":"https://api.github.com/users/SberTechJavaSchool/received_events","type":"Organization","site_admin":false},"repo":{"id":120473051,"name":"Homework","full_name":"SberTechJavaSchool/Homework","owner":{"login":"SberTechJavaSchool","id":36043895,"avatar_url":"https://avatars3.githubusercontent.com/u/36043895?v=4","gravatar_id":"","url":"https://api.github.com/users/SberTechJavaSchool","html_url":"https://github.com/SberTechJavaSchool","followers_url":"https://api.github.com/users/SberTechJavaSchool/followers","following_url":"https://api.github.com/users/SberTechJavaSchool/following{/other_user}","gists_url":"https://api.github.com/users/SberTechJavaSchool/gists{/gist_id}","starred_url":"https://api.github.com/users/SberTechJavaSchool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SberTechJavaSchool/subscriptions","organizations_url":"https://api.github.com/users/SberTechJavaSchool/orgs","repos_url":"https://api.github.com/users/SberTechJavaSchool/repos","events_url":"https://api.github.com/users/SberTechJavaSchool/events{/privacy}","received_events_url":"https://api.github.com/users/SberTechJavaSchool/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SberTechJavaSchool/Homework","description":"Домашняя работа","fork":false,"url":"https://api.github.com/repos/SberTechJavaSchool/Homework","forks_url":"https://api.github.com/repos/SberTechJavaSchool/Homework/forks","keys_url":"https://api.github.com/repos/SberTechJavaSchool/Homework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SberTechJavaSchool/Homework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SberTechJavaSchool/Homework/teams","hooks_url":"https://api.github.com/repos/SberTechJavaSchool/Homework/hooks","issue_events_url":"https://api.github.com/repos/SberTechJavaSchool/Homework/issues/events{/number}","events_url":"https://api.github.com/repos/SberTechJavaSchool/Homework/events","assignees_url":"https://api.github.com/repos/SberTechJavaSchool/Homework/assignees{/user}","branches_url":"https://api.github.com/repos/SberTechJavaSchool/Homework/branches{/branch}","tags_url":"https://api.github.com/repos/SberTechJavaSchool/Homework/tags","blobs_url":"https://api.github.com/repos/SberTechJavaSchool/Homework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SberTechJavaSchool/Homework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SberTechJavaSchool/Homework/git/refs{/sha}","trees_url":"https://api.github.com/repos/SberTechJavaSchool/Homework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SberTechJavaSchool/Homework/statuses/{sha}","languages_url":"https://api.github.com/repos/SberTechJavaSchool/Homework/languages","stargazers_url":"https://api.github.com/repos/SberTechJavaSchool/Homework/stargazers","contributors_url":"https://api.github.com/repos/SberTechJavaSchool/Homework/contributors","subscribers_url":"https://api.github.com/repos/SberTechJavaSchool/Homework/subscribers","subscription_url":"https://api.github.com/repos/SberTechJavaSchool/Homework/subscription","commits_url":"https://api.github.com/repos/SberTechJavaSchool/Homework/commits{/sha}","git_commits_url":"https://api.github.com/repos/SberTechJavaSchool/Homework/git/commits{/sha}","comments_url":"https://api.github.com/repos/SberTechJavaSchool/Homework/comments{/number}","issue_comment_url":"https://api.github.com/repos/SberTechJavaSchool/Homework/issues/comments{/number}","contents_url":"https://api.github.com/repos/SberTechJavaSchool/Homework/contents/{+path}","compare_url":"https://api.github.com/repos/SberTechJavaSchool/Homework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SberTechJavaSchool/Homework/merges","archive_url":"https://api.github.com/repos/SberTechJavaSchool/Homework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SberTechJavaSchool/Homework/downloads","issues_url":"https://api.github.com/repos/SberTechJavaSchool/Homework/issues{/number}","pulls_url":"https://api.github.com/repos/SberTechJavaSchool/Homework/pulls{/number}","milestones_url":"https://api.github.com/repos/SberTechJavaSchool/Homework/milestones{/number}","notifications_url":"https://api.github.com/repos/SberTechJavaSchool/Homework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SberTechJavaSchool/Homework/labels{/name}","releases_url":"https://api.github.com/repos/SberTechJavaSchool/Homework/releases{/id}","deployments_url":"https://api.github.com/repos/SberTechJavaSchool/Homework/deployments","created_at":"2018-02-06T14:49:25Z","updated_at":"2018-03-25T16:59:39Z","pushed_at":"2018-03-26T12:21:37Z","git_url":"git://github.com/SberTechJavaSchool/Homework.git","ssh_url":"git@github.com:SberTechJavaSchool/Homework.git","clone_url":"https://github.com/SberTechJavaSchool/Homework.git","svn_url":"https://github.com/SberTechJavaSchool/Homework","homepage":null,"size":903,"stargazers_count":5,"watchers_count":5,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":22,"mirror_url":null,"archived":false,"open_issues_count":35,"license":null,"forks":22,"open_issues":35,"watchers":5,"default_branch":"tasks"}},"_links":{"self":{"href":"https://api.github.com/repos/SberTechJavaSchool/Homework/pulls/162"},"html":{"href":"https://github.com/SberTechJavaSchool/Homework/pull/162"},"issue":{"href":"https://api.github.com/repos/SberTechJavaSchool/Homework/issues/162"},"comments":{"href":"https://api.github.com/repos/SberTechJavaSchool/Homework/issues/162/comments"},"review_comments":{"href":"https://api.github.com/repos/SberTechJavaSchool/Homework/pulls/162/comments"},"review_comment":{"href":"https://api.github.com/repos/SberTechJavaSchool/Homework/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SberTechJavaSchool/Homework/pulls/162/commits"},"statuses":{"href":"https://api.github.com/repos/SberTechJavaSchool/Homework/statuses/219c6cdb1f251e8302aabb9d4dc1492b44e286ae"}},"author_association":"NONE"}}
{"actor":{"display_login":"bormoshka"}}