{"action":"created","comment":{"url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/pulls/comments/46548927","id":46548927,"diff_hunk":"@@ -0,0 +1,89 @@\n+/**\n+ * Created by alex on 21.09.15.\n+ */\n+\n+package ru.mipt.diht.students.ale3otik.twitter;\n+\n+import ru.mipt.diht.students.ale3otik.twitter.structs.GeoLocationInfo;\n+import twitter4j.*;\n+\n+import java.util.function.Consumer;\n+\n+\n+public class TwitterStreamLauncher {\n+\n+    private static final long BASE_SLEEP_TIME = 1000;\n+    private TwitterStream twStream;\n+    private Consumer<String> consumer;\n+    private Arguments arguments;\n+    private long sleepTime;\n+\n+    public TwitterStreamLauncher(TwitterStream twitterStreamClient,\n+                                 Consumer<String> newConsumer,\n+                                 Arguments receivedArguments,\n+                                 long timeSleepMillis) {\n+        this.twStream = twitterStreamClient;\n+        this.consumer = newConsumer;\n+        this.arguments = receivedArguments;\n+        if (timeSleepMillis == 0) {\n+            this.sleepTime = BASE_SLEEP_TIME;\n+        } else {\n+            this.sleepTime = timeSleepMillis;\n+        }\n+    }\n+\n+    private void print(String str) {\n+        consumer.accept(str);","path":"projects/ale3otik/src/main/java/ru/mipt/diht/students/ale3otik/twitter/TwitterStreamLauncher.java","position":36,"original_position":36,"commit_id":"75d2a1aeecff473c2e240cc9b134fc1e68475e1b","original_commit_id":"75d2a1aeecff473c2e240cc9b134fc1e68475e1b","user":{"login":"KhurtinDN","id":320987,"avatar_url":"https://avatars.githubusercontent.com/u/320987?v=3","gravatar_id":"","url":"https://api.github.com/users/KhurtinDN","html_url":"https://github.com/KhurtinDN","followers_url":"https://api.github.com/users/KhurtinDN/followers","following_url":"https://api.github.com/users/KhurtinDN/following{/other_user}","gists_url":"https://api.github.com/users/KhurtinDN/gists{/gist_id}","starred_url":"https://api.github.com/users/KhurtinDN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KhurtinDN/subscriptions","organizations_url":"https://api.github.com/users/KhurtinDN/orgs","repos_url":"https://api.github.com/users/KhurtinDN/repos","events_url":"https://api.github.com/users/KhurtinDN/events{/privacy}","received_events_url":"https://api.github.com/users/KhurtinDN/received_events","type":"User","site_admin":false},"body":"зачем метод print? лучше сразу использовать comsumer","created_at":"2015-12-03T13:11:43Z","updated_at":"2015-12-03T13:11:43Z","html_url":"https://github.com/KhurtinDN/fizteh-java-2015/pull/36#discussion_r46548927","pull_request_url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/pulls/36","_links":{"self":{"href":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/pulls/comments/46548927"},"html":{"href":"https://github.com/KhurtinDN/fizteh-java-2015/pull/36#discussion_r46548927"},"pull_request":{"href":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/pulls/36"}}},"pull_request":{"url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/pulls/36","id":46811365,"html_url":"https://github.com/KhurtinDN/fizteh-java-2015/pull/36","diff_url":"https://github.com/KhurtinDN/fizteh-java-2015/pull/36.diff","patch_url":"https://github.com/KhurtinDN/fizteh-java-2015/pull/36.patch","issue_url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/issues/36","number":36,"state":"open","locked":false,"title":"Зотов Алексей 496 TwitterStream","user":{"login":"ale3otik","id":11810607,"avatar_url":"https://avatars.githubusercontent.com/u/11810607?v=3","gravatar_id":"","url":"https://api.github.com/users/ale3otik","html_url":"https://github.com/ale3otik","followers_url":"https://api.github.com/users/ale3otik/followers","following_url":"https://api.github.com/users/ale3otik/following{/other_user}","gists_url":"https://api.github.com/users/ale3otik/gists{/gist_id}","starred_url":"https://api.github.com/users/ale3otik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ale3otik/subscriptions","organizations_url":"https://api.github.com/users/ale3otik/orgs","repos_url":"https://api.github.com/users/ale3otik/repos","events_url":"https://api.github.com/users/ale3otik/events{/privacy}","received_events_url":"https://api.github.com/users/ale3otik/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-10-05T17:49:32Z","updated_at":"2015-12-03T13:11:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"53774033e59b96c0615b8c0db2b0219a8ad24a7a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/pulls/36/commits","review_comments_url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/pulls/36/comments","review_comment_url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/pulls/comments{/number}","comments_url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/issues/36/comments","statuses_url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/statuses/75d2a1aeecff473c2e240cc9b134fc1e68475e1b","head":{"label":"ale3otik:master","ref":"master","sha":"75d2a1aeecff473c2e240cc9b134fc1e68475e1b","user":{"login":"ale3otik","id":11810607,"avatar_url":"https://avatars.githubusercontent.com/u/11810607?v=3","gravatar_id":"","url":"https://api.github.com/users/ale3otik","html_url":"https://github.com/ale3otik","followers_url":"https://api.github.com/users/ale3otik/followers","following_url":"https://api.github.com/users/ale3otik/following{/other_user}","gists_url":"https://api.github.com/users/ale3otik/gists{/gist_id}","starred_url":"https://api.github.com/users/ale3otik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ale3otik/subscriptions","organizations_url":"https://api.github.com/users/ale3otik/orgs","repos_url":"https://api.github.com/users/ale3otik/repos","events_url":"https://api.github.com/users/ale3otik/events{/privacy}","received_events_url":"https://api.github.com/users/ale3otik/received_events","type":"User","site_admin":false},"repo":{"id":42772809,"name":"fizteh-java-2015","full_name":"ale3otik/fizteh-java-2015","owner":{"login":"ale3otik","id":11810607,"avatar_url":"https://avatars.githubusercontent.com/u/11810607?v=3","gravatar_id":"","url":"https://api.github.com/users/ale3otik","html_url":"https://github.com/ale3otik","followers_url":"https://api.github.com/users/ale3otik/followers","following_url":"https://api.github.com/users/ale3otik/following{/other_user}","gists_url":"https://api.github.com/users/ale3otik/gists{/gist_id}","starred_url":"https://api.github.com/users/ale3otik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ale3otik/subscriptions","organizations_url":"https://api.github.com/users/ale3otik/orgs","repos_url":"https://api.github.com/users/ale3otik/repos","events_url":"https://api.github.com/users/ale3otik/events{/privacy}","received_events_url":"https://api.github.com/users/ale3otik/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ale3otik/fizteh-java-2015","description":"","fork":true,"url":"https://api.github.com/repos/ale3otik/fizteh-java-2015","forks_url":"https://api.github.com/repos/ale3otik/fizteh-java-2015/forks","keys_url":"https://api.github.com/repos/ale3otik/fizteh-java-2015/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ale3otik/fizteh-java-2015/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ale3otik/fizteh-java-2015/teams","hooks_url":"https://api.github.com/repos/ale3otik/fizteh-java-2015/hooks","issue_events_url":"https://api.github.com/repos/ale3otik/fizteh-java-2015/issues/events{/number}","events_url":"https://api.github.com/repos/ale3otik/fizteh-java-2015/events","assignees_url":"https://api.github.com/repos/ale3otik/fizteh-java-2015/assignees{/user}","branches_url":"https://api.github.com/repos/ale3otik/fizteh-java-2015/branches{/branch}","tags_url":"https://api.github.com/repos/ale3otik/fizteh-java-2015/tags","blobs_url":"https://api.github.com/repos/ale3otik/fizteh-java-2015/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ale3otik/fizteh-java-2015/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ale3otik/fizteh-java-2015/git/refs{/sha}","trees_url":"https://api.github.com/repos/ale3otik/fizteh-java-2015/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ale3otik/fizteh-java-2015/statuses/{sha}","languages_url":"https://api.github.com/repos/ale3otik/fizteh-java-2015/languages","stargazers_url":"https://api.github.com/repos/ale3otik/fizteh-java-2015/stargazers","contributors_url":"https://api.github.com/repos/ale3otik/fizteh-java-2015/contributors","subscribers_url":"https://api.github.com/repos/ale3otik/fizteh-java-2015/subscribers","subscription_url":"https://api.github.com/repos/ale3otik/fizteh-java-2015/subscription","commits_url":"https://api.github.com/repos/ale3otik/fizteh-java-2015/commits{/sha}","git_commits_url":"https://api.github.com/repos/ale3otik/fizteh-java-2015/git/commits{/sha}","comments_url":"https://api.github.com/repos/ale3otik/fizteh-java-2015/comments{/number}","issue_comment_url":"https://api.github.com/repos/ale3otik/fizteh-java-2015/issues/comments{/number}","contents_url":"https://api.github.com/repos/ale3otik/fizteh-java-2015/contents/{+path}","compare_url":"https://api.github.com/repos/ale3otik/fizteh-java-2015/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ale3otik/fizteh-java-2015/merges","archive_url":"https://api.github.com/repos/ale3otik/fizteh-java-2015/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ale3otik/fizteh-java-2015/downloads","issues_url":"https://api.github.com/repos/ale3otik/fizteh-java-2015/issues{/number}","pulls_url":"https://api.github.com/repos/ale3otik/fizteh-java-2015/pulls{/number}","milestones_url":"https://api.github.com/repos/ale3otik/fizteh-java-2015/milestones{/number}","notifications_url":"https://api.github.com/repos/ale3otik/fizteh-java-2015/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ale3otik/fizteh-java-2015/labels{/name}","releases_url":"https://api.github.com/repos/ale3otik/fizteh-java-2015/releases{/id}","created_at":"2015-09-19T12:56:21Z","updated_at":"2015-09-19T12:56:22Z","pushed_at":"2015-12-02T21:44:55Z","git_url":"git://github.com/ale3otik/fizteh-java-2015.git","ssh_url":"git@github.com:ale3otik/fizteh-java-2015.git","clone_url":"https://github.com/ale3otik/fizteh-java-2015.git","svn_url":"https://github.com/ale3otik/fizteh-java-2015","homepage":null,"size":266,"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":"KhurtinDN:master","ref":"master","sha":"cb81bfc50d86c6fbd094039a1b3f683daa3cb26b","user":{"login":"KhurtinDN","id":320987,"avatar_url":"https://avatars.githubusercontent.com/u/320987?v=3","gravatar_id":"","url":"https://api.github.com/users/KhurtinDN","html_url":"https://github.com/KhurtinDN","followers_url":"https://api.github.com/users/KhurtinDN/followers","following_url":"https://api.github.com/users/KhurtinDN/following{/other_user}","gists_url":"https://api.github.com/users/KhurtinDN/gists{/gist_id}","starred_url":"https://api.github.com/users/KhurtinDN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KhurtinDN/subscriptions","organizations_url":"https://api.github.com/users/KhurtinDN/orgs","repos_url":"https://api.github.com/users/KhurtinDN/repos","events_url":"https://api.github.com/users/KhurtinDN/events{/privacy}","received_events_url":"https://api.github.com/users/KhurtinDN/received_events","type":"User","site_admin":false},"repo":{"id":42640944,"name":"fizteh-java-2015","full_name":"KhurtinDN/fizteh-java-2015","owner":{"login":"KhurtinDN","id":320987,"avatar_url":"https://avatars.githubusercontent.com/u/320987?v=3","gravatar_id":"","url":"https://api.github.com/users/KhurtinDN","html_url":"https://github.com/KhurtinDN","followers_url":"https://api.github.com/users/KhurtinDN/followers","following_url":"https://api.github.com/users/KhurtinDN/following{/other_user}","gists_url":"https://api.github.com/users/KhurtinDN/gists{/gist_id}","starred_url":"https://api.github.com/users/KhurtinDN/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KhurtinDN/subscriptions","organizations_url":"https://api.github.com/users/KhurtinDN/orgs","repos_url":"https://api.github.com/users/KhurtinDN/repos","events_url":"https://api.github.com/users/KhurtinDN/events{/privacy}","received_events_url":"https://api.github.com/users/KhurtinDN/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/KhurtinDN/fizteh-java-2015","description":"","fork":false,"url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015","forks_url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/forks","keys_url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/keys{/key_id}","collaborators_url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/teams","hooks_url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/hooks","issue_events_url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/issues/events{/number}","events_url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/events","assignees_url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/assignees{/user}","branches_url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/branches{/branch}","tags_url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/tags","blobs_url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/git/refs{/sha}","trees_url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/git/trees{/sha}","statuses_url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/statuses/{sha}","languages_url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/languages","stargazers_url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/stargazers","contributors_url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/contributors","subscribers_url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/subscribers","subscription_url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/subscription","commits_url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/commits{/sha}","git_commits_url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/git/commits{/sha}","comments_url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/comments{/number}","issue_comment_url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/issues/comments{/number}","contents_url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/contents/{+path}","compare_url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/compare/{base}...{head}","merges_url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/merges","archive_url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/downloads","issues_url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/issues{/number}","pulls_url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/pulls{/number}","milestones_url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/milestones{/number}","notifications_url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/labels{/name}","releases_url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/releases{/id}","created_at":"2015-09-17T07:13:10Z","updated_at":"2015-11-24T22:02:16Z","pushed_at":"2015-12-03T08:16:41Z","git_url":"git://github.com/KhurtinDN/fizteh-java-2015.git","ssh_url":"git@github.com:KhurtinDN/fizteh-java-2015.git","clone_url":"https://github.com/KhurtinDN/fizteh-java-2015.git","svn_url":"https://github.com/KhurtinDN/fizteh-java-2015","homepage":null,"size":1613,"stargazers_count":2,"watchers_count":2,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":36,"mirror_url":null,"open_issues_count":20,"forks":36,"open_issues":20,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/pulls/36"},"html":{"href":"https://github.com/KhurtinDN/fizteh-java-2015/pull/36"},"issue":{"href":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/issues/36"},"comments":{"href":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/issues/36/comments"},"review_comments":{"href":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/pulls/36/comments"},"review_comment":{"href":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/pulls/36/commits"},"statuses":{"href":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/statuses/75d2a1aeecff473c2e240cc9b134fc1e68475e1b"}}}}