{"action":"created","comment":{"url":"https://api.github.com/repos/Cal-CS-61A-Staff/ok-client/pulls/comments/32576089","id":32576089,"diff_hunk":"@@ -0,0 +1,42 @@\n+\"\"\"This module contains utilities for communicating with the ok server.\"\"\"\n+\n+from urllib import request, error\n+import json\n+import time","path":"client/utils/network.py","position":5,"original_position":5,"commit_id":"cb2098021729d4d9459539ad833db6c3c2f8a303","original_commit_id":"6d1a7b5d6b5e4a55a7e63babd6b55929e0861d1b","user":{"login":"albert12132","id":2187524,"avatar_url":"https://avatars.githubusercontent.com/u/2187524?v=3","gravatar_id":"","url":"https://api.github.com/users/albert12132","html_url":"https://github.com/albert12132","followers_url":"https://api.github.com/users/albert12132/followers","following_url":"https://api.github.com/users/albert12132/following{/other_user}","gists_url":"https://api.github.com/users/albert12132/gists{/gist_id}","starred_url":"https://api.github.com/users/albert12132/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/albert12132/subscriptions","organizations_url":"https://api.github.com/users/albert12132/orgs","repos_url":"https://api.github.com/users/albert12132/repos","events_url":"https://api.github.com/users/albert12132/events{/privacy}","received_events_url":"https://api.github.com/users/albert12132/received_events","type":"User","site_admin":false},"body":"This import doesn't seem to be used.","created_at":"2015-06-16T21:58:11Z","updated_at":"2015-06-16T21:58:11Z","html_url":"https://github.com/Cal-CS-61A-Staff/ok-client/pull/77#discussion_r32576089","pull_request_url":"https://api.github.com/repos/Cal-CS-61A-Staff/ok-client/pulls/77","_links":{"self":{"href":"https://api.github.com/repos/Cal-CS-61A-Staff/ok-client/pulls/comments/32576089"},"html":{"href":"https://github.com/Cal-CS-61A-Staff/ok-client/pull/77#discussion_r32576089"},"pull_request":{"href":"https://api.github.com/repos/Cal-CS-61A-Staff/ok-client/pulls/77"}}},"pull_request":{"url":"https://api.github.com/repos/Cal-CS-61A-Staff/ok-client/pulls/77","id":37082302,"html_url":"https://github.com/Cal-CS-61A-Staff/ok-client/pull/77","diff_url":"https://github.com/Cal-CS-61A-Staff/ok-client/pull/77.diff","patch_url":"https://github.com/Cal-CS-61A-Staff/ok-client/pull/77.patch","issue_url":"https://api.github.com/repos/Cal-CS-61A-Staff/ok-client/issues/77","number":77,"state":"open","locked":false,"title":"Submission export","user":{"login":"jathak","id":1817677,"avatar_url":"https://avatars.githubusercontent.com/u/1817677?v=3","gravatar_id":"","url":"https://api.github.com/users/jathak","html_url":"https://github.com/jathak","followers_url":"https://api.github.com/users/jathak/followers","following_url":"https://api.github.com/users/jathak/following{/other_user}","gists_url":"https://api.github.com/users/jathak/gists{/gist_id}","starred_url":"https://api.github.com/users/jathak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jathak/subscriptions","organizations_url":"https://api.github.com/users/jathak/orgs","repos_url":"https://api.github.com/users/jathak/repos","events_url":"https://api.github.com/users/jathak/events{/privacy}","received_events_url":"https://api.github.com/users/jathak/received_events","type":"User","site_admin":false},"body":"Implements an option for course staff to export all final submissions for an assignment, as mentioned in [this issue](https://github.com/Cal-CS-61A-Staff/ok/issues/444).\r\n\r\nAdding the `--export` option to a command overrides the client's default behavior and instead downloads all final submissions for the provided assignment (the course is determined by the optional `--course` parameter or selected from a list of all courses if not provided).\r\n","created_at":"2015-06-06T01:28:09Z","updated_at":"2015-06-16T21:58:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"30da5295514880b77a3d7f0243ec928a12a73dfd","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Cal-CS-61A-Staff/ok-client/pulls/77/commits","review_comments_url":"https://api.github.com/repos/Cal-CS-61A-Staff/ok-client/pulls/77/comments","review_comment_url":"https://api.github.com/repos/Cal-CS-61A-Staff/ok-client/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Cal-CS-61A-Staff/ok-client/issues/77/comments","statuses_url":"https://api.github.com/repos/Cal-CS-61A-Staff/ok-client/statuses/cb2098021729d4d9459539ad833db6c3c2f8a303","head":{"label":"jathak:enhancement/jathak/submission-export","ref":"enhancement/jathak/submission-export","sha":"cb2098021729d4d9459539ad833db6c3c2f8a303","user":{"login":"jathak","id":1817677,"avatar_url":"https://avatars.githubusercontent.com/u/1817677?v=3","gravatar_id":"","url":"https://api.github.com/users/jathak","html_url":"https://github.com/jathak","followers_url":"https://api.github.com/users/jathak/followers","following_url":"https://api.github.com/users/jathak/following{/other_user}","gists_url":"https://api.github.com/users/jathak/gists{/gist_id}","starred_url":"https://api.github.com/users/jathak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jathak/subscriptions","organizations_url":"https://api.github.com/users/jathak/orgs","repos_url":"https://api.github.com/users/jathak/repos","events_url":"https://api.github.com/users/jathak/events{/privacy}","received_events_url":"https://api.github.com/users/jathak/received_events","type":"User","site_admin":false},"repo":{"id":36949320,"name":"ok-client","full_name":"jathak/ok-client","owner":{"login":"jathak","id":1817677,"avatar_url":"https://avatars.githubusercontent.com/u/1817677?v=3","gravatar_id":"","url":"https://api.github.com/users/jathak","html_url":"https://github.com/jathak","followers_url":"https://api.github.com/users/jathak/followers","following_url":"https://api.github.com/users/jathak/following{/other_user}","gists_url":"https://api.github.com/users/jathak/gists{/gist_id}","starred_url":"https://api.github.com/users/jathak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jathak/subscriptions","organizations_url":"https://api.github.com/users/jathak/orgs","repos_url":"https://api.github.com/users/jathak/repos","events_url":"https://api.github.com/users/jathak/events{/privacy}","received_events_url":"https://api.github.com/users/jathak/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jathak/ok-client","description":"A Python client for the OK autograding system","fork":true,"url":"https://api.github.com/repos/jathak/ok-client","forks_url":"https://api.github.com/repos/jathak/ok-client/forks","keys_url":"https://api.github.com/repos/jathak/ok-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jathak/ok-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jathak/ok-client/teams","hooks_url":"https://api.github.com/repos/jathak/ok-client/hooks","issue_events_url":"https://api.github.com/repos/jathak/ok-client/issues/events{/number}","events_url":"https://api.github.com/repos/jathak/ok-client/events","assignees_url":"https://api.github.com/repos/jathak/ok-client/assignees{/user}","branches_url":"https://api.github.com/repos/jathak/ok-client/branches{/branch}","tags_url":"https://api.github.com/repos/jathak/ok-client/tags","blobs_url":"https://api.github.com/repos/jathak/ok-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jathak/ok-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jathak/ok-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/jathak/ok-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jathak/ok-client/statuses/{sha}","languages_url":"https://api.github.com/repos/jathak/ok-client/languages","stargazers_url":"https://api.github.com/repos/jathak/ok-client/stargazers","contributors_url":"https://api.github.com/repos/jathak/ok-client/contributors","subscribers_url":"https://api.github.com/repos/jathak/ok-client/subscribers","subscription_url":"https://api.github.com/repos/jathak/ok-client/subscription","commits_url":"https://api.github.com/repos/jathak/ok-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/jathak/ok-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/jathak/ok-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/jathak/ok-client/issues/comments{/number}","contents_url":"https://api.github.com/repos/jathak/ok-client/contents/{+path}","compare_url":"https://api.github.com/repos/jathak/ok-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jathak/ok-client/merges","archive_url":"https://api.github.com/repos/jathak/ok-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jathak/ok-client/downloads","issues_url":"https://api.github.com/repos/jathak/ok-client/issues{/number}","pulls_url":"https://api.github.com/repos/jathak/ok-client/pulls{/number}","milestones_url":"https://api.github.com/repos/jathak/ok-client/milestones{/number}","notifications_url":"https://api.github.com/repos/jathak/ok-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jathak/ok-client/labels{/name}","releases_url":"https://api.github.com/repos/jathak/ok-client/releases{/id}","created_at":"2015-06-05T18:44:38Z","updated_at":"2015-06-05T18:44:38Z","pushed_at":"2015-06-16T21:49:15Z","git_url":"git://github.com/jathak/ok-client.git","ssh_url":"git@github.com:jathak/ok-client.git","clone_url":"https://github.com/jathak/ok-client.git","svn_url":"https://github.com/jathak/ok-client","homepage":"https://okpy.org/","size":427,"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":"Cal-CS-61A-Staff:master","ref":"master","sha":"b12327ffb751251272a03643f72295f2cda1722c","user":{"login":"Cal-CS-61A-Staff","id":7565272,"avatar_url":"https://avatars.githubusercontent.com/u/7565272?v=3","gravatar_id":"","url":"https://api.github.com/users/Cal-CS-61A-Staff","html_url":"https://github.com/Cal-CS-61A-Staff","followers_url":"https://api.github.com/users/Cal-CS-61A-Staff/followers","following_url":"https://api.github.com/users/Cal-CS-61A-Staff/following{/other_user}","gists_url":"https://api.github.com/users/Cal-CS-61A-Staff/gists{/gist_id}","starred_url":"https://api.github.com/users/Cal-CS-61A-Staff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cal-CS-61A-Staff/subscriptions","organizations_url":"https://api.github.com/users/Cal-CS-61A-Staff/orgs","repos_url":"https://api.github.com/users/Cal-CS-61A-Staff/repos","events_url":"https://api.github.com/users/Cal-CS-61A-Staff/events{/privacy}","received_events_url":"https://api.github.com/users/Cal-CS-61A-Staff/received_events","type":"Organization","site_admin":false},"repo":{"id":29032660,"name":"ok-client","full_name":"Cal-CS-61A-Staff/ok-client","owner":{"login":"Cal-CS-61A-Staff","id":7565272,"avatar_url":"https://avatars.githubusercontent.com/u/7565272?v=3","gravatar_id":"","url":"https://api.github.com/users/Cal-CS-61A-Staff","html_url":"https://github.com/Cal-CS-61A-Staff","followers_url":"https://api.github.com/users/Cal-CS-61A-Staff/followers","following_url":"https://api.github.com/users/Cal-CS-61A-Staff/following{/other_user}","gists_url":"https://api.github.com/users/Cal-CS-61A-Staff/gists{/gist_id}","starred_url":"https://api.github.com/users/Cal-CS-61A-Staff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Cal-CS-61A-Staff/subscriptions","organizations_url":"https://api.github.com/users/Cal-CS-61A-Staff/orgs","repos_url":"https://api.github.com/users/Cal-CS-61A-Staff/repos","events_url":"https://api.github.com/users/Cal-CS-61A-Staff/events{/privacy}","received_events_url":"https://api.github.com/users/Cal-CS-61A-Staff/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Cal-CS-61A-Staff/ok-client","description":"A Python client for the OK autograding system","fork":false,"url":"https://api.github.com/repos/Cal-CS-61A-Staff/ok-client","forks_url":"https://api.github.com/repos/Cal-CS-61A-Staff/ok-client/forks","keys_url":"https://api.github.com/repos/Cal-CS-61A-Staff/ok-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Cal-CS-61A-Staff/ok-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Cal-CS-61A-Staff/ok-client/teams","hooks_url":"https://api.github.com/repos/Cal-CS-61A-Staff/ok-client/hooks","issue_events_url":"https://api.github.com/repos/Cal-CS-61A-Staff/ok-client/issues/events{/number}","events_url":"https://api.github.com/repos/Cal-CS-61A-Staff/ok-client/events","assignees_url":"https://api.github.com/repos/Cal-CS-61A-Staff/ok-client/assignees{/user}","branches_url":"https://api.github.com/repos/Cal-CS-61A-Staff/ok-client/branches{/branch}","tags_url":"https://api.github.com/repos/Cal-CS-61A-Staff/ok-client/tags","blobs_url":"https://api.github.com/repos/Cal-CS-61A-Staff/ok-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Cal-CS-61A-Staff/ok-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Cal-CS-61A-Staff/ok-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/Cal-CS-61A-Staff/ok-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Cal-CS-61A-Staff/ok-client/statuses/{sha}","languages_url":"https://api.github.com/repos/Cal-CS-61A-Staff/ok-client/languages","stargazers_url":"https://api.github.com/repos/Cal-CS-61A-Staff/ok-client/stargazers","contributors_url":"https://api.github.com/repos/Cal-CS-61A-Staff/ok-client/contributors","subscribers_url":"https://api.github.com/repos/Cal-CS-61A-Staff/ok-client/subscribers","subscription_url":"https://api.github.com/repos/Cal-CS-61A-Staff/ok-client/subscription","commits_url":"https://api.github.com/repos/Cal-CS-61A-Staff/ok-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/Cal-CS-61A-Staff/ok-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/Cal-CS-61A-Staff/ok-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/Cal-CS-61A-Staff/ok-client/issues/comments{/number}","contents_url":"https://api.github.com/repos/Cal-CS-61A-Staff/ok-client/contents/{+path}","compare_url":"https://api.github.com/repos/Cal-CS-61A-Staff/ok-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Cal-CS-61A-Staff/ok-client/merges","archive_url":"https://api.github.com/repos/Cal-CS-61A-Staff/ok-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Cal-CS-61A-Staff/ok-client/downloads","issues_url":"https://api.github.com/repos/Cal-CS-61A-Staff/ok-client/issues{/number}","pulls_url":"https://api.github.com/repos/Cal-CS-61A-Staff/ok-client/pulls{/number}","milestones_url":"https://api.github.com/repos/Cal-CS-61A-Staff/ok-client/milestones{/number}","notifications_url":"https://api.github.com/repos/Cal-CS-61A-Staff/ok-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Cal-CS-61A-Staff/ok-client/labels{/name}","releases_url":"https://api.github.com/repos/Cal-CS-61A-Staff/ok-client/releases{/id}","created_at":"2015-01-09T19:53:07Z","updated_at":"2015-06-15T21:02:06Z","pushed_at":"2015-06-16T21:49:15Z","git_url":"git://github.com/Cal-CS-61A-Staff/ok-client.git","ssh_url":"git@github.com:Cal-CS-61A-Staff/ok-client.git","clone_url":"https://github.com/Cal-CS-61A-Staff/ok-client.git","svn_url":"https://github.com/Cal-CS-61A-Staff/ok-client","homepage":"https://okpy.org/","size":1152,"stargazers_count":4,"watchers_count":4,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":15,"forks":2,"open_issues":15,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Cal-CS-61A-Staff/ok-client/pulls/77"},"html":{"href":"https://github.com/Cal-CS-61A-Staff/ok-client/pull/77"},"issue":{"href":"https://api.github.com/repos/Cal-CS-61A-Staff/ok-client/issues/77"},"comments":{"href":"https://api.github.com/repos/Cal-CS-61A-Staff/ok-client/issues/77/comments"},"review_comments":{"href":"https://api.github.com/repos/Cal-CS-61A-Staff/ok-client/pulls/77/comments"},"review_comment":{"href":"https://api.github.com/repos/Cal-CS-61A-Staff/ok-client/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Cal-CS-61A-Staff/ok-client/pulls/77/commits"},"statuses":{"href":"https://api.github.com/repos/Cal-CS-61A-Staff/ok-client/statuses/cb2098021729d4d9459539ad833db6c3c2f8a303"}}}}