{"action":"created","comment":{"url":"https://api.github.com/repos/CoveoWhisper/MLAPI/pulls/comments/221763034","pull_request_review_id":160493349,"id":221763034,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyMTc2MzAzNA==","diff_hunk":"@@ -0,0 +1,49 @@\n+from collections import Counter\n+from mlapi.model.question import Question\n+\n+\n+class QuestionGenerator(object):\n+    def generate_questions(self, facets_by_document):\n+        if len(facets_by_document) is 0:","path":"mlapi/question_generator.py","position":7,"original_position":7,"commit_id":"cf7e43b505bd97dc07d189a29c834fde2ea26d26","original_commit_id":"cf7e43b505bd97dc07d189a29c834fde2ea26d26","user":{"login":"linhofen","id":7452472,"node_id":"MDQ6VXNlcjc0NTI0NzI=","avatar_url":"https://avatars3.githubusercontent.com/u/7452472?v=4","gravatar_id":"","url":"https://api.github.com/users/linhofen","html_url":"https://github.com/linhofen","followers_url":"https://api.github.com/users/linhofen/followers","following_url":"https://api.github.com/users/linhofen/following{/other_user}","gists_url":"https://api.github.com/users/linhofen/gists{/gist_id}","starred_url":"https://api.github.com/users/linhofen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linhofen/subscriptions","organizations_url":"https://api.github.com/users/linhofen/orgs","repos_url":"https://api.github.com/users/linhofen/repos","events_url":"https://api.github.com/users/linhofen/events{/privacy}","received_events_url":"https://api.github.com/users/linhofen/received_events","type":"User","site_admin":false},"body":"didn't know about that, i like it!","created_at":"2018-10-01T21:29:38Z","updated_at":"2018-10-01T21:29:38Z","html_url":"https://github.com/CoveoWhisper/MLAPI/pull/15#discussion_r221763034","pull_request_url":"https://api.github.com/repos/CoveoWhisper/MLAPI/pulls/15","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/CoveoWhisper/MLAPI/pulls/comments/221763034"},"html":{"href":"https://github.com/CoveoWhisper/MLAPI/pull/15#discussion_r221763034"},"pull_request":{"href":"https://api.github.com/repos/CoveoWhisper/MLAPI/pulls/15"}},"in_reply_to_id":221701595},"pull_request":{"url":"https://api.github.com/repos/CoveoWhisper/MLAPI/pulls/15","id":219387045,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE5Mzg3MDQ1","html_url":"https://github.com/CoveoWhisper/MLAPI/pull/15","diff_url":"https://github.com/CoveoWhisper/MLAPI/pull/15.diff","patch_url":"https://github.com/CoveoWhisper/MLAPI/pull/15.patch","issue_url":"https://api.github.com/repos/CoveoWhisper/MLAPI/issues/15","number":15,"state":"open","locked":false,"title":"Added question generator","user":{"login":"linhofen","id":7452472,"node_id":"MDQ6VXNlcjc0NTI0NzI=","avatar_url":"https://avatars3.githubusercontent.com/u/7452472?v=4","gravatar_id":"","url":"https://api.github.com/users/linhofen","html_url":"https://github.com/linhofen","followers_url":"https://api.github.com/users/linhofen/followers","following_url":"https://api.github.com/users/linhofen/following{/other_user}","gists_url":"https://api.github.com/users/linhofen/gists{/gist_id}","starred_url":"https://api.github.com/users/linhofen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linhofen/subscriptions","organizations_url":"https://api.github.com/users/linhofen/orgs","repos_url":"https://api.github.com/users/linhofen/repos","events_url":"https://api.github.com/users/linhofen/events{/privacy}","received_events_url":"https://api.github.com/users/linhofen/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-10-01T14:00:56Z","updated_at":"2018-10-01T21:29:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6e1006dabf05c2f66977cc59d976ed990e2f2a46","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/CoveoWhisper/MLAPI/pulls/15/commits","review_comments_url":"https://api.github.com/repos/CoveoWhisper/MLAPI/pulls/15/comments","review_comment_url":"https://api.github.com/repos/CoveoWhisper/MLAPI/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CoveoWhisper/MLAPI/issues/15/comments","statuses_url":"https://api.github.com/repos/CoveoWhisper/MLAPI/statuses/cf7e43b505bd97dc07d189a29c834fde2ea26d26","head":{"label":"CoveoWhisper:question_generation","ref":"question_generation","sha":"cf7e43b505bd97dc07d189a29c834fde2ea26d26","user":{"login":"CoveoWhisper","id":37420350,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM3NDIwMzUw","avatar_url":"https://avatars1.githubusercontent.com/u/37420350?v=4","gravatar_id":"","url":"https://api.github.com/users/CoveoWhisper","html_url":"https://github.com/CoveoWhisper","followers_url":"https://api.github.com/users/CoveoWhisper/followers","following_url":"https://api.github.com/users/CoveoWhisper/following{/other_user}","gists_url":"https://api.github.com/users/CoveoWhisper/gists{/gist_id}","starred_url":"https://api.github.com/users/CoveoWhisper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CoveoWhisper/subscriptions","organizations_url":"https://api.github.com/users/CoveoWhisper/orgs","repos_url":"https://api.github.com/users/CoveoWhisper/repos","events_url":"https://api.github.com/users/CoveoWhisper/events{/privacy}","received_events_url":"https://api.github.com/users/CoveoWhisper/received_events","type":"Organization","site_admin":false},"repo":{"id":126866319,"node_id":"MDEwOlJlcG9zaXRvcnkxMjY4NjYzMTk=","name":"MLAPI","full_name":"CoveoWhisper/MLAPI","private":false,"owner":{"login":"CoveoWhisper","id":37420350,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM3NDIwMzUw","avatar_url":"https://avatars1.githubusercontent.com/u/37420350?v=4","gravatar_id":"","url":"https://api.github.com/users/CoveoWhisper","html_url":"https://github.com/CoveoWhisper","followers_url":"https://api.github.com/users/CoveoWhisper/followers","following_url":"https://api.github.com/users/CoveoWhisper/following{/other_user}","gists_url":"https://api.github.com/users/CoveoWhisper/gists{/gist_id}","starred_url":"https://api.github.com/users/CoveoWhisper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CoveoWhisper/subscriptions","organizations_url":"https://api.github.com/users/CoveoWhisper/orgs","repos_url":"https://api.github.com/users/CoveoWhisper/repos","events_url":"https://api.github.com/users/CoveoWhisper/events{/privacy}","received_events_url":"https://api.github.com/users/CoveoWhisper/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/CoveoWhisper/MLAPI","description":null,"fork":false,"url":"https://api.github.com/repos/CoveoWhisper/MLAPI","forks_url":"https://api.github.com/repos/CoveoWhisper/MLAPI/forks","keys_url":"https://api.github.com/repos/CoveoWhisper/MLAPI/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CoveoWhisper/MLAPI/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CoveoWhisper/MLAPI/teams","hooks_url":"https://api.github.com/repos/CoveoWhisper/MLAPI/hooks","issue_events_url":"https://api.github.com/repos/CoveoWhisper/MLAPI/issues/events{/number}","events_url":"https://api.github.com/repos/CoveoWhisper/MLAPI/events","assignees_url":"https://api.github.com/repos/CoveoWhisper/MLAPI/assignees{/user}","branches_url":"https://api.github.com/repos/CoveoWhisper/MLAPI/branches{/branch}","tags_url":"https://api.github.com/repos/CoveoWhisper/MLAPI/tags","blobs_url":"https://api.github.com/repos/CoveoWhisper/MLAPI/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CoveoWhisper/MLAPI/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CoveoWhisper/MLAPI/git/refs{/sha}","trees_url":"https://api.github.com/repos/CoveoWhisper/MLAPI/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CoveoWhisper/MLAPI/statuses/{sha}","languages_url":"https://api.github.com/repos/CoveoWhisper/MLAPI/languages","stargazers_url":"https://api.github.com/repos/CoveoWhisper/MLAPI/stargazers","contributors_url":"https://api.github.com/repos/CoveoWhisper/MLAPI/contributors","subscribers_url":"https://api.github.com/repos/CoveoWhisper/MLAPI/subscribers","subscription_url":"https://api.github.com/repos/CoveoWhisper/MLAPI/subscription","commits_url":"https://api.github.com/repos/CoveoWhisper/MLAPI/commits{/sha}","git_commits_url":"https://api.github.com/repos/CoveoWhisper/MLAPI/git/commits{/sha}","comments_url":"https://api.github.com/repos/CoveoWhisper/MLAPI/comments{/number}","issue_comment_url":"https://api.github.com/repos/CoveoWhisper/MLAPI/issues/comments{/number}","contents_url":"https://api.github.com/repos/CoveoWhisper/MLAPI/contents/{+path}","compare_url":"https://api.github.com/repos/CoveoWhisper/MLAPI/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CoveoWhisper/MLAPI/merges","archive_url":"https://api.github.com/repos/CoveoWhisper/MLAPI/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CoveoWhisper/MLAPI/downloads","issues_url":"https://api.github.com/repos/CoveoWhisper/MLAPI/issues{/number}","pulls_url":"https://api.github.com/repos/CoveoWhisper/MLAPI/pulls{/number}","milestones_url":"https://api.github.com/repos/CoveoWhisper/MLAPI/milestones{/number}","notifications_url":"https://api.github.com/repos/CoveoWhisper/MLAPI/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CoveoWhisper/MLAPI/labels{/name}","releases_url":"https://api.github.com/repos/CoveoWhisper/MLAPI/releases{/id}","deployments_url":"https://api.github.com/repos/CoveoWhisper/MLAPI/deployments","created_at":"2018-03-26T17:40:36Z","updated_at":"2018-10-01T19:55:48Z","pushed_at":"2018-10-01T19:55:46Z","git_url":"git://github.com/CoveoWhisper/MLAPI.git","ssh_url":"git@github.com:CoveoWhisper/MLAPI.git","clone_url":"https://github.com/CoveoWhisper/MLAPI.git","svn_url":"https://github.com/CoveoWhisper/MLAPI","homepage":null,"size":43,"stargazers_count":0,"watchers_count":0,"language":"Python","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":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":1,"watchers":0,"default_branch":"development"}},"base":{"label":"CoveoWhisper:development","ref":"development","sha":"da6ccc1405c38f05637c054a7016a236592d1633","user":{"login":"CoveoWhisper","id":37420350,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM3NDIwMzUw","avatar_url":"https://avatars1.githubusercontent.com/u/37420350?v=4","gravatar_id":"","url":"https://api.github.com/users/CoveoWhisper","html_url":"https://github.com/CoveoWhisper","followers_url":"https://api.github.com/users/CoveoWhisper/followers","following_url":"https://api.github.com/users/CoveoWhisper/following{/other_user}","gists_url":"https://api.github.com/users/CoveoWhisper/gists{/gist_id}","starred_url":"https://api.github.com/users/CoveoWhisper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CoveoWhisper/subscriptions","organizations_url":"https://api.github.com/users/CoveoWhisper/orgs","repos_url":"https://api.github.com/users/CoveoWhisper/repos","events_url":"https://api.github.com/users/CoveoWhisper/events{/privacy}","received_events_url":"https://api.github.com/users/CoveoWhisper/received_events","type":"Organization","site_admin":false},"repo":{"id":126866319,"node_id":"MDEwOlJlcG9zaXRvcnkxMjY4NjYzMTk=","name":"MLAPI","full_name":"CoveoWhisper/MLAPI","private":false,"owner":{"login":"CoveoWhisper","id":37420350,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM3NDIwMzUw","avatar_url":"https://avatars1.githubusercontent.com/u/37420350?v=4","gravatar_id":"","url":"https://api.github.com/users/CoveoWhisper","html_url":"https://github.com/CoveoWhisper","followers_url":"https://api.github.com/users/CoveoWhisper/followers","following_url":"https://api.github.com/users/CoveoWhisper/following{/other_user}","gists_url":"https://api.github.com/users/CoveoWhisper/gists{/gist_id}","starred_url":"https://api.github.com/users/CoveoWhisper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CoveoWhisper/subscriptions","organizations_url":"https://api.github.com/users/CoveoWhisper/orgs","repos_url":"https://api.github.com/users/CoveoWhisper/repos","events_url":"https://api.github.com/users/CoveoWhisper/events{/privacy}","received_events_url":"https://api.github.com/users/CoveoWhisper/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/CoveoWhisper/MLAPI","description":null,"fork":false,"url":"https://api.github.com/repos/CoveoWhisper/MLAPI","forks_url":"https://api.github.com/repos/CoveoWhisper/MLAPI/forks","keys_url":"https://api.github.com/repos/CoveoWhisper/MLAPI/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CoveoWhisper/MLAPI/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CoveoWhisper/MLAPI/teams","hooks_url":"https://api.github.com/repos/CoveoWhisper/MLAPI/hooks","issue_events_url":"https://api.github.com/repos/CoveoWhisper/MLAPI/issues/events{/number}","events_url":"https://api.github.com/repos/CoveoWhisper/MLAPI/events","assignees_url":"https://api.github.com/repos/CoveoWhisper/MLAPI/assignees{/user}","branches_url":"https://api.github.com/repos/CoveoWhisper/MLAPI/branches{/branch}","tags_url":"https://api.github.com/repos/CoveoWhisper/MLAPI/tags","blobs_url":"https://api.github.com/repos/CoveoWhisper/MLAPI/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CoveoWhisper/MLAPI/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CoveoWhisper/MLAPI/git/refs{/sha}","trees_url":"https://api.github.com/repos/CoveoWhisper/MLAPI/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CoveoWhisper/MLAPI/statuses/{sha}","languages_url":"https://api.github.com/repos/CoveoWhisper/MLAPI/languages","stargazers_url":"https://api.github.com/repos/CoveoWhisper/MLAPI/stargazers","contributors_url":"https://api.github.com/repos/CoveoWhisper/MLAPI/contributors","subscribers_url":"https://api.github.com/repos/CoveoWhisper/MLAPI/subscribers","subscription_url":"https://api.github.com/repos/CoveoWhisper/MLAPI/subscription","commits_url":"https://api.github.com/repos/CoveoWhisper/MLAPI/commits{/sha}","git_commits_url":"https://api.github.com/repos/CoveoWhisper/MLAPI/git/commits{/sha}","comments_url":"https://api.github.com/repos/CoveoWhisper/MLAPI/comments{/number}","issue_comment_url":"https://api.github.com/repos/CoveoWhisper/MLAPI/issues/comments{/number}","contents_url":"https://api.github.com/repos/CoveoWhisper/MLAPI/contents/{+path}","compare_url":"https://api.github.com/repos/CoveoWhisper/MLAPI/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CoveoWhisper/MLAPI/merges","archive_url":"https://api.github.com/repos/CoveoWhisper/MLAPI/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CoveoWhisper/MLAPI/downloads","issues_url":"https://api.github.com/repos/CoveoWhisper/MLAPI/issues{/number}","pulls_url":"https://api.github.com/repos/CoveoWhisper/MLAPI/pulls{/number}","milestones_url":"https://api.github.com/repos/CoveoWhisper/MLAPI/milestones{/number}","notifications_url":"https://api.github.com/repos/CoveoWhisper/MLAPI/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CoveoWhisper/MLAPI/labels{/name}","releases_url":"https://api.github.com/repos/CoveoWhisper/MLAPI/releases{/id}","deployments_url":"https://api.github.com/repos/CoveoWhisper/MLAPI/deployments","created_at":"2018-03-26T17:40:36Z","updated_at":"2018-10-01T19:55:48Z","pushed_at":"2018-10-01T19:55:46Z","git_url":"git://github.com/CoveoWhisper/MLAPI.git","ssh_url":"git@github.com:CoveoWhisper/MLAPI.git","clone_url":"https://github.com/CoveoWhisper/MLAPI.git","svn_url":"https://github.com/CoveoWhisper/MLAPI","homepage":null,"size":43,"stargazers_count":0,"watchers_count":0,"language":"Python","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":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":1,"watchers":0,"default_branch":"development"}},"_links":{"self":{"href":"https://api.github.com/repos/CoveoWhisper/MLAPI/pulls/15"},"html":{"href":"https://github.com/CoveoWhisper/MLAPI/pull/15"},"issue":{"href":"https://api.github.com/repos/CoveoWhisper/MLAPI/issues/15"},"comments":{"href":"https://api.github.com/repos/CoveoWhisper/MLAPI/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/CoveoWhisper/MLAPI/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/CoveoWhisper/MLAPI/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CoveoWhisper/MLAPI/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/CoveoWhisper/MLAPI/statuses/cf7e43b505bd97dc07d189a29c834fde2ea26d26"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"linhofen"}}