{"action":"created","comment":{"url":"https://api.github.com/repos/lisa-lab/pylearn2/pulls/comments/24940370","id":24940370,"diff_hunk":"@@ -2,21 +2,25 @@\n A module defining the Dataset class.\n \"\"\"\n \n+import abc\n+import warnings\n+from pylearn2.utils.iteration import resolve_iterator_class\n+\n \n class Dataset(object):\n \n     \"\"\"\n     Abstract interface for Datasets.\n     \"\"\"\n+    #__metaclass__ = abc.ABCMeta","path":"pylearn2/datasets/dataset.py","position":14,"original_position":14,"commit_id":"783eaee0e91babf52c1550fbbd69cd93b9f124d3","original_commit_id":"783eaee0e91babf52c1550fbbd69cd93b9f124d3","user":{"login":"bartvm","id":2299595,"avatar_url":"https://avatars.githubusercontent.com/u/2299595?v=3","gravatar_id":"","url":"https://api.github.com/users/bartvm","html_url":"https://github.com/bartvm","followers_url":"https://api.github.com/users/bartvm/followers","following_url":"https://api.github.com/users/bartvm/following{/other_user}","gists_url":"https://api.github.com/users/bartvm/gists{/gist_id}","starred_url":"https://api.github.com/users/bartvm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bartvm/subscriptions","organizations_url":"https://api.github.com/users/bartvm/orgs","repos_url":"https://api.github.com/users/bartvm/repos","events_url":"https://api.github.com/users/bartvm/events{/privacy}","received_events_url":"https://api.github.com/users/bartvm/received_events","type":"User","site_admin":false},"body":"You can assign a metaclass with the `@six.add_metaclass` decorator","created_at":"2015-02-18T20:59:13Z","updated_at":"2015-02-18T20:59:13Z","html_url":"https://github.com/lisa-lab/pylearn2/pull/1375#discussion_r24940370","pull_request_url":"https://api.github.com/repos/lisa-lab/pylearn2/pulls/1375","_links":{"self":{"href":"https://api.github.com/repos/lisa-lab/pylearn2/pulls/comments/24940370"},"html":{"href":"https://github.com/lisa-lab/pylearn2/pull/1375#discussion_r24940370"},"pull_request":{"href":"https://api.github.com/repos/lisa-lab/pylearn2/pulls/1375"}}},"pull_request":{"url":"https://api.github.com/repos/lisa-lab/pylearn2/pulls/1375","id":28303632,"html_url":"https://github.com/lisa-lab/pylearn2/pull/1375","diff_url":"https://github.com/lisa-lab/pylearn2/pull/1375.diff","patch_url":"https://github.com/lisa-lab/pylearn2/pull/1375.patch","issue_url":"https://api.github.com/repos/lisa-lab/pylearn2/issues/1375","number":1375,"state":"open","locked":false,"title":"Hdf5 file new handler","user":{"login":"fvisin","id":4639261,"avatar_url":"https://avatars.githubusercontent.com/u/4639261?v=3","gravatar_id":"","url":"https://api.github.com/users/fvisin","html_url":"https://github.com/fvisin","followers_url":"https://api.github.com/users/fvisin/followers","following_url":"https://api.github.com/users/fvisin/following{/other_user}","gists_url":"https://api.github.com/users/fvisin/gists{/gist_id}","starred_url":"https://api.github.com/users/fvisin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fvisin/subscriptions","organizations_url":"https://api.github.com/users/fvisin/orgs","repos_url":"https://api.github.com/users/fvisin/repos","events_url":"https://api.github.com/users/fvisin/events{/privacy}","received_events_url":"https://api.github.com/users/fvisin/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-01-29T18:44:32Z","updated_at":"2015-02-18T20:59:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f03377d4416a7c495dc5966655527648ef69c985","assignee":{"login":"lamblin","id":178249,"avatar_url":"https://avatars.githubusercontent.com/u/178249?v=3","gravatar_id":"","url":"https://api.github.com/users/lamblin","html_url":"https://github.com/lamblin","followers_url":"https://api.github.com/users/lamblin/followers","following_url":"https://api.github.com/users/lamblin/following{/other_user}","gists_url":"https://api.github.com/users/lamblin/gists{/gist_id}","starred_url":"https://api.github.com/users/lamblin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lamblin/subscriptions","organizations_url":"https://api.github.com/users/lamblin/orgs","repos_url":"https://api.github.com/users/lamblin/repos","events_url":"https://api.github.com/users/lamblin/events{/privacy}","received_events_url":"https://api.github.com/users/lamblin/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/lisa-lab/pylearn2/pulls/1375/commits","review_comments_url":"https://api.github.com/repos/lisa-lab/pylearn2/pulls/1375/comments","review_comment_url":"https://api.github.com/repos/lisa-lab/pylearn2/pulls/comments/{number}","comments_url":"https://api.github.com/repos/lisa-lab/pylearn2/issues/1375/comments","statuses_url":"https://api.github.com/repos/lisa-lab/pylearn2/statuses/783eaee0e91babf52c1550fbbd69cd93b9f124d3","head":{"label":"fvisin:hdf5_remake","ref":"hdf5_remake","sha":"783eaee0e91babf52c1550fbbd69cd93b9f124d3","user":{"login":"fvisin","id":4639261,"avatar_url":"https://avatars.githubusercontent.com/u/4639261?v=3","gravatar_id":"","url":"https://api.github.com/users/fvisin","html_url":"https://github.com/fvisin","followers_url":"https://api.github.com/users/fvisin/followers","following_url":"https://api.github.com/users/fvisin/following{/other_user}","gists_url":"https://api.github.com/users/fvisin/gists{/gist_id}","starred_url":"https://api.github.com/users/fvisin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fvisin/subscriptions","organizations_url":"https://api.github.com/users/fvisin/orgs","repos_url":"https://api.github.com/users/fvisin/repos","events_url":"https://api.github.com/users/fvisin/events{/privacy}","received_events_url":"https://api.github.com/users/fvisin/received_events","type":"User","site_admin":false},"repo":{"id":26230619,"name":"pylearn2","full_name":"fvisin/pylearn2","owner":{"login":"fvisin","id":4639261,"avatar_url":"https://avatars.githubusercontent.com/u/4639261?v=3","gravatar_id":"","url":"https://api.github.com/users/fvisin","html_url":"https://github.com/fvisin","followers_url":"https://api.github.com/users/fvisin/followers","following_url":"https://api.github.com/users/fvisin/following{/other_user}","gists_url":"https://api.github.com/users/fvisin/gists{/gist_id}","starred_url":"https://api.github.com/users/fvisin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fvisin/subscriptions","organizations_url":"https://api.github.com/users/fvisin/orgs","repos_url":"https://api.github.com/users/fvisin/repos","events_url":"https://api.github.com/users/fvisin/events{/privacy}","received_events_url":"https://api.github.com/users/fvisin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/fvisin/pylearn2","description":"A Machine Learning library based on Theano","fork":true,"url":"https://api.github.com/repos/fvisin/pylearn2","forks_url":"https://api.github.com/repos/fvisin/pylearn2/forks","keys_url":"https://api.github.com/repos/fvisin/pylearn2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fvisin/pylearn2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fvisin/pylearn2/teams","hooks_url":"https://api.github.com/repos/fvisin/pylearn2/hooks","issue_events_url":"https://api.github.com/repos/fvisin/pylearn2/issues/events{/number}","events_url":"https://api.github.com/repos/fvisin/pylearn2/events","assignees_url":"https://api.github.com/repos/fvisin/pylearn2/assignees{/user}","branches_url":"https://api.github.com/repos/fvisin/pylearn2/branches{/branch}","tags_url":"https://api.github.com/repos/fvisin/pylearn2/tags","blobs_url":"https://api.github.com/repos/fvisin/pylearn2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fvisin/pylearn2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fvisin/pylearn2/git/refs{/sha}","trees_url":"https://api.github.com/repos/fvisin/pylearn2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fvisin/pylearn2/statuses/{sha}","languages_url":"https://api.github.com/repos/fvisin/pylearn2/languages","stargazers_url":"https://api.github.com/repos/fvisin/pylearn2/stargazers","contributors_url":"https://api.github.com/repos/fvisin/pylearn2/contributors","subscribers_url":"https://api.github.com/repos/fvisin/pylearn2/subscribers","subscription_url":"https://api.github.com/repos/fvisin/pylearn2/subscription","commits_url":"https://api.github.com/repos/fvisin/pylearn2/commits{/sha}","git_commits_url":"https://api.github.com/repos/fvisin/pylearn2/git/commits{/sha}","comments_url":"https://api.github.com/repos/fvisin/pylearn2/comments{/number}","issue_comment_url":"https://api.github.com/repos/fvisin/pylearn2/issues/comments/{number}","contents_url":"https://api.github.com/repos/fvisin/pylearn2/contents/{+path}","compare_url":"https://api.github.com/repos/fvisin/pylearn2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fvisin/pylearn2/merges","archive_url":"https://api.github.com/repos/fvisin/pylearn2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fvisin/pylearn2/downloads","issues_url":"https://api.github.com/repos/fvisin/pylearn2/issues{/number}","pulls_url":"https://api.github.com/repos/fvisin/pylearn2/pulls{/number}","milestones_url":"https://api.github.com/repos/fvisin/pylearn2/milestones{/number}","notifications_url":"https://api.github.com/repos/fvisin/pylearn2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fvisin/pylearn2/labels{/name}","releases_url":"https://api.github.com/repos/fvisin/pylearn2/releases{/id}","created_at":"2014-11-05T17:17:42Z","updated_at":"2015-02-16T19:42:48Z","pushed_at":"2015-02-18T04:40:44Z","git_url":"git://github.com/fvisin/pylearn2.git","ssh_url":"git@github.com:fvisin/pylearn2.git","clone_url":"https://github.com/fvisin/pylearn2.git","svn_url":"https://github.com/fvisin/pylearn2","homepage":"","size":12345,"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":"lisa-lab:master","ref":"master","sha":"9a04142875779077b1c276c3e5db7de8c8257773","user":{"login":"lisa-lab","id":178109,"avatar_url":"https://avatars.githubusercontent.com/u/178109?v=3","gravatar_id":"","url":"https://api.github.com/users/lisa-lab","html_url":"https://github.com/lisa-lab","followers_url":"https://api.github.com/users/lisa-lab/followers","following_url":"https://api.github.com/users/lisa-lab/following{/other_user}","gists_url":"https://api.github.com/users/lisa-lab/gists{/gist_id}","starred_url":"https://api.github.com/users/lisa-lab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lisa-lab/subscriptions","organizations_url":"https://api.github.com/users/lisa-lab/orgs","repos_url":"https://api.github.com/users/lisa-lab/repos","events_url":"https://api.github.com/users/lisa-lab/events{/privacy}","received_events_url":"https://api.github.com/users/lisa-lab/received_events","type":"Organization","site_admin":false},"repo":{"id":1103054,"name":"pylearn2","full_name":"lisa-lab/pylearn2","owner":{"login":"lisa-lab","id":178109,"avatar_url":"https://avatars.githubusercontent.com/u/178109?v=3","gravatar_id":"","url":"https://api.github.com/users/lisa-lab","html_url":"https://github.com/lisa-lab","followers_url":"https://api.github.com/users/lisa-lab/followers","following_url":"https://api.github.com/users/lisa-lab/following{/other_user}","gists_url":"https://api.github.com/users/lisa-lab/gists{/gist_id}","starred_url":"https://api.github.com/users/lisa-lab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lisa-lab/subscriptions","organizations_url":"https://api.github.com/users/lisa-lab/orgs","repos_url":"https://api.github.com/users/lisa-lab/repos","events_url":"https://api.github.com/users/lisa-lab/events{/privacy}","received_events_url":"https://api.github.com/users/lisa-lab/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/lisa-lab/pylearn2","description":"A Machine Learning library based on Theano","fork":false,"url":"https://api.github.com/repos/lisa-lab/pylearn2","forks_url":"https://api.github.com/repos/lisa-lab/pylearn2/forks","keys_url":"https://api.github.com/repos/lisa-lab/pylearn2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lisa-lab/pylearn2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lisa-lab/pylearn2/teams","hooks_url":"https://api.github.com/repos/lisa-lab/pylearn2/hooks","issue_events_url":"https://api.github.com/repos/lisa-lab/pylearn2/issues/events{/number}","events_url":"https://api.github.com/repos/lisa-lab/pylearn2/events","assignees_url":"https://api.github.com/repos/lisa-lab/pylearn2/assignees{/user}","branches_url":"https://api.github.com/repos/lisa-lab/pylearn2/branches{/branch}","tags_url":"https://api.github.com/repos/lisa-lab/pylearn2/tags","blobs_url":"https://api.github.com/repos/lisa-lab/pylearn2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lisa-lab/pylearn2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lisa-lab/pylearn2/git/refs{/sha}","trees_url":"https://api.github.com/repos/lisa-lab/pylearn2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lisa-lab/pylearn2/statuses/{sha}","languages_url":"https://api.github.com/repos/lisa-lab/pylearn2/languages","stargazers_url":"https://api.github.com/repos/lisa-lab/pylearn2/stargazers","contributors_url":"https://api.github.com/repos/lisa-lab/pylearn2/contributors","subscribers_url":"https://api.github.com/repos/lisa-lab/pylearn2/subscribers","subscription_url":"https://api.github.com/repos/lisa-lab/pylearn2/subscription","commits_url":"https://api.github.com/repos/lisa-lab/pylearn2/commits{/sha}","git_commits_url":"https://api.github.com/repos/lisa-lab/pylearn2/git/commits{/sha}","comments_url":"https://api.github.com/repos/lisa-lab/pylearn2/comments{/number}","issue_comment_url":"https://api.github.com/repos/lisa-lab/pylearn2/issues/comments/{number}","contents_url":"https://api.github.com/repos/lisa-lab/pylearn2/contents/{+path}","compare_url":"https://api.github.com/repos/lisa-lab/pylearn2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lisa-lab/pylearn2/merges","archive_url":"https://api.github.com/repos/lisa-lab/pylearn2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lisa-lab/pylearn2/downloads","issues_url":"https://api.github.com/repos/lisa-lab/pylearn2/issues{/number}","pulls_url":"https://api.github.com/repos/lisa-lab/pylearn2/pulls{/number}","milestones_url":"https://api.github.com/repos/lisa-lab/pylearn2/milestones{/number}","notifications_url":"https://api.github.com/repos/lisa-lab/pylearn2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lisa-lab/pylearn2/labels{/name}","releases_url":"https://api.github.com/repos/lisa-lab/pylearn2/releases{/id}","created_at":"2010-11-22T18:00:50Z","updated_at":"2015-02-18T08:45:50Z","pushed_at":"2015-02-17T22:03:16Z","git_url":"git://github.com/lisa-lab/pylearn2.git","ssh_url":"git@github.com:lisa-lab/pylearn2.git","clone_url":"https://github.com/lisa-lab/pylearn2.git","svn_url":"https://github.com/lisa-lab/pylearn2","homepage":"","size":690558,"stargazers_count":1262,"watchers_count":1262,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":515,"mirror_url":null,"open_issues_count":179,"forks":515,"open_issues":179,"watchers":1262,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lisa-lab/pylearn2/pulls/1375"},"html":{"href":"https://github.com/lisa-lab/pylearn2/pull/1375"},"issue":{"href":"https://api.github.com/repos/lisa-lab/pylearn2/issues/1375"},"comments":{"href":"https://api.github.com/repos/lisa-lab/pylearn2/issues/1375/comments"},"review_comments":{"href":"https://api.github.com/repos/lisa-lab/pylearn2/pulls/1375/comments"},"review_comment":{"href":"https://api.github.com/repos/lisa-lab/pylearn2/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/lisa-lab/pylearn2/pulls/1375/commits"},"statuses":{"href":"https://api.github.com/repos/lisa-lab/pylearn2/statuses/783eaee0e91babf52c1550fbbd69cd93b9f124d3"}}}}