{"action":"created","comment":{"url":"https://api.github.com/repos/nut-jnlp/100_knock/pulls/comments/40634715","id":40634715,"diff_hunk":"@@ -0,0 +1,176 @@\n+#!/usr/bin/env python\r\n+# -*- coding: utf-8 -*-\r\n+\r\n+text_file = \"hightemp.txt\"\r\n+\r\n+\r\n+def line_count(file_name):\r\n+    \"\"\"\r\n+    行数のカウント\r\n+    :param file_name: 対象ファイル名\r\n+    :return:　int型で行数\r\n+    確認コマンド：wc hightemp.txt\r\n+    \"\"\"\r\n+    text = open(file_name).readlines()\r\n+    #readlines()は大きいデータの時には非推薦(list型)\r\n+    return len(text)\r\n+\r\n+\r\n+def tab2space(file_name):\r\n+    \"\"\"\r\n+    タブをスペースに置換\r\n+    :param file_name: 対象ファイル名\r\n+    :return: 文字列\r\n+    確認コマンド：sed -e \"s/     / /g\" hightemp.txt\r\n+    確認コマンド：diff hightemp_tab2space.txt hightemp_sed.txt ：確認\r\n+    \"\"\"\r\n+    text = \"\".join(open(file_name).readlines())\r\n+    return text.replace(\"\\t\", \" \")\r","path":"02ndSET/s02.py","position":28,"original_position":28,"commit_id":"578f43b9bd58ba1a5b90f421e76e5c457d819876","original_commit_id":"578f43b9bd58ba1a5b90f421e76e5c457d819876","user":{"login":"TKNGUE","id":5734732,"avatar_url":"https://avatars.githubusercontent.com/u/5734732?v=3","gravatar_id":"","url":"https://api.github.com/users/TKNGUE","html_url":"https://github.com/TKNGUE","followers_url":"https://api.github.com/users/TKNGUE/followers","following_url":"https://api.github.com/users/TKNGUE/following{/other_user}","gists_url":"https://api.github.com/users/TKNGUE/gists{/gist_id}","starred_url":"https://api.github.com/users/TKNGUE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TKNGUE/subscriptions","organizations_url":"https://api.github.com/users/TKNGUE/orgs","repos_url":"https://api.github.com/users/TKNGUE/repos","events_url":"https://api.github.com/users/TKNGUE/events{/privacy}","received_events_url":"https://api.github.com/users/TKNGUE/received_events","type":"User","site_admin":false},"body":"同上の観点から\r\ngeneratorの利用を検討すべき","created_at":"2015-09-29T04:54:58Z","updated_at":"2015-09-29T04:54:58Z","html_url":"https://github.com/nut-jnlp/100_knock/pull/2#discussion_r40634715","pull_request_url":"https://api.github.com/repos/nut-jnlp/100_knock/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/nut-jnlp/100_knock/pulls/comments/40634715"},"html":{"href":"https://github.com/nut-jnlp/100_knock/pull/2#discussion_r40634715"},"pull_request":{"href":"https://api.github.com/repos/nut-jnlp/100_knock/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/nut-jnlp/100_knock/pulls/2","id":46236004,"html_url":"https://github.com/nut-jnlp/100_knock/pull/2","diff_url":"https://github.com/nut-jnlp/100_knock/pull/2.diff","patch_url":"https://github.com/nut-jnlp/100_knock/pull/2.patch","issue_url":"https://api.github.com/repos/nut-jnlp/100_knock/issues/2","number":2,"state":"open","locked":false,"title":"Mikami","user":{"login":"mikami-y","id":14173534,"avatar_url":"https://avatars.githubusercontent.com/u/14173534?v=3","gravatar_id":"","url":"https://api.github.com/users/mikami-y","html_url":"https://github.com/mikami-y","followers_url":"https://api.github.com/users/mikami-y/followers","following_url":"https://api.github.com/users/mikami-y/following{/other_user}","gists_url":"https://api.github.com/users/mikami-y/gists{/gist_id}","starred_url":"https://api.github.com/users/mikami-y/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikami-y/subscriptions","organizations_url":"https://api.github.com/users/mikami-y/orgs","repos_url":"https://api.github.com/users/mikami-y/repos","events_url":"https://api.github.com/users/mikami-y/events{/privacy}","received_events_url":"https://api.github.com/users/mikami-y/received_events","type":"User","site_admin":false},"body":"２章\r\n１７番 一列目の文字列の異なり まで完成。","created_at":"2015-09-29T04:42:21Z","updated_at":"2015-09-29T04:54:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"830c96488487421202928b913bda2eb5ee71ac58","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/nut-jnlp/100_knock/pulls/2/commits","review_comments_url":"https://api.github.com/repos/nut-jnlp/100_knock/pulls/2/comments","review_comment_url":"https://api.github.com/repos/nut-jnlp/100_knock/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nut-jnlp/100_knock/issues/2/comments","statuses_url":"https://api.github.com/repos/nut-jnlp/100_knock/statuses/578f43b9bd58ba1a5b90f421e76e5c457d819876","head":{"label":"mikami-y:mikami","ref":"mikami","sha":"578f43b9bd58ba1a5b90f421e76e5c457d819876","user":{"login":"mikami-y","id":14173534,"avatar_url":"https://avatars.githubusercontent.com/u/14173534?v=3","gravatar_id":"","url":"https://api.github.com/users/mikami-y","html_url":"https://github.com/mikami-y","followers_url":"https://api.github.com/users/mikami-y/followers","following_url":"https://api.github.com/users/mikami-y/following{/other_user}","gists_url":"https://api.github.com/users/mikami-y/gists{/gist_id}","starred_url":"https://api.github.com/users/mikami-y/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikami-y/subscriptions","organizations_url":"https://api.github.com/users/mikami-y/orgs","repos_url":"https://api.github.com/users/mikami-y/repos","events_url":"https://api.github.com/users/mikami-y/events{/privacy}","received_events_url":"https://api.github.com/users/mikami-y/received_events","type":"User","site_admin":false},"repo":{"id":42220108,"name":"100_knock","full_name":"mikami-y/100_knock","owner":{"login":"mikami-y","id":14173534,"avatar_url":"https://avatars.githubusercontent.com/u/14173534?v=3","gravatar_id":"","url":"https://api.github.com/users/mikami-y","html_url":"https://github.com/mikami-y","followers_url":"https://api.github.com/users/mikami-y/followers","following_url":"https://api.github.com/users/mikami-y/following{/other_user}","gists_url":"https://api.github.com/users/mikami-y/gists{/gist_id}","starred_url":"https://api.github.com/users/mikami-y/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikami-y/subscriptions","organizations_url":"https://api.github.com/users/mikami-y/orgs","repos_url":"https://api.github.com/users/mikami-y/repos","events_url":"https://api.github.com/users/mikami-y/events{/privacy}","received_events_url":"https://api.github.com/users/mikami-y/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mikami-y/100_knock","description":"","fork":true,"url":"https://api.github.com/repos/mikami-y/100_knock","forks_url":"https://api.github.com/repos/mikami-y/100_knock/forks","keys_url":"https://api.github.com/repos/mikami-y/100_knock/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mikami-y/100_knock/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mikami-y/100_knock/teams","hooks_url":"https://api.github.com/repos/mikami-y/100_knock/hooks","issue_events_url":"https://api.github.com/repos/mikami-y/100_knock/issues/events{/number}","events_url":"https://api.github.com/repos/mikami-y/100_knock/events","assignees_url":"https://api.github.com/repos/mikami-y/100_knock/assignees{/user}","branches_url":"https://api.github.com/repos/mikami-y/100_knock/branches{/branch}","tags_url":"https://api.github.com/repos/mikami-y/100_knock/tags","blobs_url":"https://api.github.com/repos/mikami-y/100_knock/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mikami-y/100_knock/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mikami-y/100_knock/git/refs{/sha}","trees_url":"https://api.github.com/repos/mikami-y/100_knock/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mikami-y/100_knock/statuses/{sha}","languages_url":"https://api.github.com/repos/mikami-y/100_knock/languages","stargazers_url":"https://api.github.com/repos/mikami-y/100_knock/stargazers","contributors_url":"https://api.github.com/repos/mikami-y/100_knock/contributors","subscribers_url":"https://api.github.com/repos/mikami-y/100_knock/subscribers","subscription_url":"https://api.github.com/repos/mikami-y/100_knock/subscription","commits_url":"https://api.github.com/repos/mikami-y/100_knock/commits{/sha}","git_commits_url":"https://api.github.com/repos/mikami-y/100_knock/git/commits{/sha}","comments_url":"https://api.github.com/repos/mikami-y/100_knock/comments{/number}","issue_comment_url":"https://api.github.com/repos/mikami-y/100_knock/issues/comments{/number}","contents_url":"https://api.github.com/repos/mikami-y/100_knock/contents/{+path}","compare_url":"https://api.github.com/repos/mikami-y/100_knock/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mikami-y/100_knock/merges","archive_url":"https://api.github.com/repos/mikami-y/100_knock/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mikami-y/100_knock/downloads","issues_url":"https://api.github.com/repos/mikami-y/100_knock/issues{/number}","pulls_url":"https://api.github.com/repos/mikami-y/100_knock/pulls{/number}","milestones_url":"https://api.github.com/repos/mikami-y/100_knock/milestones{/number}","notifications_url":"https://api.github.com/repos/mikami-y/100_knock/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mikami-y/100_knock/labels{/name}","releases_url":"https://api.github.com/repos/mikami-y/100_knock/releases{/id}","created_at":"2015-09-10T03:35:32Z","updated_at":"2015-09-09T03:31:05Z","pushed_at":"2015-09-29T04:37:51Z","git_url":"git://github.com/mikami-y/100_knock.git","ssh_url":"git@github.com:mikami-y/100_knock.git","clone_url":"https://github.com/mikami-y/100_knock.git","svn_url":"https://github.com/mikami-y/100_knock","homepage":null,"size":5639,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"nut-jnlp:mikami","ref":"mikami","sha":"de8c4a735ab6060652b410456b6327f632494cf0","user":{"login":"nut-jnlp","id":14173433,"avatar_url":"https://avatars.githubusercontent.com/u/14173433?v=3","gravatar_id":"","url":"https://api.github.com/users/nut-jnlp","html_url":"https://github.com/nut-jnlp","followers_url":"https://api.github.com/users/nut-jnlp/followers","following_url":"https://api.github.com/users/nut-jnlp/following{/other_user}","gists_url":"https://api.github.com/users/nut-jnlp/gists{/gist_id}","starred_url":"https://api.github.com/users/nut-jnlp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nut-jnlp/subscriptions","organizations_url":"https://api.github.com/users/nut-jnlp/orgs","repos_url":"https://api.github.com/users/nut-jnlp/repos","events_url":"https://api.github.com/users/nut-jnlp/events{/privacy}","received_events_url":"https://api.github.com/users/nut-jnlp/received_events","type":"Organization","site_admin":false},"repo":{"id":42128717,"name":"100_knock","full_name":"nut-jnlp/100_knock","owner":{"login":"nut-jnlp","id":14173433,"avatar_url":"https://avatars.githubusercontent.com/u/14173433?v=3","gravatar_id":"","url":"https://api.github.com/users/nut-jnlp","html_url":"https://github.com/nut-jnlp","followers_url":"https://api.github.com/users/nut-jnlp/followers","following_url":"https://api.github.com/users/nut-jnlp/following{/other_user}","gists_url":"https://api.github.com/users/nut-jnlp/gists{/gist_id}","starred_url":"https://api.github.com/users/nut-jnlp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nut-jnlp/subscriptions","organizations_url":"https://api.github.com/users/nut-jnlp/orgs","repos_url":"https://api.github.com/users/nut-jnlp/repos","events_url":"https://api.github.com/users/nut-jnlp/events{/privacy}","received_events_url":"https://api.github.com/users/nut-jnlp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nut-jnlp/100_knock","description":"","fork":true,"url":"https://api.github.com/repos/nut-jnlp/100_knock","forks_url":"https://api.github.com/repos/nut-jnlp/100_knock/forks","keys_url":"https://api.github.com/repos/nut-jnlp/100_knock/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nut-jnlp/100_knock/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nut-jnlp/100_knock/teams","hooks_url":"https://api.github.com/repos/nut-jnlp/100_knock/hooks","issue_events_url":"https://api.github.com/repos/nut-jnlp/100_knock/issues/events{/number}","events_url":"https://api.github.com/repos/nut-jnlp/100_knock/events","assignees_url":"https://api.github.com/repos/nut-jnlp/100_knock/assignees{/user}","branches_url":"https://api.github.com/repos/nut-jnlp/100_knock/branches{/branch}","tags_url":"https://api.github.com/repos/nut-jnlp/100_knock/tags","blobs_url":"https://api.github.com/repos/nut-jnlp/100_knock/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nut-jnlp/100_knock/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nut-jnlp/100_knock/git/refs{/sha}","trees_url":"https://api.github.com/repos/nut-jnlp/100_knock/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nut-jnlp/100_knock/statuses/{sha}","languages_url":"https://api.github.com/repos/nut-jnlp/100_knock/languages","stargazers_url":"https://api.github.com/repos/nut-jnlp/100_knock/stargazers","contributors_url":"https://api.github.com/repos/nut-jnlp/100_knock/contributors","subscribers_url":"https://api.github.com/repos/nut-jnlp/100_knock/subscribers","subscription_url":"https://api.github.com/repos/nut-jnlp/100_knock/subscription","commits_url":"https://api.github.com/repos/nut-jnlp/100_knock/commits{/sha}","git_commits_url":"https://api.github.com/repos/nut-jnlp/100_knock/git/commits{/sha}","comments_url":"https://api.github.com/repos/nut-jnlp/100_knock/comments{/number}","issue_comment_url":"https://api.github.com/repos/nut-jnlp/100_knock/issues/comments{/number}","contents_url":"https://api.github.com/repos/nut-jnlp/100_knock/contents/{+path}","compare_url":"https://api.github.com/repos/nut-jnlp/100_knock/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nut-jnlp/100_knock/merges","archive_url":"https://api.github.com/repos/nut-jnlp/100_knock/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nut-jnlp/100_knock/downloads","issues_url":"https://api.github.com/repos/nut-jnlp/100_knock/issues{/number}","pulls_url":"https://api.github.com/repos/nut-jnlp/100_knock/pulls{/number}","milestones_url":"https://api.github.com/repos/nut-jnlp/100_knock/milestones{/number}","notifications_url":"https://api.github.com/repos/nut-jnlp/100_knock/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nut-jnlp/100_knock/labels{/name}","releases_url":"https://api.github.com/repos/nut-jnlp/100_knock/releases{/id}","created_at":"2015-09-08T17:42:47Z","updated_at":"2015-09-09T03:31:05Z","pushed_at":"2015-09-29T04:42:21Z","git_url":"git://github.com/nut-jnlp/100_knock.git","ssh_url":"git@github.com:nut-jnlp/100_knock.git","clone_url":"https://github.com/nut-jnlp/100_knock.git","svn_url":"https://github.com/nut-jnlp/100_knock","homepage":null,"size":5716,"stargazers_count":1,"watchers_count":1,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nut-jnlp/100_knock/pulls/2"},"html":{"href":"https://github.com/nut-jnlp/100_knock/pull/2"},"issue":{"href":"https://api.github.com/repos/nut-jnlp/100_knock/issues/2"},"comments":{"href":"https://api.github.com/repos/nut-jnlp/100_knock/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/nut-jnlp/100_knock/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/nut-jnlp/100_knock/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nut-jnlp/100_knock/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/nut-jnlp/100_knock/statuses/578f43b9bd58ba1a5b90f421e76e5c457d819876"}}}}