{"action":"created","comment":{"url":"https://api.github.com/repos/hotarak/nlp_100nock/pulls/comments/116437700","pull_request_review_id":38058073,"id":116437700,"diff_hunk":"@@ -0,0 +1,13 @@\n+# 10. 行数のカウント\n+# 行数をカウントせよ．確認にはwcコマンドを用いよ．\n+\n+# f = open('hightemp.txt', 'r')\n+# lines = f.readlines()\n+# print(len(lines))\n+# f.close()\n+\n+with open('hightemp.txt', 'r') as f: print(len(f.readlines()))","path":"chapter2/10.py","position":9,"original_position":9,"commit_id":"6a2d46a934bc4962c64fd39321008e688f784b2d","original_commit_id":"6a2d46a934bc4962c64fd39321008e688f784b2d","user":{"login":"makora9143","id":6096357,"avatar_url":"https://avatars1.githubusercontent.com/u/6096357?v=3","gravatar_id":"","url":"https://api.github.com/users/makora9143","html_url":"https://github.com/makora9143","followers_url":"https://api.github.com/users/makora9143/followers","following_url":"https://api.github.com/users/makora9143/following{/other_user}","gists_url":"https://api.github.com/users/makora9143/gists{/gist_id}","starred_url":"https://api.github.com/users/makora9143/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/makora9143/subscriptions","organizations_url":"https://api.github.com/users/makora9143/orgs","repos_url":"https://api.github.com/users/makora9143/repos","events_url":"https://api.github.com/users/makora9143/events{/privacy}","received_events_url":"https://api.github.com/users/makora9143/received_events","type":"User","site_admin":false},"body":"with構文を使うのはすごくいいと思います．\r\nただワンライナーはちょっと読みにくい，，，かも？\r\n\r\nあと，今回のファイルは少ないので大丈夫だけど，\r\n数万行あったりしたら，f.readlines()は厳しいよね！\r\nどうすればいいでしょう？","created_at":"2017-05-15T08:43:07Z","updated_at":"2017-05-15T08:43:07Z","html_url":"https://github.com/hotarak/nlp_100nock/pull/3#discussion_r116437700","pull_request_url":"https://api.github.com/repos/hotarak/nlp_100nock/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/hotarak/nlp_100nock/pulls/comments/116437700"},"html":{"href":"https://github.com/hotarak/nlp_100nock/pull/3#discussion_r116437700"},"pull_request":{"href":"https://api.github.com/repos/hotarak/nlp_100nock/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/hotarak/nlp_100nock/pulls/3","id":120235686,"html_url":"https://github.com/hotarak/nlp_100nock/pull/3","diff_url":"https://github.com/hotarak/nlp_100nock/pull/3.diff","patch_url":"https://github.com/hotarak/nlp_100nock/pull/3.patch","issue_url":"https://api.github.com/repos/hotarak/nlp_100nock/issues/3","number":3,"state":"open","locked":false,"title":"[wip]chapter2","user":{"login":"hotarak","id":19544990,"avatar_url":"https://avatars0.githubusercontent.com/u/19544990?v=3","gravatar_id":"","url":"https://api.github.com/users/hotarak","html_url":"https://github.com/hotarak","followers_url":"https://api.github.com/users/hotarak/followers","following_url":"https://api.github.com/users/hotarak/following{/other_user}","gists_url":"https://api.github.com/users/hotarak/gists{/gist_id}","starred_url":"https://api.github.com/users/hotarak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hotarak/subscriptions","organizations_url":"https://api.github.com/users/hotarak/orgs","repos_url":"https://api.github.com/users/hotarak/repos","events_url":"https://api.github.com/users/hotarak/events{/privacy}","received_events_url":"https://api.github.com/users/hotarak/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-05-12T02:02:37Z","updated_at":"2017-05-15T08:43:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1929db1d82ed06e9b62a85bbf68b820622bde356","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/hotarak/nlp_100nock/pulls/3/commits","review_comments_url":"https://api.github.com/repos/hotarak/nlp_100nock/pulls/3/comments","review_comment_url":"https://api.github.com/repos/hotarak/nlp_100nock/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hotarak/nlp_100nock/issues/3/comments","statuses_url":"https://api.github.com/repos/hotarak/nlp_100nock/statuses/6a2d46a934bc4962c64fd39321008e688f784b2d","head":{"label":"hotarak:chapter_2","ref":"chapter_2","sha":"6a2d46a934bc4962c64fd39321008e688f784b2d","user":{"login":"hotarak","id":19544990,"avatar_url":"https://avatars0.githubusercontent.com/u/19544990?v=3","gravatar_id":"","url":"https://api.github.com/users/hotarak","html_url":"https://github.com/hotarak","followers_url":"https://api.github.com/users/hotarak/followers","following_url":"https://api.github.com/users/hotarak/following{/other_user}","gists_url":"https://api.github.com/users/hotarak/gists{/gist_id}","starred_url":"https://api.github.com/users/hotarak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hotarak/subscriptions","organizations_url":"https://api.github.com/users/hotarak/orgs","repos_url":"https://api.github.com/users/hotarak/repos","events_url":"https://api.github.com/users/hotarak/events{/privacy}","received_events_url":"https://api.github.com/users/hotarak/received_events","type":"User","site_admin":false},"repo":{"id":89998795,"name":"nlp_100nock","full_name":"hotarak/nlp_100nock","owner":{"login":"hotarak","id":19544990,"avatar_url":"https://avatars0.githubusercontent.com/u/19544990?v=3","gravatar_id":"","url":"https://api.github.com/users/hotarak","html_url":"https://github.com/hotarak","followers_url":"https://api.github.com/users/hotarak/followers","following_url":"https://api.github.com/users/hotarak/following{/other_user}","gists_url":"https://api.github.com/users/hotarak/gists{/gist_id}","starred_url":"https://api.github.com/users/hotarak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hotarak/subscriptions","organizations_url":"https://api.github.com/users/hotarak/orgs","repos_url":"https://api.github.com/users/hotarak/repos","events_url":"https://api.github.com/users/hotarak/events{/privacy}","received_events_url":"https://api.github.com/users/hotarak/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hotarak/nlp_100nock","description":null,"fork":false,"url":"https://api.github.com/repos/hotarak/nlp_100nock","forks_url":"https://api.github.com/repos/hotarak/nlp_100nock/forks","keys_url":"https://api.github.com/repos/hotarak/nlp_100nock/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hotarak/nlp_100nock/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hotarak/nlp_100nock/teams","hooks_url":"https://api.github.com/repos/hotarak/nlp_100nock/hooks","issue_events_url":"https://api.github.com/repos/hotarak/nlp_100nock/issues/events{/number}","events_url":"https://api.github.com/repos/hotarak/nlp_100nock/events","assignees_url":"https://api.github.com/repos/hotarak/nlp_100nock/assignees{/user}","branches_url":"https://api.github.com/repos/hotarak/nlp_100nock/branches{/branch}","tags_url":"https://api.github.com/repos/hotarak/nlp_100nock/tags","blobs_url":"https://api.github.com/repos/hotarak/nlp_100nock/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hotarak/nlp_100nock/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hotarak/nlp_100nock/git/refs{/sha}","trees_url":"https://api.github.com/repos/hotarak/nlp_100nock/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hotarak/nlp_100nock/statuses/{sha}","languages_url":"https://api.github.com/repos/hotarak/nlp_100nock/languages","stargazers_url":"https://api.github.com/repos/hotarak/nlp_100nock/stargazers","contributors_url":"https://api.github.com/repos/hotarak/nlp_100nock/contributors","subscribers_url":"https://api.github.com/repos/hotarak/nlp_100nock/subscribers","subscription_url":"https://api.github.com/repos/hotarak/nlp_100nock/subscription","commits_url":"https://api.github.com/repos/hotarak/nlp_100nock/commits{/sha}","git_commits_url":"https://api.github.com/repos/hotarak/nlp_100nock/git/commits{/sha}","comments_url":"https://api.github.com/repos/hotarak/nlp_100nock/comments{/number}","issue_comment_url":"https://api.github.com/repos/hotarak/nlp_100nock/issues/comments{/number}","contents_url":"https://api.github.com/repos/hotarak/nlp_100nock/contents/{+path}","compare_url":"https://api.github.com/repos/hotarak/nlp_100nock/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hotarak/nlp_100nock/merges","archive_url":"https://api.github.com/repos/hotarak/nlp_100nock/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hotarak/nlp_100nock/downloads","issues_url":"https://api.github.com/repos/hotarak/nlp_100nock/issues{/number}","pulls_url":"https://api.github.com/repos/hotarak/nlp_100nock/pulls{/number}","milestones_url":"https://api.github.com/repos/hotarak/nlp_100nock/milestones{/number}","notifications_url":"https://api.github.com/repos/hotarak/nlp_100nock/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hotarak/nlp_100nock/labels{/name}","releases_url":"https://api.github.com/repos/hotarak/nlp_100nock/releases{/id}","deployments_url":"https://api.github.com/repos/hotarak/nlp_100nock/deployments","created_at":"2017-05-02T06:24:09Z","updated_at":"2017-05-02T06:28:00Z","pushed_at":"2017-05-15T06:04:47Z","git_url":"git://github.com/hotarak/nlp_100nock.git","ssh_url":"git@github.com:hotarak/nlp_100nock.git","clone_url":"https://github.com/hotarak/nlp_100nock.git","svn_url":"https://github.com/hotarak/nlp_100nock","homepage":null,"size":12,"stargazers_count":0,"watchers_count":0,"language":"Jupyter Notebook","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"hotarak:master","ref":"master","sha":"65209e552206bb12d0046fa3628efb75755c9e8c","user":{"login":"hotarak","id":19544990,"avatar_url":"https://avatars0.githubusercontent.com/u/19544990?v=3","gravatar_id":"","url":"https://api.github.com/users/hotarak","html_url":"https://github.com/hotarak","followers_url":"https://api.github.com/users/hotarak/followers","following_url":"https://api.github.com/users/hotarak/following{/other_user}","gists_url":"https://api.github.com/users/hotarak/gists{/gist_id}","starred_url":"https://api.github.com/users/hotarak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hotarak/subscriptions","organizations_url":"https://api.github.com/users/hotarak/orgs","repos_url":"https://api.github.com/users/hotarak/repos","events_url":"https://api.github.com/users/hotarak/events{/privacy}","received_events_url":"https://api.github.com/users/hotarak/received_events","type":"User","site_admin":false},"repo":{"id":89998795,"name":"nlp_100nock","full_name":"hotarak/nlp_100nock","owner":{"login":"hotarak","id":19544990,"avatar_url":"https://avatars0.githubusercontent.com/u/19544990?v=3","gravatar_id":"","url":"https://api.github.com/users/hotarak","html_url":"https://github.com/hotarak","followers_url":"https://api.github.com/users/hotarak/followers","following_url":"https://api.github.com/users/hotarak/following{/other_user}","gists_url":"https://api.github.com/users/hotarak/gists{/gist_id}","starred_url":"https://api.github.com/users/hotarak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hotarak/subscriptions","organizations_url":"https://api.github.com/users/hotarak/orgs","repos_url":"https://api.github.com/users/hotarak/repos","events_url":"https://api.github.com/users/hotarak/events{/privacy}","received_events_url":"https://api.github.com/users/hotarak/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hotarak/nlp_100nock","description":null,"fork":false,"url":"https://api.github.com/repos/hotarak/nlp_100nock","forks_url":"https://api.github.com/repos/hotarak/nlp_100nock/forks","keys_url":"https://api.github.com/repos/hotarak/nlp_100nock/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hotarak/nlp_100nock/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hotarak/nlp_100nock/teams","hooks_url":"https://api.github.com/repos/hotarak/nlp_100nock/hooks","issue_events_url":"https://api.github.com/repos/hotarak/nlp_100nock/issues/events{/number}","events_url":"https://api.github.com/repos/hotarak/nlp_100nock/events","assignees_url":"https://api.github.com/repos/hotarak/nlp_100nock/assignees{/user}","branches_url":"https://api.github.com/repos/hotarak/nlp_100nock/branches{/branch}","tags_url":"https://api.github.com/repos/hotarak/nlp_100nock/tags","blobs_url":"https://api.github.com/repos/hotarak/nlp_100nock/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hotarak/nlp_100nock/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hotarak/nlp_100nock/git/refs{/sha}","trees_url":"https://api.github.com/repos/hotarak/nlp_100nock/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hotarak/nlp_100nock/statuses/{sha}","languages_url":"https://api.github.com/repos/hotarak/nlp_100nock/languages","stargazers_url":"https://api.github.com/repos/hotarak/nlp_100nock/stargazers","contributors_url":"https://api.github.com/repos/hotarak/nlp_100nock/contributors","subscribers_url":"https://api.github.com/repos/hotarak/nlp_100nock/subscribers","subscription_url":"https://api.github.com/repos/hotarak/nlp_100nock/subscription","commits_url":"https://api.github.com/repos/hotarak/nlp_100nock/commits{/sha}","git_commits_url":"https://api.github.com/repos/hotarak/nlp_100nock/git/commits{/sha}","comments_url":"https://api.github.com/repos/hotarak/nlp_100nock/comments{/number}","issue_comment_url":"https://api.github.com/repos/hotarak/nlp_100nock/issues/comments{/number}","contents_url":"https://api.github.com/repos/hotarak/nlp_100nock/contents/{+path}","compare_url":"https://api.github.com/repos/hotarak/nlp_100nock/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hotarak/nlp_100nock/merges","archive_url":"https://api.github.com/repos/hotarak/nlp_100nock/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hotarak/nlp_100nock/downloads","issues_url":"https://api.github.com/repos/hotarak/nlp_100nock/issues{/number}","pulls_url":"https://api.github.com/repos/hotarak/nlp_100nock/pulls{/number}","milestones_url":"https://api.github.com/repos/hotarak/nlp_100nock/milestones{/number}","notifications_url":"https://api.github.com/repos/hotarak/nlp_100nock/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hotarak/nlp_100nock/labels{/name}","releases_url":"https://api.github.com/repos/hotarak/nlp_100nock/releases{/id}","deployments_url":"https://api.github.com/repos/hotarak/nlp_100nock/deployments","created_at":"2017-05-02T06:24:09Z","updated_at":"2017-05-02T06:28:00Z","pushed_at":"2017-05-15T06:04:47Z","git_url":"git://github.com/hotarak/nlp_100nock.git","ssh_url":"git@github.com:hotarak/nlp_100nock.git","clone_url":"https://github.com/hotarak/nlp_100nock.git","svn_url":"https://github.com/hotarak/nlp_100nock","homepage":null,"size":12,"stargazers_count":0,"watchers_count":0,"language":"Jupyter Notebook","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hotarak/nlp_100nock/pulls/3"},"html":{"href":"https://github.com/hotarak/nlp_100nock/pull/3"},"issue":{"href":"https://api.github.com/repos/hotarak/nlp_100nock/issues/3"},"comments":{"href":"https://api.github.com/repos/hotarak/nlp_100nock/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/hotarak/nlp_100nock/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/hotarak/nlp_100nock/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hotarak/nlp_100nock/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/hotarak/nlp_100nock/statuses/6a2d46a934bc4962c64fd39321008e688f784b2d"}}}}
{"actor":{"display_login":"makora9143"}}