{"action":"created","comment":{"url":"https://api.github.com/repos/IcaliaLabs/aphrodite/pulls/comments/90947808","pull_request_review_id":11461451,"id":90947808,"diff_hunk":"@@ -0,0 +1,48 @@\n+module Aphrodite\n+  module Bot\n+    class FaceDetector < Olimpo::Base\n+      headers 'Content-Type' => 'application/json'\n+\n+      def self.detect_by_url(params, options = {}, headers = {})\n+        response = get(\"/v3/detect_faces\",\n+                        headers: default_visual_recognizer_headers.merge(headers),\n+                        query: default_visual_recognizer_options.merge(params).merge(options))\n+\n+\n+\n+        parsed_response = JSON.parse(response.body)\n+        return parsed_response if response.success?\n+\n+        raise_exception(response.code, response.body)\n+      end\n+\n+      def self.detect(params, options = {}, headers = {})\n+        response = post(\"/v3/detect_faces\",\n+                        body: params,\n+                        headers: default_visual_recognizer_headers.merge(headers),\n+                        query: default_visual_recognizer_options.merge(options))\n+\n+\n+\n+        parsed_response = JSON.parse(response.body)\n+        return parsed_response if response.success?\n+\n+        raise_exception(response.code, response.body)\n+      end\n+\n+      private\n+\n+        def self.default_visual_recognizer_options","path":"lib/aphrodite/bot/face_detector.rb","position":35,"original_position":35,"commit_id":"86f36ad573fcba4573c63d57b06193b375bbb764","original_commit_id":"86f36ad573fcba4573c63d57b06193b375bbb764","user":{"login":"walreyes","id":4768564,"avatar_url":"https://avatars.githubusercontent.com/u/4768564?v=3","gravatar_id":"","url":"https://api.github.com/users/walreyes","html_url":"https://github.com/walreyes","followers_url":"https://api.github.com/users/walreyes/followers","following_url":"https://api.github.com/users/walreyes/following{/other_user}","gists_url":"https://api.github.com/users/walreyes/gists{/gist_id}","starred_url":"https://api.github.com/users/walreyes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/walreyes/subscriptions","organizations_url":"https://api.github.com/users/walreyes/orgs","repos_url":"https://api.github.com/users/walreyes/repos","events_url":"https://api.github.com/users/walreyes/events{/privacy}","received_events_url":"https://api.github.com/users/walreyes/received_events","type":"User","site_admin":false},"body":"well, I thought so haha but I just ran `Aphrodite::Bot::VisualRecognizer.default_visual_recognizer_options` and it is not private. ","created_at":"2016-12-05T20:24:18Z","updated_at":"2016-12-05T20:24:18Z","html_url":"https://github.com/IcaliaLabs/aphrodite/pull/2#discussion_r90947808","pull_request_url":"https://api.github.com/repos/IcaliaLabs/aphrodite/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/IcaliaLabs/aphrodite/pulls/comments/90947808"},"html":{"href":"https://github.com/IcaliaLabs/aphrodite/pull/2#discussion_r90947808"},"pull_request":{"href":"https://api.github.com/repos/IcaliaLabs/aphrodite/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/IcaliaLabs/aphrodite/pulls/2","id":95802984,"html_url":"https://github.com/IcaliaLabs/aphrodite/pull/2","diff_url":"https://github.com/IcaliaLabs/aphrodite/pull/2.diff","patch_url":"https://github.com/IcaliaLabs/aphrodite/pull/2.patch","issue_url":"https://api.github.com/repos/IcaliaLabs/aphrodite/issues/2","number":2,"state":"open","locked":false,"title":"[WIP] feature/add-recognizer","user":{"login":"walreyes","id":4768564,"avatar_url":"https://avatars.githubusercontent.com/u/4768564?v=3","gravatar_id":"","url":"https://api.github.com/users/walreyes","html_url":"https://github.com/walreyes","followers_url":"https://api.github.com/users/walreyes/followers","following_url":"https://api.github.com/users/walreyes/following{/other_user}","gists_url":"https://api.github.com/users/walreyes/gists{/gist_id}","starred_url":"https://api.github.com/users/walreyes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/walreyes/subscriptions","organizations_url":"https://api.github.com/users/walreyes/orgs","repos_url":"https://api.github.com/users/walreyes/repos","events_url":"https://api.github.com/users/walreyes/events{/privacy}","received_events_url":"https://api.github.com/users/walreyes/received_events","type":"User","site_admin":false},"body":"### What does this PR do?\r\n\r\n* Adds VisualRecognizer with #classify_by_url and #classify methods\r\n\r\n### TODO\r\n\r\n* Handle case with post classify with zip folder","created_at":"2016-11-30T00:12:31Z","updated_at":"2016-12-05T20:24:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6d3ac07ac0c7a696ed018d4d3d019340cbb331f1","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/IcaliaLabs/aphrodite/pulls/2/commits","review_comments_url":"https://api.github.com/repos/IcaliaLabs/aphrodite/pulls/2/comments","review_comment_url":"https://api.github.com/repos/IcaliaLabs/aphrodite/pulls/comments{/number}","comments_url":"https://api.github.com/repos/IcaliaLabs/aphrodite/issues/2/comments","statuses_url":"https://api.github.com/repos/IcaliaLabs/aphrodite/statuses/86f36ad573fcba4573c63d57b06193b375bbb764","head":{"label":"IcaliaLabs:feature/add-recognizer","ref":"feature/add-recognizer","sha":"86f36ad573fcba4573c63d57b06193b375bbb764","user":{"login":"IcaliaLabs","id":2523244,"avatar_url":"https://avatars.githubusercontent.com/u/2523244?v=3","gravatar_id":"","url":"https://api.github.com/users/IcaliaLabs","html_url":"https://github.com/IcaliaLabs","followers_url":"https://api.github.com/users/IcaliaLabs/followers","following_url":"https://api.github.com/users/IcaliaLabs/following{/other_user}","gists_url":"https://api.github.com/users/IcaliaLabs/gists{/gist_id}","starred_url":"https://api.github.com/users/IcaliaLabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IcaliaLabs/subscriptions","organizations_url":"https://api.github.com/users/IcaliaLabs/orgs","repos_url":"https://api.github.com/users/IcaliaLabs/repos","events_url":"https://api.github.com/users/IcaliaLabs/events{/privacy}","received_events_url":"https://api.github.com/users/IcaliaLabs/received_events","type":"Organization","site_admin":false},"repo":{"id":74712529,"name":"aphrodite","full_name":"IcaliaLabs/aphrodite","owner":{"login":"IcaliaLabs","id":2523244,"avatar_url":"https://avatars.githubusercontent.com/u/2523244?v=3","gravatar_id":"","url":"https://api.github.com/users/IcaliaLabs","html_url":"https://github.com/IcaliaLabs","followers_url":"https://api.github.com/users/IcaliaLabs/followers","following_url":"https://api.github.com/users/IcaliaLabs/following{/other_user}","gists_url":"https://api.github.com/users/IcaliaLabs/gists{/gist_id}","starred_url":"https://api.github.com/users/IcaliaLabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IcaliaLabs/subscriptions","organizations_url":"https://api.github.com/users/IcaliaLabs/orgs","repos_url":"https://api.github.com/users/IcaliaLabs/repos","events_url":"https://api.github.com/users/IcaliaLabs/events{/privacy}","received_events_url":"https://api.github.com/users/IcaliaLabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/IcaliaLabs/aphrodite","description":"Watson Visual Recognition in Ruby","fork":false,"url":"https://api.github.com/repos/IcaliaLabs/aphrodite","forks_url":"https://api.github.com/repos/IcaliaLabs/aphrodite/forks","keys_url":"https://api.github.com/repos/IcaliaLabs/aphrodite/keys{/key_id}","collaborators_url":"https://api.github.com/repos/IcaliaLabs/aphrodite/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/IcaliaLabs/aphrodite/teams","hooks_url":"https://api.github.com/repos/IcaliaLabs/aphrodite/hooks","issue_events_url":"https://api.github.com/repos/IcaliaLabs/aphrodite/issues/events{/number}","events_url":"https://api.github.com/repos/IcaliaLabs/aphrodite/events","assignees_url":"https://api.github.com/repos/IcaliaLabs/aphrodite/assignees{/user}","branches_url":"https://api.github.com/repos/IcaliaLabs/aphrodite/branches{/branch}","tags_url":"https://api.github.com/repos/IcaliaLabs/aphrodite/tags","blobs_url":"https://api.github.com/repos/IcaliaLabs/aphrodite/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/IcaliaLabs/aphrodite/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/IcaliaLabs/aphrodite/git/refs{/sha}","trees_url":"https://api.github.com/repos/IcaliaLabs/aphrodite/git/trees{/sha}","statuses_url":"https://api.github.com/repos/IcaliaLabs/aphrodite/statuses/{sha}","languages_url":"https://api.github.com/repos/IcaliaLabs/aphrodite/languages","stargazers_url":"https://api.github.com/repos/IcaliaLabs/aphrodite/stargazers","contributors_url":"https://api.github.com/repos/IcaliaLabs/aphrodite/contributors","subscribers_url":"https://api.github.com/repos/IcaliaLabs/aphrodite/subscribers","subscription_url":"https://api.github.com/repos/IcaliaLabs/aphrodite/subscription","commits_url":"https://api.github.com/repos/IcaliaLabs/aphrodite/commits{/sha}","git_commits_url":"https://api.github.com/repos/IcaliaLabs/aphrodite/git/commits{/sha}","comments_url":"https://api.github.com/repos/IcaliaLabs/aphrodite/comments{/number}","issue_comment_url":"https://api.github.com/repos/IcaliaLabs/aphrodite/issues/comments{/number}","contents_url":"https://api.github.com/repos/IcaliaLabs/aphrodite/contents/{+path}","compare_url":"https://api.github.com/repos/IcaliaLabs/aphrodite/compare/{base}...{head}","merges_url":"https://api.github.com/repos/IcaliaLabs/aphrodite/merges","archive_url":"https://api.github.com/repos/IcaliaLabs/aphrodite/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/IcaliaLabs/aphrodite/downloads","issues_url":"https://api.github.com/repos/IcaliaLabs/aphrodite/issues{/number}","pulls_url":"https://api.github.com/repos/IcaliaLabs/aphrodite/pulls{/number}","milestones_url":"https://api.github.com/repos/IcaliaLabs/aphrodite/milestones{/number}","notifications_url":"https://api.github.com/repos/IcaliaLabs/aphrodite/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/IcaliaLabs/aphrodite/labels{/name}","releases_url":"https://api.github.com/repos/IcaliaLabs/aphrodite/releases{/id}","deployments_url":"https://api.github.com/repos/IcaliaLabs/aphrodite/deployments","created_at":"2016-11-25T00:11:30Z","updated_at":"2016-11-25T00:16:03Z","pushed_at":"2016-12-05T18:54:32Z","git_url":"git://github.com/IcaliaLabs/aphrodite.git","ssh_url":"git@github.com:IcaliaLabs/aphrodite.git","clone_url":"https://github.com/IcaliaLabs/aphrodite.git","svn_url":"https://github.com/IcaliaLabs/aphrodite","homepage":null,"size":18,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"IcaliaLabs:develop","ref":"develop","sha":"06fccbf9781d76b06913383fbf0bd692d0633f17","user":{"login":"IcaliaLabs","id":2523244,"avatar_url":"https://avatars.githubusercontent.com/u/2523244?v=3","gravatar_id":"","url":"https://api.github.com/users/IcaliaLabs","html_url":"https://github.com/IcaliaLabs","followers_url":"https://api.github.com/users/IcaliaLabs/followers","following_url":"https://api.github.com/users/IcaliaLabs/following{/other_user}","gists_url":"https://api.github.com/users/IcaliaLabs/gists{/gist_id}","starred_url":"https://api.github.com/users/IcaliaLabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IcaliaLabs/subscriptions","organizations_url":"https://api.github.com/users/IcaliaLabs/orgs","repos_url":"https://api.github.com/users/IcaliaLabs/repos","events_url":"https://api.github.com/users/IcaliaLabs/events{/privacy}","received_events_url":"https://api.github.com/users/IcaliaLabs/received_events","type":"Organization","site_admin":false},"repo":{"id":74712529,"name":"aphrodite","full_name":"IcaliaLabs/aphrodite","owner":{"login":"IcaliaLabs","id":2523244,"avatar_url":"https://avatars.githubusercontent.com/u/2523244?v=3","gravatar_id":"","url":"https://api.github.com/users/IcaliaLabs","html_url":"https://github.com/IcaliaLabs","followers_url":"https://api.github.com/users/IcaliaLabs/followers","following_url":"https://api.github.com/users/IcaliaLabs/following{/other_user}","gists_url":"https://api.github.com/users/IcaliaLabs/gists{/gist_id}","starred_url":"https://api.github.com/users/IcaliaLabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IcaliaLabs/subscriptions","organizations_url":"https://api.github.com/users/IcaliaLabs/orgs","repos_url":"https://api.github.com/users/IcaliaLabs/repos","events_url":"https://api.github.com/users/IcaliaLabs/events{/privacy}","received_events_url":"https://api.github.com/users/IcaliaLabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/IcaliaLabs/aphrodite","description":"Watson Visual Recognition in Ruby","fork":false,"url":"https://api.github.com/repos/IcaliaLabs/aphrodite","forks_url":"https://api.github.com/repos/IcaliaLabs/aphrodite/forks","keys_url":"https://api.github.com/repos/IcaliaLabs/aphrodite/keys{/key_id}","collaborators_url":"https://api.github.com/repos/IcaliaLabs/aphrodite/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/IcaliaLabs/aphrodite/teams","hooks_url":"https://api.github.com/repos/IcaliaLabs/aphrodite/hooks","issue_events_url":"https://api.github.com/repos/IcaliaLabs/aphrodite/issues/events{/number}","events_url":"https://api.github.com/repos/IcaliaLabs/aphrodite/events","assignees_url":"https://api.github.com/repos/IcaliaLabs/aphrodite/assignees{/user}","branches_url":"https://api.github.com/repos/IcaliaLabs/aphrodite/branches{/branch}","tags_url":"https://api.github.com/repos/IcaliaLabs/aphrodite/tags","blobs_url":"https://api.github.com/repos/IcaliaLabs/aphrodite/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/IcaliaLabs/aphrodite/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/IcaliaLabs/aphrodite/git/refs{/sha}","trees_url":"https://api.github.com/repos/IcaliaLabs/aphrodite/git/trees{/sha}","statuses_url":"https://api.github.com/repos/IcaliaLabs/aphrodite/statuses/{sha}","languages_url":"https://api.github.com/repos/IcaliaLabs/aphrodite/languages","stargazers_url":"https://api.github.com/repos/IcaliaLabs/aphrodite/stargazers","contributors_url":"https://api.github.com/repos/IcaliaLabs/aphrodite/contributors","subscribers_url":"https://api.github.com/repos/IcaliaLabs/aphrodite/subscribers","subscription_url":"https://api.github.com/repos/IcaliaLabs/aphrodite/subscription","commits_url":"https://api.github.com/repos/IcaliaLabs/aphrodite/commits{/sha}","git_commits_url":"https://api.github.com/repos/IcaliaLabs/aphrodite/git/commits{/sha}","comments_url":"https://api.github.com/repos/IcaliaLabs/aphrodite/comments{/number}","issue_comment_url":"https://api.github.com/repos/IcaliaLabs/aphrodite/issues/comments{/number}","contents_url":"https://api.github.com/repos/IcaliaLabs/aphrodite/contents/{+path}","compare_url":"https://api.github.com/repos/IcaliaLabs/aphrodite/compare/{base}...{head}","merges_url":"https://api.github.com/repos/IcaliaLabs/aphrodite/merges","archive_url":"https://api.github.com/repos/IcaliaLabs/aphrodite/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/IcaliaLabs/aphrodite/downloads","issues_url":"https://api.github.com/repos/IcaliaLabs/aphrodite/issues{/number}","pulls_url":"https://api.github.com/repos/IcaliaLabs/aphrodite/pulls{/number}","milestones_url":"https://api.github.com/repos/IcaliaLabs/aphrodite/milestones{/number}","notifications_url":"https://api.github.com/repos/IcaliaLabs/aphrodite/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/IcaliaLabs/aphrodite/labels{/name}","releases_url":"https://api.github.com/repos/IcaliaLabs/aphrodite/releases{/id}","deployments_url":"https://api.github.com/repos/IcaliaLabs/aphrodite/deployments","created_at":"2016-11-25T00:11:30Z","updated_at":"2016-11-25T00:16:03Z","pushed_at":"2016-12-05T18:54:32Z","git_url":"git://github.com/IcaliaLabs/aphrodite.git","ssh_url":"git@github.com:IcaliaLabs/aphrodite.git","clone_url":"https://github.com/IcaliaLabs/aphrodite.git","svn_url":"https://github.com/IcaliaLabs/aphrodite","homepage":null,"size":18,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/IcaliaLabs/aphrodite/pulls/2"},"html":{"href":"https://github.com/IcaliaLabs/aphrodite/pull/2"},"issue":{"href":"https://api.github.com/repos/IcaliaLabs/aphrodite/issues/2"},"comments":{"href":"https://api.github.com/repos/IcaliaLabs/aphrodite/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/IcaliaLabs/aphrodite/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/IcaliaLabs/aphrodite/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/IcaliaLabs/aphrodite/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/IcaliaLabs/aphrodite/statuses/86f36ad573fcba4573c63d57b06193b375bbb764"}}}}
{"actor":{"display_login":"walreyes"}}