{"action":"created","comment":{"url":"https://api.github.com/repos/pioneers/PieCentral/pulls/comments/103072611","pull_request_review_id":23852259,"id":103072611,"diff_hunk":"@@ -91,17 +91,18 @@ def nonTestModePrint(*args):\n           controlState = \"auto\"\n           continue\n         elif newBadThing.event == BAD_EVENTS.ENTER_IDLE and controlState != \"idle\":\n+          controlState = \"idle\"\n           break\n         print(newBadThing.event)\n         nonTestModePrint(newBadThing.data)\n         if newBadThing.event in restartEvents:\n+          restartCount += 1\n           if (not emergency_stopped and newBadThing.event is BAD_EVENTS.EMERGENCY_STOP):\n             emergency_stopped = True #somehow kill student code using other method? right now just restarting on e-stop\n           break\n       stateQueue.put([SM_COMMANDS.RESET, []])\n       terminate_process(PROCESS_NAMES.STUDENT_CODE)\n       controlState = \"idle\"","path":"runtime/testy/runtime.py","position":null,"original_position":15,"commit_id":"5b55ce94c04af872d3ee138c99ebd8ea4e577e5b","original_commit_id":"de113b21c177b8694317f1cc55291b95b922a091","user":{"login":"brandonxxlee","id":14364444,"avatar_url":"https://avatars.githubusercontent.com/u/14364444?v=3","gravatar_id":"","url":"https://api.github.com/users/brandonxxlee","html_url":"https://github.com/brandonxxlee","followers_url":"https://api.github.com/users/brandonxxlee/followers","following_url":"https://api.github.com/users/brandonxxlee/following{/other_user}","gists_url":"https://api.github.com/users/brandonxxlee/gists{/gist_id}","starred_url":"https://api.github.com/users/brandonxxlee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brandonxxlee/subscriptions","organizations_url":"https://api.github.com/users/brandonxxlee/orgs","repos_url":"https://api.github.com/users/brandonxxlee/repos","events_url":"https://api.github.com/users/brandonxxlee/events{/privacy}","received_events_url":"https://api.github.com/users/brandonxxlee/received_events","type":"User","site_admin":false},"body":"I have moved the `controlstate = \"idle\"` into both parts inside the while loop. Are there more things I should add/move?","created_at":"2017-02-25T06:20:08Z","updated_at":"2017-02-25T06:20:08Z","html_url":"https://github.com/pioneers/PieCentral/pull/150#discussion_r103072611","pull_request_url":"https://api.github.com/repos/pioneers/PieCentral/pulls/150","_links":{"self":{"href":"https://api.github.com/repos/pioneers/PieCentral/pulls/comments/103072611"},"html":{"href":"https://github.com/pioneers/PieCentral/pull/150#discussion_r103072611"},"pull_request":{"href":"https://api.github.com/repos/pioneers/PieCentral/pulls/150"}}},"pull_request":{"url":"https://api.github.com/repos/pioneers/PieCentral/pulls/150","id":107571365,"html_url":"https://github.com/pioneers/PieCentral/pull/150","diff_url":"https://github.com/pioneers/PieCentral/pull/150.diff","patch_url":"https://github.com/pioneers/PieCentral/pull/150.patch","issue_url":"https://api.github.com/repos/pioneers/PieCentral/issues/150","number":150,"state":"open","locked":false,"title":"[RUNTIME] Runtime/student code upload setup","user":{"login":"brandonxxlee","id":14364444,"avatar_url":"https://avatars.githubusercontent.com/u/14364444?v=3","gravatar_id":"","url":"https://api.github.com/users/brandonxxlee","html_url":"https://github.com/brandonxxlee","followers_url":"https://api.github.com/users/brandonxxlee/followers","following_url":"https://api.github.com/users/brandonxxlee/following{/other_user}","gists_url":"https://api.github.com/users/brandonxxlee/gists{/gist_id}","starred_url":"https://api.github.com/users/brandonxxlee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brandonxxlee/subscriptions","organizations_url":"https://api.github.com/users/brandonxxlee/orgs","repos_url":"https://api.github.com/users/brandonxxlee/repos","events_url":"https://api.github.com/users/brandonxxlee/events{/privacy}","received_events_url":"https://api.github.com/users/brandonxxlee/received_events","type":"User","site_admin":false},"body":"When Dawn is about to upload student code, we make sure the studentCode process is not running.","created_at":"2017-02-23T07:45:20Z","updated_at":"2017-02-25T06:20:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4d2dc4b3d76fb53abcd1e973f394fd4711f47dc9","assignee":{"login":"nikitakit","id":252225,"avatar_url":"https://avatars.githubusercontent.com/u/252225?v=3","gravatar_id":"","url":"https://api.github.com/users/nikitakit","html_url":"https://github.com/nikitakit","followers_url":"https://api.github.com/users/nikitakit/followers","following_url":"https://api.github.com/users/nikitakit/following{/other_user}","gists_url":"https://api.github.com/users/nikitakit/gists{/gist_id}","starred_url":"https://api.github.com/users/nikitakit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikitakit/subscriptions","organizations_url":"https://api.github.com/users/nikitakit/orgs","repos_url":"https://api.github.com/users/nikitakit/repos","events_url":"https://api.github.com/users/nikitakit/events{/privacy}","received_events_url":"https://api.github.com/users/nikitakit/received_events","type":"User","site_admin":false},"assignees":[{"login":"nikitakit","id":252225,"avatar_url":"https://avatars.githubusercontent.com/u/252225?v=3","gravatar_id":"","url":"https://api.github.com/users/nikitakit","html_url":"https://github.com/nikitakit","followers_url":"https://api.github.com/users/nikitakit/followers","following_url":"https://api.github.com/users/nikitakit/following{/other_user}","gists_url":"https://api.github.com/users/nikitakit/gists{/gist_id}","starred_url":"https://api.github.com/users/nikitakit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nikitakit/subscriptions","organizations_url":"https://api.github.com/users/nikitakit/orgs","repos_url":"https://api.github.com/users/nikitakit/repos","events_url":"https://api.github.com/users/nikitakit/events{/privacy}","received_events_url":"https://api.github.com/users/nikitakit/received_events","type":"User","site_admin":false},{"login":"bodiddles","id":6416584,"avatar_url":"https://avatars.githubusercontent.com/u/6416584?v=3","gravatar_id":"","url":"https://api.github.com/users/bodiddles","html_url":"https://github.com/bodiddles","followers_url":"https://api.github.com/users/bodiddles/followers","following_url":"https://api.github.com/users/bodiddles/following{/other_user}","gists_url":"https://api.github.com/users/bodiddles/gists{/gist_id}","starred_url":"https://api.github.com/users/bodiddles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bodiddles/subscriptions","organizations_url":"https://api.github.com/users/bodiddles/orgs","repos_url":"https://api.github.com/users/bodiddles/repos","events_url":"https://api.github.com/users/bodiddles/events{/privacy}","received_events_url":"https://api.github.com/users/bodiddles/received_events","type":"User","site_admin":false},{"login":"yizow","id":7284555,"avatar_url":"https://avatars.githubusercontent.com/u/7284555?v=3","gravatar_id":"","url":"https://api.github.com/users/yizow","html_url":"https://github.com/yizow","followers_url":"https://api.github.com/users/yizow/followers","following_url":"https://api.github.com/users/yizow/following{/other_user}","gists_url":"https://api.github.com/users/yizow/gists{/gist_id}","starred_url":"https://api.github.com/users/yizow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yizow/subscriptions","organizations_url":"https://api.github.com/users/yizow/orgs","repos_url":"https://api.github.com/users/yizow/repos","events_url":"https://api.github.com/users/yizow/events{/privacy}","received_events_url":"https://api.github.com/users/yizow/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/pioneers/PieCentral/pulls/150/commits","review_comments_url":"https://api.github.com/repos/pioneers/PieCentral/pulls/150/comments","review_comment_url":"https://api.github.com/repos/pioneers/PieCentral/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pioneers/PieCentral/issues/150/comments","statuses_url":"https://api.github.com/repos/pioneers/PieCentral/statuses/5b55ce94c04af872d3ee138c99ebd8ea4e577e5b","head":{"label":"pioneers:runtime/student_upload_setup","ref":"runtime/student_upload_setup","sha":"5b55ce94c04af872d3ee138c99ebd8ea4e577e5b","user":{"login":"pioneers","id":5135404,"avatar_url":"https://avatars.githubusercontent.com/u/5135404?v=3","gravatar_id":"","url":"https://api.github.com/users/pioneers","html_url":"https://github.com/pioneers","followers_url":"https://api.github.com/users/pioneers/followers","following_url":"https://api.github.com/users/pioneers/following{/other_user}","gists_url":"https://api.github.com/users/pioneers/gists{/gist_id}","starred_url":"https://api.github.com/users/pioneers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pioneers/subscriptions","organizations_url":"https://api.github.com/users/pioneers/orgs","repos_url":"https://api.github.com/users/pioneers/repos","events_url":"https://api.github.com/users/pioneers/events{/privacy}","received_events_url":"https://api.github.com/users/pioneers/received_events","type":"Organization","site_admin":false},"repo":{"id":67092938,"name":"PieCentral","full_name":"pioneers/PieCentral","owner":{"login":"pioneers","id":5135404,"avatar_url":"https://avatars.githubusercontent.com/u/5135404?v=3","gravatar_id":"","url":"https://api.github.com/users/pioneers","html_url":"https://github.com/pioneers","followers_url":"https://api.github.com/users/pioneers/followers","following_url":"https://api.github.com/users/pioneers/following{/other_user}","gists_url":"https://api.github.com/users/pioneers/gists{/gist_id}","starred_url":"https://api.github.com/users/pioneers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pioneers/subscriptions","organizations_url":"https://api.github.com/users/pioneers/orgs","repos_url":"https://api.github.com/users/pioneers/repos","events_url":"https://api.github.com/users/pioneers/events{/privacy}","received_events_url":"https://api.github.com/users/pioneers/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pioneers/PieCentral","description":null,"fork":false,"url":"https://api.github.com/repos/pioneers/PieCentral","forks_url":"https://api.github.com/repos/pioneers/PieCentral/forks","keys_url":"https://api.github.com/repos/pioneers/PieCentral/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pioneers/PieCentral/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pioneers/PieCentral/teams","hooks_url":"https://api.github.com/repos/pioneers/PieCentral/hooks","issue_events_url":"https://api.github.com/repos/pioneers/PieCentral/issues/events{/number}","events_url":"https://api.github.com/repos/pioneers/PieCentral/events","assignees_url":"https://api.github.com/repos/pioneers/PieCentral/assignees{/user}","branches_url":"https://api.github.com/repos/pioneers/PieCentral/branches{/branch}","tags_url":"https://api.github.com/repos/pioneers/PieCentral/tags","blobs_url":"https://api.github.com/repos/pioneers/PieCentral/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pioneers/PieCentral/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pioneers/PieCentral/git/refs{/sha}","trees_url":"https://api.github.com/repos/pioneers/PieCentral/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pioneers/PieCentral/statuses/{sha}","languages_url":"https://api.github.com/repos/pioneers/PieCentral/languages","stargazers_url":"https://api.github.com/repos/pioneers/PieCentral/stargazers","contributors_url":"https://api.github.com/repos/pioneers/PieCentral/contributors","subscribers_url":"https://api.github.com/repos/pioneers/PieCentral/subscribers","subscription_url":"https://api.github.com/repos/pioneers/PieCentral/subscription","commits_url":"https://api.github.com/repos/pioneers/PieCentral/commits{/sha}","git_commits_url":"https://api.github.com/repos/pioneers/PieCentral/git/commits{/sha}","comments_url":"https://api.github.com/repos/pioneers/PieCentral/comments{/number}","issue_comment_url":"https://api.github.com/repos/pioneers/PieCentral/issues/comments{/number}","contents_url":"https://api.github.com/repos/pioneers/PieCentral/contents/{+path}","compare_url":"https://api.github.com/repos/pioneers/PieCentral/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pioneers/PieCentral/merges","archive_url":"https://api.github.com/repos/pioneers/PieCentral/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pioneers/PieCentral/downloads","issues_url":"https://api.github.com/repos/pioneers/PieCentral/issues{/number}","pulls_url":"https://api.github.com/repos/pioneers/PieCentral/pulls{/number}","milestones_url":"https://api.github.com/repos/pioneers/PieCentral/milestones{/number}","notifications_url":"https://api.github.com/repos/pioneers/PieCentral/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pioneers/PieCentral/labels{/name}","releases_url":"https://api.github.com/repos/pioneers/PieCentral/releases{/id}","deployments_url":"https://api.github.com/repos/pioneers/PieCentral/deployments","created_at":"2016-09-01T03:00:13Z","updated_at":"2017-02-16T06:53:46Z","pushed_at":"2017-02-25T06:09:38Z","git_url":"git://github.com/pioneers/PieCentral.git","ssh_url":"git@github.com:pioneers/PieCentral.git","clone_url":"https://github.com/pioneers/PieCentral.git","svn_url":"https://github.com/pioneers/PieCentral","homepage":null,"size":4414,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":32,"forks":3,"open_issues":32,"watchers":3,"default_branch":"master"}},"base":{"label":"pioneers:master","ref":"master","sha":"02c05501319318879a9fe268bc3c307c3f521c06","user":{"login":"pioneers","id":5135404,"avatar_url":"https://avatars.githubusercontent.com/u/5135404?v=3","gravatar_id":"","url":"https://api.github.com/users/pioneers","html_url":"https://github.com/pioneers","followers_url":"https://api.github.com/users/pioneers/followers","following_url":"https://api.github.com/users/pioneers/following{/other_user}","gists_url":"https://api.github.com/users/pioneers/gists{/gist_id}","starred_url":"https://api.github.com/users/pioneers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pioneers/subscriptions","organizations_url":"https://api.github.com/users/pioneers/orgs","repos_url":"https://api.github.com/users/pioneers/repos","events_url":"https://api.github.com/users/pioneers/events{/privacy}","received_events_url":"https://api.github.com/users/pioneers/received_events","type":"Organization","site_admin":false},"repo":{"id":67092938,"name":"PieCentral","full_name":"pioneers/PieCentral","owner":{"login":"pioneers","id":5135404,"avatar_url":"https://avatars.githubusercontent.com/u/5135404?v=3","gravatar_id":"","url":"https://api.github.com/users/pioneers","html_url":"https://github.com/pioneers","followers_url":"https://api.github.com/users/pioneers/followers","following_url":"https://api.github.com/users/pioneers/following{/other_user}","gists_url":"https://api.github.com/users/pioneers/gists{/gist_id}","starred_url":"https://api.github.com/users/pioneers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pioneers/subscriptions","organizations_url":"https://api.github.com/users/pioneers/orgs","repos_url":"https://api.github.com/users/pioneers/repos","events_url":"https://api.github.com/users/pioneers/events{/privacy}","received_events_url":"https://api.github.com/users/pioneers/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pioneers/PieCentral","description":null,"fork":false,"url":"https://api.github.com/repos/pioneers/PieCentral","forks_url":"https://api.github.com/repos/pioneers/PieCentral/forks","keys_url":"https://api.github.com/repos/pioneers/PieCentral/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pioneers/PieCentral/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pioneers/PieCentral/teams","hooks_url":"https://api.github.com/repos/pioneers/PieCentral/hooks","issue_events_url":"https://api.github.com/repos/pioneers/PieCentral/issues/events{/number}","events_url":"https://api.github.com/repos/pioneers/PieCentral/events","assignees_url":"https://api.github.com/repos/pioneers/PieCentral/assignees{/user}","branches_url":"https://api.github.com/repos/pioneers/PieCentral/branches{/branch}","tags_url":"https://api.github.com/repos/pioneers/PieCentral/tags","blobs_url":"https://api.github.com/repos/pioneers/PieCentral/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pioneers/PieCentral/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pioneers/PieCentral/git/refs{/sha}","trees_url":"https://api.github.com/repos/pioneers/PieCentral/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pioneers/PieCentral/statuses/{sha}","languages_url":"https://api.github.com/repos/pioneers/PieCentral/languages","stargazers_url":"https://api.github.com/repos/pioneers/PieCentral/stargazers","contributors_url":"https://api.github.com/repos/pioneers/PieCentral/contributors","subscribers_url":"https://api.github.com/repos/pioneers/PieCentral/subscribers","subscription_url":"https://api.github.com/repos/pioneers/PieCentral/subscription","commits_url":"https://api.github.com/repos/pioneers/PieCentral/commits{/sha}","git_commits_url":"https://api.github.com/repos/pioneers/PieCentral/git/commits{/sha}","comments_url":"https://api.github.com/repos/pioneers/PieCentral/comments{/number}","issue_comment_url":"https://api.github.com/repos/pioneers/PieCentral/issues/comments{/number}","contents_url":"https://api.github.com/repos/pioneers/PieCentral/contents/{+path}","compare_url":"https://api.github.com/repos/pioneers/PieCentral/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pioneers/PieCentral/merges","archive_url":"https://api.github.com/repos/pioneers/PieCentral/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pioneers/PieCentral/downloads","issues_url":"https://api.github.com/repos/pioneers/PieCentral/issues{/number}","pulls_url":"https://api.github.com/repos/pioneers/PieCentral/pulls{/number}","milestones_url":"https://api.github.com/repos/pioneers/PieCentral/milestones{/number}","notifications_url":"https://api.github.com/repos/pioneers/PieCentral/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pioneers/PieCentral/labels{/name}","releases_url":"https://api.github.com/repos/pioneers/PieCentral/releases{/id}","deployments_url":"https://api.github.com/repos/pioneers/PieCentral/deployments","created_at":"2016-09-01T03:00:13Z","updated_at":"2017-02-16T06:53:46Z","pushed_at":"2017-02-25T06:09:38Z","git_url":"git://github.com/pioneers/PieCentral.git","ssh_url":"git@github.com:pioneers/PieCentral.git","clone_url":"https://github.com/pioneers/PieCentral.git","svn_url":"https://github.com/pioneers/PieCentral","homepage":null,"size":4414,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":32,"forks":3,"open_issues":32,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pioneers/PieCentral/pulls/150"},"html":{"href":"https://github.com/pioneers/PieCentral/pull/150"},"issue":{"href":"https://api.github.com/repos/pioneers/PieCentral/issues/150"},"comments":{"href":"https://api.github.com/repos/pioneers/PieCentral/issues/150/comments"},"review_comments":{"href":"https://api.github.com/repos/pioneers/PieCentral/pulls/150/comments"},"review_comment":{"href":"https://api.github.com/repos/pioneers/PieCentral/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pioneers/PieCentral/pulls/150/commits"},"statuses":{"href":"https://api.github.com/repos/pioneers/PieCentral/statuses/5b55ce94c04af872d3ee138c99ebd8ea4e577e5b"}}}}
{"actor":{"display_login":"brandonxxlee"}}