{"action":"created","comment":{"url":"https://api.github.com/repos/python-boot-camp/HW10/pulls/comments/37427878","id":37427878,"diff_hunk":"@@ -0,0 +1,14 @@\n+def insert_num (lines):\r\n+    with open(\"new.txt\",\"a\") as fwrite:\r\n+        for i in range(len(lines)):\r\n+            fwrite.write ( str(i+1) + \" \" + lines[i])\r\n+        \r\n+def main():\r\n+\r\n+    with open(\"small.txt\",\"rb\") as f:\r\n+        lines = f.read().split('\\r\\n')\r\n+        \r\n+        print lines\r\n+    insert_num(lines)\r\n+\r\n+main()\r","path":"numbered_lines.py","position":14,"original_position":14,"commit_id":"011cf9141bf538908ece0723d0624bea40c1e52f","original_commit_id":"011cf9141bf538908ece0723d0624bea40c1e52f","user":{"login":"danielsgriffin","id":6070690,"avatar_url":"https://avatars.githubusercontent.com/u/6070690?v=3","gravatar_id":"","url":"https://api.github.com/users/danielsgriffin","html_url":"https://github.com/danielsgriffin","followers_url":"https://api.github.com/users/danielsgriffin/followers","following_url":"https://api.github.com/users/danielsgriffin/following{/other_user}","gists_url":"https://api.github.com/users/danielsgriffin/gists{/gist_id}","starred_url":"https://api.github.com/users/danielsgriffin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielsgriffin/subscriptions","organizations_url":"https://api.github.com/users/danielsgriffin/orgs","repos_url":"https://api.github.com/users/danielsgriffin/repos","events_url":"https://api.github.com/users/danielsgriffin/events{/privacy}","received_events_url":"https://api.github.com/users/danielsgriffin/received_events","type":"User","site_admin":false},"body":"I'm assuming you didn't finish this?\r\nAlthough,  if you were trying to write to a file, it probably would have been best to use `rstrip()`","created_at":"2015-08-19T15:25:40Z","updated_at":"2015-08-19T15:25:40Z","html_url":"https://github.com/python-boot-camp/HW10/pull/4#discussion_r37427878","pull_request_url":"https://api.github.com/repos/python-boot-camp/HW10/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/python-boot-camp/HW10/pulls/comments/37427878"},"html":{"href":"https://github.com/python-boot-camp/HW10/pull/4#discussion_r37427878"},"pull_request":{"href":"https://api.github.com/repos/python-boot-camp/HW10/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/python-boot-camp/HW10/pulls/4","id":42768308,"html_url":"https://github.com/python-boot-camp/HW10/pull/4","diff_url":"https://github.com/python-boot-camp/HW10/pull/4.diff","patch_url":"https://github.com/python-boot-camp/HW10/pull/4.patch","issue_url":"https://api.github.com/repos/python-boot-camp/HW10/issues/4","number":4,"state":"open","locked":false,"title":"Placein test 2","user":{"login":"lynell","id":13646656,"avatar_url":"https://avatars.githubusercontent.com/u/13646656?v=3","gravatar_id":"","url":"https://api.github.com/users/lynell","html_url":"https://github.com/lynell","followers_url":"https://api.github.com/users/lynell/followers","following_url":"https://api.github.com/users/lynell/following{/other_user}","gists_url":"https://api.github.com/users/lynell/gists{/gist_id}","starred_url":"https://api.github.com/users/lynell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lynell/subscriptions","organizations_url":"https://api.github.com/users/lynell/orgs","repos_url":"https://api.github.com/users/lynell/repos","events_url":"https://api.github.com/users/lynell/events{/privacy}","received_events_url":"https://api.github.com/users/lynell/received_events","type":"User","site_admin":false},"body":"Phew","created_at":"2015-08-19T01:33:32Z","updated_at":"2015-08-19T15:25:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3c604776cc37749d6a8c11ca9c7eea6c3ef2bd89","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/python-boot-camp/HW10/pulls/4/commits","review_comments_url":"https://api.github.com/repos/python-boot-camp/HW10/pulls/4/comments","review_comment_url":"https://api.github.com/repos/python-boot-camp/HW10/pulls/comments{/number}","comments_url":"https://api.github.com/repos/python-boot-camp/HW10/issues/4/comments","statuses_url":"https://api.github.com/repos/python-boot-camp/HW10/statuses/011cf9141bf538908ece0723d0624bea40c1e52f","head":{"label":"lynell:master","ref":"master","sha":"011cf9141bf538908ece0723d0624bea40c1e52f","user":{"login":"lynell","id":13646656,"avatar_url":"https://avatars.githubusercontent.com/u/13646656?v=3","gravatar_id":"","url":"https://api.github.com/users/lynell","html_url":"https://github.com/lynell","followers_url":"https://api.github.com/users/lynell/followers","following_url":"https://api.github.com/users/lynell/following{/other_user}","gists_url":"https://api.github.com/users/lynell/gists{/gist_id}","starred_url":"https://api.github.com/users/lynell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lynell/subscriptions","organizations_url":"https://api.github.com/users/lynell/orgs","repos_url":"https://api.github.com/users/lynell/repos","events_url":"https://api.github.com/users/lynell/events{/privacy}","received_events_url":"https://api.github.com/users/lynell/received_events","type":"User","site_admin":false},"repo":{"id":40986562,"name":"HW10","full_name":"lynell/HW10","owner":{"login":"lynell","id":13646656,"avatar_url":"https://avatars.githubusercontent.com/u/13646656?v=3","gravatar_id":"","url":"https://api.github.com/users/lynell","html_url":"https://github.com/lynell","followers_url":"https://api.github.com/users/lynell/followers","following_url":"https://api.github.com/users/lynell/following{/other_user}","gists_url":"https://api.github.com/users/lynell/gists{/gist_id}","starred_url":"https://api.github.com/users/lynell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lynell/subscriptions","organizations_url":"https://api.github.com/users/lynell/orgs","repos_url":"https://api.github.com/users/lynell/repos","events_url":"https://api.github.com/users/lynell/events{/privacy}","received_events_url":"https://api.github.com/users/lynell/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lynell/HW10","description":"","fork":true,"url":"https://api.github.com/repos/lynell/HW10","forks_url":"https://api.github.com/repos/lynell/HW10/forks","keys_url":"https://api.github.com/repos/lynell/HW10/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lynell/HW10/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lynell/HW10/teams","hooks_url":"https://api.github.com/repos/lynell/HW10/hooks","issue_events_url":"https://api.github.com/repos/lynell/HW10/issues/events{/number}","events_url":"https://api.github.com/repos/lynell/HW10/events","assignees_url":"https://api.github.com/repos/lynell/HW10/assignees{/user}","branches_url":"https://api.github.com/repos/lynell/HW10/branches{/branch}","tags_url":"https://api.github.com/repos/lynell/HW10/tags","blobs_url":"https://api.github.com/repos/lynell/HW10/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lynell/HW10/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lynell/HW10/git/refs{/sha}","trees_url":"https://api.github.com/repos/lynell/HW10/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lynell/HW10/statuses/{sha}","languages_url":"https://api.github.com/repos/lynell/HW10/languages","stargazers_url":"https://api.github.com/repos/lynell/HW10/stargazers","contributors_url":"https://api.github.com/repos/lynell/HW10/contributors","subscribers_url":"https://api.github.com/repos/lynell/HW10/subscribers","subscription_url":"https://api.github.com/repos/lynell/HW10/subscription","commits_url":"https://api.github.com/repos/lynell/HW10/commits{/sha}","git_commits_url":"https://api.github.com/repos/lynell/HW10/git/commits{/sha}","comments_url":"https://api.github.com/repos/lynell/HW10/comments{/number}","issue_comment_url":"https://api.github.com/repos/lynell/HW10/issues/comments{/number}","contents_url":"https://api.github.com/repos/lynell/HW10/contents/{+path}","compare_url":"https://api.github.com/repos/lynell/HW10/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lynell/HW10/merges","archive_url":"https://api.github.com/repos/lynell/HW10/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lynell/HW10/downloads","issues_url":"https://api.github.com/repos/lynell/HW10/issues{/number}","pulls_url":"https://api.github.com/repos/lynell/HW10/pulls{/number}","milestones_url":"https://api.github.com/repos/lynell/HW10/milestones{/number}","notifications_url":"https://api.github.com/repos/lynell/HW10/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lynell/HW10/labels{/name}","releases_url":"https://api.github.com/repos/lynell/HW10/releases{/id}","created_at":"2015-08-18T17:23:15Z","updated_at":"2015-08-18T17:23:15Z","pushed_at":"2015-08-19T01:32:55Z","git_url":"git://github.com/lynell/HW10.git","ssh_url":"git@github.com:lynell/HW10.git","clone_url":"https://github.com/lynell/HW10.git","svn_url":"https://github.com/lynell/HW10","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"python-boot-camp:master","ref":"master","sha":"c09360e83ad9c49c31684c6177a2c28410f73265","user":{"login":"python-boot-camp","id":13564087,"avatar_url":"https://avatars.githubusercontent.com/u/13564087?v=3","gravatar_id":"","url":"https://api.github.com/users/python-boot-camp","html_url":"https://github.com/python-boot-camp","followers_url":"https://api.github.com/users/python-boot-camp/followers","following_url":"https://api.github.com/users/python-boot-camp/following{/other_user}","gists_url":"https://api.github.com/users/python-boot-camp/gists{/gist_id}","starred_url":"https://api.github.com/users/python-boot-camp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/python-boot-camp/subscriptions","organizations_url":"https://api.github.com/users/python-boot-camp/orgs","repos_url":"https://api.github.com/users/python-boot-camp/repos","events_url":"https://api.github.com/users/python-boot-camp/events{/privacy}","received_events_url":"https://api.github.com/users/python-boot-camp/received_events","type":"Organization","site_admin":false},"repo":{"id":40981544,"name":"HW10","full_name":"python-boot-camp/HW10","owner":{"login":"python-boot-camp","id":13564087,"avatar_url":"https://avatars.githubusercontent.com/u/13564087?v=3","gravatar_id":"","url":"https://api.github.com/users/python-boot-camp","html_url":"https://github.com/python-boot-camp","followers_url":"https://api.github.com/users/python-boot-camp/followers","following_url":"https://api.github.com/users/python-boot-camp/following{/other_user}","gists_url":"https://api.github.com/users/python-boot-camp/gists{/gist_id}","starred_url":"https://api.github.com/users/python-boot-camp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/python-boot-camp/subscriptions","organizations_url":"https://api.github.com/users/python-boot-camp/orgs","repos_url":"https://api.github.com/users/python-boot-camp/repos","events_url":"https://api.github.com/users/python-boot-camp/events{/privacy}","received_events_url":"https://api.github.com/users/python-boot-camp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/python-boot-camp/HW10","description":"","fork":false,"url":"https://api.github.com/repos/python-boot-camp/HW10","forks_url":"https://api.github.com/repos/python-boot-camp/HW10/forks","keys_url":"https://api.github.com/repos/python-boot-camp/HW10/keys{/key_id}","collaborators_url":"https://api.github.com/repos/python-boot-camp/HW10/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/python-boot-camp/HW10/teams","hooks_url":"https://api.github.com/repos/python-boot-camp/HW10/hooks","issue_events_url":"https://api.github.com/repos/python-boot-camp/HW10/issues/events{/number}","events_url":"https://api.github.com/repos/python-boot-camp/HW10/events","assignees_url":"https://api.github.com/repos/python-boot-camp/HW10/assignees{/user}","branches_url":"https://api.github.com/repos/python-boot-camp/HW10/branches{/branch}","tags_url":"https://api.github.com/repos/python-boot-camp/HW10/tags","blobs_url":"https://api.github.com/repos/python-boot-camp/HW10/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/python-boot-camp/HW10/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/python-boot-camp/HW10/git/refs{/sha}","trees_url":"https://api.github.com/repos/python-boot-camp/HW10/git/trees{/sha}","statuses_url":"https://api.github.com/repos/python-boot-camp/HW10/statuses/{sha}","languages_url":"https://api.github.com/repos/python-boot-camp/HW10/languages","stargazers_url":"https://api.github.com/repos/python-boot-camp/HW10/stargazers","contributors_url":"https://api.github.com/repos/python-boot-camp/HW10/contributors","subscribers_url":"https://api.github.com/repos/python-boot-camp/HW10/subscribers","subscription_url":"https://api.github.com/repos/python-boot-camp/HW10/subscription","commits_url":"https://api.github.com/repos/python-boot-camp/HW10/commits{/sha}","git_commits_url":"https://api.github.com/repos/python-boot-camp/HW10/git/commits{/sha}","comments_url":"https://api.github.com/repos/python-boot-camp/HW10/comments{/number}","issue_comment_url":"https://api.github.com/repos/python-boot-camp/HW10/issues/comments{/number}","contents_url":"https://api.github.com/repos/python-boot-camp/HW10/contents/{+path}","compare_url":"https://api.github.com/repos/python-boot-camp/HW10/compare/{base}...{head}","merges_url":"https://api.github.com/repos/python-boot-camp/HW10/merges","archive_url":"https://api.github.com/repos/python-boot-camp/HW10/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/python-boot-camp/HW10/downloads","issues_url":"https://api.github.com/repos/python-boot-camp/HW10/issues{/number}","pulls_url":"https://api.github.com/repos/python-boot-camp/HW10/pulls{/number}","milestones_url":"https://api.github.com/repos/python-boot-camp/HW10/milestones{/number}","notifications_url":"https://api.github.com/repos/python-boot-camp/HW10/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/python-boot-camp/HW10/labels{/name}","releases_url":"https://api.github.com/repos/python-boot-camp/HW10/releases{/id}","created_at":"2015-08-18T15:57:56Z","updated_at":"2015-08-18T15:59:03Z","pushed_at":"2015-08-19T08:44:22Z","git_url":"git://github.com/python-boot-camp/HW10.git","ssh_url":"git@github.com:python-boot-camp/HW10.git","clone_url":"https://github.com/python-boot-camp/HW10.git","svn_url":"https://github.com/python-boot-camp/HW10","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":20,"mirror_url":null,"open_issues_count":11,"forks":20,"open_issues":11,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/python-boot-camp/HW10/pulls/4"},"html":{"href":"https://github.com/python-boot-camp/HW10/pull/4"},"issue":{"href":"https://api.github.com/repos/python-boot-camp/HW10/issues/4"},"comments":{"href":"https://api.github.com/repos/python-boot-camp/HW10/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/python-boot-camp/HW10/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/python-boot-camp/HW10/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/python-boot-camp/HW10/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/python-boot-camp/HW10/statuses/011cf9141bf538908ece0723d0624bea40c1e52f"}}}}