{"action":"created","comment":{"url":"https://api.github.com/repos/maybe-hello-world/hometask_43506_3/pulls/comments/225436686","pull_request_review_id":165031536,"id":225436686,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNTQzNjY4Ng==","diff_hunk":"@@ -0,0 +1,12 @@\n+from collections import Counter\n+file = open('DhcpSrvLog-Thu.log')  # открываем файл\n+\n+a = []  # создаем списки\n+b = []\n+for line in file: # построчно считываем файл\n+    if line.startswith('30'):  # берем только те строки, которые начинаются с 30(т.к.я выбрала id=30)\n+     b = line.split(',')  # разделяем строку на список элементов, разделитель - запятая\n+     new_element = str(b[4:5])  # записываем в элемент нового массива только ip(ip - 4 элемент списка)","path":"logStatistic.py","position":9,"original_position":9,"commit_id":"cebbaa711bf6e445ac7da7b84a3edf2f3d353e2e","original_commit_id":"cebbaa711bf6e445ac7da7b84a3edf2f3d353e2e","user":{"login":"maybe-hello-world","id":12435297,"node_id":"MDQ6VXNlcjEyNDM1Mjk3","avatar_url":"https://avatars0.githubusercontent.com/u/12435297?v=4","gravatar_id":"","url":"https://api.github.com/users/maybe-hello-world","html_url":"https://github.com/maybe-hello-world","followers_url":"https://api.github.com/users/maybe-hello-world/followers","following_url":"https://api.github.com/users/maybe-hello-world/following{/other_user}","gists_url":"https://api.github.com/users/maybe-hello-world/gists{/gist_id}","starred_url":"https://api.github.com/users/maybe-hello-world/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maybe-hello-world/subscriptions","organizations_url":"https://api.github.com/users/maybe-hello-world/orgs","repos_url":"https://api.github.com/users/maybe-hello-world/repos","events_url":"https://api.github.com/users/maybe-hello-world/events{/privacy}","received_events_url":"https://api.github.com/users/maybe-hello-world/received_events","type":"User","site_admin":false},"body":"А зачем делать слайс из одного элемента, если можно к нему напрямую обратиться? =)\r\nnew_element = str(b[4])\r\nБолее того, приведение к строке даже не нужно, т.к. там и так строка","created_at":"2018-10-16T08:08:47Z","updated_at":"2018-10-16T08:16:27Z","html_url":"https://github.com/maybe-hello-world/hometask_43506_3/pull/8#discussion_r225436686","pull_request_url":"https://api.github.com/repos/maybe-hello-world/hometask_43506_3/pulls/8","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/maybe-hello-world/hometask_43506_3/pulls/comments/225436686"},"html":{"href":"https://github.com/maybe-hello-world/hometask_43506_3/pull/8#discussion_r225436686"},"pull_request":{"href":"https://api.github.com/repos/maybe-hello-world/hometask_43506_3/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/maybe-hello-world/hometask_43506_3/pulls/8","id":223067948,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIzMDY3OTQ4","html_url":"https://github.com/maybe-hello-world/hometask_43506_3/pull/8","diff_url":"https://github.com/maybe-hello-world/hometask_43506_3/pull/8.diff","patch_url":"https://github.com/maybe-hello-world/hometask_43506_3/pull/8.patch","issue_url":"https://api.github.com/repos/maybe-hello-world/hometask_43506_3/issues/8","number":8,"state":"open","locked":false,"title":"homework","user":{"login":"Shshknv","id":36536579,"node_id":"MDQ6VXNlcjM2NTM2NTc5","avatar_url":"https://avatars3.githubusercontent.com/u/36536579?v=4","gravatar_id":"","url":"https://api.github.com/users/Shshknv","html_url":"https://github.com/Shshknv","followers_url":"https://api.github.com/users/Shshknv/followers","following_url":"https://api.github.com/users/Shshknv/following{/other_user}","gists_url":"https://api.github.com/users/Shshknv/gists{/gist_id}","starred_url":"https://api.github.com/users/Shshknv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shshknv/subscriptions","organizations_url":"https://api.github.com/users/Shshknv/orgs","repos_url":"https://api.github.com/users/Shshknv/repos","events_url":"https://api.github.com/users/Shshknv/events{/privacy}","received_events_url":"https://api.github.com/users/Shshknv/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-10-15T22:59:33Z","updated_at":"2018-10-16T08:16:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7270d11b099a9bec76342d29e790d1907d40f7ba","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/maybe-hello-world/hometask_43506_3/pulls/8/commits","review_comments_url":"https://api.github.com/repos/maybe-hello-world/hometask_43506_3/pulls/8/comments","review_comment_url":"https://api.github.com/repos/maybe-hello-world/hometask_43506_3/pulls/comments{/number}","comments_url":"https://api.github.com/repos/maybe-hello-world/hometask_43506_3/issues/8/comments","statuses_url":"https://api.github.com/repos/maybe-hello-world/hometask_43506_3/statuses/cebbaa711bf6e445ac7da7b84a3edf2f3d353e2e","head":{"label":"Shshknv:EKASHUC","ref":"EKASHUC","sha":"cebbaa711bf6e445ac7da7b84a3edf2f3d353e2e","user":{"login":"Shshknv","id":36536579,"node_id":"MDQ6VXNlcjM2NTM2NTc5","avatar_url":"https://avatars3.githubusercontent.com/u/36536579?v=4","gravatar_id":"","url":"https://api.github.com/users/Shshknv","html_url":"https://github.com/Shshknv","followers_url":"https://api.github.com/users/Shshknv/followers","following_url":"https://api.github.com/users/Shshknv/following{/other_user}","gists_url":"https://api.github.com/users/Shshknv/gists{/gist_id}","starred_url":"https://api.github.com/users/Shshknv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shshknv/subscriptions","organizations_url":"https://api.github.com/users/Shshknv/orgs","repos_url":"https://api.github.com/users/Shshknv/repos","events_url":"https://api.github.com/users/Shshknv/events{/privacy}","received_events_url":"https://api.github.com/users/Shshknv/received_events","type":"User","site_admin":false},"repo":{"id":153191411,"node_id":"MDEwOlJlcG9zaXRvcnkxNTMxOTE0MTE=","name":"hometask_43506_3","full_name":"Shshknv/hometask_43506_3","private":false,"owner":{"login":"Shshknv","id":36536579,"node_id":"MDQ6VXNlcjM2NTM2NTc5","avatar_url":"https://avatars3.githubusercontent.com/u/36536579?v=4","gravatar_id":"","url":"https://api.github.com/users/Shshknv","html_url":"https://github.com/Shshknv","followers_url":"https://api.github.com/users/Shshknv/followers","following_url":"https://api.github.com/users/Shshknv/following{/other_user}","gists_url":"https://api.github.com/users/Shshknv/gists{/gist_id}","starred_url":"https://api.github.com/users/Shshknv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shshknv/subscriptions","organizations_url":"https://api.github.com/users/Shshknv/orgs","repos_url":"https://api.github.com/users/Shshknv/repos","events_url":"https://api.github.com/users/Shshknv/events{/privacy}","received_events_url":"https://api.github.com/users/Shshknv/received_events","type":"User","site_admin":false},"html_url":"https://github.com/Shshknv/hometask_43506_3","description":null,"fork":true,"url":"https://api.github.com/repos/Shshknv/hometask_43506_3","forks_url":"https://api.github.com/repos/Shshknv/hometask_43506_3/forks","keys_url":"https://api.github.com/repos/Shshknv/hometask_43506_3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Shshknv/hometask_43506_3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Shshknv/hometask_43506_3/teams","hooks_url":"https://api.github.com/repos/Shshknv/hometask_43506_3/hooks","issue_events_url":"https://api.github.com/repos/Shshknv/hometask_43506_3/issues/events{/number}","events_url":"https://api.github.com/repos/Shshknv/hometask_43506_3/events","assignees_url":"https://api.github.com/repos/Shshknv/hometask_43506_3/assignees{/user}","branches_url":"https://api.github.com/repos/Shshknv/hometask_43506_3/branches{/branch}","tags_url":"https://api.github.com/repos/Shshknv/hometask_43506_3/tags","blobs_url":"https://api.github.com/repos/Shshknv/hometask_43506_3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Shshknv/hometask_43506_3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Shshknv/hometask_43506_3/git/refs{/sha}","trees_url":"https://api.github.com/repos/Shshknv/hometask_43506_3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Shshknv/hometask_43506_3/statuses/{sha}","languages_url":"https://api.github.com/repos/Shshknv/hometask_43506_3/languages","stargazers_url":"https://api.github.com/repos/Shshknv/hometask_43506_3/stargazers","contributors_url":"https://api.github.com/repos/Shshknv/hometask_43506_3/contributors","subscribers_url":"https://api.github.com/repos/Shshknv/hometask_43506_3/subscribers","subscription_url":"https://api.github.com/repos/Shshknv/hometask_43506_3/subscription","commits_url":"https://api.github.com/repos/Shshknv/hometask_43506_3/commits{/sha}","git_commits_url":"https://api.github.com/repos/Shshknv/hometask_43506_3/git/commits{/sha}","comments_url":"https://api.github.com/repos/Shshknv/hometask_43506_3/comments{/number}","issue_comment_url":"https://api.github.com/repos/Shshknv/hometask_43506_3/issues/comments{/number}","contents_url":"https://api.github.com/repos/Shshknv/hometask_43506_3/contents/{+path}","compare_url":"https://api.github.com/repos/Shshknv/hometask_43506_3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Shshknv/hometask_43506_3/merges","archive_url":"https://api.github.com/repos/Shshknv/hometask_43506_3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Shshknv/hometask_43506_3/downloads","issues_url":"https://api.github.com/repos/Shshknv/hometask_43506_3/issues{/number}","pulls_url":"https://api.github.com/repos/Shshknv/hometask_43506_3/pulls{/number}","milestones_url":"https://api.github.com/repos/Shshknv/hometask_43506_3/milestones{/number}","notifications_url":"https://api.github.com/repos/Shshknv/hometask_43506_3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Shshknv/hometask_43506_3/labels{/name}","releases_url":"https://api.github.com/repos/Shshknv/hometask_43506_3/releases{/id}","deployments_url":"https://api.github.com/repos/Shshknv/hometask_43506_3/deployments","created_at":"2018-10-15T22:50:43Z","updated_at":"2018-10-15T22:50:45Z","pushed_at":"2018-10-16T08:05:36Z","git_url":"git://github.com/Shshknv/hometask_43506_3.git","ssh_url":"git@github.com:Shshknv/hometask_43506_3.git","clone_url":"https://github.com/Shshknv/hometask_43506_3.git","svn_url":"https://github.com/Shshknv/hometask_43506_3","homepage":null,"size":19059,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"maybe-hello-world:EKASHUC","ref":"EKASHUC","sha":"c6cf0693d7f28cbd5341ca5a16be97330578c0f8","user":{"login":"maybe-hello-world","id":12435297,"node_id":"MDQ6VXNlcjEyNDM1Mjk3","avatar_url":"https://avatars0.githubusercontent.com/u/12435297?v=4","gravatar_id":"","url":"https://api.github.com/users/maybe-hello-world","html_url":"https://github.com/maybe-hello-world","followers_url":"https://api.github.com/users/maybe-hello-world/followers","following_url":"https://api.github.com/users/maybe-hello-world/following{/other_user}","gists_url":"https://api.github.com/users/maybe-hello-world/gists{/gist_id}","starred_url":"https://api.github.com/users/maybe-hello-world/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maybe-hello-world/subscriptions","organizations_url":"https://api.github.com/users/maybe-hello-world/orgs","repos_url":"https://api.github.com/users/maybe-hello-world/repos","events_url":"https://api.github.com/users/maybe-hello-world/events{/privacy}","received_events_url":"https://api.github.com/users/maybe-hello-world/received_events","type":"User","site_admin":false},"repo":{"id":151237480,"node_id":"MDEwOlJlcG9zaXRvcnkxNTEyMzc0ODA=","name":"hometask_43506_3","full_name":"maybe-hello-world/hometask_43506_3","private":false,"owner":{"login":"maybe-hello-world","id":12435297,"node_id":"MDQ6VXNlcjEyNDM1Mjk3","avatar_url":"https://avatars0.githubusercontent.com/u/12435297?v=4","gravatar_id":"","url":"https://api.github.com/users/maybe-hello-world","html_url":"https://github.com/maybe-hello-world","followers_url":"https://api.github.com/users/maybe-hello-world/followers","following_url":"https://api.github.com/users/maybe-hello-world/following{/other_user}","gists_url":"https://api.github.com/users/maybe-hello-world/gists{/gist_id}","starred_url":"https://api.github.com/users/maybe-hello-world/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maybe-hello-world/subscriptions","organizations_url":"https://api.github.com/users/maybe-hello-world/orgs","repos_url":"https://api.github.com/users/maybe-hello-world/repos","events_url":"https://api.github.com/users/maybe-hello-world/events{/privacy}","received_events_url":"https://api.github.com/users/maybe-hello-world/received_events","type":"User","site_admin":false},"html_url":"https://github.com/maybe-hello-world/hometask_43506_3","description":null,"fork":false,"url":"https://api.github.com/repos/maybe-hello-world/hometask_43506_3","forks_url":"https://api.github.com/repos/maybe-hello-world/hometask_43506_3/forks","keys_url":"https://api.github.com/repos/maybe-hello-world/hometask_43506_3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/maybe-hello-world/hometask_43506_3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/maybe-hello-world/hometask_43506_3/teams","hooks_url":"https://api.github.com/repos/maybe-hello-world/hometask_43506_3/hooks","issue_events_url":"https://api.github.com/repos/maybe-hello-world/hometask_43506_3/issues/events{/number}","events_url":"https://api.github.com/repos/maybe-hello-world/hometask_43506_3/events","assignees_url":"https://api.github.com/repos/maybe-hello-world/hometask_43506_3/assignees{/user}","branches_url":"https://api.github.com/repos/maybe-hello-world/hometask_43506_3/branches{/branch}","tags_url":"https://api.github.com/repos/maybe-hello-world/hometask_43506_3/tags","blobs_url":"https://api.github.com/repos/maybe-hello-world/hometask_43506_3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/maybe-hello-world/hometask_43506_3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/maybe-hello-world/hometask_43506_3/git/refs{/sha}","trees_url":"https://api.github.com/repos/maybe-hello-world/hometask_43506_3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/maybe-hello-world/hometask_43506_3/statuses/{sha}","languages_url":"https://api.github.com/repos/maybe-hello-world/hometask_43506_3/languages","stargazers_url":"https://api.github.com/repos/maybe-hello-world/hometask_43506_3/stargazers","contributors_url":"https://api.github.com/repos/maybe-hello-world/hometask_43506_3/contributors","subscribers_url":"https://api.github.com/repos/maybe-hello-world/hometask_43506_3/subscribers","subscription_url":"https://api.github.com/repos/maybe-hello-world/hometask_43506_3/subscription","commits_url":"https://api.github.com/repos/maybe-hello-world/hometask_43506_3/commits{/sha}","git_commits_url":"https://api.github.com/repos/maybe-hello-world/hometask_43506_3/git/commits{/sha}","comments_url":"https://api.github.com/repos/maybe-hello-world/hometask_43506_3/comments{/number}","issue_comment_url":"https://api.github.com/repos/maybe-hello-world/hometask_43506_3/issues/comments{/number}","contents_url":"https://api.github.com/repos/maybe-hello-world/hometask_43506_3/contents/{+path}","compare_url":"https://api.github.com/repos/maybe-hello-world/hometask_43506_3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/maybe-hello-world/hometask_43506_3/merges","archive_url":"https://api.github.com/repos/maybe-hello-world/hometask_43506_3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/maybe-hello-world/hometask_43506_3/downloads","issues_url":"https://api.github.com/repos/maybe-hello-world/hometask_43506_3/issues{/number}","pulls_url":"https://api.github.com/repos/maybe-hello-world/hometask_43506_3/pulls{/number}","milestones_url":"https://api.github.com/repos/maybe-hello-world/hometask_43506_3/milestones{/number}","notifications_url":"https://api.github.com/repos/maybe-hello-world/hometask_43506_3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/maybe-hello-world/hometask_43506_3/labels{/name}","releases_url":"https://api.github.com/repos/maybe-hello-world/hometask_43506_3/releases{/id}","deployments_url":"https://api.github.com/repos/maybe-hello-world/hometask_43506_3/deployments","created_at":"2018-10-02T10:29:25Z","updated_at":"2018-10-02T11:27:12Z","pushed_at":"2018-10-16T08:05:37Z","git_url":"git://github.com/maybe-hello-world/hometask_43506_3.git","ssh_url":"git@github.com:maybe-hello-world/hometask_43506_3.git","clone_url":"https://github.com/maybe-hello-world/hometask_43506_3.git","svn_url":"https://github.com/maybe-hello-world/hometask_43506_3","homepage":null,"size":316,"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":9,"mirror_url":null,"archived":false,"open_issues_count":4,"license":null,"forks":9,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/maybe-hello-world/hometask_43506_3/pulls/8"},"html":{"href":"https://github.com/maybe-hello-world/hometask_43506_3/pull/8"},"issue":{"href":"https://api.github.com/repos/maybe-hello-world/hometask_43506_3/issues/8"},"comments":{"href":"https://api.github.com/repos/maybe-hello-world/hometask_43506_3/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/maybe-hello-world/hometask_43506_3/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/maybe-hello-world/hometask_43506_3/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/maybe-hello-world/hometask_43506_3/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/maybe-hello-world/hometask_43506_3/statuses/cebbaa711bf6e445ac7da7b84a3edf2f3d353e2e"}},"author_association":"NONE"}}
{"actor":{"display_login":"maybe-hello-world"}}