{"action":"created","comment":{"url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/pulls/comments/41386916","id":41386916,"diff_hunk":"@@ -0,0 +1,386 @@\n+package ru.mipt.diht.students.sopilnyak.TwitterStream;\n+\n+import twitter4j.*;\n+\n+import java.io.*;\n+import java.net.Inet4Address;\n+import java.net.UnknownHostException;\n+import java.util.Calendar;\n+import java.util.Date;\n+import java.util.concurrent.TimeUnit;\n+\n+public class App {\n+\n+    private static String queryString;\n+    private static boolean isQueryStarted = false;\n+    private static String locationString;\n+    private static boolean isLocationStarted = false;\n+    private static boolean isNearbyEnabled = false;\n+    private static boolean isStreamEnabled = false;\n+    private static boolean isSetLimitStarted = false;\n+    private static int limit = -1;\n+    private static boolean hideRetweets = false;\n+\n+    public static final String BLUE = \"\\u001B[34m\";\n+    public static final String RESET = \"\\u001B[0m\";\n+    public static final String HELP = \"help.txt\";\n+    public static final int MAX_TWEETS = 100;\n+    public static final int RADIUS = 10;\n+    public static final int SLEEP_TIME = 1000;\n+    public static final int ATTEMPTS = 20;\n+\n+    public static final int C1 = 1;\n+    public static final int C2 = 2;\n+    public static final int C3 = 3;\n+    public static final int C4 = 4;\n+    public static final int C5 = 5;\n+    public static final int C6 = 6;\n+    public static final int C7 = 7;\n+\n+    public static void main(String[] args) {\n+\n+        // read commands from console\n+        for (int i = 0; i < args.length; i++) {\n+\n+            switch (commandNumber(args[i])) {","path":"projects/sopilnyak/src/main/java/ru/mipt/diht/students/sopilnyak/TwitterStream/App.java","position":45,"original_position":45,"commit_id":"ecc05f99b7799ae9ba42ad100bee14d97eb1e957","original_commit_id":"ecc05f99b7799ae9ba42ad100bee14d97eb1e957","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":"Можно было использовать JCommander для удобного и безопасного разбора аргументов командной строки.","created_at":"2015-10-07T13:05:53Z","updated_at":"2015-10-07T13:05:53Z","html_url":"https://github.com/KhurtinDN/fizteh-java-2015/pull/24#discussion_r41386916","pull_request_url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/pulls/24","_links":{"self":{"href":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/pulls/comments/41386916"},"html":{"href":"https://github.com/KhurtinDN/fizteh-java-2015/pull/24#discussion_r41386916"},"pull_request":{"href":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/pulls/24"}}},"pull_request":{"url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/pulls/24","id":45957852,"html_url":"https://github.com/KhurtinDN/fizteh-java-2015/pull/24","diff_url":"https://github.com/KhurtinDN/fizteh-java-2015/pull/24.diff","patch_url":"https://github.com/KhurtinDN/fizteh-java-2015/pull/24.patch","issue_url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/issues/24","number":24,"state":"open","locked":false,"title":"Сопильняк Ольга, 496, TwitterStream","user":{"login":"sopilnyak","id":14252023,"avatar_url":"https://avatars.githubusercontent.com/u/14252023?v=3","gravatar_id":"","url":"https://api.github.com/users/sopilnyak","html_url":"https://github.com/sopilnyak","followers_url":"https://api.github.com/users/sopilnyak/followers","following_url":"https://api.github.com/users/sopilnyak/following{/other_user}","gists_url":"https://api.github.com/users/sopilnyak/gists{/gist_id}","starred_url":"https://api.github.com/users/sopilnyak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sopilnyak/subscriptions","organizations_url":"https://api.github.com/users/sopilnyak/orgs","repos_url":"https://api.github.com/users/sopilnyak/repos","events_url":"https://api.github.com/users/sopilnyak/events{/privacy}","received_events_url":"https://api.github.com/users/sopilnyak/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-09-24T22:27:31Z","updated_at":"2015-10-07T13:05:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"eb0f32dc7a6290d8412c3eab509a47afb622eeb2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/pulls/24/commits","review_comments_url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/pulls/24/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/24/comments","statuses_url":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/statuses/ecc05f99b7799ae9ba42ad100bee14d97eb1e957","head":{"label":"sopilnyak:master","ref":"master","sha":"ecc05f99b7799ae9ba42ad100bee14d97eb1e957","user":{"login":"sopilnyak","id":14252023,"avatar_url":"https://avatars.githubusercontent.com/u/14252023?v=3","gravatar_id":"","url":"https://api.github.com/users/sopilnyak","html_url":"https://github.com/sopilnyak","followers_url":"https://api.github.com/users/sopilnyak/followers","following_url":"https://api.github.com/users/sopilnyak/following{/other_user}","gists_url":"https://api.github.com/users/sopilnyak/gists{/gist_id}","starred_url":"https://api.github.com/users/sopilnyak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sopilnyak/subscriptions","organizations_url":"https://api.github.com/users/sopilnyak/orgs","repos_url":"https://api.github.com/users/sopilnyak/repos","events_url":"https://api.github.com/users/sopilnyak/events{/privacy}","received_events_url":"https://api.github.com/users/sopilnyak/received_events","type":"User","site_admin":false},"repo":{"id":42704490,"name":"fizteh-java-2015","full_name":"sopilnyak/fizteh-java-2015","owner":{"login":"sopilnyak","id":14252023,"avatar_url":"https://avatars.githubusercontent.com/u/14252023?v=3","gravatar_id":"","url":"https://api.github.com/users/sopilnyak","html_url":"https://github.com/sopilnyak","followers_url":"https://api.github.com/users/sopilnyak/followers","following_url":"https://api.github.com/users/sopilnyak/following{/other_user}","gists_url":"https://api.github.com/users/sopilnyak/gists{/gist_id}","starred_url":"https://api.github.com/users/sopilnyak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sopilnyak/subscriptions","organizations_url":"https://api.github.com/users/sopilnyak/orgs","repos_url":"https://api.github.com/users/sopilnyak/repos","events_url":"https://api.github.com/users/sopilnyak/events{/privacy}","received_events_url":"https://api.github.com/users/sopilnyak/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sopilnyak/fizteh-java-2015","description":"","fork":true,"url":"https://api.github.com/repos/sopilnyak/fizteh-java-2015","forks_url":"https://api.github.com/repos/sopilnyak/fizteh-java-2015/forks","keys_url":"https://api.github.com/repos/sopilnyak/fizteh-java-2015/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sopilnyak/fizteh-java-2015/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sopilnyak/fizteh-java-2015/teams","hooks_url":"https://api.github.com/repos/sopilnyak/fizteh-java-2015/hooks","issue_events_url":"https://api.github.com/repos/sopilnyak/fizteh-java-2015/issues/events{/number}","events_url":"https://api.github.com/repos/sopilnyak/fizteh-java-2015/events","assignees_url":"https://api.github.com/repos/sopilnyak/fizteh-java-2015/assignees{/user}","branches_url":"https://api.github.com/repos/sopilnyak/fizteh-java-2015/branches{/branch}","tags_url":"https://api.github.com/repos/sopilnyak/fizteh-java-2015/tags","blobs_url":"https://api.github.com/repos/sopilnyak/fizteh-java-2015/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sopilnyak/fizteh-java-2015/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sopilnyak/fizteh-java-2015/git/refs{/sha}","trees_url":"https://api.github.com/repos/sopilnyak/fizteh-java-2015/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sopilnyak/fizteh-java-2015/statuses/{sha}","languages_url":"https://api.github.com/repos/sopilnyak/fizteh-java-2015/languages","stargazers_url":"https://api.github.com/repos/sopilnyak/fizteh-java-2015/stargazers","contributors_url":"https://api.github.com/repos/sopilnyak/fizteh-java-2015/contributors","subscribers_url":"https://api.github.com/repos/sopilnyak/fizteh-java-2015/subscribers","subscription_url":"https://api.github.com/repos/sopilnyak/fizteh-java-2015/subscription","commits_url":"https://api.github.com/repos/sopilnyak/fizteh-java-2015/commits{/sha}","git_commits_url":"https://api.github.com/repos/sopilnyak/fizteh-java-2015/git/commits{/sha}","comments_url":"https://api.github.com/repos/sopilnyak/fizteh-java-2015/comments{/number}","issue_comment_url":"https://api.github.com/repos/sopilnyak/fizteh-java-2015/issues/comments{/number}","contents_url":"https://api.github.com/repos/sopilnyak/fizteh-java-2015/contents/{+path}","compare_url":"https://api.github.com/repos/sopilnyak/fizteh-java-2015/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sopilnyak/fizteh-java-2015/merges","archive_url":"https://api.github.com/repos/sopilnyak/fizteh-java-2015/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sopilnyak/fizteh-java-2015/downloads","issues_url":"https://api.github.com/repos/sopilnyak/fizteh-java-2015/issues{/number}","pulls_url":"https://api.github.com/repos/sopilnyak/fizteh-java-2015/pulls{/number}","milestones_url":"https://api.github.com/repos/sopilnyak/fizteh-java-2015/milestones{/number}","notifications_url":"https://api.github.com/repos/sopilnyak/fizteh-java-2015/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sopilnyak/fizteh-java-2015/labels{/name}","releases_url":"https://api.github.com/repos/sopilnyak/fizteh-java-2015/releases{/id}","created_at":"2015-09-18T06:44:53Z","updated_at":"2015-09-18T06:44:53Z","pushed_at":"2015-09-24T22:12:49Z","git_url":"git://github.com/sopilnyak/fizteh-java-2015.git","ssh_url":"git@github.com:sopilnyak/fizteh-java-2015.git","clone_url":"https://github.com/sopilnyak/fizteh-java-2015.git","svn_url":"https://github.com/sopilnyak/fizteh-java-2015","homepage":null,"size":167,"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":"04b75053a51622f87df5021bde20d36cfadc2d5d","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-09-19T18:45:04Z","pushed_at":"2015-10-06T21:05:30Z","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":580,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":31,"mirror_url":null,"open_issues_count":12,"forks":31,"open_issues":12,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/pulls/24"},"html":{"href":"https://github.com/KhurtinDN/fizteh-java-2015/pull/24"},"issue":{"href":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/issues/24"},"comments":{"href":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/issues/24/comments"},"review_comments":{"href":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/pulls/24/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/24/commits"},"statuses":{"href":"https://api.github.com/repos/KhurtinDN/fizteh-java-2015/statuses/ecc05f99b7799ae9ba42ad100bee14d97eb1e957"}}}}