{"action":"created","comment":{"url":"https://api.github.com/repos/morganelle/code-katas/pulls/comments/119244183","pull_request_review_id":41105429,"id":119244183,"diff_hunk":"@@ -0,0 +1,21 @@\n+\"\"\"Determines whether a string has balanced, open, or closed parens.\"\"\"\n+from stack import Stack\n+\n+\n+def eval_parens(input):\n+    \"\"\"Evaluate whether a string has balanced, open, or closed parens.\"\"\"\n+    print('input type:', type(input))\n+    if type(input) != str:\n+        raise TypeError('Please enter a string.')\n+    if '(' not in input and ')' not in input:\n+        raise ValueError('No parentheses in the string.')\n+    parens_stack = Stack()\n+    for char in input:\n+        if char == '(':\n+            parens_stack.push('open')\n+        if char == ')':\n+            try:\n+                parens_stack.pop()\n+            except IndexError:\n+                return -1\n+    return (1 if len(parens_stack) > 0 else 0)","path":"src/parenthetics.py","position":21,"original_position":21,"commit_id":"95b070250188e770a9a91aa3290c1e16f32fcc01","original_commit_id":"95b070250188e770a9a91aa3290c1e16f32fcc01","user":{"login":"nhuntwalker","id":5581888,"avatar_url":"https://avatars3.githubusercontent.com/u/5581888?v=3","gravatar_id":"","url":"https://api.github.com/users/nhuntwalker","html_url":"https://github.com/nhuntwalker","followers_url":"https://api.github.com/users/nhuntwalker/followers","following_url":"https://api.github.com/users/nhuntwalker/following{/other_user}","gists_url":"https://api.github.com/users/nhuntwalker/gists{/gist_id}","starred_url":"https://api.github.com/users/nhuntwalker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nhuntwalker/subscriptions","organizations_url":"https://api.github.com/users/nhuntwalker/orgs","repos_url":"https://api.github.com/users/nhuntwalker/repos","events_url":"https://api.github.com/users/nhuntwalker/events{/privacy}","received_events_url":"https://api.github.com/users/nhuntwalker/received_events","type":"User","site_admin":false},"body":"This doesn't need to be wrapped in parentheses","created_at":"2017-05-31T00:02:00Z","updated_at":"2017-05-31T00:02:05Z","html_url":"https://github.com/morganelle/code-katas/pull/2#discussion_r119244183","pull_request_url":"https://api.github.com/repos/morganelle/code-katas/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/morganelle/code-katas/pulls/comments/119244183"},"html":{"href":"https://github.com/morganelle/code-katas/pull/2#discussion_r119244183"},"pull_request":{"href":"https://api.github.com/repos/morganelle/code-katas/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/morganelle/code-katas/pulls/2","id":122910124,"html_url":"https://github.com/morganelle/code-katas/pull/2","diff_url":"https://github.com/morganelle/code-katas/pull/2.diff","patch_url":"https://github.com/morganelle/code-katas/pull/2.patch","issue_url":"https://api.github.com/repos/morganelle/code-katas/issues/2","number":2,"state":"open","locked":false,"title":"Proper parenthetics","user":{"login":"morganelle","id":23509639,"avatar_url":"https://avatars3.githubusercontent.com/u/23509639?v=3","gravatar_id":"","url":"https://api.github.com/users/morganelle","html_url":"https://github.com/morganelle","followers_url":"https://api.github.com/users/morganelle/followers","following_url":"https://api.github.com/users/morganelle/following{/other_user}","gists_url":"https://api.github.com/users/morganelle/gists{/gist_id}","starred_url":"https://api.github.com/users/morganelle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/morganelle/subscriptions","organizations_url":"https://api.github.com/users/morganelle/orgs","repos_url":"https://api.github.com/users/morganelle/repos","events_url":"https://api.github.com/users/morganelle/events{/privacy}","received_events_url":"https://api.github.com/users/morganelle/received_events","type":"User","site_admin":false},"body":"- PR for Code Kata Proper Parenthetics assignment\r\n- includes stack data structure, parenthetics module and test\r\n- dir structure updated; all katas and tests in src","created_at":"2017-05-29T14:58:43Z","updated_at":"2017-05-31T00:02:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b3e09eff16c9918e84ce1e07df492501f4b02466","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/morganelle/code-katas/pulls/2/commits","review_comments_url":"https://api.github.com/repos/morganelle/code-katas/pulls/2/comments","review_comment_url":"https://api.github.com/repos/morganelle/code-katas/pulls/comments{/number}","comments_url":"https://api.github.com/repos/morganelle/code-katas/issues/2/comments","statuses_url":"https://api.github.com/repos/morganelle/code-katas/statuses/95b070250188e770a9a91aa3290c1e16f32fcc01","head":{"label":"morganelle:proper-parenthetics","ref":"proper-parenthetics","sha":"95b070250188e770a9a91aa3290c1e16f32fcc01","user":{"login":"morganelle","id":23509639,"avatar_url":"https://avatars3.githubusercontent.com/u/23509639?v=3","gravatar_id":"","url":"https://api.github.com/users/morganelle","html_url":"https://github.com/morganelle","followers_url":"https://api.github.com/users/morganelle/followers","following_url":"https://api.github.com/users/morganelle/following{/other_user}","gists_url":"https://api.github.com/users/morganelle/gists{/gist_id}","starred_url":"https://api.github.com/users/morganelle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/morganelle/subscriptions","organizations_url":"https://api.github.com/users/morganelle/orgs","repos_url":"https://api.github.com/users/morganelle/repos","events_url":"https://api.github.com/users/morganelle/events{/privacy}","received_events_url":"https://api.github.com/users/morganelle/received_events","type":"User","site_admin":false},"repo":{"id":91813650,"name":"code-katas","full_name":"morganelle/code-katas","owner":{"login":"morganelle","id":23509639,"avatar_url":"https://avatars3.githubusercontent.com/u/23509639?v=3","gravatar_id":"","url":"https://api.github.com/users/morganelle","html_url":"https://github.com/morganelle","followers_url":"https://api.github.com/users/morganelle/followers","following_url":"https://api.github.com/users/morganelle/following{/other_user}","gists_url":"https://api.github.com/users/morganelle/gists{/gist_id}","starred_url":"https://api.github.com/users/morganelle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/morganelle/subscriptions","organizations_url":"https://api.github.com/users/morganelle/orgs","repos_url":"https://api.github.com/users/morganelle/repos","events_url":"https://api.github.com/users/morganelle/events{/privacy}","received_events_url":"https://api.github.com/users/morganelle/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/morganelle/code-katas","description":"Solutions and tests for code katas","fork":false,"url":"https://api.github.com/repos/morganelle/code-katas","forks_url":"https://api.github.com/repos/morganelle/code-katas/forks","keys_url":"https://api.github.com/repos/morganelle/code-katas/keys{/key_id}","collaborators_url":"https://api.github.com/repos/morganelle/code-katas/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/morganelle/code-katas/teams","hooks_url":"https://api.github.com/repos/morganelle/code-katas/hooks","issue_events_url":"https://api.github.com/repos/morganelle/code-katas/issues/events{/number}","events_url":"https://api.github.com/repos/morganelle/code-katas/events","assignees_url":"https://api.github.com/repos/morganelle/code-katas/assignees{/user}","branches_url":"https://api.github.com/repos/morganelle/code-katas/branches{/branch}","tags_url":"https://api.github.com/repos/morganelle/code-katas/tags","blobs_url":"https://api.github.com/repos/morganelle/code-katas/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/morganelle/code-katas/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/morganelle/code-katas/git/refs{/sha}","trees_url":"https://api.github.com/repos/morganelle/code-katas/git/trees{/sha}","statuses_url":"https://api.github.com/repos/morganelle/code-katas/statuses/{sha}","languages_url":"https://api.github.com/repos/morganelle/code-katas/languages","stargazers_url":"https://api.github.com/repos/morganelle/code-katas/stargazers","contributors_url":"https://api.github.com/repos/morganelle/code-katas/contributors","subscribers_url":"https://api.github.com/repos/morganelle/code-katas/subscribers","subscription_url":"https://api.github.com/repos/morganelle/code-katas/subscription","commits_url":"https://api.github.com/repos/morganelle/code-katas/commits{/sha}","git_commits_url":"https://api.github.com/repos/morganelle/code-katas/git/commits{/sha}","comments_url":"https://api.github.com/repos/morganelle/code-katas/comments{/number}","issue_comment_url":"https://api.github.com/repos/morganelle/code-katas/issues/comments{/number}","contents_url":"https://api.github.com/repos/morganelle/code-katas/contents/{+path}","compare_url":"https://api.github.com/repos/morganelle/code-katas/compare/{base}...{head}","merges_url":"https://api.github.com/repos/morganelle/code-katas/merges","archive_url":"https://api.github.com/repos/morganelle/code-katas/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/morganelle/code-katas/downloads","issues_url":"https://api.github.com/repos/morganelle/code-katas/issues{/number}","pulls_url":"https://api.github.com/repos/morganelle/code-katas/pulls{/number}","milestones_url":"https://api.github.com/repos/morganelle/code-katas/milestones{/number}","notifications_url":"https://api.github.com/repos/morganelle/code-katas/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/morganelle/code-katas/labels{/name}","releases_url":"https://api.github.com/repos/morganelle/code-katas/releases{/id}","deployments_url":"https://api.github.com/repos/morganelle/code-katas/deployments","created_at":"2017-05-19T14:21:49Z","updated_at":"2017-05-20T16:55:32Z","pushed_at":"2017-05-29T15:02:59Z","git_url":"git://github.com/morganelle/code-katas.git","ssh_url":"git@github.com:morganelle/code-katas.git","clone_url":"https://github.com/morganelle/code-katas.git","svn_url":"https://github.com/morganelle/code-katas","homepage":null,"size":22,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"morganelle:master","ref":"master","sha":"7566ac30bc610ae662e99a4e3d7576fbd31986d9","user":{"login":"morganelle","id":23509639,"avatar_url":"https://avatars3.githubusercontent.com/u/23509639?v=3","gravatar_id":"","url":"https://api.github.com/users/morganelle","html_url":"https://github.com/morganelle","followers_url":"https://api.github.com/users/morganelle/followers","following_url":"https://api.github.com/users/morganelle/following{/other_user}","gists_url":"https://api.github.com/users/morganelle/gists{/gist_id}","starred_url":"https://api.github.com/users/morganelle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/morganelle/subscriptions","organizations_url":"https://api.github.com/users/morganelle/orgs","repos_url":"https://api.github.com/users/morganelle/repos","events_url":"https://api.github.com/users/morganelle/events{/privacy}","received_events_url":"https://api.github.com/users/morganelle/received_events","type":"User","site_admin":false},"repo":{"id":91813650,"name":"code-katas","full_name":"morganelle/code-katas","owner":{"login":"morganelle","id":23509639,"avatar_url":"https://avatars3.githubusercontent.com/u/23509639?v=3","gravatar_id":"","url":"https://api.github.com/users/morganelle","html_url":"https://github.com/morganelle","followers_url":"https://api.github.com/users/morganelle/followers","following_url":"https://api.github.com/users/morganelle/following{/other_user}","gists_url":"https://api.github.com/users/morganelle/gists{/gist_id}","starred_url":"https://api.github.com/users/morganelle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/morganelle/subscriptions","organizations_url":"https://api.github.com/users/morganelle/orgs","repos_url":"https://api.github.com/users/morganelle/repos","events_url":"https://api.github.com/users/morganelle/events{/privacy}","received_events_url":"https://api.github.com/users/morganelle/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/morganelle/code-katas","description":"Solutions and tests for code katas","fork":false,"url":"https://api.github.com/repos/morganelle/code-katas","forks_url":"https://api.github.com/repos/morganelle/code-katas/forks","keys_url":"https://api.github.com/repos/morganelle/code-katas/keys{/key_id}","collaborators_url":"https://api.github.com/repos/morganelle/code-katas/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/morganelle/code-katas/teams","hooks_url":"https://api.github.com/repos/morganelle/code-katas/hooks","issue_events_url":"https://api.github.com/repos/morganelle/code-katas/issues/events{/number}","events_url":"https://api.github.com/repos/morganelle/code-katas/events","assignees_url":"https://api.github.com/repos/morganelle/code-katas/assignees{/user}","branches_url":"https://api.github.com/repos/morganelle/code-katas/branches{/branch}","tags_url":"https://api.github.com/repos/morganelle/code-katas/tags","blobs_url":"https://api.github.com/repos/morganelle/code-katas/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/morganelle/code-katas/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/morganelle/code-katas/git/refs{/sha}","trees_url":"https://api.github.com/repos/morganelle/code-katas/git/trees{/sha}","statuses_url":"https://api.github.com/repos/morganelle/code-katas/statuses/{sha}","languages_url":"https://api.github.com/repos/morganelle/code-katas/languages","stargazers_url":"https://api.github.com/repos/morganelle/code-katas/stargazers","contributors_url":"https://api.github.com/repos/morganelle/code-katas/contributors","subscribers_url":"https://api.github.com/repos/morganelle/code-katas/subscribers","subscription_url":"https://api.github.com/repos/morganelle/code-katas/subscription","commits_url":"https://api.github.com/repos/morganelle/code-katas/commits{/sha}","git_commits_url":"https://api.github.com/repos/morganelle/code-katas/git/commits{/sha}","comments_url":"https://api.github.com/repos/morganelle/code-katas/comments{/number}","issue_comment_url":"https://api.github.com/repos/morganelle/code-katas/issues/comments{/number}","contents_url":"https://api.github.com/repos/morganelle/code-katas/contents/{+path}","compare_url":"https://api.github.com/repos/morganelle/code-katas/compare/{base}...{head}","merges_url":"https://api.github.com/repos/morganelle/code-katas/merges","archive_url":"https://api.github.com/repos/morganelle/code-katas/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/morganelle/code-katas/downloads","issues_url":"https://api.github.com/repos/morganelle/code-katas/issues{/number}","pulls_url":"https://api.github.com/repos/morganelle/code-katas/pulls{/number}","milestones_url":"https://api.github.com/repos/morganelle/code-katas/milestones{/number}","notifications_url":"https://api.github.com/repos/morganelle/code-katas/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/morganelle/code-katas/labels{/name}","releases_url":"https://api.github.com/repos/morganelle/code-katas/releases{/id}","deployments_url":"https://api.github.com/repos/morganelle/code-katas/deployments","created_at":"2017-05-19T14:21:49Z","updated_at":"2017-05-20T16:55:32Z","pushed_at":"2017-05-29T15:02:59Z","git_url":"git://github.com/morganelle/code-katas.git","ssh_url":"git@github.com:morganelle/code-katas.git","clone_url":"https://github.com/morganelle/code-katas.git","svn_url":"https://github.com/morganelle/code-katas","homepage":null,"size":22,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/morganelle/code-katas/pulls/2"},"html":{"href":"https://github.com/morganelle/code-katas/pull/2"},"issue":{"href":"https://api.github.com/repos/morganelle/code-katas/issues/2"},"comments":{"href":"https://api.github.com/repos/morganelle/code-katas/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/morganelle/code-katas/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/morganelle/code-katas/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/morganelle/code-katas/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/morganelle/code-katas/statuses/95b070250188e770a9a91aa3290c1e16f32fcc01"}}}}
{"actor":{"display_login":"nhuntwalker"}}