{"action":"created","comment":{"url":"https://api.github.com/repos/openai/gym/pulls/comments/74709533","id":74709533,"diff_hunk":"@@ -0,0 +1,79 @@\n+import gym\n+\n+__all__ = ['Skip', 'Skip1', 'Skip2', 'Skip3', 'Skip4', 'Skip5', 'Skip6', 'Skip7', 'Skip8', 'Skip9', 'Skip10']\n+\n+class Skip(gym.Wrapper):\n+    \"\"\"\n+        Generic common frame skipping wrapper\n+        Will perform action for `x` additional steps\n+    \"\"\"\n+    def __init__(self, env, repeat_for_x_steps):\n+        super(Skip, self).__init__(env)\n+        self.repeat_count = repeat_for_x_steps\n+        self.record_stepcount = not hasattr(env.unwrapped, 'stepcount')\n+        if self.record_stepcount:\n+            env.unwrapped.stepcount = 0","path":"gym/wrappers/common/frame_skipping.py","position":15,"original_position":15,"commit_id":"e0b42218de881d6c18d4a87e57707bcf5831bff2","original_commit_id":"e0b42218de881d6c18d4a87e57707bcf5831bff2","user":{"login":"ppaquette","id":416547,"avatar_url":"https://avatars.githubusercontent.com/u/416547?v=3","gravatar_id":"","url":"https://api.github.com/users/ppaquette","html_url":"https://github.com/ppaquette","followers_url":"https://api.github.com/users/ppaquette/followers","following_url":"https://api.github.com/users/ppaquette/following{/other_user}","gists_url":"https://api.github.com/users/ppaquette/gists{/gist_id}","starred_url":"https://api.github.com/users/ppaquette/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ppaquette/subscriptions","organizations_url":"https://api.github.com/users/ppaquette/orgs","repos_url":"https://api.github.com/users/ppaquette/repos","events_url":"https://api.github.com/users/ppaquette/events{/privacy}","received_events_url":"https://api.github.com/users/ppaquette/received_events","type":"User","site_admin":false},"body":"To avoid the issue of incorrect stepcount if they are stacked. But that's not really an issue. I'll fix.","created_at":"2016-08-14T22:08:59Z","updated_at":"2016-08-14T22:08:59Z","html_url":"https://github.com/openai/gym/pull/293#discussion_r74709533","pull_request_url":"https://api.github.com/repos/openai/gym/pulls/293","_links":{"self":{"href":"https://api.github.com/repos/openai/gym/pulls/comments/74709533"},"html":{"href":"https://github.com/openai/gym/pull/293#discussion_r74709533"},"pull_request":{"href":"https://api.github.com/repos/openai/gym/pulls/293"}}},"pull_request":{"url":"https://api.github.com/repos/openai/gym/pulls/293","id":81255767,"html_url":"https://github.com/openai/gym/pull/293","diff_url":"https://github.com/openai/gym/pull/293.diff","patch_url":"https://github.com/openai/gym/pull/293.patch","issue_url":"https://api.github.com/repos/openai/gym/issues/293","number":293,"state":"open","locked":false,"title":"Wrapper - Common frame skipping","user":{"login":"ppaquette","id":416547,"avatar_url":"https://avatars.githubusercontent.com/u/416547?v=3","gravatar_id":"","url":"https://api.github.com/users/ppaquette","html_url":"https://github.com/ppaquette","followers_url":"https://api.github.com/users/ppaquette/followers","following_url":"https://api.github.com/users/ppaquette/following{/other_user}","gists_url":"https://api.github.com/users/ppaquette/gists{/gist_id}","starred_url":"https://api.github.com/users/ppaquette/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ppaquette/subscriptions","organizations_url":"https://api.github.com/users/ppaquette/orgs","repos_url":"https://api.github.com/users/ppaquette/repos","events_url":"https://api.github.com/users/ppaquette/events{/privacy}","received_events_url":"https://api.github.com/users/ppaquette/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-08-14T22:02:19Z","updated_at":"2016-08-14T22:08:59Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4342efb0516469b7a6a9bc701b7f63e04f81ffef","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/openai/gym/pulls/293/commits","review_comments_url":"https://api.github.com/repos/openai/gym/pulls/293/comments","review_comment_url":"https://api.github.com/repos/openai/gym/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openai/gym/issues/293/comments","statuses_url":"https://api.github.com/repos/openai/gym/statuses/e0b42218de881d6c18d4a87e57707bcf5831bff2","head":{"label":"ppaquette:ppaquette-frame-skipping-20160814","ref":"ppaquette-frame-skipping-20160814","sha":"e0b42218de881d6c18d4a87e57707bcf5831bff2","user":{"login":"ppaquette","id":416547,"avatar_url":"https://avatars.githubusercontent.com/u/416547?v=3","gravatar_id":"","url":"https://api.github.com/users/ppaquette","html_url":"https://github.com/ppaquette","followers_url":"https://api.github.com/users/ppaquette/followers","following_url":"https://api.github.com/users/ppaquette/following{/other_user}","gists_url":"https://api.github.com/users/ppaquette/gists{/gist_id}","starred_url":"https://api.github.com/users/ppaquette/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ppaquette/subscriptions","organizations_url":"https://api.github.com/users/ppaquette/orgs","repos_url":"https://api.github.com/users/ppaquette/repos","events_url":"https://api.github.com/users/ppaquette/events{/privacy}","received_events_url":"https://api.github.com/users/ppaquette/received_events","type":"User","site_admin":false},"repo":{"id":57882349,"name":"gym","full_name":"ppaquette/gym","owner":{"login":"ppaquette","id":416547,"avatar_url":"https://avatars.githubusercontent.com/u/416547?v=3","gravatar_id":"","url":"https://api.github.com/users/ppaquette","html_url":"https://github.com/ppaquette","followers_url":"https://api.github.com/users/ppaquette/followers","following_url":"https://api.github.com/users/ppaquette/following{/other_user}","gists_url":"https://api.github.com/users/ppaquette/gists{/gist_id}","starred_url":"https://api.github.com/users/ppaquette/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ppaquette/subscriptions","organizations_url":"https://api.github.com/users/ppaquette/orgs","repos_url":"https://api.github.com/users/ppaquette/repos","events_url":"https://api.github.com/users/ppaquette/events{/privacy}","received_events_url":"https://api.github.com/users/ppaquette/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ppaquette/gym","description":"A toolkit for developing and comparing reinforcement learning algorithms.","fork":true,"url":"https://api.github.com/repos/ppaquette/gym","forks_url":"https://api.github.com/repos/ppaquette/gym/forks","keys_url":"https://api.github.com/repos/ppaquette/gym/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ppaquette/gym/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ppaquette/gym/teams","hooks_url":"https://api.github.com/repos/ppaquette/gym/hooks","issue_events_url":"https://api.github.com/repos/ppaquette/gym/issues/events{/number}","events_url":"https://api.github.com/repos/ppaquette/gym/events","assignees_url":"https://api.github.com/repos/ppaquette/gym/assignees{/user}","branches_url":"https://api.github.com/repos/ppaquette/gym/branches{/branch}","tags_url":"https://api.github.com/repos/ppaquette/gym/tags","blobs_url":"https://api.github.com/repos/ppaquette/gym/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ppaquette/gym/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ppaquette/gym/git/refs{/sha}","trees_url":"https://api.github.com/repos/ppaquette/gym/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ppaquette/gym/statuses/{sha}","languages_url":"https://api.github.com/repos/ppaquette/gym/languages","stargazers_url":"https://api.github.com/repos/ppaquette/gym/stargazers","contributors_url":"https://api.github.com/repos/ppaquette/gym/contributors","subscribers_url":"https://api.github.com/repos/ppaquette/gym/subscribers","subscription_url":"https://api.github.com/repos/ppaquette/gym/subscription","commits_url":"https://api.github.com/repos/ppaquette/gym/commits{/sha}","git_commits_url":"https://api.github.com/repos/ppaquette/gym/git/commits{/sha}","comments_url":"https://api.github.com/repos/ppaquette/gym/comments{/number}","issue_comment_url":"https://api.github.com/repos/ppaquette/gym/issues/comments{/number}","contents_url":"https://api.github.com/repos/ppaquette/gym/contents/{+path}","compare_url":"https://api.github.com/repos/ppaquette/gym/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ppaquette/gym/merges","archive_url":"https://api.github.com/repos/ppaquette/gym/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ppaquette/gym/downloads","issues_url":"https://api.github.com/repos/ppaquette/gym/issues{/number}","pulls_url":"https://api.github.com/repos/ppaquette/gym/pulls{/number}","milestones_url":"https://api.github.com/repos/ppaquette/gym/milestones{/number}","notifications_url":"https://api.github.com/repos/ppaquette/gym/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ppaquette/gym/labels{/name}","releases_url":"https://api.github.com/repos/ppaquette/gym/releases{/id}","deployments_url":"https://api.github.com/repos/ppaquette/gym/deployments","created_at":"2016-05-02T10:32:01Z","updated_at":"2016-05-02T10:32:02Z","pushed_at":"2016-08-14T22:00:10Z","git_url":"git://github.com/ppaquette/gym.git","ssh_url":"git@github.com:ppaquette/gym.git","clone_url":"https://github.com/ppaquette/gym.git","svn_url":"https://github.com/ppaquette/gym","homepage":"https://gym.openai.com/","size":833,"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":"openai:master","ref":"master","sha":"cc1483deb1a5a10cb58fda75a0fc44ff84d39ca7","user":{"login":"openai","id":14957082,"avatar_url":"https://avatars.githubusercontent.com/u/14957082?v=3","gravatar_id":"","url":"https://api.github.com/users/openai","html_url":"https://github.com/openai","followers_url":"https://api.github.com/users/openai/followers","following_url":"https://api.github.com/users/openai/following{/other_user}","gists_url":"https://api.github.com/users/openai/gists{/gist_id}","starred_url":"https://api.github.com/users/openai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openai/subscriptions","organizations_url":"https://api.github.com/users/openai/orgs","repos_url":"https://api.github.com/users/openai/repos","events_url":"https://api.github.com/users/openai/events{/privacy}","received_events_url":"https://api.github.com/users/openai/received_events","type":"Organization","site_admin":false},"repo":{"id":57222302,"name":"gym","full_name":"openai/gym","owner":{"login":"openai","id":14957082,"avatar_url":"https://avatars.githubusercontent.com/u/14957082?v=3","gravatar_id":"","url":"https://api.github.com/users/openai","html_url":"https://github.com/openai","followers_url":"https://api.github.com/users/openai/followers","following_url":"https://api.github.com/users/openai/following{/other_user}","gists_url":"https://api.github.com/users/openai/gists{/gist_id}","starred_url":"https://api.github.com/users/openai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openai/subscriptions","organizations_url":"https://api.github.com/users/openai/orgs","repos_url":"https://api.github.com/users/openai/repos","events_url":"https://api.github.com/users/openai/events{/privacy}","received_events_url":"https://api.github.com/users/openai/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openai/gym","description":"A toolkit for developing and comparing reinforcement learning algorithms.","fork":false,"url":"https://api.github.com/repos/openai/gym","forks_url":"https://api.github.com/repos/openai/gym/forks","keys_url":"https://api.github.com/repos/openai/gym/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openai/gym/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openai/gym/teams","hooks_url":"https://api.github.com/repos/openai/gym/hooks","issue_events_url":"https://api.github.com/repos/openai/gym/issues/events{/number}","events_url":"https://api.github.com/repos/openai/gym/events","assignees_url":"https://api.github.com/repos/openai/gym/assignees{/user}","branches_url":"https://api.github.com/repos/openai/gym/branches{/branch}","tags_url":"https://api.github.com/repos/openai/gym/tags","blobs_url":"https://api.github.com/repos/openai/gym/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openai/gym/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openai/gym/git/refs{/sha}","trees_url":"https://api.github.com/repos/openai/gym/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openai/gym/statuses/{sha}","languages_url":"https://api.github.com/repos/openai/gym/languages","stargazers_url":"https://api.github.com/repos/openai/gym/stargazers","contributors_url":"https://api.github.com/repos/openai/gym/contributors","subscribers_url":"https://api.github.com/repos/openai/gym/subscribers","subscription_url":"https://api.github.com/repos/openai/gym/subscription","commits_url":"https://api.github.com/repos/openai/gym/commits{/sha}","git_commits_url":"https://api.github.com/repos/openai/gym/git/commits{/sha}","comments_url":"https://api.github.com/repos/openai/gym/comments{/number}","issue_comment_url":"https://api.github.com/repos/openai/gym/issues/comments{/number}","contents_url":"https://api.github.com/repos/openai/gym/contents/{+path}","compare_url":"https://api.github.com/repos/openai/gym/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openai/gym/merges","archive_url":"https://api.github.com/repos/openai/gym/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openai/gym/downloads","issues_url":"https://api.github.com/repos/openai/gym/issues{/number}","pulls_url":"https://api.github.com/repos/openai/gym/pulls{/number}","milestones_url":"https://api.github.com/repos/openai/gym/milestones{/number}","notifications_url":"https://api.github.com/repos/openai/gym/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openai/gym/labels{/name}","releases_url":"https://api.github.com/repos/openai/gym/releases{/id}","deployments_url":"https://api.github.com/repos/openai/gym/deployments","created_at":"2016-04-27T14:59:16Z","updated_at":"2016-08-14T21:07:51Z","pushed_at":"2016-08-14T22:02:19Z","git_url":"git://github.com/openai/gym.git","ssh_url":"git@github.com:openai/gym.git","clone_url":"https://github.com/openai/gym.git","svn_url":"https://github.com/openai/gym","homepage":"https://gym.openai.com/","size":1514,"stargazers_count":3051,"watchers_count":3051,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":539,"mirror_url":null,"open_issues_count":37,"forks":539,"open_issues":37,"watchers":3051,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openai/gym/pulls/293"},"html":{"href":"https://github.com/openai/gym/pull/293"},"issue":{"href":"https://api.github.com/repos/openai/gym/issues/293"},"comments":{"href":"https://api.github.com/repos/openai/gym/issues/293/comments"},"review_comments":{"href":"https://api.github.com/repos/openai/gym/pulls/293/comments"},"review_comment":{"href":"https://api.github.com/repos/openai/gym/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openai/gym/pulls/293/commits"},"statuses":{"href":"https://api.github.com/repos/openai/gym/statuses/e0b42218de881d6c18d4a87e57707bcf5831bff2"}}}}
{"actor":{"display_login":"ppaquette"}}