GitHub PullRequestReviewCommentEvent at 2014-07-07 21:31:14
Repository: db-grader-proxy
Actor: jbau
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/Stanford-Online/db-grader-proxy/pulls/comments/14623922","id":14623922,"diff_hunk":"@@ -1,16 +1,180 @@\n-\"\"\"\n-This file demonstrates writing tests using the unittest module. These will pass\n-when you run \"manage.py test\".\n+from django.test import TestCase\n+from views import sanitizeFeedback, truncateFeedback\n+from mock import patch\n \n-Replace this with more appropriate tests for your application.\n-\"\"\"\n \n-from django.test import TestCase\n+class FeedbackSanitizationTests(TestCase):\n+    \"\"\"\n+    Ensure that grading feedback has proper html formatting\n+    \"\"\"\n+    def setUp(self):\n+        self.needSanitization = [\n+            (\"<p>Test\", \"<p>Test</p>\"),\n+            (\"<p><br>Test</p>\", \"<p><br/>Test</p>\"),\n+            (\"&&\", \"&amp;&amp;\"),\n+            (\"<br>\", \"<br/>\"),\n+            (\"&&&&\", \"&amp;&amp;&amp;&amp;\"),\n+            (\"<p>&&''\", \"<p>&amp;&amp;''</p>\"),\n+            (\"<\", \"&lt;\"),\n+            (\"\\\"\", \"'\"),      #edX expects single quotes when defining attributes\n+            (\"<class><p>Test</p>\", \"<p>Test</p>\"),\n+            (\"\\r\", \"\"),\n+            (\"\\n\", \"<br/>\"),\n+            (\"<><><><><><>\", \"&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;&lt;&gt;\"),\n+            (\"<table>\", \"<table></table>\"),\n+            (\"<i>hey, fix this<\", \"<i>hey, fix this&lt;</i>\")\n+        ]\n+\n+        self.noSanitizingNeeded = [\n+            \"\", \n+            \" \",\n+            \"Hello\",\n+            \"<p>Test</p>\",\n+            \"<font style='color: red;'></font>\", \n+            \"<table><tbody><tr><td></td></tr></tbody></table>\",\n+            \"<i>This is fine</i>\"\n+        ]\n+\n+    @patch('proxy_server.tests.sanitizeFeedback', side_effect= lambda x: x)\n+    def test_lack_of_sanitization_function(self, mock_function):\n+        \"\"\"\n+        Confirm that lack of html cleaning/escaping causes errors\n+        \"\"\"\n+        for (broken, clean) in self.needSanitization:\n+            self.assertNotEqual(clean, sanitizeFeedback(broken))        \n+\n+    def test_sanitization_function(self):\n+        \"\"\"\n+        Sanitize function should return properly formatted html\n+        \"\"\"\n+        for (broken, clean) in self.needSanitization:\n+            self.assertEquals(clean, sanitizeFeedback(broken))\n+\n+        for test in self.noSanitizingNeeded:\n+            self.assertEquals(test, sanitizeFeedback(test))\n+            \n+    def test_ampersand_properly_escaped(self):\n+        \"\"\"\n+        Ampersands should be properly escaped\n+        \"\"\"\n+        test_string = \"<p>This contains an ampersand right here '&'</p>\"\n+        cleaned = sanitizeFeedback(test_string)\n+        self.assertContains(cleaned, \"&amp;\")\n+\n+    def test_style_maintained(self):\n+        \"\"\"\n+        Inline styling should be maintained\n+        \"\"\"\n+        test_string = \"<p><font style='color: red'></p>\"\n+        cleaned = sanitizeFeedback(test_string)\n+        self.assertContains(cleaned, \"style='color: red;'\")\n+\n+        test_string = \"<p><table border=\\\"1\\\"></table></p>\"\n+        cleaned = sanitizeFeedback(test_string)\n+        self.assertContains(cleaned, \"border='1'\")\n+\n+    def test_single_quotes_returned(self):\n+        \"\"\"\n+        Single quotes should be used when stating tag attributes\n+        \"\"\"\n+        test_string = \"<p style=\\\"font-weight: bold;\\\">Test</p>\"\n+        cleaned = sanitizeFeedback(test_string)\n+        self.assertContains(cleaned, \"'\")\n+        self.assertEqual(cleaned, \n+             \"<p style='font-weight: bold;'>Test</p>\"\n+        )\n \n+    def assertContains(self, full_string, substring):\n+        self.assertTrue(substring in full_string)\n \n-class SimpleTest(TestCase):\n-    def test_basic_addition(self):\n+\n+class feedbackTruncationTest(TestCase):\n+    \"\"\"\n+    Ensure feedback well-formed after truncation\n+    \"\"\"\n+    def setUp(self):\n+        self.simpleTestString = self.buildLongString()\n+        self.complicatedString = self.buildComplexLongString()\n+        self.tags = [\n+            ('<p', '</p'), \n+            ('<table', '</table'), \n+            ('<tbody', '</tbody'), \n+            ('<tr', '</tr'), \n+            ('<td', '</td'), \n+            ('<font', '</font')\n+        ]\n+        \n+    def buildLongString(self):\n+        \"\"\"\n+        Constructs simple string similar to grader feedback\n+        \"\"\"\n+        result = \"<p><table><tbody>\"\n+        while len(result) < 16100:\n+            result += \"<tr><td><p>Test</p></td></tr>\"\n+        result += \"</tbody></table></p>\"\n+        return result\n+\n+    def buildComplexLongString(self):\n+        \"\"\"\n+        Constructs complex string similar to grader feedback\n+        \"\"\"\n+        result = \"<p><table><tbody>\"\n+        while len(result) < 16100:\n+            result += \"<tr><td><font style='font-weight: bold;'>\"\n+            result += \"Test</font></td></tr>\"\n+        result += \"</tbody></table></p>\"\n+        return result\n+\n+    def test_truncates_to_correct_size(self):\n+        \"\"\"\n+        Truncated feedback must be less than max length\n+        \"\"\"\n+        truncated = truncateFeedback(self.simpleTestString)\n+        self.assertTrue(len(truncated) < 16000)\n+        truncated = truncateFeedback(self.complicatedString)\n+        self.assertTrue(len(truncated) < 16000)\n+\n+    def test_truncated_feedback_well_formed(self):\n         \"\"\"\n-        Tests that 1 + 1 always equals 2.\n+        Truncated feedback must still be well-formed\n         \"\"\"\n-        self.assertEqual(1 + 1, 2)\n+        simpleTruncated = truncateFeedback(self.simpleTestString)\n+        complexTruncated = truncateFeedback(self.complicatedString)\n+        for (openTag, closedTag) in self.tags:\n+            self.assertNumTagsEqual(openTag, closedTag, simpleTruncated)\n+            self.assertNumTagsEqual(openTag, closedTag, complexTruncated)\n+\n+    def test_diffrent_truncation_points_properly_fixed(self):\n+        \"\"\"\n+        Test different malformities after truncation\n+        \"\"\"\n+        for index in range(15990, 16000):\n+            simpletest = self.simpleTestString[0:index]\n+            lastIndex = simpletest.rfind(\">\")\n+            simpletest = simpletest[0:lastIndex + 1]\n+            simpletest = sanitizeFeedback(simpletest)\n+\n+            complextest = self.complicatedString[0:index]\n+            lastIndex = complextest.rfind(\">\")\n+            complextest = complextest[0:lastIndex + 1]\n+            complextest = sanitizeFeedback(complextest)\n+            \n+            for (openTag, closedTag) in self.tags:\n+                self.assertNumTagsEqual(openTag, closedTag, simpletest)\n+                self.assertNumTagsEqual(openTag, closedTag, complextest)\n+            \n+    def assertNumTagsEqual(self, openTag, closedTag, htmlstring):\n+        numOpen = htmlstring.count(openTag)\n+        numClosed = htmlstring.count(closedTag)\n+        self.assertEqual(numOpen, numClosed)\n+","path":"proxy_server/tests.py","position":180,"original_position":180,"commit_id":"2769f7bfd036b2009f63757c7277dcca823b0dd5","original_commit_id":"2769f7bfd036b2009f63757c7277dcca823b0dd5","user":{"login":"jbau","id":721283,"avatar_url":"https://avatars.githubusercontent.com/u/721283?","gravatar_id":"9a95d201032b8c18ef4833cb9784a39d","url":"https://api.github.com/users/jbau","html_url":"https://github.com/jbau","followers_url":"https://api.github.com/users/jbau/followers","following_url":"https://api.github.com/users/jbau/following{/other_user}","gists_url":"https://api.github.com/users/jbau/gists{/gist_id}","starred_url":"https://api.github.com/users/jbau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbau/subscriptions","organizations_url":"https://api.github.com/users/jbau/orgs","repos_url":"https://api.github.com/users/jbau/repos","events_url":"https://api.github.com/users/jbau/events{/privacy}","received_events_url":"https://api.github.com/users/jbau/received_events","type":"User","site_admin":false},"body":"strip excess whitespace","created_at":"2014-07-07T21:31:14Z","updated_at":"2014-07-07T21:31:14Z","html_url":"https://github.com/Stanford-Online/db-grader-proxy/pull/2#discussion_r14623922","pull_request_url":"https://api.github.com/repos/Stanford-Online/db-grader-proxy/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/Stanford-Online/db-grader-proxy/pulls/comments/14623922"},"html":{"href":"https://github.com/Stanford-Online/db-grader-proxy/pull/2#discussion_r14623922"},"pull_request":{"href":"https://api.github.com/repos/Stanford-Online/db-grader-proxy/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/Stanford-Online/db-grader-proxy/pulls/2","id":17906898,"html_url":"https://github.com/Stanford-Online/db-grader-proxy/pull/2","diff_url":"https://github.com/Stanford-Online/db-grader-proxy/pull/2.diff","patch_url":"https://github.com/Stanford-Online/db-grader-proxy/pull/2.patch","issue_url":"https://api.github.com/repos/Stanford-Online/db-grader-proxy/issues/2","number":2,"state":"open","title":"Njdupoux/proxy bug fix","user":{"login":"njdup","id":4758600,"avatar_url":"https://avatars.githubusercontent.com/u/4758600?","gravatar_id":"53d217fc6b01293e5fad8b9ed204e8c8","url":"https://api.github.com/users/njdup","html_url":"https://github.com/njdup","followers_url":"https://api.github.com/users/njdup/followers","following_url":"https://api.github.com/users/njdup/following{/other_user}","gists_url":"https://api.github.com/users/njdup/gists{/gist_id}","starred_url":"https://api.github.com/users/njdup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/njdup/subscriptions","organizations_url":"https://api.github.com/users/njdup/orgs","repos_url":"https://api.github.com/users/njdup/repos","events_url":"https://api.github.com/users/njdup/events{/privacy}","received_events_url":"https://api.github.com/users/njdup/received_events","type":"User","site_admin":false},"body":"Fix for proxy bugs stemming from improper html sanitization\r\n\r\nIn order to prevent improper html being sent back from the grader and proxy due to lack of escaping of characters such as \"&\", I've cleaned up the html formatting code to cleanly sanitize the html feedback response received from the grader. This includes proper html escaping. \r\n\r\nI've also written a few units tests to test the sanitization, and added some documentation ","created_at":"2014-07-02T19:30:44Z","updated_at":"2014-07-07T21:31:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9c90defdb4fd93f22d24655b7dede880f26350c5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Stanford-Online/db-grader-proxy/pulls/2/commits","review_comments_url":"https://api.github.com/repos/Stanford-Online/db-grader-proxy/pulls/2/comments","review_comment_url":"https://api.github.com/repos/Stanford-Online/db-grader-proxy/pulls/comments/{number}","comments_url":"https://api.github.com/repos/Stanford-Online/db-grader-proxy/issues/2/comments","statuses_url":"https://api.github.com/repos/Stanford-Online/db-grader-proxy/statuses/2769f7bfd036b2009f63757c7277dcca823b0dd5","head":{"label":"Stanford-Online:njdupoux/proxy-bug-fix","ref":"njdupoux/proxy-bug-fix","sha":"2769f7bfd036b2009f63757c7277dcca823b0dd5","user":{"login":"Stanford-Online","id":2159497,"avatar_url":"https://avatars.githubusercontent.com/u/2159497?","gravatar_id":"867d6ef89cbc4e71bc8d987c08828f38","url":"https://api.github.com/users/Stanford-Online","html_url":"https://github.com/Stanford-Online","followers_url":"https://api.github.com/users/Stanford-Online/followers","following_url":"https://api.github.com/users/Stanford-Online/following{/other_user}","gists_url":"https://api.github.com/users/Stanford-Online/gists{/gist_id}","starred_url":"https://api.github.com/users/Stanford-Online/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Stanford-Online/subscriptions","organizations_url":"https://api.github.com/users/Stanford-Online/orgs","repos_url":"https://api.github.com/users/Stanford-Online/repos","events_url":"https://api.github.com/users/Stanford-Online/events{/privacy}","received_events_url":"https://api.github.com/users/Stanford-Online/received_events","type":"Organization","site_admin":false},"repo":{"id":14380518,"name":"db-grader-proxy","full_name":"Stanford-Online/db-grader-proxy","owner":{"login":"Stanford-Online","id":2159497,"avatar_url":"https://avatars.githubusercontent.com/u/2159497?","gravatar_id":"867d6ef89cbc4e71bc8d987c08828f38","url":"https://api.github.com/users/Stanford-Online","html_url":"https://github.com/Stanford-Online","followers_url":"https://api.github.com/users/Stanford-Online/followers","following_url":"https://api.github.com/users/Stanford-Online/following{/other_user}","gists_url":"https://api.github.com/users/Stanford-Online/gists{/gist_id}","starred_url":"https://api.github.com/users/Stanford-Online/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Stanford-Online/subscriptions","organizations_url":"https://api.github.com/users/Stanford-Online/orgs","repos_url":"https://api.github.com/users/Stanford-Online/repos","events_url":"https://api.github.com/users/Stanford-Online/events{/privacy}","received_events_url":"https://api.github.com/users/Stanford-Online/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Stanford-Online/db-grader-proxy","description":"","fork":false,"url":"https://api.github.com/repos/Stanford-Online/db-grader-proxy","forks_url":"https://api.github.com/repos/Stanford-Online/db-grader-proxy/forks","keys_url":"https://api.github.com/repos/Stanford-Online/db-grader-proxy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Stanford-Online/db-grader-proxy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Stanford-Online/db-grader-proxy/teams","hooks_url":"https://api.github.com/repos/Stanford-Online/db-grader-proxy/hooks","issue_events_url":"https://api.github.com/repos/Stanford-Online/db-grader-proxy/issues/events{/number}","events_url":"https://api.github.com/repos/Stanford-Online/db-grader-proxy/events","assignees_url":"https://api.github.com/repos/Stanford-Online/db-grader-proxy/assignees{/user}","branches_url":"https://api.github.com/repos/Stanford-Online/db-grader-proxy/branches{/branch}","tags_url":"https://api.github.com/repos/Stanford-Online/db-grader-proxy/tags","blobs_url":"https://api.github.com/repos/Stanford-Online/db-grader-proxy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Stanford-Online/db-grader-proxy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Stanford-Online/db-grader-proxy/git/refs{/sha}","trees_url":"https://api.github.com/repos/Stanford-Online/db-grader-proxy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Stanford-Online/db-grader-proxy/statuses/{sha}","languages_url":"https://api.github.com/repos/Stanford-Online/db-grader-proxy/languages","stargazers_url":"https://api.github.com/repos/Stanford-Online/db-grader-proxy/stargazers","contributors_url":"https://api.github.com/repos/Stanford-Online/db-grader-proxy/contributors","subscribers_url":"https://api.github.com/repos/Stanford-Online/db-grader-proxy/subscribers","subscription_url":"https://api.github.com/repos/Stanford-Online/db-grader-proxy/subscription","commits_url":"https://api.github.com/repos/Stanford-Online/db-grader-proxy/commits{/sha}","git_commits_url":"https://api.github.com/repos/Stanford-Online/db-grader-proxy/git/commits{/sha}","comments_url":"https://api.github.com/repos/Stanford-Online/db-grader-proxy/comments{/number}","issue_comment_url":"https://api.github.com/repos/Stanford-Online/db-grader-proxy/issues/comments/{number}","contents_url":"https://api.github.com/repos/Stanford-Online/db-grader-proxy/contents/{+path}","compare_url":"https://api.github.com/repos/Stanford-Online/db-grader-proxy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Stanford-Online/db-grader-proxy/merges","archive_url":"https://api.github.com/repos/Stanford-Online/db-grader-proxy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Stanford-Online/db-grader-proxy/downloads","issues_url":"https://api.github.com/repos/Stanford-Online/db-grader-proxy/issues{/number}","pulls_url":"https://api.github.com/repos/Stanford-Online/db-grader-proxy/pulls{/number}","milestones_url":"https://api.github.com/repos/Stanford-Online/db-grader-proxy/milestones{/number}","notifications_url":"https://api.github.com/repos/Stanford-Online/db-grader-proxy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Stanford-Online/db-grader-proxy/labels{/name}","releases_url":"https://api.github.com/repos/Stanford-Online/db-grader-proxy/releases{/id}","created_at":"2013-11-14T00:18:50Z","updated_at":"2014-02-02T06:23:51Z","pushed_at":"2014-07-03T18:09:07Z","git_url":"git://github.com/Stanford-Online/db-grader-proxy.git","ssh_url":"git@github.com:Stanford-Online/db-grader-proxy.git","clone_url":"https://github.com/Stanford-Online/db-grader-proxy.git","svn_url":"https://github.com/Stanford-Online/db-grader-proxy","homepage":null,"size":612,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"Stanford-Online:master","ref":"master","sha":"4451ec19e4db9c23a70afae257960da31baab352","user":{"login":"Stanford-Online","id":2159497,"avatar_url":"https://avatars.githubusercontent.com/u/2159497?","gravatar_id":"867d6ef89cbc4e71bc8d987c08828f38","url":"https://api.github.com/users/Stanford-Online","html_url":"https://github.com/Stanford-Online","followers_url":"https://api.github.com/users/Stanford-Online/followers","following_url":"https://api.github.com/users/Stanford-Online/following{/other_user}","gists_url":"https://api.github.com/users/Stanford-Online/gists{/gist_id}","starred_url":"https://api.github.com/users/Stanford-Online/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Stanford-Online/subscriptions","organizations_url":"https://api.github.com/users/Stanford-Online/orgs","repos_url":"https://api.github.com/users/Stanford-Online/repos","events_url":"https://api.github.com/users/Stanford-Online/events{/privacy}","received_events_url":"https://api.github.com/users/Stanford-Online/received_events","type":"Organization","site_admin":false},"repo":{"id":14380518,"name":"db-grader-proxy","full_name":"Stanford-Online/db-grader-proxy","owner":{"login":"Stanford-Online","id":2159497,"avatar_url":"https://avatars.githubusercontent.com/u/2159497?","gravatar_id":"867d6ef89cbc4e71bc8d987c08828f38","url":"https://api.github.com/users/Stanford-Online","html_url":"https://github.com/Stanford-Online","followers_url":"https://api.github.com/users/Stanford-Online/followers","following_url":"https://api.github.com/users/Stanford-Online/following{/other_user}","gists_url":"https://api.github.com/users/Stanford-Online/gists{/gist_id}","starred_url":"https://api.github.com/users/Stanford-Online/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Stanford-Online/subscriptions","organizations_url":"https://api.github.com/users/Stanford-Online/orgs","repos_url":"https://api.github.com/users/Stanford-Online/repos","events_url":"https://api.github.com/users/Stanford-Online/events{/privacy}","received_events_url":"https://api.github.com/users/Stanford-Online/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Stanford-Online/db-grader-proxy","description":"","fork":false,"url":"https://api.github.com/repos/Stanford-Online/db-grader-proxy","forks_url":"https://api.github.com/repos/Stanford-Online/db-grader-proxy/forks","keys_url":"https://api.github.com/repos/Stanford-Online/db-grader-proxy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Stanford-Online/db-grader-proxy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Stanford-Online/db-grader-proxy/teams","hooks_url":"https://api.github.com/repos/Stanford-Online/db-grader-proxy/hooks","issue_events_url":"https://api.github.com/repos/Stanford-Online/db-grader-proxy/issues/events{/number}","events_url":"https://api.github.com/repos/Stanford-Online/db-grader-proxy/events","assignees_url":"https://api.github.com/repos/Stanford-Online/db-grader-proxy/assignees{/user}","branches_url":"https://api.github.com/repos/Stanford-Online/db-grader-proxy/branches{/branch}","tags_url":"https://api.github.com/repos/Stanford-Online/db-grader-proxy/tags","blobs_url":"https://api.github.com/repos/Stanford-Online/db-grader-proxy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Stanford-Online/db-grader-proxy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Stanford-Online/db-grader-proxy/git/refs{/sha}","trees_url":"https://api.github.com/repos/Stanford-Online/db-grader-proxy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Stanford-Online/db-grader-proxy/statuses/{sha}","languages_url":"https://api.github.com/repos/Stanford-Online/db-grader-proxy/languages","stargazers_url":"https://api.github.com/repos/Stanford-Online/db-grader-proxy/stargazers","contributors_url":"https://api.github.com/repos/Stanford-Online/db-grader-proxy/contributors","subscribers_url":"https://api.github.com/repos/Stanford-Online/db-grader-proxy/subscribers","subscription_url":"https://api.github.com/repos/Stanford-Online/db-grader-proxy/subscription","commits_url":"https://api.github.com/repos/Stanford-Online/db-grader-proxy/commits{/sha}","git_commits_url":"https://api.github.com/repos/Stanford-Online/db-grader-proxy/git/commits{/sha}","comments_url":"https://api.github.com/repos/Stanford-Online/db-grader-proxy/comments{/number}","issue_comment_url":"https://api.github.com/repos/Stanford-Online/db-grader-proxy/issues/comments/{number}","contents_url":"https://api.github.com/repos/Stanford-Online/db-grader-proxy/contents/{+path}","compare_url":"https://api.github.com/repos/Stanford-Online/db-grader-proxy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Stanford-Online/db-grader-proxy/merges","archive_url":"https://api.github.com/repos/Stanford-Online/db-grader-proxy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Stanford-Online/db-grader-proxy/downloads","issues_url":"https://api.github.com/repos/Stanford-Online/db-grader-proxy/issues{/number}","pulls_url":"https://api.github.com/repos/Stanford-Online/db-grader-proxy/pulls{/number}","milestones_url":"https://api.github.com/repos/Stanford-Online/db-grader-proxy/milestones{/number}","notifications_url":"https://api.github.com/repos/Stanford-Online/db-grader-proxy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Stanford-Online/db-grader-proxy/labels{/name}","releases_url":"https://api.github.com/repos/Stanford-Online/db-grader-proxy/releases{/id}","created_at":"2013-11-14T00:18:50Z","updated_at":"2014-02-02T06:23:51Z","pushed_at":"2014-07-03T18:09:07Z","git_url":"git://github.com/Stanford-Online/db-grader-proxy.git","ssh_url":"git@github.com:Stanford-Online/db-grader-proxy.git","clone_url":"https://github.com/Stanford-Online/db-grader-proxy.git","svn_url":"https://github.com/Stanford-Online/db-grader-proxy","homepage":null,"size":612,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Stanford-Online/db-grader-proxy/pulls/2"},"html":{"href":"https://github.com/Stanford-Online/db-grader-proxy/pull/2"},"issue":{"href":"https://api.github.com/repos/Stanford-Online/db-grader-proxy/issues/2"},"comments":{"href":"https://api.github.com/repos/Stanford-Online/db-grader-proxy/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/Stanford-Online/db-grader-proxy/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/Stanford-Online/db-grader-proxy/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/Stanford-Online/db-grader-proxy/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/Stanford-Online/db-grader-proxy/statuses/2769f7bfd036b2009f63757c7277dcca823b0dd5"}}}}