{"action":"created","comment":{"url":"https://api.github.com/repos/akormushin/fizteh-java-2015/pulls/comments/40296689","id":40296689,"diff_hunk":"@@ -0,0 +1,258 @@\n+package ru.fizteh.fivt.students.thefacetakt.twitterstream;\n+\n+import ru.fizteh.fivt.students.thefacetakt.twitterstream\n+        .exceptions.InvalidLocationException;\n+import ru.fizteh.fivt.students.thefacetakt.twitterstream\n+        .exceptions.LocationDefinitionErrorException;\n+import ru.fizteh.fivt.students.thefacetakt.twitterstream\n+        .exceptions.NoKeyException;\n+import ru.fizteh.fivt.students.thefacetakt.twitterstream\n+        .exceptions.QueryLimitException;\n+import twitter4j.JSONException;\n+import twitter4j.JSONObject;\n+\n+import java.io.BufferedReader;\n+import java.io.FileReader;\n+import java.io.IOException;\n+import java.io.InputStreamReader;\n+import java.net.MalformedURLException;\n+import java.net.URI;\n+import java.net.URISyntaxException;\n+import java.net.URL;\n+import java.util.HashMap;\n+import java.util.Map;\n+\n+class PlaceLocationResolver {\n+    static final String LOCATION_DEFINITION_ERROR\n+            = \"Problem while location definition\";\n+\n+    private Map<String, Location> cache\n+            = new HashMap<String, Location>();\n+    private String googleMapsKey;\n+    private String yandexMapsKey;\n+\n+    PlaceLocationResolver() throws NoKeyException {\n+        try (BufferedReader mapsKeyFile = new BufferedReader(\n+                new FileReader(\"src/main/resources/geo.properties\"))) {","path":"thefacetakt/src/main/java/ru/fizteh/fivt/students/thefacetakt/twitterstream/PlaceLocationResolver.java","position":36,"original_position":36,"commit_id":"5013a382f9cbc7564c26d8009b981a7f49026eda","original_commit_id":"5013a382f9cbc7564c26d8009b981a7f49026eda","user":{"login":"akormushin","id":1074038,"avatar_url":"https://avatars.githubusercontent.com/u/1074038?v=3","gravatar_id":"","url":"https://api.github.com/users/akormushin","html_url":"https://github.com/akormushin","followers_url":"https://api.github.com/users/akormushin/followers","following_url":"https://api.github.com/users/akormushin/following{/other_user}","gists_url":"https://api.github.com/users/akormushin/gists{/gist_id}","starred_url":"https://api.github.com/users/akormushin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akormushin/subscriptions","organizations_url":"https://api.github.com/users/akormushin/orgs","repos_url":"https://api.github.com/users/akormushin/repos","events_url":"https://api.github.com/users/akormushin/events{/privacy}","received_events_url":"https://api.github.com/users/akormushin/received_events","type":"User","site_admin":false},"body":"Тут ты рассчитываешь на текущую директорию, это не хорошо. Лучше ищи файл в classpath через getClass().getResource() или getClass().getResourceAsStream()","created_at":"2015-09-24T08:42:39Z","updated_at":"2015-09-24T08:42:39Z","html_url":"https://github.com/akormushin/fizteh-java-2015/pull/44#discussion_r40296689","pull_request_url":"https://api.github.com/repos/akormushin/fizteh-java-2015/pulls/44","_links":{"self":{"href":"https://api.github.com/repos/akormushin/fizteh-java-2015/pulls/comments/40296689"},"html":{"href":"https://github.com/akormushin/fizteh-java-2015/pull/44#discussion_r40296689"},"pull_request":{"href":"https://api.github.com/repos/akormushin/fizteh-java-2015/pulls/44"}}},"pull_request":{"url":"https://api.github.com/repos/akormushin/fizteh-java-2015/pulls/44","id":45556438,"html_url":"https://github.com/akormushin/fizteh-java-2015/pull/44","diff_url":"https://github.com/akormushin/fizteh-java-2015/pull/44.diff","patch_url":"https://github.com/akormushin/fizteh-java-2015/pull/44.patch","issue_url":"https://api.github.com/repos/akormushin/fizteh-java-2015/issues/44","number":44,"state":"open","locked":false,"title":"Степан Каргальцев, 494, TwitterStream","user":{"login":"thefacetakt","id":6473746,"avatar_url":"https://avatars.githubusercontent.com/u/6473746?v=3","gravatar_id":"","url":"https://api.github.com/users/thefacetakt","html_url":"https://github.com/thefacetakt","followers_url":"https://api.github.com/users/thefacetakt/followers","following_url":"https://api.github.com/users/thefacetakt/following{/other_user}","gists_url":"https://api.github.com/users/thefacetakt/gists{/gist_id}","starred_url":"https://api.github.com/users/thefacetakt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thefacetakt/subscriptions","organizations_url":"https://api.github.com/users/thefacetakt/orgs","repos_url":"https://api.github.com/users/thefacetakt/repos","events_url":"https://api.github.com/users/thefacetakt/events{/privacy}","received_events_url":"https://api.github.com/users/thefacetakt/received_events","type":"User","site_admin":false},"body":"Кажется, реализовано все кроме ~~ESC-фичи~~ ~~(и ctrl-D)~~ а нет, уже все\r\n\r\nЧтобы работало, надо в ~~src~~ resources положить twitter4j.properties, а так же файлик geo.properties, где в первой строчке указан google maps api key, во второй - yandex maps api key\r\n \r\n","created_at":"2015-09-21T14:40:06Z","updated_at":"2015-09-24T08:42:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2414841c72792943534af661d6ecf49e226de7bf","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/akormushin/fizteh-java-2015/pulls/44/commits","review_comments_url":"https://api.github.com/repos/akormushin/fizteh-java-2015/pulls/44/comments","review_comment_url":"https://api.github.com/repos/akormushin/fizteh-java-2015/pulls/comments{/number}","comments_url":"https://api.github.com/repos/akormushin/fizteh-java-2015/issues/44/comments","statuses_url":"https://api.github.com/repos/akormushin/fizteh-java-2015/statuses/5013a382f9cbc7564c26d8009b981a7f49026eda","head":{"label":"thefacetakt:master","ref":"master","sha":"5013a382f9cbc7564c26d8009b981a7f49026eda","user":{"login":"thefacetakt","id":6473746,"avatar_url":"https://avatars.githubusercontent.com/u/6473746?v=3","gravatar_id":"","url":"https://api.github.com/users/thefacetakt","html_url":"https://github.com/thefacetakt","followers_url":"https://api.github.com/users/thefacetakt/followers","following_url":"https://api.github.com/users/thefacetakt/following{/other_user}","gists_url":"https://api.github.com/users/thefacetakt/gists{/gist_id}","starred_url":"https://api.github.com/users/thefacetakt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thefacetakt/subscriptions","organizations_url":"https://api.github.com/users/thefacetakt/orgs","repos_url":"https://api.github.com/users/thefacetakt/repos","events_url":"https://api.github.com/users/thefacetakt/events{/privacy}","received_events_url":"https://api.github.com/users/thefacetakt/received_events","type":"User","site_admin":false},"repo":{"id":42360547,"name":"fizteh-java-2015","full_name":"thefacetakt/fizteh-java-2015","owner":{"login":"thefacetakt","id":6473746,"avatar_url":"https://avatars.githubusercontent.com/u/6473746?v=3","gravatar_id":"","url":"https://api.github.com/users/thefacetakt","html_url":"https://github.com/thefacetakt","followers_url":"https://api.github.com/users/thefacetakt/followers","following_url":"https://api.github.com/users/thefacetakt/following{/other_user}","gists_url":"https://api.github.com/users/thefacetakt/gists{/gist_id}","starred_url":"https://api.github.com/users/thefacetakt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thefacetakt/subscriptions","organizations_url":"https://api.github.com/users/thefacetakt/orgs","repos_url":"https://api.github.com/users/thefacetakt/repos","events_url":"https://api.github.com/users/thefacetakt/events{/privacy}","received_events_url":"https://api.github.com/users/thefacetakt/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/thefacetakt/fizteh-java-2015","description":"","fork":true,"url":"https://api.github.com/repos/thefacetakt/fizteh-java-2015","forks_url":"https://api.github.com/repos/thefacetakt/fizteh-java-2015/forks","keys_url":"https://api.github.com/repos/thefacetakt/fizteh-java-2015/keys{/key_id}","collaborators_url":"https://api.github.com/repos/thefacetakt/fizteh-java-2015/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/thefacetakt/fizteh-java-2015/teams","hooks_url":"https://api.github.com/repos/thefacetakt/fizteh-java-2015/hooks","issue_events_url":"https://api.github.com/repos/thefacetakt/fizteh-java-2015/issues/events{/number}","events_url":"https://api.github.com/repos/thefacetakt/fizteh-java-2015/events","assignees_url":"https://api.github.com/repos/thefacetakt/fizteh-java-2015/assignees{/user}","branches_url":"https://api.github.com/repos/thefacetakt/fizteh-java-2015/branches{/branch}","tags_url":"https://api.github.com/repos/thefacetakt/fizteh-java-2015/tags","blobs_url":"https://api.github.com/repos/thefacetakt/fizteh-java-2015/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/thefacetakt/fizteh-java-2015/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/thefacetakt/fizteh-java-2015/git/refs{/sha}","trees_url":"https://api.github.com/repos/thefacetakt/fizteh-java-2015/git/trees{/sha}","statuses_url":"https://api.github.com/repos/thefacetakt/fizteh-java-2015/statuses/{sha}","languages_url":"https://api.github.com/repos/thefacetakt/fizteh-java-2015/languages","stargazers_url":"https://api.github.com/repos/thefacetakt/fizteh-java-2015/stargazers","contributors_url":"https://api.github.com/repos/thefacetakt/fizteh-java-2015/contributors","subscribers_url":"https://api.github.com/repos/thefacetakt/fizteh-java-2015/subscribers","subscription_url":"https://api.github.com/repos/thefacetakt/fizteh-java-2015/subscription","commits_url":"https://api.github.com/repos/thefacetakt/fizteh-java-2015/commits{/sha}","git_commits_url":"https://api.github.com/repos/thefacetakt/fizteh-java-2015/git/commits{/sha}","comments_url":"https://api.github.com/repos/thefacetakt/fizteh-java-2015/comments{/number}","issue_comment_url":"https://api.github.com/repos/thefacetakt/fizteh-java-2015/issues/comments{/number}","contents_url":"https://api.github.com/repos/thefacetakt/fizteh-java-2015/contents/{+path}","compare_url":"https://api.github.com/repos/thefacetakt/fizteh-java-2015/compare/{base}...{head}","merges_url":"https://api.github.com/repos/thefacetakt/fizteh-java-2015/merges","archive_url":"https://api.github.com/repos/thefacetakt/fizteh-java-2015/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/thefacetakt/fizteh-java-2015/downloads","issues_url":"https://api.github.com/repos/thefacetakt/fizteh-java-2015/issues{/number}","pulls_url":"https://api.github.com/repos/thefacetakt/fizteh-java-2015/pulls{/number}","milestones_url":"https://api.github.com/repos/thefacetakt/fizteh-java-2015/milestones{/number}","notifications_url":"https://api.github.com/repos/thefacetakt/fizteh-java-2015/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/thefacetakt/fizteh-java-2015/labels{/name}","releases_url":"https://api.github.com/repos/thefacetakt/fizteh-java-2015/releases{/id}","created_at":"2015-09-12T14:49:56Z","updated_at":"2015-09-14T18:33:17Z","pushed_at":"2015-09-23T19:36:34Z","git_url":"git://github.com/thefacetakt/fizteh-java-2015.git","ssh_url":"git@github.com:thefacetakt/fizteh-java-2015.git","clone_url":"https://github.com/thefacetakt/fizteh-java-2015.git","svn_url":"https://github.com/thefacetakt/fizteh-java-2015","homepage":null,"size":228,"stargazers_count":0,"watchers_count":0,"language":"Java","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":"akormushin:master","ref":"master","sha":"372a87be29bbc95369b8115c8673f8cd9ba95b5d","user":{"login":"akormushin","id":1074038,"avatar_url":"https://avatars.githubusercontent.com/u/1074038?v=3","gravatar_id":"","url":"https://api.github.com/users/akormushin","html_url":"https://github.com/akormushin","followers_url":"https://api.github.com/users/akormushin/followers","following_url":"https://api.github.com/users/akormushin/following{/other_user}","gists_url":"https://api.github.com/users/akormushin/gists{/gist_id}","starred_url":"https://api.github.com/users/akormushin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akormushin/subscriptions","organizations_url":"https://api.github.com/users/akormushin/orgs","repos_url":"https://api.github.com/users/akormushin/repos","events_url":"https://api.github.com/users/akormushin/events{/privacy}","received_events_url":"https://api.github.com/users/akormushin/received_events","type":"User","site_admin":false},"repo":{"id":42108549,"name":"fizteh-java-2015","full_name":"akormushin/fizteh-java-2015","owner":{"login":"akormushin","id":1074038,"avatar_url":"https://avatars.githubusercontent.com/u/1074038?v=3","gravatar_id":"","url":"https://api.github.com/users/akormushin","html_url":"https://github.com/akormushin","followers_url":"https://api.github.com/users/akormushin/followers","following_url":"https://api.github.com/users/akormushin/following{/other_user}","gists_url":"https://api.github.com/users/akormushin/gists{/gist_id}","starred_url":"https://api.github.com/users/akormushin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akormushin/subscriptions","organizations_url":"https://api.github.com/users/akormushin/orgs","repos_url":"https://api.github.com/users/akormushin/repos","events_url":"https://api.github.com/users/akormushin/events{/privacy}","received_events_url":"https://api.github.com/users/akormushin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/akormushin/fizteh-java-2015","description":"","fork":false,"url":"https://api.github.com/repos/akormushin/fizteh-java-2015","forks_url":"https://api.github.com/repos/akormushin/fizteh-java-2015/forks","keys_url":"https://api.github.com/repos/akormushin/fizteh-java-2015/keys{/key_id}","collaborators_url":"https://api.github.com/repos/akormushin/fizteh-java-2015/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/akormushin/fizteh-java-2015/teams","hooks_url":"https://api.github.com/repos/akormushin/fizteh-java-2015/hooks","issue_events_url":"https://api.github.com/repos/akormushin/fizteh-java-2015/issues/events{/number}","events_url":"https://api.github.com/repos/akormushin/fizteh-java-2015/events","assignees_url":"https://api.github.com/repos/akormushin/fizteh-java-2015/assignees{/user}","branches_url":"https://api.github.com/repos/akormushin/fizteh-java-2015/branches{/branch}","tags_url":"https://api.github.com/repos/akormushin/fizteh-java-2015/tags","blobs_url":"https://api.github.com/repos/akormushin/fizteh-java-2015/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/akormushin/fizteh-java-2015/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/akormushin/fizteh-java-2015/git/refs{/sha}","trees_url":"https://api.github.com/repos/akormushin/fizteh-java-2015/git/trees{/sha}","statuses_url":"https://api.github.com/repos/akormushin/fizteh-java-2015/statuses/{sha}","languages_url":"https://api.github.com/repos/akormushin/fizteh-java-2015/languages","stargazers_url":"https://api.github.com/repos/akormushin/fizteh-java-2015/stargazers","contributors_url":"https://api.github.com/repos/akormushin/fizteh-java-2015/contributors","subscribers_url":"https://api.github.com/repos/akormushin/fizteh-java-2015/subscribers","subscription_url":"https://api.github.com/repos/akormushin/fizteh-java-2015/subscription","commits_url":"https://api.github.com/repos/akormushin/fizteh-java-2015/commits{/sha}","git_commits_url":"https://api.github.com/repos/akormushin/fizteh-java-2015/git/commits{/sha}","comments_url":"https://api.github.com/repos/akormushin/fizteh-java-2015/comments{/number}","issue_comment_url":"https://api.github.com/repos/akormushin/fizteh-java-2015/issues/comments{/number}","contents_url":"https://api.github.com/repos/akormushin/fizteh-java-2015/contents/{+path}","compare_url":"https://api.github.com/repos/akormushin/fizteh-java-2015/compare/{base}...{head}","merges_url":"https://api.github.com/repos/akormushin/fizteh-java-2015/merges","archive_url":"https://api.github.com/repos/akormushin/fizteh-java-2015/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/akormushin/fizteh-java-2015/downloads","issues_url":"https://api.github.com/repos/akormushin/fizteh-java-2015/issues{/number}","pulls_url":"https://api.github.com/repos/akormushin/fizteh-java-2015/pulls{/number}","milestones_url":"https://api.github.com/repos/akormushin/fizteh-java-2015/milestones{/number}","notifications_url":"https://api.github.com/repos/akormushin/fizteh-java-2015/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/akormushin/fizteh-java-2015/labels{/name}","releases_url":"https://api.github.com/repos/akormushin/fizteh-java-2015/releases{/id}","created_at":"2015-09-08T11:37:54Z","updated_at":"2015-09-14T13:54:17Z","pushed_at":"2015-09-23T20:36:08Z","git_url":"git://github.com/akormushin/fizteh-java-2015.git","ssh_url":"git@github.com:akormushin/fizteh-java-2015.git","clone_url":"https://github.com/akormushin/fizteh-java-2015.git","svn_url":"https://github.com/akormushin/fizteh-java-2015","homepage":null,"size":1486,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":37,"mirror_url":null,"open_issues_count":14,"forks":37,"open_issues":14,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/akormushin/fizteh-java-2015/pulls/44"},"html":{"href":"https://github.com/akormushin/fizteh-java-2015/pull/44"},"issue":{"href":"https://api.github.com/repos/akormushin/fizteh-java-2015/issues/44"},"comments":{"href":"https://api.github.com/repos/akormushin/fizteh-java-2015/issues/44/comments"},"review_comments":{"href":"https://api.github.com/repos/akormushin/fizteh-java-2015/pulls/44/comments"},"review_comment":{"href":"https://api.github.com/repos/akormushin/fizteh-java-2015/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/akormushin/fizteh-java-2015/pulls/44/commits"},"statuses":{"href":"https://api.github.com/repos/akormushin/fizteh-java-2015/statuses/5013a382f9cbc7564c26d8009b981a7f49026eda"}}}}