{"action":"created","comment":{"url":"https://api.github.com/repos/authman/Python201608/pulls/comments/75479761","id":75479761,"diff_hunk":"@@ -0,0 +1,41 @@\n+class Underscore(object):\n+    def map(self,*args):\n+\t\ttry:\n+\t\t\treturn [args[1](i) for i in args[0]]\n+\t\texcept:\n+\t\t\treturn \"invalid inputs\"\t\t\t        \n+    def reduce(self,*args):\n+\t\t\t\tcount = 0\n+\t\t\t\ttry:\n+\t\t\t\t\tfor i in args[0]:\n+\t\t\t\t\t\tif count == 0:\n+\t\t\t\t\t\t\treduced = args[0][0]\n+\t\t\t\t\t\telse:\n+\t\t\t\t\t\t\treduced = args[1](reduced,i)\n+\t\t\t\t\t\tcount+=1\t\n+\t\t\t\t\treturn reduced\n+\t\t\t\texcept:\n+\t\t\t\t\treturn \"invalid input\"\t\t\t\n+    def find(self,*args):\n+\t\ttry:\n+\t\t\tfor i in args[0]:\n+\t\t\t\tif args[1](i):\n+\t\t\t\t\treturn i\n+\t\texcept:\n+\t\t\treturn \"no match found\"\n+    def filter(self,*args):\t\t\n+\t\ttry:","path":"SinghHardit/Assignments/oop/underscore.py","position":27,"original_position":27,"commit_id":"94dc86057ed6bbe4cdc323e95a3d5e1d9fcd55da","original_commit_id":"db6cc47716b2f04142d61196da2b3606afe13c73","user":{"login":"authman","id":1803297,"avatar_url":"https://avatars.githubusercontent.com/u/1803297?v=3","gravatar_id":"","url":"https://api.github.com/users/authman","html_url":"https://github.com/authman","followers_url":"https://api.github.com/users/authman/followers","following_url":"https://api.github.com/users/authman/following{/other_user}","gists_url":"https://api.github.com/users/authman/gists{/gist_id}","starred_url":"https://api.github.com/users/authman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/authman/subscriptions","organizations_url":"https://api.github.com/users/authman/orgs","repos_url":"https://api.github.com/users/authman/repos","events_url":"https://api.github.com/users/authman/events{/privacy}","received_events_url":"https://api.github.com/users/authman/received_events","type":"User","site_admin":false},"body":"😖😖😖😖😖 I don't really like try/catch unless there is an absolute need for it, but..","created_at":"2016-08-19T13:20:42Z","updated_at":"2016-08-19T13:20:42Z","html_url":"https://github.com/authman/Python201608/pull/32#discussion_r75479761","pull_request_url":"https://api.github.com/repos/authman/Python201608/pulls/32","_links":{"self":{"href":"https://api.github.com/repos/authman/Python201608/pulls/comments/75479761"},"html":{"href":"https://github.com/authman/Python201608/pull/32#discussion_r75479761"},"pull_request":{"href":"https://api.github.com/repos/authman/Python201608/pulls/32"}}},"pull_request":{"url":"https://api.github.com/repos/authman/Python201608/pulls/32","id":81387500,"html_url":"https://github.com/authman/Python201608/pull/32","diff_url":"https://github.com/authman/Python201608/pull/32.diff","patch_url":"https://github.com/authman/Python201608/pull/32.patch","issue_url":"https://api.github.com/repos/authman/Python201608/issues/32","number":32,"state":"closed","locked":false,"title":"linked list and oop assignments","user":{"login":"codedeshi","id":20135397,"avatar_url":"https://avatars.githubusercontent.com/u/20135397?v=3","gravatar_id":"","url":"https://api.github.com/users/codedeshi","html_url":"https://github.com/codedeshi","followers_url":"https://api.github.com/users/codedeshi/followers","following_url":"https://api.github.com/users/codedeshi/following{/other_user}","gists_url":"https://api.github.com/users/codedeshi/gists{/gist_id}","starred_url":"https://api.github.com/users/codedeshi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codedeshi/subscriptions","organizations_url":"https://api.github.com/users/codedeshi/orgs","repos_url":"https://api.github.com/users/codedeshi/repos","events_url":"https://api.github.com/users/codedeshi/events{/privacy}","received_events_url":"https://api.github.com/users/codedeshi/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-08-15T22:36:53Z","updated_at":"2016-08-19T13:20:42Z","closed_at":"2016-08-19T13:14:32Z","merged_at":"2016-08-19T13:14:32Z","merge_commit_sha":"ad860d52044071c257510247f764ce80e6a56f01","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/authman/Python201608/pulls/32/commits","review_comments_url":"https://api.github.com/repos/authman/Python201608/pulls/32/comments","review_comment_url":"https://api.github.com/repos/authman/Python201608/pulls/comments{/number}","comments_url":"https://api.github.com/repos/authman/Python201608/issues/32/comments","statuses_url":"https://api.github.com/repos/authman/Python201608/statuses/94dc86057ed6bbe4cdc323e95a3d5e1d9fcd55da","head":{"label":"codedeshi:master","ref":"master","sha":"94dc86057ed6bbe4cdc323e95a3d5e1d9fcd55da","user":{"login":"codedeshi","id":20135397,"avatar_url":"https://avatars.githubusercontent.com/u/20135397?v=3","gravatar_id":"","url":"https://api.github.com/users/codedeshi","html_url":"https://github.com/codedeshi","followers_url":"https://api.github.com/users/codedeshi/followers","following_url":"https://api.github.com/users/codedeshi/following{/other_user}","gists_url":"https://api.github.com/users/codedeshi/gists{/gist_id}","starred_url":"https://api.github.com/users/codedeshi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codedeshi/subscriptions","organizations_url":"https://api.github.com/users/codedeshi/orgs","repos_url":"https://api.github.com/users/codedeshi/repos","events_url":"https://api.github.com/users/codedeshi/events{/privacy}","received_events_url":"https://api.github.com/users/codedeshi/received_events","type":"User","site_admin":false},"repo":{"id":65412406,"name":"Python201608","full_name":"codedeshi/Python201608","owner":{"login":"codedeshi","id":20135397,"avatar_url":"https://avatars.githubusercontent.com/u/20135397?v=3","gravatar_id":"","url":"https://api.github.com/users/codedeshi","html_url":"https://github.com/codedeshi","followers_url":"https://api.github.com/users/codedeshi/followers","following_url":"https://api.github.com/users/codedeshi/following{/other_user}","gists_url":"https://api.github.com/users/codedeshi/gists{/gist_id}","starred_url":"https://api.github.com/users/codedeshi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codedeshi/subscriptions","organizations_url":"https://api.github.com/users/codedeshi/orgs","repos_url":"https://api.github.com/users/codedeshi/repos","events_url":"https://api.github.com/users/codedeshi/events{/privacy}","received_events_url":"https://api.github.com/users/codedeshi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/codedeshi/Python201608","description":"Coding Dojo Python Cohort August 2016","fork":true,"url":"https://api.github.com/repos/codedeshi/Python201608","forks_url":"https://api.github.com/repos/codedeshi/Python201608/forks","keys_url":"https://api.github.com/repos/codedeshi/Python201608/keys{/key_id}","collaborators_url":"https://api.github.com/repos/codedeshi/Python201608/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/codedeshi/Python201608/teams","hooks_url":"https://api.github.com/repos/codedeshi/Python201608/hooks","issue_events_url":"https://api.github.com/repos/codedeshi/Python201608/issues/events{/number}","events_url":"https://api.github.com/repos/codedeshi/Python201608/events","assignees_url":"https://api.github.com/repos/codedeshi/Python201608/assignees{/user}","branches_url":"https://api.github.com/repos/codedeshi/Python201608/branches{/branch}","tags_url":"https://api.github.com/repos/codedeshi/Python201608/tags","blobs_url":"https://api.github.com/repos/codedeshi/Python201608/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/codedeshi/Python201608/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/codedeshi/Python201608/git/refs{/sha}","trees_url":"https://api.github.com/repos/codedeshi/Python201608/git/trees{/sha}","statuses_url":"https://api.github.com/repos/codedeshi/Python201608/statuses/{sha}","languages_url":"https://api.github.com/repos/codedeshi/Python201608/languages","stargazers_url":"https://api.github.com/repos/codedeshi/Python201608/stargazers","contributors_url":"https://api.github.com/repos/codedeshi/Python201608/contributors","subscribers_url":"https://api.github.com/repos/codedeshi/Python201608/subscribers","subscription_url":"https://api.github.com/repos/codedeshi/Python201608/subscription","commits_url":"https://api.github.com/repos/codedeshi/Python201608/commits{/sha}","git_commits_url":"https://api.github.com/repos/codedeshi/Python201608/git/commits{/sha}","comments_url":"https://api.github.com/repos/codedeshi/Python201608/comments{/number}","issue_comment_url":"https://api.github.com/repos/codedeshi/Python201608/issues/comments{/number}","contents_url":"https://api.github.com/repos/codedeshi/Python201608/contents/{+path}","compare_url":"https://api.github.com/repos/codedeshi/Python201608/compare/{base}...{head}","merges_url":"https://api.github.com/repos/codedeshi/Python201608/merges","archive_url":"https://api.github.com/repos/codedeshi/Python201608/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/codedeshi/Python201608/downloads","issues_url":"https://api.github.com/repos/codedeshi/Python201608/issues{/number}","pulls_url":"https://api.github.com/repos/codedeshi/Python201608/pulls{/number}","milestones_url":"https://api.github.com/repos/codedeshi/Python201608/milestones{/number}","notifications_url":"https://api.github.com/repos/codedeshi/Python201608/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/codedeshi/Python201608/labels{/name}","releases_url":"https://api.github.com/repos/codedeshi/Python201608/releases{/id}","deployments_url":"https://api.github.com/repos/codedeshi/Python201608/deployments","created_at":"2016-08-10T19:59:27Z","updated_at":"2016-08-17T23:30:27Z","pushed_at":"2016-08-17T23:30:25Z","git_url":"git://github.com/codedeshi/Python201608.git","ssh_url":"git@github.com:codedeshi/Python201608.git","clone_url":"https://github.com/codedeshi/Python201608.git","svn_url":"https://github.com/codedeshi/Python201608","homepage":null,"size":10306,"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":"authman:master","ref":"master","sha":"d9a8410b2eba18c8c135b059d0b2c1f99b83455b","user":{"login":"authman","id":1803297,"avatar_url":"https://avatars.githubusercontent.com/u/1803297?v=3","gravatar_id":"","url":"https://api.github.com/users/authman","html_url":"https://github.com/authman","followers_url":"https://api.github.com/users/authman/followers","following_url":"https://api.github.com/users/authman/following{/other_user}","gists_url":"https://api.github.com/users/authman/gists{/gist_id}","starred_url":"https://api.github.com/users/authman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/authman/subscriptions","organizations_url":"https://api.github.com/users/authman/orgs","repos_url":"https://api.github.com/users/authman/repos","events_url":"https://api.github.com/users/authman/events{/privacy}","received_events_url":"https://api.github.com/users/authman/received_events","type":"User","site_admin":false},"repo":{"id":64946424,"name":"Python201608","full_name":"authman/Python201608","owner":{"login":"authman","id":1803297,"avatar_url":"https://avatars.githubusercontent.com/u/1803297?v=3","gravatar_id":"","url":"https://api.github.com/users/authman","html_url":"https://github.com/authman","followers_url":"https://api.github.com/users/authman/followers","following_url":"https://api.github.com/users/authman/following{/other_user}","gists_url":"https://api.github.com/users/authman/gists{/gist_id}","starred_url":"https://api.github.com/users/authman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/authman/subscriptions","organizations_url":"https://api.github.com/users/authman/orgs","repos_url":"https://api.github.com/users/authman/repos","events_url":"https://api.github.com/users/authman/events{/privacy}","received_events_url":"https://api.github.com/users/authman/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/authman/Python201608","description":"Coding Dojo Python Cohort August 2016","fork":false,"url":"https://api.github.com/repos/authman/Python201608","forks_url":"https://api.github.com/repos/authman/Python201608/forks","keys_url":"https://api.github.com/repos/authman/Python201608/keys{/key_id}","collaborators_url":"https://api.github.com/repos/authman/Python201608/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/authman/Python201608/teams","hooks_url":"https://api.github.com/repos/authman/Python201608/hooks","issue_events_url":"https://api.github.com/repos/authman/Python201608/issues/events{/number}","events_url":"https://api.github.com/repos/authman/Python201608/events","assignees_url":"https://api.github.com/repos/authman/Python201608/assignees{/user}","branches_url":"https://api.github.com/repos/authman/Python201608/branches{/branch}","tags_url":"https://api.github.com/repos/authman/Python201608/tags","blobs_url":"https://api.github.com/repos/authman/Python201608/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/authman/Python201608/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/authman/Python201608/git/refs{/sha}","trees_url":"https://api.github.com/repos/authman/Python201608/git/trees{/sha}","statuses_url":"https://api.github.com/repos/authman/Python201608/statuses/{sha}","languages_url":"https://api.github.com/repos/authman/Python201608/languages","stargazers_url":"https://api.github.com/repos/authman/Python201608/stargazers","contributors_url":"https://api.github.com/repos/authman/Python201608/contributors","subscribers_url":"https://api.github.com/repos/authman/Python201608/subscribers","subscription_url":"https://api.github.com/repos/authman/Python201608/subscription","commits_url":"https://api.github.com/repos/authman/Python201608/commits{/sha}","git_commits_url":"https://api.github.com/repos/authman/Python201608/git/commits{/sha}","comments_url":"https://api.github.com/repos/authman/Python201608/comments{/number}","issue_comment_url":"https://api.github.com/repos/authman/Python201608/issues/comments{/number}","contents_url":"https://api.github.com/repos/authman/Python201608/contents/{+path}","compare_url":"https://api.github.com/repos/authman/Python201608/compare/{base}...{head}","merges_url":"https://api.github.com/repos/authman/Python201608/merges","archive_url":"https://api.github.com/repos/authman/Python201608/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/authman/Python201608/downloads","issues_url":"https://api.github.com/repos/authman/Python201608/issues{/number}","pulls_url":"https://api.github.com/repos/authman/Python201608/pulls{/number}","milestones_url":"https://api.github.com/repos/authman/Python201608/milestones{/number}","notifications_url":"https://api.github.com/repos/authman/Python201608/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/authman/Python201608/labels{/name}","releases_url":"https://api.github.com/repos/authman/Python201608/releases{/id}","deployments_url":"https://api.github.com/repos/authman/Python201608/deployments","created_at":"2016-08-04T15:33:53Z","updated_at":"2016-08-19T13:14:34Z","pushed_at":"2016-08-19T13:14:32Z","git_url":"git://github.com/authman/Python201608.git","ssh_url":"git@github.com:authman/Python201608.git","clone_url":"https://github.com/authman/Python201608.git","svn_url":"https://github.com/authman/Python201608","homepage":null,"size":10738,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":5,"forks":8,"open_issues":5,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/authman/Python201608/pulls/32"},"html":{"href":"https://github.com/authman/Python201608/pull/32"},"issue":{"href":"https://api.github.com/repos/authman/Python201608/issues/32"},"comments":{"href":"https://api.github.com/repos/authman/Python201608/issues/32/comments"},"review_comments":{"href":"https://api.github.com/repos/authman/Python201608/pulls/32/comments"},"review_comment":{"href":"https://api.github.com/repos/authman/Python201608/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/authman/Python201608/pulls/32/commits"},"statuses":{"href":"https://api.github.com/repos/authman/Python201608/statuses/94dc86057ed6bbe4cdc323e95a3d5e1d9fcd55da"}}}}
{"actor":{"display_login":"authman"}}