{"action":"created","comment":{"url":"https://api.github.com/repos/tarek-nawara/sentiment-analysis/pulls/comments/175276060","pull_request_review_id":104784290,"id":175276060,"diff_hunk":"@@ -32,15 +33,27 @@ object SentimentAnalyzer extends App {\n   val modelService = new ModelService(new GradientBoostingBuilder(sc))\n   modelService.start()\n \n+  val indexHandler = new IndexHandler\n+  val result = indexHandler.create(\"twitter\", \"sentiment\")\n+\n+  var indexName = \"\"\n+\n+  result match {\n+    case Left(failure) => terminate()","path":"src/main/scala/edu/twitter/SentimentAnalyzer.scala","position":18,"original_position":18,"commit_id":"ac5f96d7cc45cb091b35724f7145b2694487bfc3","original_commit_id":"ac5f96d7cc45cb091b35724f7145b2694487bfc3","user":{"login":"tarek-nawara","id":19335185,"avatar_url":"https://avatars1.githubusercontent.com/u/19335185?v=4","gravatar_id":"","url":"https://api.github.com/users/tarek-nawara","html_url":"https://github.com/tarek-nawara","followers_url":"https://api.github.com/users/tarek-nawara/followers","following_url":"https://api.github.com/users/tarek-nawara/following{/other_user}","gists_url":"https://api.github.com/users/tarek-nawara/gists{/gist_id}","starred_url":"https://api.github.com/users/tarek-nawara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tarek-nawara/subscriptions","organizations_url":"https://api.github.com/users/tarek-nawara/orgs","repos_url":"https://api.github.com/users/tarek-nawara/repos","events_url":"https://api.github.com/users/tarek-nawara/events{/privacy}","received_events_url":"https://api.github.com/users/tarek-nawara/received_events","type":"User","site_admin":false},"body":"Have you tested this branch, I don't know what will happen if we closed the `sparkContext` and continued the execution. would we still train the models?. I guess it would be better if we hard fail and stop the execution.\r\n\r\n `failure` is not used, consider using `_` :).","created_at":"2018-03-18T03:10:44Z","updated_at":"2018-03-18T03:33:54Z","html_url":"https://github.com/tarek-nawara/sentiment-analysis/pull/34#discussion_r175276060","pull_request_url":"https://api.github.com/repos/tarek-nawara/sentiment-analysis/pulls/34","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/tarek-nawara/sentiment-analysis/pulls/comments/175276060"},"html":{"href":"https://github.com/tarek-nawara/sentiment-analysis/pull/34#discussion_r175276060"},"pull_request":{"href":"https://api.github.com/repos/tarek-nawara/sentiment-analysis/pulls/34"}}},"pull_request":{"url":"https://api.github.com/repos/tarek-nawara/sentiment-analysis/pulls/34","id":175232513,"html_url":"https://github.com/tarek-nawara/sentiment-analysis/pull/34","diff_url":"https://github.com/tarek-nawara/sentiment-analysis/pull/34.diff","patch_url":"https://github.com/tarek-nawara/sentiment-analysis/pull/34.patch","issue_url":"https://api.github.com/repos/tarek-nawara/sentiment-analysis/issues/34","number":34,"state":"open","locked":false,"title":"implemented elastic search index to support date and location.","user":{"login":"sherif98","id":13878518,"avatar_url":"https://avatars1.githubusercontent.com/u/13878518?v=4","gravatar_id":"","url":"https://api.github.com/users/sherif98","html_url":"https://github.com/sherif98","followers_url":"https://api.github.com/users/sherif98/followers","following_url":"https://api.github.com/users/sherif98/following{/other_user}","gists_url":"https://api.github.com/users/sherif98/gists{/gist_id}","starred_url":"https://api.github.com/users/sherif98/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sherif98/subscriptions","organizations_url":"https://api.github.com/users/sherif98/orgs","repos_url":"https://api.github.com/users/sherif98/repos","events_url":"https://api.github.com/users/sherif98/events{/privacy}","received_events_url":"https://api.github.com/users/sherif98/received_events","type":"User","site_admin":false},"body":"added date and location attributes.\r\ncreating an index with required mapping using elastic4s","created_at":"2018-03-15T12:17:33Z","updated_at":"2018-03-18T03:33:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f418b84af6f93efc1e53d45cca0577e7071777c4","assignee":null,"assignees":[],"requested_reviewers":[{"login":"MohamedElhawaty","id":13744624,"avatar_url":"https://avatars0.githubusercontent.com/u/13744624?v=4","gravatar_id":"","url":"https://api.github.com/users/MohamedElhawaty","html_url":"https://github.com/MohamedElhawaty","followers_url":"https://api.github.com/users/MohamedElhawaty/followers","following_url":"https://api.github.com/users/MohamedElhawaty/following{/other_user}","gists_url":"https://api.github.com/users/MohamedElhawaty/gists{/gist_id}","starred_url":"https://api.github.com/users/MohamedElhawaty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MohamedElhawaty/subscriptions","organizations_url":"https://api.github.com/users/MohamedElhawaty/orgs","repos_url":"https://api.github.com/users/MohamedElhawaty/repos","events_url":"https://api.github.com/users/MohamedElhawaty/events{/privacy}","received_events_url":"https://api.github.com/users/MohamedElhawaty/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/tarek-nawara/sentiment-analysis/pulls/34/commits","review_comments_url":"https://api.github.com/repos/tarek-nawara/sentiment-analysis/pulls/34/comments","review_comment_url":"https://api.github.com/repos/tarek-nawara/sentiment-analysis/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tarek-nawara/sentiment-analysis/issues/34/comments","statuses_url":"https://api.github.com/repos/tarek-nawara/sentiment-analysis/statuses/ac5f96d7cc45cb091b35724f7145b2694487bfc3","head":{"label":"tarek-nawara:location-support","ref":"location-support","sha":"ac5f96d7cc45cb091b35724f7145b2694487bfc3","user":{"login":"tarek-nawara","id":19335185,"avatar_url":"https://avatars1.githubusercontent.com/u/19335185?v=4","gravatar_id":"","url":"https://api.github.com/users/tarek-nawara","html_url":"https://github.com/tarek-nawara","followers_url":"https://api.github.com/users/tarek-nawara/followers","following_url":"https://api.github.com/users/tarek-nawara/following{/other_user}","gists_url":"https://api.github.com/users/tarek-nawara/gists{/gist_id}","starred_url":"https://api.github.com/users/tarek-nawara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tarek-nawara/subscriptions","organizations_url":"https://api.github.com/users/tarek-nawara/orgs","repos_url":"https://api.github.com/users/tarek-nawara/repos","events_url":"https://api.github.com/users/tarek-nawara/events{/privacy}","received_events_url":"https://api.github.com/users/tarek-nawara/received_events","type":"User","site_admin":false},"repo":{"id":118014085,"name":"sentiment-analysis","full_name":"tarek-nawara/sentiment-analysis","owner":{"login":"tarek-nawara","id":19335185,"avatar_url":"https://avatars1.githubusercontent.com/u/19335185?v=4","gravatar_id":"","url":"https://api.github.com/users/tarek-nawara","html_url":"https://github.com/tarek-nawara","followers_url":"https://api.github.com/users/tarek-nawara/followers","following_url":"https://api.github.com/users/tarek-nawara/following{/other_user}","gists_url":"https://api.github.com/users/tarek-nawara/gists{/gist_id}","starred_url":"https://api.github.com/users/tarek-nawara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tarek-nawara/subscriptions","organizations_url":"https://api.github.com/users/tarek-nawara/orgs","repos_url":"https://api.github.com/users/tarek-nawara/repos","events_url":"https://api.github.com/users/tarek-nawara/events{/privacy}","received_events_url":"https://api.github.com/users/tarek-nawara/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tarek-nawara/sentiment-analysis","description":"Simple show case of consuming twitter api and performing sentiment analysis over tweets","fork":false,"url":"https://api.github.com/repos/tarek-nawara/sentiment-analysis","forks_url":"https://api.github.com/repos/tarek-nawara/sentiment-analysis/forks","keys_url":"https://api.github.com/repos/tarek-nawara/sentiment-analysis/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tarek-nawara/sentiment-analysis/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tarek-nawara/sentiment-analysis/teams","hooks_url":"https://api.github.com/repos/tarek-nawara/sentiment-analysis/hooks","issue_events_url":"https://api.github.com/repos/tarek-nawara/sentiment-analysis/issues/events{/number}","events_url":"https://api.github.com/repos/tarek-nawara/sentiment-analysis/events","assignees_url":"https://api.github.com/repos/tarek-nawara/sentiment-analysis/assignees{/user}","branches_url":"https://api.github.com/repos/tarek-nawara/sentiment-analysis/branches{/branch}","tags_url":"https://api.github.com/repos/tarek-nawara/sentiment-analysis/tags","blobs_url":"https://api.github.com/repos/tarek-nawara/sentiment-analysis/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tarek-nawara/sentiment-analysis/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tarek-nawara/sentiment-analysis/git/refs{/sha}","trees_url":"https://api.github.com/repos/tarek-nawara/sentiment-analysis/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tarek-nawara/sentiment-analysis/statuses/{sha}","languages_url":"https://api.github.com/repos/tarek-nawara/sentiment-analysis/languages","stargazers_url":"https://api.github.com/repos/tarek-nawara/sentiment-analysis/stargazers","contributors_url":"https://api.github.com/repos/tarek-nawara/sentiment-analysis/contributors","subscribers_url":"https://api.github.com/repos/tarek-nawara/sentiment-analysis/subscribers","subscription_url":"https://api.github.com/repos/tarek-nawara/sentiment-analysis/subscription","commits_url":"https://api.github.com/repos/tarek-nawara/sentiment-analysis/commits{/sha}","git_commits_url":"https://api.github.com/repos/tarek-nawara/sentiment-analysis/git/commits{/sha}","comments_url":"https://api.github.com/repos/tarek-nawara/sentiment-analysis/comments{/number}","issue_comment_url":"https://api.github.com/repos/tarek-nawara/sentiment-analysis/issues/comments{/number}","contents_url":"https://api.github.com/repos/tarek-nawara/sentiment-analysis/contents/{+path}","compare_url":"https://api.github.com/repos/tarek-nawara/sentiment-analysis/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tarek-nawara/sentiment-analysis/merges","archive_url":"https://api.github.com/repos/tarek-nawara/sentiment-analysis/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tarek-nawara/sentiment-analysis/downloads","issues_url":"https://api.github.com/repos/tarek-nawara/sentiment-analysis/issues{/number}","pulls_url":"https://api.github.com/repos/tarek-nawara/sentiment-analysis/pulls{/number}","milestones_url":"https://api.github.com/repos/tarek-nawara/sentiment-analysis/milestones{/number}","notifications_url":"https://api.github.com/repos/tarek-nawara/sentiment-analysis/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tarek-nawara/sentiment-analysis/labels{/name}","releases_url":"https://api.github.com/repos/tarek-nawara/sentiment-analysis/releases{/id}","deployments_url":"https://api.github.com/repos/tarek-nawara/sentiment-analysis/deployments","created_at":"2018-01-18T17:18:31Z","updated_at":"2018-03-12T20:58:08Z","pushed_at":"2018-03-16T16:52:12Z","git_url":"git://github.com/tarek-nawara/sentiment-analysis.git","ssh_url":"git@github.com:tarek-nawara/sentiment-analysis.git","clone_url":"https://github.com/tarek-nawara/sentiment-analysis.git","svn_url":"https://github.com/tarek-nawara/sentiment-analysis","homepage":null,"size":7283,"stargazers_count":0,"watchers_count":0,"language":"Scala","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":7,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause"},"forks":0,"open_issues":7,"watchers":0,"default_branch":"master"}},"base":{"label":"tarek-nawara:master","ref":"master","sha":"12e29cffa14a16f08cc3911379f99b4a63a62bc3","user":{"login":"tarek-nawara","id":19335185,"avatar_url":"https://avatars1.githubusercontent.com/u/19335185?v=4","gravatar_id":"","url":"https://api.github.com/users/tarek-nawara","html_url":"https://github.com/tarek-nawara","followers_url":"https://api.github.com/users/tarek-nawara/followers","following_url":"https://api.github.com/users/tarek-nawara/following{/other_user}","gists_url":"https://api.github.com/users/tarek-nawara/gists{/gist_id}","starred_url":"https://api.github.com/users/tarek-nawara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tarek-nawara/subscriptions","organizations_url":"https://api.github.com/users/tarek-nawara/orgs","repos_url":"https://api.github.com/users/tarek-nawara/repos","events_url":"https://api.github.com/users/tarek-nawara/events{/privacy}","received_events_url":"https://api.github.com/users/tarek-nawara/received_events","type":"User","site_admin":false},"repo":{"id":118014085,"name":"sentiment-analysis","full_name":"tarek-nawara/sentiment-analysis","owner":{"login":"tarek-nawara","id":19335185,"avatar_url":"https://avatars1.githubusercontent.com/u/19335185?v=4","gravatar_id":"","url":"https://api.github.com/users/tarek-nawara","html_url":"https://github.com/tarek-nawara","followers_url":"https://api.github.com/users/tarek-nawara/followers","following_url":"https://api.github.com/users/tarek-nawara/following{/other_user}","gists_url":"https://api.github.com/users/tarek-nawara/gists{/gist_id}","starred_url":"https://api.github.com/users/tarek-nawara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tarek-nawara/subscriptions","organizations_url":"https://api.github.com/users/tarek-nawara/orgs","repos_url":"https://api.github.com/users/tarek-nawara/repos","events_url":"https://api.github.com/users/tarek-nawara/events{/privacy}","received_events_url":"https://api.github.com/users/tarek-nawara/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tarek-nawara/sentiment-analysis","description":"Simple show case of consuming twitter api and performing sentiment analysis over tweets","fork":false,"url":"https://api.github.com/repos/tarek-nawara/sentiment-analysis","forks_url":"https://api.github.com/repos/tarek-nawara/sentiment-analysis/forks","keys_url":"https://api.github.com/repos/tarek-nawara/sentiment-analysis/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tarek-nawara/sentiment-analysis/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tarek-nawara/sentiment-analysis/teams","hooks_url":"https://api.github.com/repos/tarek-nawara/sentiment-analysis/hooks","issue_events_url":"https://api.github.com/repos/tarek-nawara/sentiment-analysis/issues/events{/number}","events_url":"https://api.github.com/repos/tarek-nawara/sentiment-analysis/events","assignees_url":"https://api.github.com/repos/tarek-nawara/sentiment-analysis/assignees{/user}","branches_url":"https://api.github.com/repos/tarek-nawara/sentiment-analysis/branches{/branch}","tags_url":"https://api.github.com/repos/tarek-nawara/sentiment-analysis/tags","blobs_url":"https://api.github.com/repos/tarek-nawara/sentiment-analysis/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tarek-nawara/sentiment-analysis/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tarek-nawara/sentiment-analysis/git/refs{/sha}","trees_url":"https://api.github.com/repos/tarek-nawara/sentiment-analysis/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tarek-nawara/sentiment-analysis/statuses/{sha}","languages_url":"https://api.github.com/repos/tarek-nawara/sentiment-analysis/languages","stargazers_url":"https://api.github.com/repos/tarek-nawara/sentiment-analysis/stargazers","contributors_url":"https://api.github.com/repos/tarek-nawara/sentiment-analysis/contributors","subscribers_url":"https://api.github.com/repos/tarek-nawara/sentiment-analysis/subscribers","subscription_url":"https://api.github.com/repos/tarek-nawara/sentiment-analysis/subscription","commits_url":"https://api.github.com/repos/tarek-nawara/sentiment-analysis/commits{/sha}","git_commits_url":"https://api.github.com/repos/tarek-nawara/sentiment-analysis/git/commits{/sha}","comments_url":"https://api.github.com/repos/tarek-nawara/sentiment-analysis/comments{/number}","issue_comment_url":"https://api.github.com/repos/tarek-nawara/sentiment-analysis/issues/comments{/number}","contents_url":"https://api.github.com/repos/tarek-nawara/sentiment-analysis/contents/{+path}","compare_url":"https://api.github.com/repos/tarek-nawara/sentiment-analysis/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tarek-nawara/sentiment-analysis/merges","archive_url":"https://api.github.com/repos/tarek-nawara/sentiment-analysis/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tarek-nawara/sentiment-analysis/downloads","issues_url":"https://api.github.com/repos/tarek-nawara/sentiment-analysis/issues{/number}","pulls_url":"https://api.github.com/repos/tarek-nawara/sentiment-analysis/pulls{/number}","milestones_url":"https://api.github.com/repos/tarek-nawara/sentiment-analysis/milestones{/number}","notifications_url":"https://api.github.com/repos/tarek-nawara/sentiment-analysis/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tarek-nawara/sentiment-analysis/labels{/name}","releases_url":"https://api.github.com/repos/tarek-nawara/sentiment-analysis/releases{/id}","deployments_url":"https://api.github.com/repos/tarek-nawara/sentiment-analysis/deployments","created_at":"2018-01-18T17:18:31Z","updated_at":"2018-03-12T20:58:08Z","pushed_at":"2018-03-16T16:52:12Z","git_url":"git://github.com/tarek-nawara/sentiment-analysis.git","ssh_url":"git@github.com:tarek-nawara/sentiment-analysis.git","clone_url":"https://github.com/tarek-nawara/sentiment-analysis.git","svn_url":"https://github.com/tarek-nawara/sentiment-analysis","homepage":null,"size":7283,"stargazers_count":0,"watchers_count":0,"language":"Scala","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":7,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause"},"forks":0,"open_issues":7,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tarek-nawara/sentiment-analysis/pulls/34"},"html":{"href":"https://github.com/tarek-nawara/sentiment-analysis/pull/34"},"issue":{"href":"https://api.github.com/repos/tarek-nawara/sentiment-analysis/issues/34"},"comments":{"href":"https://api.github.com/repos/tarek-nawara/sentiment-analysis/issues/34/comments"},"review_comments":{"href":"https://api.github.com/repos/tarek-nawara/sentiment-analysis/pulls/34/comments"},"review_comment":{"href":"https://api.github.com/repos/tarek-nawara/sentiment-analysis/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tarek-nawara/sentiment-analysis/pulls/34/commits"},"statuses":{"href":"https://api.github.com/repos/tarek-nawara/sentiment-analysis/statuses/ac5f96d7cc45cb091b35724f7145b2694487bfc3"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"tarek-nawara"}}