GitHub PullRequestReviewCommentEvent at 2014-12-27 16:39:10
Repository: sea-c28-students
Actor: jefrailey
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/codefellows/sea-c28-students/pulls/comments/22293212","id":22293212,"diff_hunk":"@@ -0,0 +1,75 @@\n+\n+#!/usr/bin/env python\n+donor_dict = {'Andy Smith': [10, 20, 30, 20], 'Brian Miller': [20, 40, 30],\n+              'Daniel Brown': [30, 40, 10, 10, 30], 'Eli Feng': [50, 70]}\n+\n+\n+def safe_input():\n+    try:\n+        raw_input()\n+    except (EOFError, KeyboardInterrupt):\n+        return None\n+\n+\n+#Prompt for a Full Name.\n+def ask_name():\n+    name = raw_input(\"What is the donor's full name? \")\n+    if name == 'list':\n+        print donor_dict.keys()\n+    if name in donor_dict.keys():\n+        donor_dict[name] = []\n+        ask_amount(name)\n+    elif name not in donor_dict.keys():\n+        donor_dict[name] = []\n+        ask_amount(name)\n+\n+def ask_amount(name):\n+    amount = raw_input(\"How much is the donation? \")\n+    amount = int(amount)\n+    while True:\n+        try:\n+            amount = int(amount)\n+        except ValueError:\n+            amount = raw_input(\"Please entern number. \")\n+        else:\n+            break\n+    donor_dict[name].append(amount)","path":"Students/SakiFu/session03/mail.py","position":36,"original_position":36,"commit_id":"5de636627333119d990ee6cd0a0e59ecb4494a46","original_commit_id":"5de636627333119d990ee6cd0a0e59ecb4494a46","user":{"login":"jefrailey","id":7455511,"avatar_url":"https://avatars.githubusercontent.com/u/7455511?v=3","gravatar_id":"","url":"https://api.github.com/users/jefrailey","html_url":"https://github.com/jefrailey","followers_url":"https://api.github.com/users/jefrailey/followers","following_url":"https://api.github.com/users/jefrailey/following{/other_user}","gists_url":"https://api.github.com/users/jefrailey/gists{/gist_id}","starred_url":"https://api.github.com/users/jefrailey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jefrailey/subscriptions","organizations_url":"https://api.github.com/users/jefrailey/orgs","repos_url":"https://api.github.com/users/jefrailey/repos","events_url":"https://api.github.com/users/jefrailey/events{/privacy}","received_events_url":"https://api.github.com/users/jefrailey/received_events","type":"User","site_admin":false},"body":"Nice chaining of a method on a value returned from a dictionary.","created_at":"2014-12-27T16:39:10Z","updated_at":"2014-12-27T16:39:10Z","html_url":"https://github.com/codefellows/sea-c28-students/pull/164#discussion_r22293212","pull_request_url":"https://api.github.com/repos/codefellows/sea-c28-students/pulls/164","_links":{"self":{"href":"https://api.github.com/repos/codefellows/sea-c28-students/pulls/comments/22293212"},"html":{"href":"https://github.com/codefellows/sea-c28-students/pull/164#discussion_r22293212"},"pull_request":{"href":"https://api.github.com/repos/codefellows/sea-c28-students/pulls/164"}}},"pull_request":{"url":"https://api.github.com/repos/codefellows/sea-c28-students/pulls/164","id":26434873,"html_url":"https://github.com/codefellows/sea-c28-students/pull/164","diff_url":"https://github.com/codefellows/sea-c28-students/pull/164.diff","patch_url":"https://github.com/codefellows/sea-c28-students/pull/164.patch","issue_url":"https://api.github.com/repos/codefellows/sea-c28-students/issues/164","number":164,"state":"open","locked":false,"title":"Added mail.py","user":{"login":"SakiFu","id":9942046,"avatar_url":"https://avatars.githubusercontent.com/u/9942046?v=3","gravatar_id":"","url":"https://api.github.com/users/SakiFu","html_url":"https://github.com/SakiFu","followers_url":"https://api.github.com/users/SakiFu/followers","following_url":"https://api.github.com/users/SakiFu/following{/other_user}","gists_url":"https://api.github.com/users/SakiFu/gists{/gist_id}","starred_url":"https://api.github.com/users/SakiFu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SakiFu/subscriptions","organizations_url":"https://api.github.com/users/SakiFu/orgs","repos_url":"https://api.github.com/users/SakiFu/repos","events_url":"https://api.github.com/users/SakiFu/events{/privacy}","received_events_url":"https://api.github.com/users/SakiFu/received_events","type":"User","site_admin":false},"body":"","created_at":"2014-12-22T01:08:16Z","updated_at":"2014-12-27T16:39:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f8231866eb9fdfcc360a01fd74fea92b33ad0305","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/codefellows/sea-c28-students/pulls/164/commits","review_comments_url":"https://api.github.com/repos/codefellows/sea-c28-students/pulls/164/comments","review_comment_url":"https://api.github.com/repos/codefellows/sea-c28-students/pulls/comments/{number}","comments_url":"https://api.github.com/repos/codefellows/sea-c28-students/issues/164/comments","statuses_url":"https://api.github.com/repos/codefellows/sea-c28-students/statuses/5de636627333119d990ee6cd0a0e59ecb4494a46","head":{"label":"SakiFu:mailroom","ref":"mailroom","sha":"5de636627333119d990ee6cd0a0e59ecb4494a46","user":{"login":"SakiFu","id":9942046,"avatar_url":"https://avatars.githubusercontent.com/u/9942046?v=3","gravatar_id":"","url":"https://api.github.com/users/SakiFu","html_url":"https://github.com/SakiFu","followers_url":"https://api.github.com/users/SakiFu/followers","following_url":"https://api.github.com/users/SakiFu/following{/other_user}","gists_url":"https://api.github.com/users/SakiFu/gists{/gist_id}","starred_url":"https://api.github.com/users/SakiFu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SakiFu/subscriptions","organizations_url":"https://api.github.com/users/SakiFu/orgs","repos_url":"https://api.github.com/users/SakiFu/repos","events_url":"https://api.github.com/users/SakiFu/events{/privacy}","received_events_url":"https://api.github.com/users/SakiFu/received_events","type":"User","site_admin":false},"repo":{"id":27108748,"name":"sea-c28-students","full_name":"SakiFu/sea-c28-students","owner":{"login":"SakiFu","id":9942046,"avatar_url":"https://avatars.githubusercontent.com/u/9942046?v=3","gravatar_id":"","url":"https://api.github.com/users/SakiFu","html_url":"https://github.com/SakiFu","followers_url":"https://api.github.com/users/SakiFu/followers","following_url":"https://api.github.com/users/SakiFu/following{/other_user}","gists_url":"https://api.github.com/users/SakiFu/gists{/gist_id}","starred_url":"https://api.github.com/users/SakiFu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SakiFu/subscriptions","organizations_url":"https://api.github.com/users/SakiFu/orgs","repos_url":"https://api.github.com/users/SakiFu/repos","events_url":"https://api.github.com/users/SakiFu/events{/privacy}","received_events_url":"https://api.github.com/users/SakiFu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/SakiFu/sea-c28-students","description":"","fork":true,"url":"https://api.github.com/repos/SakiFu/sea-c28-students","forks_url":"https://api.github.com/repos/SakiFu/sea-c28-students/forks","keys_url":"https://api.github.com/repos/SakiFu/sea-c28-students/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SakiFu/sea-c28-students/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SakiFu/sea-c28-students/teams","hooks_url":"https://api.github.com/repos/SakiFu/sea-c28-students/hooks","issue_events_url":"https://api.github.com/repos/SakiFu/sea-c28-students/issues/events{/number}","events_url":"https://api.github.com/repos/SakiFu/sea-c28-students/events","assignees_url":"https://api.github.com/repos/SakiFu/sea-c28-students/assignees{/user}","branches_url":"https://api.github.com/repos/SakiFu/sea-c28-students/branches{/branch}","tags_url":"https://api.github.com/repos/SakiFu/sea-c28-students/tags","blobs_url":"https://api.github.com/repos/SakiFu/sea-c28-students/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SakiFu/sea-c28-students/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SakiFu/sea-c28-students/git/refs{/sha}","trees_url":"https://api.github.com/repos/SakiFu/sea-c28-students/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SakiFu/sea-c28-students/statuses/{sha}","languages_url":"https://api.github.com/repos/SakiFu/sea-c28-students/languages","stargazers_url":"https://api.github.com/repos/SakiFu/sea-c28-students/stargazers","contributors_url":"https://api.github.com/repos/SakiFu/sea-c28-students/contributors","subscribers_url":"https://api.github.com/repos/SakiFu/sea-c28-students/subscribers","subscription_url":"https://api.github.com/repos/SakiFu/sea-c28-students/subscription","commits_url":"https://api.github.com/repos/SakiFu/sea-c28-students/commits{/sha}","git_commits_url":"https://api.github.com/repos/SakiFu/sea-c28-students/git/commits{/sha}","comments_url":"https://api.github.com/repos/SakiFu/sea-c28-students/comments{/number}","issue_comment_url":"https://api.github.com/repos/SakiFu/sea-c28-students/issues/comments/{number}","contents_url":"https://api.github.com/repos/SakiFu/sea-c28-students/contents/{+path}","compare_url":"https://api.github.com/repos/SakiFu/sea-c28-students/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SakiFu/sea-c28-students/merges","archive_url":"https://api.github.com/repos/SakiFu/sea-c28-students/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SakiFu/sea-c28-students/downloads","issues_url":"https://api.github.com/repos/SakiFu/sea-c28-students/issues{/number}","pulls_url":"https://api.github.com/repos/SakiFu/sea-c28-students/pulls{/number}","milestones_url":"https://api.github.com/repos/SakiFu/sea-c28-students/milestones{/number}","notifications_url":"https://api.github.com/repos/SakiFu/sea-c28-students/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SakiFu/sea-c28-students/labels{/name}","releases_url":"https://api.github.com/repos/SakiFu/sea-c28-students/releases{/id}","created_at":"2014-11-25T04:18:13Z","updated_at":"2014-12-24T20:35:31Z","pushed_at":"2014-12-24T20:35:31Z","git_url":"git://github.com/SakiFu/sea-c28-students.git","ssh_url":"git@github.com:SakiFu/sea-c28-students.git","clone_url":"https://github.com/SakiFu/sea-c28-students.git","svn_url":"https://github.com/SakiFu/sea-c28-students","homepage":null,"size":2356,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"codefellows:master","ref":"master","sha":"597e442daf0fb1b2a61872bbf5eee9fce6b92f8a","user":{"login":"codefellows","id":3904529,"avatar_url":"https://avatars.githubusercontent.com/u/3904529?v=3","gravatar_id":"","url":"https://api.github.com/users/codefellows","html_url":"https://github.com/codefellows","followers_url":"https://api.github.com/users/codefellows/followers","following_url":"https://api.github.com/users/codefellows/following{/other_user}","gists_url":"https://api.github.com/users/codefellows/gists{/gist_id}","starred_url":"https://api.github.com/users/codefellows/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codefellows/subscriptions","organizations_url":"https://api.github.com/users/codefellows/orgs","repos_url":"https://api.github.com/users/codefellows/repos","events_url":"https://api.github.com/users/codefellows/events{/privacy}","received_events_url":"https://api.github.com/users/codefellows/received_events","type":"Organization","site_admin":false},"repo":{"id":27015627,"name":"sea-c28-students","full_name":"codefellows/sea-c28-students","owner":{"login":"codefellows","id":3904529,"avatar_url":"https://avatars.githubusercontent.com/u/3904529?v=3","gravatar_id":"","url":"https://api.github.com/users/codefellows","html_url":"https://github.com/codefellows","followers_url":"https://api.github.com/users/codefellows/followers","following_url":"https://api.github.com/users/codefellows/following{/other_user}","gists_url":"https://api.github.com/users/codefellows/gists{/gist_id}","starred_url":"https://api.github.com/users/codefellows/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codefellows/subscriptions","organizations_url":"https://api.github.com/users/codefellows/orgs","repos_url":"https://api.github.com/users/codefellows/repos","events_url":"https://api.github.com/users/codefellows/events{/privacy}","received_events_url":"https://api.github.com/users/codefellows/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/codefellows/sea-c28-students","description":"","fork":false,"url":"https://api.github.com/repos/codefellows/sea-c28-students","forks_url":"https://api.github.com/repos/codefellows/sea-c28-students/forks","keys_url":"https://api.github.com/repos/codefellows/sea-c28-students/keys{/key_id}","collaborators_url":"https://api.github.com/repos/codefellows/sea-c28-students/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/codefellows/sea-c28-students/teams","hooks_url":"https://api.github.com/repos/codefellows/sea-c28-students/hooks","issue_events_url":"https://api.github.com/repos/codefellows/sea-c28-students/issues/events{/number}","events_url":"https://api.github.com/repos/codefellows/sea-c28-students/events","assignees_url":"https://api.github.com/repos/codefellows/sea-c28-students/assignees{/user}","branches_url":"https://api.github.com/repos/codefellows/sea-c28-students/branches{/branch}","tags_url":"https://api.github.com/repos/codefellows/sea-c28-students/tags","blobs_url":"https://api.github.com/repos/codefellows/sea-c28-students/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/codefellows/sea-c28-students/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/codefellows/sea-c28-students/git/refs{/sha}","trees_url":"https://api.github.com/repos/codefellows/sea-c28-students/git/trees{/sha}","statuses_url":"https://api.github.com/repos/codefellows/sea-c28-students/statuses/{sha}","languages_url":"https://api.github.com/repos/codefellows/sea-c28-students/languages","stargazers_url":"https://api.github.com/repos/codefellows/sea-c28-students/stargazers","contributors_url":"https://api.github.com/repos/codefellows/sea-c28-students/contributors","subscribers_url":"https://api.github.com/repos/codefellows/sea-c28-students/subscribers","subscription_url":"https://api.github.com/repos/codefellows/sea-c28-students/subscription","commits_url":"https://api.github.com/repos/codefellows/sea-c28-students/commits{/sha}","git_commits_url":"https://api.github.com/repos/codefellows/sea-c28-students/git/commits{/sha}","comments_url":"https://api.github.com/repos/codefellows/sea-c28-students/comments{/number}","issue_comment_url":"https://api.github.com/repos/codefellows/sea-c28-students/issues/comments/{number}","contents_url":"https://api.github.com/repos/codefellows/sea-c28-students/contents/{+path}","compare_url":"https://api.github.com/repos/codefellows/sea-c28-students/compare/{base}...{head}","merges_url":"https://api.github.com/repos/codefellows/sea-c28-students/merges","archive_url":"https://api.github.com/repos/codefellows/sea-c28-students/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/codefellows/sea-c28-students/downloads","issues_url":"https://api.github.com/repos/codefellows/sea-c28-students/issues{/number}","pulls_url":"https://api.github.com/repos/codefellows/sea-c28-students/pulls{/number}","milestones_url":"https://api.github.com/repos/codefellows/sea-c28-students/milestones{/number}","notifications_url":"https://api.github.com/repos/codefellows/sea-c28-students/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/codefellows/sea-c28-students/labels{/name}","releases_url":"https://api.github.com/repos/codefellows/sea-c28-students/releases{/id}","created_at":"2014-11-22T23:11:01Z","updated_at":"2014-12-21T07:00:07Z","pushed_at":"2014-12-21T07:00:07Z","git_url":"git://github.com/codefellows/sea-c28-students.git","ssh_url":"git@github.com:codefellows/sea-c28-students.git","clone_url":"https://github.com/codefellows/sea-c28-students.git","svn_url":"https://github.com/codefellows/sea-c28-students","homepage":null,"size":4597,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":24,"mirror_url":null,"open_issues_count":109,"forks":24,"open_issues":109,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/codefellows/sea-c28-students/pulls/164"},"html":{"href":"https://github.com/codefellows/sea-c28-students/pull/164"},"issue":{"href":"https://api.github.com/repos/codefellows/sea-c28-students/issues/164"},"comments":{"href":"https://api.github.com/repos/codefellows/sea-c28-students/issues/164/comments"},"review_comments":{"href":"https://api.github.com/repos/codefellows/sea-c28-students/pulls/164/comments"},"review_comment":{"href":"https://api.github.com/repos/codefellows/sea-c28-students/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/codefellows/sea-c28-students/pulls/164/commits"},"statuses":{"href":"https://api.github.com/repos/codefellows/sea-c28-students/statuses/5de636627333119d990ee6cd0a0e59ecb4494a46"}}}}