{"action":"created","comment":{"url":"https://api.github.com/repos/BorisovDm/mlschool_cian/pulls/comments/306327993","pull_request_review_id":265408965,"id":306327993,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDMwNjMyNzk5Mw==","diff_hunk":"@@ -0,0 +1,40 @@\n+from confluent_kafka import Consumer, KafkaException\n+from multiprocessing import Pool\n+\n+\n+TOPIC_NAME = 'mles.announcements'\n+\n+\n+def get_consumer(is_subscribe=True):\n+    consumer = Consumer({\n+        'bootstrap.servers': '10.156.0.3:6667,10.156.0.4:6667,10.156.0.5:6667',\n+        'group.id': 'dborisov_hw1_task3',\n+    })\n+    if is_subscribe:\n+        consumer.subscribe([TOPIC_NAME]) ","path":"homework_1/task_3.py","position":14,"original_position":14,"commit_id":"85eb32178349b9cb5a0e1bacb306f2fb2b9085a2","original_commit_id":"85eb32178349b9cb5a0e1bacb306f2fb2b9085a2","user":{"login":"b2arn","id":842743,"node_id":"MDQ6VXNlcjg0Mjc0Mw==","avatar_url":"https://avatars2.githubusercontent.com/u/842743?v=4","gravatar_id":"","url":"https://api.github.com/users/b2arn","html_url":"https://github.com/b2arn","followers_url":"https://api.github.com/users/b2arn/followers","following_url":"https://api.github.com/users/b2arn/following{/other_user}","gists_url":"https://api.github.com/users/b2arn/gists{/gist_id}","starred_url":"https://api.github.com/users/b2arn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/b2arn/subscriptions","organizations_url":"https://api.github.com/users/b2arn/orgs","repos_url":"https://api.github.com/users/b2arn/repos","events_url":"https://api.github.com/users/b2arn/events{/privacy}","received_events_url":"https://api.github.com/users/b2arn/received_events","type":"User","site_admin":false},"body":"этот кусок кода лучше перенести в consume_data","created_at":"2019-07-23T13:48:10Z","updated_at":"2019-07-23T13:49:48Z","html_url":"https://github.com/BorisovDm/mlschool_cian/pull/1#discussion_r306327993","pull_request_url":"https://api.github.com/repos/BorisovDm/mlschool_cian/pulls/1","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/BorisovDm/mlschool_cian/pulls/comments/306327993"},"html":{"href":"https://github.com/BorisovDm/mlschool_cian/pull/1#discussion_r306327993"},"pull_request":{"href":"https://api.github.com/repos/BorisovDm/mlschool_cian/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/BorisovDm/mlschool_cian/pulls/1","id":299088262,"node_id":"MDExOlB1bGxSZXF1ZXN0Mjk5MDg4MjYy","html_url":"https://github.com/BorisovDm/mlschool_cian/pull/1","diff_url":"https://github.com/BorisovDm/mlschool_cian/pull/1.diff","patch_url":"https://github.com/BorisovDm/mlschool_cian/pull/1.patch","issue_url":"https://api.github.com/repos/BorisovDm/mlschool_cian/issues/1","number":1,"state":"open","locked":false,"title":"Hw 1","user":{"login":"BorisovDm","id":11964955,"node_id":"MDQ6VXNlcjExOTY0OTU1","avatar_url":"https://avatars1.githubusercontent.com/u/11964955?v=4","gravatar_id":"","url":"https://api.github.com/users/BorisovDm","html_url":"https://github.com/BorisovDm","followers_url":"https://api.github.com/users/BorisovDm/followers","following_url":"https://api.github.com/users/BorisovDm/following{/other_user}","gists_url":"https://api.github.com/users/BorisovDm/gists{/gist_id}","starred_url":"https://api.github.com/users/BorisovDm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BorisovDm/subscriptions","organizations_url":"https://api.github.com/users/BorisovDm/orgs","repos_url":"https://api.github.com/users/BorisovDm/repos","events_url":"https://api.github.com/users/BorisovDm/events{/privacy}","received_events_url":"https://api.github.com/users/BorisovDm/received_events","type":"User","site_admin":false},"body":"","created_at":"2019-07-18T20:55:44Z","updated_at":"2019-07-23T13:49:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"538cf8708cee0478c44e9dad5fdb0da7ae18c588","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/BorisovDm/mlschool_cian/pulls/1/commits","review_comments_url":"https://api.github.com/repos/BorisovDm/mlschool_cian/pulls/1/comments","review_comment_url":"https://api.github.com/repos/BorisovDm/mlschool_cian/pulls/comments{/number}","comments_url":"https://api.github.com/repos/BorisovDm/mlschool_cian/issues/1/comments","statuses_url":"https://api.github.com/repos/BorisovDm/mlschool_cian/statuses/85eb32178349b9cb5a0e1bacb306f2fb2b9085a2","head":{"label":"BorisovDm:HW-1","ref":"HW-1","sha":"85eb32178349b9cb5a0e1bacb306f2fb2b9085a2","user":{"login":"BorisovDm","id":11964955,"node_id":"MDQ6VXNlcjExOTY0OTU1","avatar_url":"https://avatars1.githubusercontent.com/u/11964955?v=4","gravatar_id":"","url":"https://api.github.com/users/BorisovDm","html_url":"https://github.com/BorisovDm","followers_url":"https://api.github.com/users/BorisovDm/followers","following_url":"https://api.github.com/users/BorisovDm/following{/other_user}","gists_url":"https://api.github.com/users/BorisovDm/gists{/gist_id}","starred_url":"https://api.github.com/users/BorisovDm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BorisovDm/subscriptions","organizations_url":"https://api.github.com/users/BorisovDm/orgs","repos_url":"https://api.github.com/users/BorisovDm/repos","events_url":"https://api.github.com/users/BorisovDm/events{/privacy}","received_events_url":"https://api.github.com/users/BorisovDm/received_events","type":"User","site_admin":false},"repo":{"id":194558552,"node_id":"MDEwOlJlcG9zaXRvcnkxOTQ1NTg1NTI=","name":"mlschool_cian","full_name":"BorisovDm/mlschool_cian","private":false,"owner":{"login":"BorisovDm","id":11964955,"node_id":"MDQ6VXNlcjExOTY0OTU1","avatar_url":"https://avatars1.githubusercontent.com/u/11964955?v=4","gravatar_id":"","url":"https://api.github.com/users/BorisovDm","html_url":"https://github.com/BorisovDm","followers_url":"https://api.github.com/users/BorisovDm/followers","following_url":"https://api.github.com/users/BorisovDm/following{/other_user}","gists_url":"https://api.github.com/users/BorisovDm/gists{/gist_id}","starred_url":"https://api.github.com/users/BorisovDm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BorisovDm/subscriptions","organizations_url":"https://api.github.com/users/BorisovDm/orgs","repos_url":"https://api.github.com/users/BorisovDm/repos","events_url":"https://api.github.com/users/BorisovDm/events{/privacy}","received_events_url":"https://api.github.com/users/BorisovDm/received_events","type":"User","site_admin":false},"html_url":"https://github.com/BorisovDm/mlschool_cian","description":null,"fork":false,"url":"https://api.github.com/repos/BorisovDm/mlschool_cian","forks_url":"https://api.github.com/repos/BorisovDm/mlschool_cian/forks","keys_url":"https://api.github.com/repos/BorisovDm/mlschool_cian/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BorisovDm/mlschool_cian/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BorisovDm/mlschool_cian/teams","hooks_url":"https://api.github.com/repos/BorisovDm/mlschool_cian/hooks","issue_events_url":"https://api.github.com/repos/BorisovDm/mlschool_cian/issues/events{/number}","events_url":"https://api.github.com/repos/BorisovDm/mlschool_cian/events","assignees_url":"https://api.github.com/repos/BorisovDm/mlschool_cian/assignees{/user}","branches_url":"https://api.github.com/repos/BorisovDm/mlschool_cian/branches{/branch}","tags_url":"https://api.github.com/repos/BorisovDm/mlschool_cian/tags","blobs_url":"https://api.github.com/repos/BorisovDm/mlschool_cian/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BorisovDm/mlschool_cian/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BorisovDm/mlschool_cian/git/refs{/sha}","trees_url":"https://api.github.com/repos/BorisovDm/mlschool_cian/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BorisovDm/mlschool_cian/statuses/{sha}","languages_url":"https://api.github.com/repos/BorisovDm/mlschool_cian/languages","stargazers_url":"https://api.github.com/repos/BorisovDm/mlschool_cian/stargazers","contributors_url":"https://api.github.com/repos/BorisovDm/mlschool_cian/contributors","subscribers_url":"https://api.github.com/repos/BorisovDm/mlschool_cian/subscribers","subscription_url":"https://api.github.com/repos/BorisovDm/mlschool_cian/subscription","commits_url":"https://api.github.com/repos/BorisovDm/mlschool_cian/commits{/sha}","git_commits_url":"https://api.github.com/repos/BorisovDm/mlschool_cian/git/commits{/sha}","comments_url":"https://api.github.com/repos/BorisovDm/mlschool_cian/comments{/number}","issue_comment_url":"https://api.github.com/repos/BorisovDm/mlschool_cian/issues/comments{/number}","contents_url":"https://api.github.com/repos/BorisovDm/mlschool_cian/contents/{+path}","compare_url":"https://api.github.com/repos/BorisovDm/mlschool_cian/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BorisovDm/mlschool_cian/merges","archive_url":"https://api.github.com/repos/BorisovDm/mlschool_cian/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BorisovDm/mlschool_cian/downloads","issues_url":"https://api.github.com/repos/BorisovDm/mlschool_cian/issues{/number}","pulls_url":"https://api.github.com/repos/BorisovDm/mlschool_cian/pulls{/number}","milestones_url":"https://api.github.com/repos/BorisovDm/mlschool_cian/milestones{/number}","notifications_url":"https://api.github.com/repos/BorisovDm/mlschool_cian/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BorisovDm/mlschool_cian/labels{/name}","releases_url":"https://api.github.com/repos/BorisovDm/mlschool_cian/releases{/id}","deployments_url":"https://api.github.com/repos/BorisovDm/mlschool_cian/deployments","created_at":"2019-06-30T20:30:35Z","updated_at":"2019-06-30T20:30:38Z","pushed_at":"2019-07-18T20:55:44Z","git_url":"git://github.com/BorisovDm/mlschool_cian.git","ssh_url":"git@github.com:BorisovDm/mlschool_cian.git","clone_url":"https://github.com/BorisovDm/mlschool_cian.git","svn_url":"https://github.com/BorisovDm/mlschool_cian","homepage":null,"size":3,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"BorisovDm:master","ref":"master","sha":"9f6585ea34aa72a7b1754b2d93bb4af4ddff2ec6","user":{"login":"BorisovDm","id":11964955,"node_id":"MDQ6VXNlcjExOTY0OTU1","avatar_url":"https://avatars1.githubusercontent.com/u/11964955?v=4","gravatar_id":"","url":"https://api.github.com/users/BorisovDm","html_url":"https://github.com/BorisovDm","followers_url":"https://api.github.com/users/BorisovDm/followers","following_url":"https://api.github.com/users/BorisovDm/following{/other_user}","gists_url":"https://api.github.com/users/BorisovDm/gists{/gist_id}","starred_url":"https://api.github.com/users/BorisovDm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BorisovDm/subscriptions","organizations_url":"https://api.github.com/users/BorisovDm/orgs","repos_url":"https://api.github.com/users/BorisovDm/repos","events_url":"https://api.github.com/users/BorisovDm/events{/privacy}","received_events_url":"https://api.github.com/users/BorisovDm/received_events","type":"User","site_admin":false},"repo":{"id":194558552,"node_id":"MDEwOlJlcG9zaXRvcnkxOTQ1NTg1NTI=","name":"mlschool_cian","full_name":"BorisovDm/mlschool_cian","private":false,"owner":{"login":"BorisovDm","id":11964955,"node_id":"MDQ6VXNlcjExOTY0OTU1","avatar_url":"https://avatars1.githubusercontent.com/u/11964955?v=4","gravatar_id":"","url":"https://api.github.com/users/BorisovDm","html_url":"https://github.com/BorisovDm","followers_url":"https://api.github.com/users/BorisovDm/followers","following_url":"https://api.github.com/users/BorisovDm/following{/other_user}","gists_url":"https://api.github.com/users/BorisovDm/gists{/gist_id}","starred_url":"https://api.github.com/users/BorisovDm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BorisovDm/subscriptions","organizations_url":"https://api.github.com/users/BorisovDm/orgs","repos_url":"https://api.github.com/users/BorisovDm/repos","events_url":"https://api.github.com/users/BorisovDm/events{/privacy}","received_events_url":"https://api.github.com/users/BorisovDm/received_events","type":"User","site_admin":false},"html_url":"https://github.com/BorisovDm/mlschool_cian","description":null,"fork":false,"url":"https://api.github.com/repos/BorisovDm/mlschool_cian","forks_url":"https://api.github.com/repos/BorisovDm/mlschool_cian/forks","keys_url":"https://api.github.com/repos/BorisovDm/mlschool_cian/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BorisovDm/mlschool_cian/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BorisovDm/mlschool_cian/teams","hooks_url":"https://api.github.com/repos/BorisovDm/mlschool_cian/hooks","issue_events_url":"https://api.github.com/repos/BorisovDm/mlschool_cian/issues/events{/number}","events_url":"https://api.github.com/repos/BorisovDm/mlschool_cian/events","assignees_url":"https://api.github.com/repos/BorisovDm/mlschool_cian/assignees{/user}","branches_url":"https://api.github.com/repos/BorisovDm/mlschool_cian/branches{/branch}","tags_url":"https://api.github.com/repos/BorisovDm/mlschool_cian/tags","blobs_url":"https://api.github.com/repos/BorisovDm/mlschool_cian/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BorisovDm/mlschool_cian/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BorisovDm/mlschool_cian/git/refs{/sha}","trees_url":"https://api.github.com/repos/BorisovDm/mlschool_cian/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BorisovDm/mlschool_cian/statuses/{sha}","languages_url":"https://api.github.com/repos/BorisovDm/mlschool_cian/languages","stargazers_url":"https://api.github.com/repos/BorisovDm/mlschool_cian/stargazers","contributors_url":"https://api.github.com/repos/BorisovDm/mlschool_cian/contributors","subscribers_url":"https://api.github.com/repos/BorisovDm/mlschool_cian/subscribers","subscription_url":"https://api.github.com/repos/BorisovDm/mlschool_cian/subscription","commits_url":"https://api.github.com/repos/BorisovDm/mlschool_cian/commits{/sha}","git_commits_url":"https://api.github.com/repos/BorisovDm/mlschool_cian/git/commits{/sha}","comments_url":"https://api.github.com/repos/BorisovDm/mlschool_cian/comments{/number}","issue_comment_url":"https://api.github.com/repos/BorisovDm/mlschool_cian/issues/comments{/number}","contents_url":"https://api.github.com/repos/BorisovDm/mlschool_cian/contents/{+path}","compare_url":"https://api.github.com/repos/BorisovDm/mlschool_cian/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BorisovDm/mlschool_cian/merges","archive_url":"https://api.github.com/repos/BorisovDm/mlschool_cian/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BorisovDm/mlschool_cian/downloads","issues_url":"https://api.github.com/repos/BorisovDm/mlschool_cian/issues{/number}","pulls_url":"https://api.github.com/repos/BorisovDm/mlschool_cian/pulls{/number}","milestones_url":"https://api.github.com/repos/BorisovDm/mlschool_cian/milestones{/number}","notifications_url":"https://api.github.com/repos/BorisovDm/mlschool_cian/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BorisovDm/mlschool_cian/labels{/name}","releases_url":"https://api.github.com/repos/BorisovDm/mlschool_cian/releases{/id}","deployments_url":"https://api.github.com/repos/BorisovDm/mlschool_cian/deployments","created_at":"2019-06-30T20:30:35Z","updated_at":"2019-06-30T20:30:38Z","pushed_at":"2019-07-18T20:55:44Z","git_url":"git://github.com/BorisovDm/mlschool_cian.git","ssh_url":"git@github.com:BorisovDm/mlschool_cian.git","clone_url":"https://github.com/BorisovDm/mlschool_cian.git","svn_url":"https://github.com/BorisovDm/mlschool_cian","homepage":null,"size":3,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/BorisovDm/mlschool_cian/pulls/1"},"html":{"href":"https://github.com/BorisovDm/mlschool_cian/pull/1"},"issue":{"href":"https://api.github.com/repos/BorisovDm/mlschool_cian/issues/1"},"comments":{"href":"https://api.github.com/repos/BorisovDm/mlschool_cian/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/BorisovDm/mlschool_cian/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/BorisovDm/mlschool_cian/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/BorisovDm/mlschool_cian/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/BorisovDm/mlschool_cian/statuses/85eb32178349b9cb5a0e1bacb306f2fb2b9085a2"}},"author_association":"OWNER"}}
{"actor":{"display_login":"b2arn"}}