{"action":"created","comment":{"url":"https://api.github.com/repos/diarts/python/pulls/comments/219691987","pull_request_review_id":157932381,"id":219691987,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxOTY5MTk4Nw==","diff_hunk":"@@ -0,0 +1,180 @@\n+# 2. Закодируйте любую строку (хотя бы из трех слов) по алгоритму Хаффмана.\n+import collections\n+\n+\n+class MyUntil():\n+    def __init__(self, value, left=None, right=None, letter=None):\n+        self.value = value\n+        self.left = left\n+        self.right = right\n+        self.letter = letter\n+\n+    def print_until(self, tab=1):\n+        ''' Печать дерева со всеми его узлами и листьями по принципу вложения'''\n+        requrs_tabulation = tab * 2\n+\n+        print(f'(value = {self.value}, letter = {self.letter}')\n+        if self.left != None:","path":"algorithms/home_work_8/task_02.py","position":17,"original_position":17,"commit_id":"6e0c5d875dda0664c3150fe70da2ce8348b28074","original_commit_id":"6e0c5d875dda0664c3150fe70da2ce8348b28074","user":{"login":"Dzhoker1","id":31956448,"node_id":"MDQ6VXNlcjMxOTU2NDQ4","avatar_url":"https://avatars2.githubusercontent.com/u/31956448?v=4","gravatar_id":"","url":"https://api.github.com/users/Dzhoker1","html_url":"https://github.com/Dzhoker1","followers_url":"https://api.github.com/users/Dzhoker1/followers","following_url":"https://api.github.com/users/Dzhoker1/following{/other_user}","gists_url":"https://api.github.com/users/Dzhoker1/gists{/gist_id}","starred_url":"https://api.github.com/users/Dzhoker1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dzhoker1/subscriptions","organizations_url":"https://api.github.com/users/Dzhoker1/orgs","repos_url":"https://api.github.com/users/Dzhoker1/repos","events_url":"https://api.github.com/users/Dzhoker1/events{/privacy}","received_events_url":"https://api.github.com/users/Dzhoker1/received_events","type":"User","site_admin":false},"body":"Вместо `!=` принято писать `is not`, когда идёт сравнение с `None`","created_at":"2018-09-23T08:31:53Z","updated_at":"2018-09-23T08:32:21Z","html_url":"https://github.com/diarts/python/pull/8#discussion_r219691987","pull_request_url":"https://api.github.com/repos/diarts/python/pulls/8","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/diarts/python/pulls/comments/219691987"},"html":{"href":"https://github.com/diarts/python/pull/8#discussion_r219691987"},"pull_request":{"href":"https://api.github.com/repos/diarts/python/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/diarts/python/pulls/8","id":216955740,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE2OTU1NzQw","html_url":"https://github.com/diarts/python/pull/8","diff_url":"https://github.com/diarts/python/pull/8.diff","patch_url":"https://github.com/diarts/python/pull/8.patch","issue_url":"https://api.github.com/repos/diarts/python/issues/8","number":8,"state":"open","locked":false,"title":"Home work 8","user":{"login":"diarts","id":38961863,"node_id":"MDQ6VXNlcjM4OTYxODYz","avatar_url":"https://avatars1.githubusercontent.com/u/38961863?v=4","gravatar_id":"","url":"https://api.github.com/users/diarts","html_url":"https://github.com/diarts","followers_url":"https://api.github.com/users/diarts/followers","following_url":"https://api.github.com/users/diarts/following{/other_user}","gists_url":"https://api.github.com/users/diarts/gists{/gist_id}","starred_url":"https://api.github.com/users/diarts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diarts/subscriptions","organizations_url":"https://api.github.com/users/diarts/orgs","repos_url":"https://api.github.com/users/diarts/repos","events_url":"https://api.github.com/users/diarts/events{/privacy}","received_events_url":"https://api.github.com/users/diarts/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-09-20T12:36:04Z","updated_at":"2018-09-23T08:32:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5b86e87553b5d891c4df4eeced5b64e20b3db036","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/diarts/python/pulls/8/commits","review_comments_url":"https://api.github.com/repos/diarts/python/pulls/8/comments","review_comment_url":"https://api.github.com/repos/diarts/python/pulls/comments{/number}","comments_url":"https://api.github.com/repos/diarts/python/issues/8/comments","statuses_url":"https://api.github.com/repos/diarts/python/statuses/6e0c5d875dda0664c3150fe70da2ce8348b28074","head":{"label":"diarts:home_work_8","ref":"home_work_8","sha":"6e0c5d875dda0664c3150fe70da2ce8348b28074","user":{"login":"diarts","id":38961863,"node_id":"MDQ6VXNlcjM4OTYxODYz","avatar_url":"https://avatars1.githubusercontent.com/u/38961863?v=4","gravatar_id":"","url":"https://api.github.com/users/diarts","html_url":"https://github.com/diarts","followers_url":"https://api.github.com/users/diarts/followers","following_url":"https://api.github.com/users/diarts/following{/other_user}","gists_url":"https://api.github.com/users/diarts/gists{/gist_id}","starred_url":"https://api.github.com/users/diarts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diarts/subscriptions","organizations_url":"https://api.github.com/users/diarts/orgs","repos_url":"https://api.github.com/users/diarts/repos","events_url":"https://api.github.com/users/diarts/events{/privacy}","received_events_url":"https://api.github.com/users/diarts/received_events","type":"User","site_admin":false},"repo":{"id":146025252,"node_id":"MDEwOlJlcG9zaXRvcnkxNDYwMjUyNTI=","name":"python","full_name":"diarts/python","private":false,"owner":{"login":"diarts","id":38961863,"node_id":"MDQ6VXNlcjM4OTYxODYz","avatar_url":"https://avatars1.githubusercontent.com/u/38961863?v=4","gravatar_id":"","url":"https://api.github.com/users/diarts","html_url":"https://github.com/diarts","followers_url":"https://api.github.com/users/diarts/followers","following_url":"https://api.github.com/users/diarts/following{/other_user}","gists_url":"https://api.github.com/users/diarts/gists{/gist_id}","starred_url":"https://api.github.com/users/diarts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diarts/subscriptions","organizations_url":"https://api.github.com/users/diarts/orgs","repos_url":"https://api.github.com/users/diarts/repos","events_url":"https://api.github.com/users/diarts/events{/privacy}","received_events_url":"https://api.github.com/users/diarts/received_events","type":"User","site_admin":false},"html_url":"https://github.com/diarts/python","description":null,"fork":false,"url":"https://api.github.com/repos/diarts/python","forks_url":"https://api.github.com/repos/diarts/python/forks","keys_url":"https://api.github.com/repos/diarts/python/keys{/key_id}","collaborators_url":"https://api.github.com/repos/diarts/python/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/diarts/python/teams","hooks_url":"https://api.github.com/repos/diarts/python/hooks","issue_events_url":"https://api.github.com/repos/diarts/python/issues/events{/number}","events_url":"https://api.github.com/repos/diarts/python/events","assignees_url":"https://api.github.com/repos/diarts/python/assignees{/user}","branches_url":"https://api.github.com/repos/diarts/python/branches{/branch}","tags_url":"https://api.github.com/repos/diarts/python/tags","blobs_url":"https://api.github.com/repos/diarts/python/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/diarts/python/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/diarts/python/git/refs{/sha}","trees_url":"https://api.github.com/repos/diarts/python/git/trees{/sha}","statuses_url":"https://api.github.com/repos/diarts/python/statuses/{sha}","languages_url":"https://api.github.com/repos/diarts/python/languages","stargazers_url":"https://api.github.com/repos/diarts/python/stargazers","contributors_url":"https://api.github.com/repos/diarts/python/contributors","subscribers_url":"https://api.github.com/repos/diarts/python/subscribers","subscription_url":"https://api.github.com/repos/diarts/python/subscription","commits_url":"https://api.github.com/repos/diarts/python/commits{/sha}","git_commits_url":"https://api.github.com/repos/diarts/python/git/commits{/sha}","comments_url":"https://api.github.com/repos/diarts/python/comments{/number}","issue_comment_url":"https://api.github.com/repos/diarts/python/issues/comments{/number}","contents_url":"https://api.github.com/repos/diarts/python/contents/{+path}","compare_url":"https://api.github.com/repos/diarts/python/compare/{base}...{head}","merges_url":"https://api.github.com/repos/diarts/python/merges","archive_url":"https://api.github.com/repos/diarts/python/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/diarts/python/downloads","issues_url":"https://api.github.com/repos/diarts/python/issues{/number}","pulls_url":"https://api.github.com/repos/diarts/python/pulls{/number}","milestones_url":"https://api.github.com/repos/diarts/python/milestones{/number}","notifications_url":"https://api.github.com/repos/diarts/python/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/diarts/python/labels{/name}","releases_url":"https://api.github.com/repos/diarts/python/releases{/id}","deployments_url":"https://api.github.com/repos/diarts/python/deployments","created_at":"2018-08-24T18:16:28Z","updated_at":"2018-09-18T07:32:55Z","pushed_at":"2018-09-21T13:31:21Z","git_url":"git://github.com/diarts/python.git","ssh_url":"git@github.com:diarts/python.git","clone_url":"https://github.com/diarts/python.git","svn_url":"https://github.com/diarts/python","homepage":null,"size":11641,"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":2,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"diarts:master","ref":"master","sha":"bfa783073070ded9b531ed0d4ead6983b51264d4","user":{"login":"diarts","id":38961863,"node_id":"MDQ6VXNlcjM4OTYxODYz","avatar_url":"https://avatars1.githubusercontent.com/u/38961863?v=4","gravatar_id":"","url":"https://api.github.com/users/diarts","html_url":"https://github.com/diarts","followers_url":"https://api.github.com/users/diarts/followers","following_url":"https://api.github.com/users/diarts/following{/other_user}","gists_url":"https://api.github.com/users/diarts/gists{/gist_id}","starred_url":"https://api.github.com/users/diarts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diarts/subscriptions","organizations_url":"https://api.github.com/users/diarts/orgs","repos_url":"https://api.github.com/users/diarts/repos","events_url":"https://api.github.com/users/diarts/events{/privacy}","received_events_url":"https://api.github.com/users/diarts/received_events","type":"User","site_admin":false},"repo":{"id":146025252,"node_id":"MDEwOlJlcG9zaXRvcnkxNDYwMjUyNTI=","name":"python","full_name":"diarts/python","private":false,"owner":{"login":"diarts","id":38961863,"node_id":"MDQ6VXNlcjM4OTYxODYz","avatar_url":"https://avatars1.githubusercontent.com/u/38961863?v=4","gravatar_id":"","url":"https://api.github.com/users/diarts","html_url":"https://github.com/diarts","followers_url":"https://api.github.com/users/diarts/followers","following_url":"https://api.github.com/users/diarts/following{/other_user}","gists_url":"https://api.github.com/users/diarts/gists{/gist_id}","starred_url":"https://api.github.com/users/diarts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diarts/subscriptions","organizations_url":"https://api.github.com/users/diarts/orgs","repos_url":"https://api.github.com/users/diarts/repos","events_url":"https://api.github.com/users/diarts/events{/privacy}","received_events_url":"https://api.github.com/users/diarts/received_events","type":"User","site_admin":false},"html_url":"https://github.com/diarts/python","description":null,"fork":false,"url":"https://api.github.com/repos/diarts/python","forks_url":"https://api.github.com/repos/diarts/python/forks","keys_url":"https://api.github.com/repos/diarts/python/keys{/key_id}","collaborators_url":"https://api.github.com/repos/diarts/python/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/diarts/python/teams","hooks_url":"https://api.github.com/repos/diarts/python/hooks","issue_events_url":"https://api.github.com/repos/diarts/python/issues/events{/number}","events_url":"https://api.github.com/repos/diarts/python/events","assignees_url":"https://api.github.com/repos/diarts/python/assignees{/user}","branches_url":"https://api.github.com/repos/diarts/python/branches{/branch}","tags_url":"https://api.github.com/repos/diarts/python/tags","blobs_url":"https://api.github.com/repos/diarts/python/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/diarts/python/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/diarts/python/git/refs{/sha}","trees_url":"https://api.github.com/repos/diarts/python/git/trees{/sha}","statuses_url":"https://api.github.com/repos/diarts/python/statuses/{sha}","languages_url":"https://api.github.com/repos/diarts/python/languages","stargazers_url":"https://api.github.com/repos/diarts/python/stargazers","contributors_url":"https://api.github.com/repos/diarts/python/contributors","subscribers_url":"https://api.github.com/repos/diarts/python/subscribers","subscription_url":"https://api.github.com/repos/diarts/python/subscription","commits_url":"https://api.github.com/repos/diarts/python/commits{/sha}","git_commits_url":"https://api.github.com/repos/diarts/python/git/commits{/sha}","comments_url":"https://api.github.com/repos/diarts/python/comments{/number}","issue_comment_url":"https://api.github.com/repos/diarts/python/issues/comments{/number}","contents_url":"https://api.github.com/repos/diarts/python/contents/{+path}","compare_url":"https://api.github.com/repos/diarts/python/compare/{base}...{head}","merges_url":"https://api.github.com/repos/diarts/python/merges","archive_url":"https://api.github.com/repos/diarts/python/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/diarts/python/downloads","issues_url":"https://api.github.com/repos/diarts/python/issues{/number}","pulls_url":"https://api.github.com/repos/diarts/python/pulls{/number}","milestones_url":"https://api.github.com/repos/diarts/python/milestones{/number}","notifications_url":"https://api.github.com/repos/diarts/python/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/diarts/python/labels{/name}","releases_url":"https://api.github.com/repos/diarts/python/releases{/id}","deployments_url":"https://api.github.com/repos/diarts/python/deployments","created_at":"2018-08-24T18:16:28Z","updated_at":"2018-09-18T07:32:55Z","pushed_at":"2018-09-21T13:31:21Z","git_url":"git://github.com/diarts/python.git","ssh_url":"git@github.com:diarts/python.git","clone_url":"https://github.com/diarts/python.git","svn_url":"https://github.com/diarts/python","homepage":null,"size":11641,"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":2,"license":{"key":"gpl-3.0","name":"GNU General Public License v3.0","spdx_id":"GPL-3.0","url":"https://api.github.com/licenses/gpl-3.0","node_id":"MDc6TGljZW5zZTk="},"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/diarts/python/pulls/8"},"html":{"href":"https://github.com/diarts/python/pull/8"},"issue":{"href":"https://api.github.com/repos/diarts/python/issues/8"},"comments":{"href":"https://api.github.com/repos/diarts/python/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/diarts/python/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/diarts/python/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/diarts/python/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/diarts/python/statuses/6e0c5d875dda0664c3150fe70da2ce8348b28074"}},"author_association":"OWNER"}}
{"actor":{"display_login":"Dzhoker1"}}