{"action":"created","comment":{"url":"https://api.github.com/repos/stb-tester/stb-tester/pulls/comments/66957131","id":66957131,"diff_hunk":"@@ -1423,6 +1424,28 @@ def _mainloop():\n               \"is still alive!\" if thread.isAlive() else \"ok\"))\n \n \n+class _Annotation(namedtuple(\"_Annotation\", \"pts region label colour\")):\n+    MATCHED = (32, 0, 255)  # Red\n+    NO_MATCH = (32, 255, 255)  # Yello","path":"_stbt/core.py","position":164,"original_position":25,"commit_id":"1891190c6a1e04c14e3587b854dd60a5ee128aa0","original_commit_id":"161215b3d838efaa67c595085afb135653841301","user":{"login":"drothlis","id":12424,"avatar_url":"https://avatars.githubusercontent.com/u/12424?v=3","gravatar_id":"","url":"https://api.github.com/users/drothlis","html_url":"https://github.com/drothlis","followers_url":"https://api.github.com/users/drothlis/followers","following_url":"https://api.github.com/users/drothlis/following{/other_user}","gists_url":"https://api.github.com/users/drothlis/gists{/gist_id}","starred_url":"https://api.github.com/users/drothlis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drothlis/subscriptions","organizations_url":"https://api.github.com/users/drothlis/orgs","repos_url":"https://api.github.com/users/drothlis/repos","events_url":"https://api.github.com/users/drothlis/events{/privacy}","received_events_url":"https://api.github.com/users/drothlis/received_events","type":"User","site_admin":false},"body":"...w","created_at":"2016-06-14T12:09:56Z","updated_at":"2016-06-14T12:09:56Z","html_url":"https://github.com/stb-tester/stb-tester/pull/377#discussion_r66957131","pull_request_url":"https://api.github.com/repos/stb-tester/stb-tester/pulls/377","_links":{"self":{"href":"https://api.github.com/repos/stb-tester/stb-tester/pulls/comments/66957131"},"html":{"href":"https://github.com/stb-tester/stb-tester/pull/377#discussion_r66957131"},"pull_request":{"href":"https://api.github.com/repos/stb-tester/stb-tester/pulls/377"}}},"pull_request":{"url":"https://api.github.com/repos/stb-tester/stb-tester/pulls/377","id":73661380,"html_url":"https://github.com/stb-tester/stb-tester/pull/377","diff_url":"https://github.com/stb-tester/stb-tester/pull/377.diff","patch_url":"https://github.com/stb-tester/stb-tester/pull/377.patch","issue_url":"https://api.github.com/repos/stb-tester/stb-tester/issues/377","number":377,"state":"open","locked":false,"title":"MotionResult: Add region member and visualisation","user":{"login":"wmanley","id":494659,"avatar_url":"https://avatars.githubusercontent.com/u/494659?v=3","gravatar_id":"","url":"https://api.github.com/users/wmanley","html_url":"https://github.com/wmanley","followers_url":"https://api.github.com/users/wmanley/followers","following_url":"https://api.github.com/users/wmanley/following{/other_user}","gists_url":"https://api.github.com/users/wmanley/gists{/gist_id}","starred_url":"https://api.github.com/users/wmanley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wmanley/subscriptions","organizations_url":"https://api.github.com/users/wmanley/orgs","repos_url":"https://api.github.com/users/wmanley/repos","events_url":"https://api.github.com/users/wmanley/events{/privacy}","received_events_url":"https://api.github.com/users/wmanley/received_events","type":"User","site_admin":false},"body":"These commits add a `region` attribute to `MotionResult` to indicate the region within which motion occurred. They also change the visualisation to a rectangle around the region that shows motion.  See:\r\n\r\n![video 1](https://cloud.githubusercontent.com/assets/494659/16036209/ca1e7c46-3212-11e6-9784-8ee61654104d.gif)\r\n\r\n**TODO:**\r\n\r\n- [ ] Merge #375\r\n- [x] Squash\r\n- [x] Write test for `MotionResult.region`\r\n- [x] Write test for visualisation","created_at":"2016-06-13T23:54:09Z","updated_at":"2016-06-14T12:09:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c7c1a2bf9ad88de802c49ae535bca1af45c1b85b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/stb-tester/stb-tester/pulls/377/commits","review_comments_url":"https://api.github.com/repos/stb-tester/stb-tester/pulls/377/comments","review_comment_url":"https://api.github.com/repos/stb-tester/stb-tester/pulls/comments{/number}","comments_url":"https://api.github.com/repos/stb-tester/stb-tester/issues/377/comments","statuses_url":"https://api.github.com/repos/stb-tester/stb-tester/statuses/1891190c6a1e04c14e3587b854dd60a5ee128aa0","head":{"label":"wmanley:motionresult-region","ref":"motionresult-region","sha":"1891190c6a1e04c14e3587b854dd60a5ee128aa0","user":{"login":"wmanley","id":494659,"avatar_url":"https://avatars.githubusercontent.com/u/494659?v=3","gravatar_id":"","url":"https://api.github.com/users/wmanley","html_url":"https://github.com/wmanley","followers_url":"https://api.github.com/users/wmanley/followers","following_url":"https://api.github.com/users/wmanley/following{/other_user}","gists_url":"https://api.github.com/users/wmanley/gists{/gist_id}","starred_url":"https://api.github.com/users/wmanley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wmanley/subscriptions","organizations_url":"https://api.github.com/users/wmanley/orgs","repos_url":"https://api.github.com/users/wmanley/repos","events_url":"https://api.github.com/users/wmanley/events{/privacy}","received_events_url":"https://api.github.com/users/wmanley/received_events","type":"User","site_admin":false},"repo":{"id":4783326,"name":"stb-tester","full_name":"wmanley/stb-tester","owner":{"login":"wmanley","id":494659,"avatar_url":"https://avatars.githubusercontent.com/u/494659?v=3","gravatar_id":"","url":"https://api.github.com/users/wmanley","html_url":"https://github.com/wmanley","followers_url":"https://api.github.com/users/wmanley/followers","following_url":"https://api.github.com/users/wmanley/following{/other_user}","gists_url":"https://api.github.com/users/wmanley/gists{/gist_id}","starred_url":"https://api.github.com/users/wmanley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wmanley/subscriptions","organizations_url":"https://api.github.com/users/wmanley/orgs","repos_url":"https://api.github.com/users/wmanley/repos","events_url":"https://api.github.com/users/wmanley/events{/privacy}","received_events_url":"https://api.github.com/users/wmanley/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/wmanley/stb-tester","description":"A record + playback testing system for set-top boxes","fork":true,"url":"https://api.github.com/repos/wmanley/stb-tester","forks_url":"https://api.github.com/repos/wmanley/stb-tester/forks","keys_url":"https://api.github.com/repos/wmanley/stb-tester/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wmanley/stb-tester/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wmanley/stb-tester/teams","hooks_url":"https://api.github.com/repos/wmanley/stb-tester/hooks","issue_events_url":"https://api.github.com/repos/wmanley/stb-tester/issues/events{/number}","events_url":"https://api.github.com/repos/wmanley/stb-tester/events","assignees_url":"https://api.github.com/repos/wmanley/stb-tester/assignees{/user}","branches_url":"https://api.github.com/repos/wmanley/stb-tester/branches{/branch}","tags_url":"https://api.github.com/repos/wmanley/stb-tester/tags","blobs_url":"https://api.github.com/repos/wmanley/stb-tester/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wmanley/stb-tester/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wmanley/stb-tester/git/refs{/sha}","trees_url":"https://api.github.com/repos/wmanley/stb-tester/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wmanley/stb-tester/statuses/{sha}","languages_url":"https://api.github.com/repos/wmanley/stb-tester/languages","stargazers_url":"https://api.github.com/repos/wmanley/stb-tester/stargazers","contributors_url":"https://api.github.com/repos/wmanley/stb-tester/contributors","subscribers_url":"https://api.github.com/repos/wmanley/stb-tester/subscribers","subscription_url":"https://api.github.com/repos/wmanley/stb-tester/subscription","commits_url":"https://api.github.com/repos/wmanley/stb-tester/commits{/sha}","git_commits_url":"https://api.github.com/repos/wmanley/stb-tester/git/commits{/sha}","comments_url":"https://api.github.com/repos/wmanley/stb-tester/comments{/number}","issue_comment_url":"https://api.github.com/repos/wmanley/stb-tester/issues/comments{/number}","contents_url":"https://api.github.com/repos/wmanley/stb-tester/contents/{+path}","compare_url":"https://api.github.com/repos/wmanley/stb-tester/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wmanley/stb-tester/merges","archive_url":"https://api.github.com/repos/wmanley/stb-tester/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wmanley/stb-tester/downloads","issues_url":"https://api.github.com/repos/wmanley/stb-tester/issues{/number}","pulls_url":"https://api.github.com/repos/wmanley/stb-tester/pulls{/number}","milestones_url":"https://api.github.com/repos/wmanley/stb-tester/milestones{/number}","notifications_url":"https://api.github.com/repos/wmanley/stb-tester/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wmanley/stb-tester/labels{/name}","releases_url":"https://api.github.com/repos/wmanley/stb-tester/releases{/id}","deployments_url":"https://api.github.com/repos/wmanley/stb-tester/deployments","created_at":"2012-06-25T15:17:46Z","updated_at":"2015-02-24T16:36:05Z","pushed_at":"2016-06-14T11:53:50Z","git_url":"git://github.com/wmanley/stb-tester.git","ssh_url":"git@github.com:wmanley/stb-tester.git","clone_url":"https://github.com/wmanley/stb-tester.git","svn_url":"https://github.com/wmanley/stb-tester","homepage":null,"size":23653,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":2,"default_branch":"master"}},"base":{"label":"stb-tester:master","ref":"master","sha":"34b3c853dd38c04f85c1fe8a57c561ee8c461937","user":{"login":"stb-tester","id":5528358,"avatar_url":"https://avatars.githubusercontent.com/u/5528358?v=3","gravatar_id":"","url":"https://api.github.com/users/stb-tester","html_url":"https://github.com/stb-tester","followers_url":"https://api.github.com/users/stb-tester/followers","following_url":"https://api.github.com/users/stb-tester/following{/other_user}","gists_url":"https://api.github.com/users/stb-tester/gists{/gist_id}","starred_url":"https://api.github.com/users/stb-tester/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stb-tester/subscriptions","organizations_url":"https://api.github.com/users/stb-tester/orgs","repos_url":"https://api.github.com/users/stb-tester/repos","events_url":"https://api.github.com/users/stb-tester/events{/privacy}","received_events_url":"https://api.github.com/users/stb-tester/received_events","type":"Organization","site_admin":false},"repo":{"id":4739298,"name":"stb-tester","full_name":"stb-tester/stb-tester","owner":{"login":"stb-tester","id":5528358,"avatar_url":"https://avatars.githubusercontent.com/u/5528358?v=3","gravatar_id":"","url":"https://api.github.com/users/stb-tester","html_url":"https://github.com/stb-tester","followers_url":"https://api.github.com/users/stb-tester/followers","following_url":"https://api.github.com/users/stb-tester/following{/other_user}","gists_url":"https://api.github.com/users/stb-tester/gists{/gist_id}","starred_url":"https://api.github.com/users/stb-tester/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stb-tester/subscriptions","organizations_url":"https://api.github.com/users/stb-tester/orgs","repos_url":"https://api.github.com/users/stb-tester/repos","events_url":"https://api.github.com/users/stb-tester/events{/privacy}","received_events_url":"https://api.github.com/users/stb-tester/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/stb-tester/stb-tester","description":"Automated Testing for Set-Top Boxes and Smart TVs","fork":false,"url":"https://api.github.com/repos/stb-tester/stb-tester","forks_url":"https://api.github.com/repos/stb-tester/stb-tester/forks","keys_url":"https://api.github.com/repos/stb-tester/stb-tester/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stb-tester/stb-tester/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stb-tester/stb-tester/teams","hooks_url":"https://api.github.com/repos/stb-tester/stb-tester/hooks","issue_events_url":"https://api.github.com/repos/stb-tester/stb-tester/issues/events{/number}","events_url":"https://api.github.com/repos/stb-tester/stb-tester/events","assignees_url":"https://api.github.com/repos/stb-tester/stb-tester/assignees{/user}","branches_url":"https://api.github.com/repos/stb-tester/stb-tester/branches{/branch}","tags_url":"https://api.github.com/repos/stb-tester/stb-tester/tags","blobs_url":"https://api.github.com/repos/stb-tester/stb-tester/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stb-tester/stb-tester/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stb-tester/stb-tester/git/refs{/sha}","trees_url":"https://api.github.com/repos/stb-tester/stb-tester/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stb-tester/stb-tester/statuses/{sha}","languages_url":"https://api.github.com/repos/stb-tester/stb-tester/languages","stargazers_url":"https://api.github.com/repos/stb-tester/stb-tester/stargazers","contributors_url":"https://api.github.com/repos/stb-tester/stb-tester/contributors","subscribers_url":"https://api.github.com/repos/stb-tester/stb-tester/subscribers","subscription_url":"https://api.github.com/repos/stb-tester/stb-tester/subscription","commits_url":"https://api.github.com/repos/stb-tester/stb-tester/commits{/sha}","git_commits_url":"https://api.github.com/repos/stb-tester/stb-tester/git/commits{/sha}","comments_url":"https://api.github.com/repos/stb-tester/stb-tester/comments{/number}","issue_comment_url":"https://api.github.com/repos/stb-tester/stb-tester/issues/comments{/number}","contents_url":"https://api.github.com/repos/stb-tester/stb-tester/contents/{+path}","compare_url":"https://api.github.com/repos/stb-tester/stb-tester/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stb-tester/stb-tester/merges","archive_url":"https://api.github.com/repos/stb-tester/stb-tester/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stb-tester/stb-tester/downloads","issues_url":"https://api.github.com/repos/stb-tester/stb-tester/issues{/number}","pulls_url":"https://api.github.com/repos/stb-tester/stb-tester/pulls{/number}","milestones_url":"https://api.github.com/repos/stb-tester/stb-tester/milestones{/number}","notifications_url":"https://api.github.com/repos/stb-tester/stb-tester/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stb-tester/stb-tester/labels{/name}","releases_url":"https://api.github.com/repos/stb-tester/stb-tester/releases{/id}","deployments_url":"https://api.github.com/repos/stb-tester/stb-tester/deployments","created_at":"2012-06-21T13:11:28Z","updated_at":"2016-06-08T06:59:45Z","pushed_at":"2016-06-14T11:53:51Z","git_url":"git://github.com/stb-tester/stb-tester.git","ssh_url":"git@github.com:stb-tester/stb-tester.git","clone_url":"https://github.com/stb-tester/stb-tester.git","svn_url":"https://github.com/stb-tester/stb-tester","homepage":"https://stb-tester.com","size":24695,"stargazers_count":60,"watchers_count":60,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":51,"mirror_url":null,"open_issues_count":25,"forks":51,"open_issues":25,"watchers":60,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/stb-tester/stb-tester/pulls/377"},"html":{"href":"https://github.com/stb-tester/stb-tester/pull/377"},"issue":{"href":"https://api.github.com/repos/stb-tester/stb-tester/issues/377"},"comments":{"href":"https://api.github.com/repos/stb-tester/stb-tester/issues/377/comments"},"review_comments":{"href":"https://api.github.com/repos/stb-tester/stb-tester/pulls/377/comments"},"review_comment":{"href":"https://api.github.com/repos/stb-tester/stb-tester/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/stb-tester/stb-tester/pulls/377/commits"},"statuses":{"href":"https://api.github.com/repos/stb-tester/stb-tester/statuses/1891190c6a1e04c14e3587b854dd60a5ee128aa0"}}}}
{"actor":{"display_login":"drothlis"}}