{"action":"created","comment":{"url":"https://api.github.com/repos/Cal-CS-61A-Staff/ok-client/pulls/comments/33410211","id":33410211,"diff_hunk":"@@ -21,6 +25,70 @@ def run(self, messages):\n             # TODO(denero) Get the canonical name of the question\n             statistics['question'] = self.args.question\n \n+        statistics['started'] = self.check_start(messages['file_contents'])\n+        print(\"DEBUG:\" + statistics['started'])\n+\n         messages['analytics'] = statistics\n \n+    def check_start(self, files):\n+        \"\"\"returns a dictionary where the key is question number, and the value","path":"client/protocols/analytics.py","position":28,"original_position":28,"commit_id":"4717270a984f173d19fbd88c60a314187ed5cb87","original_commit_id":"4717270a984f173d19fbd88c60a314187ed5cb87","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 docstring leads me to believe the key is an `int` or a `float`, but shouldn't it be a string of whatever the Question name is?","created_at":"2015-06-27T06:37:08Z","updated_at":"2015-06-27T06:37:08Z","html_url":"https://github.com/Cal-CS-61A-Staff/ok-client/pull/94#discussion_r33410211","pull_request_url":"https://api.github.com/repos/Cal-CS-61A-Staff/ok-client/pulls/94","_links":{"self":{"href":"https://api.github.com/repos/Cal-CS-61A-Staff/ok-client/pulls/comments/33410211"},"html":{"href":"https://github.com/Cal-CS-61A-Staff/ok-client/pull/94#discussion_r33410211"},"pull_request":{"href":"https://api.github.com/repos/Cal-CS-61A-Staff/ok-client/pulls/94"}}},"pull_request":{"url":"https://api.github.com/repos/Cal-CS-61A-Staff/ok-client/pulls/94","id":38498634,"html_url":"https://github.com/Cal-CS-61A-Staff/ok-client/pull/94","diff_url":"https://github.com/Cal-CS-61A-Staff/ok-client/pull/94.diff","patch_url":"https://github.com/Cal-CS-61A-Staff/ok-client/pull/94.patch","issue_url":"https://api.github.com/repos/Cal-CS-61A-Staff/ok-client/issues/94","number":94,"state":"open","locked":false,"title":"Detecting whether students have started a question, and running tests based on that info","user":{"login":"qiaojianjack","id":1920140,"avatar_url":"https://avatars.githubusercontent.com/u/1920140?v=3","gravatar_id":"","url":"https://api.github.com/users/qiaojianjack","html_url":"https://github.com/qiaojianjack","followers_url":"https://api.github.com/users/qiaojianjack/followers","following_url":"https://api.github.com/users/qiaojianjack/following{/other_user}","gists_url":"https://api.github.com/users/qiaojianjack/gists{/gist_id}","starred_url":"https://api.github.com/users/qiaojianjack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qiaojianjack/subscriptions","organizations_url":"https://api.github.com/users/qiaojianjack/orgs","repos_url":"https://api.github.com/users/qiaojianjack/repos","events_url":"https://api.github.com/users/qiaojianjack/events{/privacy}","received_events_url":"https://api.github.com/users/qiaojianjack/received_events","type":"User","site_admin":false},"body":"Analytics Protocol would read all the files, find every possible areas of change for each question, and detect whether a question has been started. Grading protocol won't run tests for a question if it's not started.","created_at":"2015-06-24T23:28:51Z","updated_at":"2015-06-27T06:37:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a222be1caba73b4450bbb7a896d213e37178dfe6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Cal-CS-61A-Staff/ok-client/pulls/94/commits","review_comments_url":"https://api.github.com/repos/Cal-CS-61A-Staff/ok-client/pulls/94/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/94/comments","statuses_url":"https://api.github.com/repos/Cal-CS-61A-Staff/ok-client/statuses/4717270a984f173d19fbd88c60a314187ed5cb87","head":{"label":"Cal-CS-61A-Staff:analysis","ref":"analysis","sha":"4717270a984f173d19fbd88c60a314187ed5cb87","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-26T23:56:42Z","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":1440,"stargazers_count":4,"watchers_count":4,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":18,"forks":3,"open_issues":18,"watchers":4,"default_branch":"master"}},"base":{"label":"Cal-CS-61A-Staff:master","ref":"master","sha":"0e1dcc9e646cfbc929731f3d276ee3424f409e10","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-26T23:56:42Z","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":1440,"stargazers_count":4,"watchers_count":4,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":18,"forks":3,"open_issues":18,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Cal-CS-61A-Staff/ok-client/pulls/94"},"html":{"href":"https://github.com/Cal-CS-61A-Staff/ok-client/pull/94"},"issue":{"href":"https://api.github.com/repos/Cal-CS-61A-Staff/ok-client/issues/94"},"comments":{"href":"https://api.github.com/repos/Cal-CS-61A-Staff/ok-client/issues/94/comments"},"review_comments":{"href":"https://api.github.com/repos/Cal-CS-61A-Staff/ok-client/pulls/94/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/94/commits"},"statuses":{"href":"https://api.github.com/repos/Cal-CS-61A-Staff/ok-client/statuses/4717270a984f173d19fbd88c60a314187ed5cb87"}}}}