{"action":"created","comment":{"url":"https://api.github.com/repos/cyrusHwang/zybooks-userSubs-analysis-system/pulls/comments/69625203","id":69625203,"diff_hunk":"@@ -0,0 +1,30 @@\n+import re\n+import requests\n+import json\n+\n+def stripNoiseSub(string : str):\n+    '''\n+    Removes all code comments and removes all whitespace except whitespace within\n+    quotes so that answers that would otherwise be the same are correctly counted\n+    in the same category.\n+    '''\n+    #removing code comments (both kinds)\n+    string = re.sub(\"\\/\\*.*\\*\\/\", \"\", string, flags=re.DOTALL)\n+    string = re.sub(\"\\/\\/.*\", \"\", string)\n+    \n+    #removing all whitespace except whitespace within quotes\n+    listPartition = string.split('\"')\n+    for index, segment in enumerate(listPartition):\n+        if index%2 == 0:\n+            listPartition[index] = re.sub(\"\\s+\", \"\", segment)\n+            \n+    return ('\"'.join(listPartition))\n+\n+def getAuthToken(email, password):\n+    d = {\"email\":email, \"password\":password}\n+    h = {\"Content-type\":\"application/json\", \"Accept\":\"text/plain\"}\n+    r = requests.post(\"https://s2.zybooks.com/v1/signin\", data=json.dumps(d), headers=h)\n+    json_data = r.json()\n+    return json_data[\"session\"][\"auth_token\"]\n+    ","path":"lib/misc_funcs.py","position":29,"original_position":29,"commit_id":"37bbcf6bc581690eacfc8db8d841c370494ee89e","original_commit_id":"37bbcf6bc581690eacfc8db8d841c370494ee89e","user":{"login":"AlexEdgcomb","id":3512898,"avatar_url":"https://avatars.githubusercontent.com/u/3512898?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexEdgcomb","html_url":"https://github.com/AlexEdgcomb","followers_url":"https://api.github.com/users/AlexEdgcomb/followers","following_url":"https://api.github.com/users/AlexEdgcomb/following{/other_user}","gists_url":"https://api.github.com/users/AlexEdgcomb/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexEdgcomb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexEdgcomb/subscriptions","organizations_url":"https://api.github.com/users/AlexEdgcomb/orgs","repos_url":"https://api.github.com/users/AlexEdgcomb/repos","events_url":"https://api.github.com/users/AlexEdgcomb/events{/privacy}","received_events_url":"https://api.github.com/users/AlexEdgcomb/received_events","type":"User","site_admin":false},"body":"There is extra whitespace here","created_at":"2016-07-05T19:44:40Z","updated_at":"2016-07-05T19:44:40Z","html_url":"https://github.com/cyrusHwang/zybooks-userSubs-analysis-system/pull/1#discussion_r69625203","pull_request_url":"https://api.github.com/repos/cyrusHwang/zybooks-userSubs-analysis-system/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/cyrusHwang/zybooks-userSubs-analysis-system/pulls/comments/69625203"},"html":{"href":"https://github.com/cyrusHwang/zybooks-userSubs-analysis-system/pull/1#discussion_r69625203"},"pull_request":{"href":"https://api.github.com/repos/cyrusHwang/zybooks-userSubs-analysis-system/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/cyrusHwang/zybooks-userSubs-analysis-system/pulls/1","id":75696318,"html_url":"https://github.com/cyrusHwang/zybooks-userSubs-analysis-system/pull/1","diff_url":"https://github.com/cyrusHwang/zybooks-userSubs-analysis-system/pull/1.diff","patch_url":"https://github.com/cyrusHwang/zybooks-userSubs-analysis-system/pull/1.patch","issue_url":"https://api.github.com/repos/cyrusHwang/zybooks-userSubs-analysis-system/issues/1","number":1,"state":"open","locked":false,"title":"First version","user":{"login":"cyrusHwang","id":12117570,"avatar_url":"https://avatars.githubusercontent.com/u/12117570?v=3","gravatar_id":"","url":"https://api.github.com/users/cyrusHwang","html_url":"https://github.com/cyrusHwang","followers_url":"https://api.github.com/users/cyrusHwang/followers","following_url":"https://api.github.com/users/cyrusHwang/following{/other_user}","gists_url":"https://api.github.com/users/cyrusHwang/gists{/gist_id}","starred_url":"https://api.github.com/users/cyrusHwang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cyrusHwang/subscriptions","organizations_url":"https://api.github.com/users/cyrusHwang/orgs","repos_url":"https://api.github.com/users/cyrusHwang/repos","events_url":"https://api.github.com/users/cyrusHwang/events{/privacy}","received_events_url":"https://api.github.com/users/cyrusHwang/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-06-29T18:19:19Z","updated_at":"2016-07-05T19:44:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b9f3763584ff52f269c67c183bc4015333505aa6","assignee":{"login":"AlexEdgcomb","id":3512898,"avatar_url":"https://avatars.githubusercontent.com/u/3512898?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexEdgcomb","html_url":"https://github.com/AlexEdgcomb","followers_url":"https://api.github.com/users/AlexEdgcomb/followers","following_url":"https://api.github.com/users/AlexEdgcomb/following{/other_user}","gists_url":"https://api.github.com/users/AlexEdgcomb/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexEdgcomb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexEdgcomb/subscriptions","organizations_url":"https://api.github.com/users/AlexEdgcomb/orgs","repos_url":"https://api.github.com/users/AlexEdgcomb/repos","events_url":"https://api.github.com/users/AlexEdgcomb/events{/privacy}","received_events_url":"https://api.github.com/users/AlexEdgcomb/received_events","type":"User","site_admin":false},"assignees":[{"login":"AlexEdgcomb","id":3512898,"avatar_url":"https://avatars.githubusercontent.com/u/3512898?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexEdgcomb","html_url":"https://github.com/AlexEdgcomb","followers_url":"https://api.github.com/users/AlexEdgcomb/followers","following_url":"https://api.github.com/users/AlexEdgcomb/following{/other_user}","gists_url":"https://api.github.com/users/AlexEdgcomb/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexEdgcomb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexEdgcomb/subscriptions","organizations_url":"https://api.github.com/users/AlexEdgcomb/orgs","repos_url":"https://api.github.com/users/AlexEdgcomb/repos","events_url":"https://api.github.com/users/AlexEdgcomb/events{/privacy}","received_events_url":"https://api.github.com/users/AlexEdgcomb/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/cyrusHwang/zybooks-userSubs-analysis-system/pulls/1/commits","review_comments_url":"https://api.github.com/repos/cyrusHwang/zybooks-userSubs-analysis-system/pulls/1/comments","review_comment_url":"https://api.github.com/repos/cyrusHwang/zybooks-userSubs-analysis-system/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cyrusHwang/zybooks-userSubs-analysis-system/issues/1/comments","statuses_url":"https://api.github.com/repos/cyrusHwang/zybooks-userSubs-analysis-system/statuses/37bbcf6bc581690eacfc8db8d841c370494ee89e","head":{"label":"cyrusHwang:firstVersion","ref":"firstVersion","sha":"37bbcf6bc581690eacfc8db8d841c370494ee89e","user":{"login":"cyrusHwang","id":12117570,"avatar_url":"https://avatars.githubusercontent.com/u/12117570?v=3","gravatar_id":"","url":"https://api.github.com/users/cyrusHwang","html_url":"https://github.com/cyrusHwang","followers_url":"https://api.github.com/users/cyrusHwang/followers","following_url":"https://api.github.com/users/cyrusHwang/following{/other_user}","gists_url":"https://api.github.com/users/cyrusHwang/gists{/gist_id}","starred_url":"https://api.github.com/users/cyrusHwang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cyrusHwang/subscriptions","organizations_url":"https://api.github.com/users/cyrusHwang/orgs","repos_url":"https://api.github.com/users/cyrusHwang/repos","events_url":"https://api.github.com/users/cyrusHwang/events{/privacy}","received_events_url":"https://api.github.com/users/cyrusHwang/received_events","type":"User","site_admin":false},"repo":{"id":62246335,"name":"zybooks-userSubs-analysis-system","full_name":"cyrusHwang/zybooks-userSubs-analysis-system","owner":{"login":"cyrusHwang","id":12117570,"avatar_url":"https://avatars.githubusercontent.com/u/12117570?v=3","gravatar_id":"","url":"https://api.github.com/users/cyrusHwang","html_url":"https://github.com/cyrusHwang","followers_url":"https://api.github.com/users/cyrusHwang/followers","following_url":"https://api.github.com/users/cyrusHwang/following{/other_user}","gists_url":"https://api.github.com/users/cyrusHwang/gists{/gist_id}","starred_url":"https://api.github.com/users/cyrusHwang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cyrusHwang/subscriptions","organizations_url":"https://api.github.com/users/cyrusHwang/orgs","repos_url":"https://api.github.com/users/cyrusHwang/repos","events_url":"https://api.github.com/users/cyrusHwang/events{/privacy}","received_events_url":"https://api.github.com/users/cyrusHwang/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cyrusHwang/zybooks-userSubs-analysis-system","description":null,"fork":false,"url":"https://api.github.com/repos/cyrusHwang/zybooks-userSubs-analysis-system","forks_url":"https://api.github.com/repos/cyrusHwang/zybooks-userSubs-analysis-system/forks","keys_url":"https://api.github.com/repos/cyrusHwang/zybooks-userSubs-analysis-system/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cyrusHwang/zybooks-userSubs-analysis-system/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cyrusHwang/zybooks-userSubs-analysis-system/teams","hooks_url":"https://api.github.com/repos/cyrusHwang/zybooks-userSubs-analysis-system/hooks","issue_events_url":"https://api.github.com/repos/cyrusHwang/zybooks-userSubs-analysis-system/issues/events{/number}","events_url":"https://api.github.com/repos/cyrusHwang/zybooks-userSubs-analysis-system/events","assignees_url":"https://api.github.com/repos/cyrusHwang/zybooks-userSubs-analysis-system/assignees{/user}","branches_url":"https://api.github.com/repos/cyrusHwang/zybooks-userSubs-analysis-system/branches{/branch}","tags_url":"https://api.github.com/repos/cyrusHwang/zybooks-userSubs-analysis-system/tags","blobs_url":"https://api.github.com/repos/cyrusHwang/zybooks-userSubs-analysis-system/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cyrusHwang/zybooks-userSubs-analysis-system/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cyrusHwang/zybooks-userSubs-analysis-system/git/refs{/sha}","trees_url":"https://api.github.com/repos/cyrusHwang/zybooks-userSubs-analysis-system/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cyrusHwang/zybooks-userSubs-analysis-system/statuses/{sha}","languages_url":"https://api.github.com/repos/cyrusHwang/zybooks-userSubs-analysis-system/languages","stargazers_url":"https://api.github.com/repos/cyrusHwang/zybooks-userSubs-analysis-system/stargazers","contributors_url":"https://api.github.com/repos/cyrusHwang/zybooks-userSubs-analysis-system/contributors","subscribers_url":"https://api.github.com/repos/cyrusHwang/zybooks-userSubs-analysis-system/subscribers","subscription_url":"https://api.github.com/repos/cyrusHwang/zybooks-userSubs-analysis-system/subscription","commits_url":"https://api.github.com/repos/cyrusHwang/zybooks-userSubs-analysis-system/commits{/sha}","git_commits_url":"https://api.github.com/repos/cyrusHwang/zybooks-userSubs-analysis-system/git/commits{/sha}","comments_url":"https://api.github.com/repos/cyrusHwang/zybooks-userSubs-analysis-system/comments{/number}","issue_comment_url":"https://api.github.com/repos/cyrusHwang/zybooks-userSubs-analysis-system/issues/comments{/number}","contents_url":"https://api.github.com/repos/cyrusHwang/zybooks-userSubs-analysis-system/contents/{+path}","compare_url":"https://api.github.com/repos/cyrusHwang/zybooks-userSubs-analysis-system/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cyrusHwang/zybooks-userSubs-analysis-system/merges","archive_url":"https://api.github.com/repos/cyrusHwang/zybooks-userSubs-analysis-system/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cyrusHwang/zybooks-userSubs-analysis-system/downloads","issues_url":"https://api.github.com/repos/cyrusHwang/zybooks-userSubs-analysis-system/issues{/number}","pulls_url":"https://api.github.com/repos/cyrusHwang/zybooks-userSubs-analysis-system/pulls{/number}","milestones_url":"https://api.github.com/repos/cyrusHwang/zybooks-userSubs-analysis-system/milestones{/number}","notifications_url":"https://api.github.com/repos/cyrusHwang/zybooks-userSubs-analysis-system/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cyrusHwang/zybooks-userSubs-analysis-system/labels{/name}","releases_url":"https://api.github.com/repos/cyrusHwang/zybooks-userSubs-analysis-system/releases{/id}","deployments_url":"https://api.github.com/repos/cyrusHwang/zybooks-userSubs-analysis-system/deployments","created_at":"2016-06-29T17:53:39Z","updated_at":"2016-07-02T00:12:49Z","pushed_at":"2016-07-05T19:41:00Z","git_url":"git://github.com/cyrusHwang/zybooks-userSubs-analysis-system.git","ssh_url":"git@github.com:cyrusHwang/zybooks-userSubs-analysis-system.git","clone_url":"https://github.com/cyrusHwang/zybooks-userSubs-analysis-system.git","svn_url":"https://github.com/cyrusHwang/zybooks-userSubs-analysis-system","homepage":null,"size":30,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"cyrusHwang:master","ref":"master","sha":"d29e5e9557d9033dbe76624f73b675eddf241bc5","user":{"login":"cyrusHwang","id":12117570,"avatar_url":"https://avatars.githubusercontent.com/u/12117570?v=3","gravatar_id":"","url":"https://api.github.com/users/cyrusHwang","html_url":"https://github.com/cyrusHwang","followers_url":"https://api.github.com/users/cyrusHwang/followers","following_url":"https://api.github.com/users/cyrusHwang/following{/other_user}","gists_url":"https://api.github.com/users/cyrusHwang/gists{/gist_id}","starred_url":"https://api.github.com/users/cyrusHwang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cyrusHwang/subscriptions","organizations_url":"https://api.github.com/users/cyrusHwang/orgs","repos_url":"https://api.github.com/users/cyrusHwang/repos","events_url":"https://api.github.com/users/cyrusHwang/events{/privacy}","received_events_url":"https://api.github.com/users/cyrusHwang/received_events","type":"User","site_admin":false},"repo":{"id":62246335,"name":"zybooks-userSubs-analysis-system","full_name":"cyrusHwang/zybooks-userSubs-analysis-system","owner":{"login":"cyrusHwang","id":12117570,"avatar_url":"https://avatars.githubusercontent.com/u/12117570?v=3","gravatar_id":"","url":"https://api.github.com/users/cyrusHwang","html_url":"https://github.com/cyrusHwang","followers_url":"https://api.github.com/users/cyrusHwang/followers","following_url":"https://api.github.com/users/cyrusHwang/following{/other_user}","gists_url":"https://api.github.com/users/cyrusHwang/gists{/gist_id}","starred_url":"https://api.github.com/users/cyrusHwang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cyrusHwang/subscriptions","organizations_url":"https://api.github.com/users/cyrusHwang/orgs","repos_url":"https://api.github.com/users/cyrusHwang/repos","events_url":"https://api.github.com/users/cyrusHwang/events{/privacy}","received_events_url":"https://api.github.com/users/cyrusHwang/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cyrusHwang/zybooks-userSubs-analysis-system","description":null,"fork":false,"url":"https://api.github.com/repos/cyrusHwang/zybooks-userSubs-analysis-system","forks_url":"https://api.github.com/repos/cyrusHwang/zybooks-userSubs-analysis-system/forks","keys_url":"https://api.github.com/repos/cyrusHwang/zybooks-userSubs-analysis-system/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cyrusHwang/zybooks-userSubs-analysis-system/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cyrusHwang/zybooks-userSubs-analysis-system/teams","hooks_url":"https://api.github.com/repos/cyrusHwang/zybooks-userSubs-analysis-system/hooks","issue_events_url":"https://api.github.com/repos/cyrusHwang/zybooks-userSubs-analysis-system/issues/events{/number}","events_url":"https://api.github.com/repos/cyrusHwang/zybooks-userSubs-analysis-system/events","assignees_url":"https://api.github.com/repos/cyrusHwang/zybooks-userSubs-analysis-system/assignees{/user}","branches_url":"https://api.github.com/repos/cyrusHwang/zybooks-userSubs-analysis-system/branches{/branch}","tags_url":"https://api.github.com/repos/cyrusHwang/zybooks-userSubs-analysis-system/tags","blobs_url":"https://api.github.com/repos/cyrusHwang/zybooks-userSubs-analysis-system/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cyrusHwang/zybooks-userSubs-analysis-system/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cyrusHwang/zybooks-userSubs-analysis-system/git/refs{/sha}","trees_url":"https://api.github.com/repos/cyrusHwang/zybooks-userSubs-analysis-system/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cyrusHwang/zybooks-userSubs-analysis-system/statuses/{sha}","languages_url":"https://api.github.com/repos/cyrusHwang/zybooks-userSubs-analysis-system/languages","stargazers_url":"https://api.github.com/repos/cyrusHwang/zybooks-userSubs-analysis-system/stargazers","contributors_url":"https://api.github.com/repos/cyrusHwang/zybooks-userSubs-analysis-system/contributors","subscribers_url":"https://api.github.com/repos/cyrusHwang/zybooks-userSubs-analysis-system/subscribers","subscription_url":"https://api.github.com/repos/cyrusHwang/zybooks-userSubs-analysis-system/subscription","commits_url":"https://api.github.com/repos/cyrusHwang/zybooks-userSubs-analysis-system/commits{/sha}","git_commits_url":"https://api.github.com/repos/cyrusHwang/zybooks-userSubs-analysis-system/git/commits{/sha}","comments_url":"https://api.github.com/repos/cyrusHwang/zybooks-userSubs-analysis-system/comments{/number}","issue_comment_url":"https://api.github.com/repos/cyrusHwang/zybooks-userSubs-analysis-system/issues/comments{/number}","contents_url":"https://api.github.com/repos/cyrusHwang/zybooks-userSubs-analysis-system/contents/{+path}","compare_url":"https://api.github.com/repos/cyrusHwang/zybooks-userSubs-analysis-system/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cyrusHwang/zybooks-userSubs-analysis-system/merges","archive_url":"https://api.github.com/repos/cyrusHwang/zybooks-userSubs-analysis-system/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cyrusHwang/zybooks-userSubs-analysis-system/downloads","issues_url":"https://api.github.com/repos/cyrusHwang/zybooks-userSubs-analysis-system/issues{/number}","pulls_url":"https://api.github.com/repos/cyrusHwang/zybooks-userSubs-analysis-system/pulls{/number}","milestones_url":"https://api.github.com/repos/cyrusHwang/zybooks-userSubs-analysis-system/milestones{/number}","notifications_url":"https://api.github.com/repos/cyrusHwang/zybooks-userSubs-analysis-system/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cyrusHwang/zybooks-userSubs-analysis-system/labels{/name}","releases_url":"https://api.github.com/repos/cyrusHwang/zybooks-userSubs-analysis-system/releases{/id}","deployments_url":"https://api.github.com/repos/cyrusHwang/zybooks-userSubs-analysis-system/deployments","created_at":"2016-06-29T17:53:39Z","updated_at":"2016-07-02T00:12:49Z","pushed_at":"2016-07-05T19:41:00Z","git_url":"git://github.com/cyrusHwang/zybooks-userSubs-analysis-system.git","ssh_url":"git@github.com:cyrusHwang/zybooks-userSubs-analysis-system.git","clone_url":"https://github.com/cyrusHwang/zybooks-userSubs-analysis-system.git","svn_url":"https://github.com/cyrusHwang/zybooks-userSubs-analysis-system","homepage":null,"size":30,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cyrusHwang/zybooks-userSubs-analysis-system/pulls/1"},"html":{"href":"https://github.com/cyrusHwang/zybooks-userSubs-analysis-system/pull/1"},"issue":{"href":"https://api.github.com/repos/cyrusHwang/zybooks-userSubs-analysis-system/issues/1"},"comments":{"href":"https://api.github.com/repos/cyrusHwang/zybooks-userSubs-analysis-system/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/cyrusHwang/zybooks-userSubs-analysis-system/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/cyrusHwang/zybooks-userSubs-analysis-system/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cyrusHwang/zybooks-userSubs-analysis-system/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/cyrusHwang/zybooks-userSubs-analysis-system/statuses/37bbcf6bc581690eacfc8db8d841c370494ee89e"}}}}
{"actor":{"display_login":"AlexEdgcomb"}}