{"action":"opened","number":7,"pull_request":{"url":"https://api.github.com/repos/Robert-JunWang/Pelee/pulls/7","id":184572982,"html_url":"https://github.com/Robert-JunWang/Pelee/pull/7","diff_url":"https://github.com/Robert-JunWang/Pelee/pull/7.diff","patch_url":"https://github.com/Robert-JunWang/Pelee/pull/7.patch","issue_url":"https://api.github.com/repos/Robert-JunWang/Pelee/issues/7","number":7,"state":"open","locked":false,"title":"Define xrange for Python 3","user":{"login":"cclauss","id":3709715,"avatar_url":"https://avatars3.githubusercontent.com/u/3709715?v=4","gravatar_id":"","url":"https://api.github.com/users/cclauss","html_url":"https://github.com/cclauss","followers_url":"https://api.github.com/users/cclauss/followers","following_url":"https://api.github.com/users/cclauss/following{/other_user}","gists_url":"https://api.github.com/users/cclauss/gists{/gist_id}","starred_url":"https://api.github.com/users/cclauss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cclauss/subscriptions","organizations_url":"https://api.github.com/users/cclauss/orgs","repos_url":"https://api.github.com/users/cclauss/repos","events_url":"https://api.github.com/users/cclauss/events{/privacy}","received_events_url":"https://api.github.com/users/cclauss/received_events","type":"User","site_admin":false},"body":"__xrange()__ was removed in Python 3 in favor of __range()__.  This PR fixes the following:\r\n\r\nflake8 testing of https://github.com/Robert-JunWang/Pelee on Python 3.6.3\r\n\r\n$ __flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics__\r\n```\r\n./eval_voc.py:304:14: F821 undefined name 'xrange'\r\nfor ratio in xrange(min_ratio, max_ratio + 1, step):\r\n             ^\r\n./layer_utils.py:132:16: F821 undefined name 'xrange'\r\n      for i in xrange(0, num):\r\n               ^\r\n./layer_utils.py:135:16: F821 undefined name 'xrange'\r\n      for i in xrange(0, num):\r\n               ^\r\n./train_coco.py:308:14: F821 undefined name 'xrange'\r\nfor ratio in xrange(min_ratio, max_ratio + 1, step):\r\n             ^\r\n./train_voc.py:285:14: F821 undefined name 'xrange'\r\nfor ratio in xrange(min_ratio, max_ratio + 1, step):\r\n             ^\r\n5     F821 undefined name 'xrange'\r\n5\r\n```","created_at":"2018-04-27T09:43:05Z","updated_at":"2018-04-27T09:43:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Robert-JunWang/Pelee/pulls/7/commits","review_comments_url":"https://api.github.com/repos/Robert-JunWang/Pelee/pulls/7/comments","review_comment_url":"https://api.github.com/repos/Robert-JunWang/Pelee/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Robert-JunWang/Pelee/issues/7/comments","statuses_url":"https://api.github.com/repos/Robert-JunWang/Pelee/statuses/bf08a1151aeddbbc0ccb57ee684cf0629c7a7304","head":{"label":"cclauss:patch-1","ref":"patch-1","sha":"bf08a1151aeddbbc0ccb57ee684cf0629c7a7304","user":{"login":"cclauss","id":3709715,"avatar_url":"https://avatars3.githubusercontent.com/u/3709715?v=4","gravatar_id":"","url":"https://api.github.com/users/cclauss","html_url":"https://github.com/cclauss","followers_url":"https://api.github.com/users/cclauss/followers","following_url":"https://api.github.com/users/cclauss/following{/other_user}","gists_url":"https://api.github.com/users/cclauss/gists{/gist_id}","starred_url":"https://api.github.com/users/cclauss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cclauss/subscriptions","organizations_url":"https://api.github.com/users/cclauss/orgs","repos_url":"https://api.github.com/users/cclauss/repos","events_url":"https://api.github.com/users/cclauss/events{/privacy}","received_events_url":"https://api.github.com/users/cclauss/received_events","type":"User","site_admin":false},"repo":{"id":131145176,"name":"Pelee","full_name":"cclauss/Pelee","owner":{"login":"cclauss","id":3709715,"avatar_url":"https://avatars3.githubusercontent.com/u/3709715?v=4","gravatar_id":"","url":"https://api.github.com/users/cclauss","html_url":"https://github.com/cclauss","followers_url":"https://api.github.com/users/cclauss/followers","following_url":"https://api.github.com/users/cclauss/following{/other_user}","gists_url":"https://api.github.com/users/cclauss/gists{/gist_id}","starred_url":"https://api.github.com/users/cclauss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cclauss/subscriptions","organizations_url":"https://api.github.com/users/cclauss/orgs","repos_url":"https://api.github.com/users/cclauss/repos","events_url":"https://api.github.com/users/cclauss/events{/privacy}","received_events_url":"https://api.github.com/users/cclauss/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cclauss/Pelee","description":"Pelee: A Real-Time Object Detection System on Mobile Devices","fork":true,"url":"https://api.github.com/repos/cclauss/Pelee","forks_url":"https://api.github.com/repos/cclauss/Pelee/forks","keys_url":"https://api.github.com/repos/cclauss/Pelee/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cclauss/Pelee/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cclauss/Pelee/teams","hooks_url":"https://api.github.com/repos/cclauss/Pelee/hooks","issue_events_url":"https://api.github.com/repos/cclauss/Pelee/issues/events{/number}","events_url":"https://api.github.com/repos/cclauss/Pelee/events","assignees_url":"https://api.github.com/repos/cclauss/Pelee/assignees{/user}","branches_url":"https://api.github.com/repos/cclauss/Pelee/branches{/branch}","tags_url":"https://api.github.com/repos/cclauss/Pelee/tags","blobs_url":"https://api.github.com/repos/cclauss/Pelee/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cclauss/Pelee/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cclauss/Pelee/git/refs{/sha}","trees_url":"https://api.github.com/repos/cclauss/Pelee/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cclauss/Pelee/statuses/{sha}","languages_url":"https://api.github.com/repos/cclauss/Pelee/languages","stargazers_url":"https://api.github.com/repos/cclauss/Pelee/stargazers","contributors_url":"https://api.github.com/repos/cclauss/Pelee/contributors","subscribers_url":"https://api.github.com/repos/cclauss/Pelee/subscribers","subscription_url":"https://api.github.com/repos/cclauss/Pelee/subscription","commits_url":"https://api.github.com/repos/cclauss/Pelee/commits{/sha}","git_commits_url":"https://api.github.com/repos/cclauss/Pelee/git/commits{/sha}","comments_url":"https://api.github.com/repos/cclauss/Pelee/comments{/number}","issue_comment_url":"https://api.github.com/repos/cclauss/Pelee/issues/comments{/number}","contents_url":"https://api.github.com/repos/cclauss/Pelee/contents/{+path}","compare_url":"https://api.github.com/repos/cclauss/Pelee/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cclauss/Pelee/merges","archive_url":"https://api.github.com/repos/cclauss/Pelee/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cclauss/Pelee/downloads","issues_url":"https://api.github.com/repos/cclauss/Pelee/issues{/number}","pulls_url":"https://api.github.com/repos/cclauss/Pelee/pulls{/number}","milestones_url":"https://api.github.com/repos/cclauss/Pelee/milestones{/number}","notifications_url":"https://api.github.com/repos/cclauss/Pelee/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cclauss/Pelee/labels{/name}","releases_url":"https://api.github.com/repos/cclauss/Pelee/releases{/id}","deployments_url":"https://api.github.com/repos/cclauss/Pelee/deployments","created_at":"2018-04-26T11:22:39Z","updated_at":"2018-04-26T11:22:41Z","pushed_at":"2018-04-27T09:35:25Z","git_url":"git://github.com/cclauss/Pelee.git","ssh_url":"git@github.com:cclauss/Pelee.git","clone_url":"https://github.com/cclauss/Pelee.git","svn_url":"https://github.com/cclauss/Pelee","homepage":"","size":60,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Robert-JunWang:master","ref":"master","sha":"a916baff1130987f7e0411d44901fc879daed3de","user":{"login":"Robert-JunWang","id":7189677,"avatar_url":"https://avatars3.githubusercontent.com/u/7189677?v=4","gravatar_id":"","url":"https://api.github.com/users/Robert-JunWang","html_url":"https://github.com/Robert-JunWang","followers_url":"https://api.github.com/users/Robert-JunWang/followers","following_url":"https://api.github.com/users/Robert-JunWang/following{/other_user}","gists_url":"https://api.github.com/users/Robert-JunWang/gists{/gist_id}","starred_url":"https://api.github.com/users/Robert-JunWang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Robert-JunWang/subscriptions","organizations_url":"https://api.github.com/users/Robert-JunWang/orgs","repos_url":"https://api.github.com/users/Robert-JunWang/repos","events_url":"https://api.github.com/users/Robert-JunWang/events{/privacy}","received_events_url":"https://api.github.com/users/Robert-JunWang/received_events","type":"User","site_admin":false},"repo":{"id":117862554,"name":"Pelee","full_name":"Robert-JunWang/Pelee","owner":{"login":"Robert-JunWang","id":7189677,"avatar_url":"https://avatars3.githubusercontent.com/u/7189677?v=4","gravatar_id":"","url":"https://api.github.com/users/Robert-JunWang","html_url":"https://github.com/Robert-JunWang","followers_url":"https://api.github.com/users/Robert-JunWang/followers","following_url":"https://api.github.com/users/Robert-JunWang/following{/other_user}","gists_url":"https://api.github.com/users/Robert-JunWang/gists{/gist_id}","starred_url":"https://api.github.com/users/Robert-JunWang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Robert-JunWang/subscriptions","organizations_url":"https://api.github.com/users/Robert-JunWang/orgs","repos_url":"https://api.github.com/users/Robert-JunWang/repos","events_url":"https://api.github.com/users/Robert-JunWang/events{/privacy}","received_events_url":"https://api.github.com/users/Robert-JunWang/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Robert-JunWang/Pelee","description":"Pelee: A Real-Time Object Detection System on Mobile Devices","fork":false,"url":"https://api.github.com/repos/Robert-JunWang/Pelee","forks_url":"https://api.github.com/repos/Robert-JunWang/Pelee/forks","keys_url":"https://api.github.com/repos/Robert-JunWang/Pelee/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Robert-JunWang/Pelee/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Robert-JunWang/Pelee/teams","hooks_url":"https://api.github.com/repos/Robert-JunWang/Pelee/hooks","issue_events_url":"https://api.github.com/repos/Robert-JunWang/Pelee/issues/events{/number}","events_url":"https://api.github.com/repos/Robert-JunWang/Pelee/events","assignees_url":"https://api.github.com/repos/Robert-JunWang/Pelee/assignees{/user}","branches_url":"https://api.github.com/repos/Robert-JunWang/Pelee/branches{/branch}","tags_url":"https://api.github.com/repos/Robert-JunWang/Pelee/tags","blobs_url":"https://api.github.com/repos/Robert-JunWang/Pelee/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Robert-JunWang/Pelee/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Robert-JunWang/Pelee/git/refs{/sha}","trees_url":"https://api.github.com/repos/Robert-JunWang/Pelee/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Robert-JunWang/Pelee/statuses/{sha}","languages_url":"https://api.github.com/repos/Robert-JunWang/Pelee/languages","stargazers_url":"https://api.github.com/repos/Robert-JunWang/Pelee/stargazers","contributors_url":"https://api.github.com/repos/Robert-JunWang/Pelee/contributors","subscribers_url":"https://api.github.com/repos/Robert-JunWang/Pelee/subscribers","subscription_url":"https://api.github.com/repos/Robert-JunWang/Pelee/subscription","commits_url":"https://api.github.com/repos/Robert-JunWang/Pelee/commits{/sha}","git_commits_url":"https://api.github.com/repos/Robert-JunWang/Pelee/git/commits{/sha}","comments_url":"https://api.github.com/repos/Robert-JunWang/Pelee/comments{/number}","issue_comment_url":"https://api.github.com/repos/Robert-JunWang/Pelee/issues/comments{/number}","contents_url":"https://api.github.com/repos/Robert-JunWang/Pelee/contents/{+path}","compare_url":"https://api.github.com/repos/Robert-JunWang/Pelee/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Robert-JunWang/Pelee/merges","archive_url":"https://api.github.com/repos/Robert-JunWang/Pelee/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Robert-JunWang/Pelee/downloads","issues_url":"https://api.github.com/repos/Robert-JunWang/Pelee/issues{/number}","pulls_url":"https://api.github.com/repos/Robert-JunWang/Pelee/pulls{/number}","milestones_url":"https://api.github.com/repos/Robert-JunWang/Pelee/milestones{/number}","notifications_url":"https://api.github.com/repos/Robert-JunWang/Pelee/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Robert-JunWang/Pelee/labels{/name}","releases_url":"https://api.github.com/repos/Robert-JunWang/Pelee/releases{/id}","deployments_url":"https://api.github.com/repos/Robert-JunWang/Pelee/deployments","created_at":"2018-01-17T16:31:34Z","updated_at":"2018-04-27T08:41:48Z","pushed_at":"2018-04-27T05:59:42Z","git_url":"git://github.com/Robert-JunWang/Pelee.git","ssh_url":"git@github.com:Robert-JunWang/Pelee.git","clone_url":"https://github.com/Robert-JunWang/Pelee.git","svn_url":"https://github.com/Robert-JunWang/Pelee","homepage":"","size":60,"stargazers_count":128,"watchers_count":128,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":34,"mirror_url":null,"archived":false,"open_issues_count":6,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":34,"open_issues":6,"watchers":128,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Robert-JunWang/Pelee/pulls/7"},"html":{"href":"https://github.com/Robert-JunWang/Pelee/pull/7"},"issue":{"href":"https://api.github.com/repos/Robert-JunWang/Pelee/issues/7"},"comments":{"href":"https://api.github.com/repos/Robert-JunWang/Pelee/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/Robert-JunWang/Pelee/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/Robert-JunWang/Pelee/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Robert-JunWang/Pelee/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/Robert-JunWang/Pelee/statuses/bf08a1151aeddbbc0ccb57ee684cf0629c7a7304"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":4,"additions":18,"deletions":0,"changed_files":4}}
{"actor":{"display_login":"cclauss"}}