{"action":"created","comment":{"url":"https://api.github.com/repos/bolt-project/bolt/pulls/comments/33906870","id":33906870,"diff_hunk":"@@ -568,6 +570,42 @@ def swapaxes(self, ax1, ax2):\n \n         return self.transpose(p)\n \n+    def reshape(self, *new):","path":"bolt/spark/array.py","position":22,"original_position":22,"commit_id":"ef1f9aaa79a339be5f00a17a052e2fa899f7b016","original_commit_id":"820991cbae2b373a7d5cf41bcd050bbc9019eebe","user":{"login":"jwittenbach","id":9537932,"avatar_url":"https://avatars.githubusercontent.com/u/9537932?v=3","gravatar_id":"","url":"https://api.github.com/users/jwittenbach","html_url":"https://github.com/jwittenbach","followers_url":"https://api.github.com/users/jwittenbach/followers","following_url":"https://api.github.com/users/jwittenbach/following{/other_user}","gists_url":"https://api.github.com/users/jwittenbach/gists{/gist_id}","starred_url":"https://api.github.com/users/jwittenbach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwittenbach/subscriptions","organizations_url":"https://api.github.com/users/jwittenbach/orgs","repos_url":"https://api.github.com/users/jwittenbach/repos","events_url":"https://api.github.com/users/jwittenbach/events{/privacy}","received_events_url":"https://api.github.com/users/jwittenbach/received_events","type":"User","site_admin":false},"body":"I took this from your `transpose` function on the `Shapes` objects. Should we change it there too then?","created_at":"2015-07-06T05:31:37Z","updated_at":"2015-07-06T05:31:37Z","html_url":"https://github.com/bolt-project/bolt/pull/49#discussion_r33906870","pull_request_url":"https://api.github.com/repos/bolt-project/bolt/pulls/49","_links":{"self":{"href":"https://api.github.com/repos/bolt-project/bolt/pulls/comments/33906870"},"html":{"href":"https://github.com/bolt-project/bolt/pull/49#discussion_r33906870"},"pull_request":{"href":"https://api.github.com/repos/bolt-project/bolt/pulls/49"}}},"pull_request":{"url":"https://api.github.com/repos/bolt-project/bolt/pulls/49","id":39224072,"html_url":"https://github.com/bolt-project/bolt/pull/49","diff_url":"https://github.com/bolt-project/bolt/pull/49.diff","patch_url":"https://github.com/bolt-project/bolt/pull/49.patch","issue_url":"https://api.github.com/repos/bolt-project/bolt/issues/49","number":49,"state":"open","locked":false,"title":"Reshape","user":{"login":"jwittenbach","id":9537932,"avatar_url":"https://avatars.githubusercontent.com/u/9537932?v=3","gravatar_id":"","url":"https://api.github.com/users/jwittenbach","html_url":"https://github.com/jwittenbach","followers_url":"https://api.github.com/users/jwittenbach/followers","following_url":"https://api.github.com/users/jwittenbach/following{/other_user}","gists_url":"https://api.github.com/users/jwittenbach/gists{/gist_id}","starred_url":"https://api.github.com/users/jwittenbach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwittenbach/subscriptions","organizations_url":"https://api.github.com/users/jwittenbach/orgs","repos_url":"https://api.github.com/users/jwittenbach/repos","events_url":"https://api.github.com/users/jwittenbach/events{/privacy}","received_events_url":"https://api.github.com/users/jwittenbach/received_events","type":"User","site_admin":false},"body":"Partially addresses the second half of #7.\r\n\r\nRight now, only reshapes that can be implemented by independent reshapes on the keys and/or values are allowed.","created_at":"2015-07-05T17:38:36Z","updated_at":"2015-07-06T05:31:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"40a39f53a54c55db67b06dd2e5817cd031610cc2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bolt-project/bolt/pulls/49/commits","review_comments_url":"https://api.github.com/repos/bolt-project/bolt/pulls/49/comments","review_comment_url":"https://api.github.com/repos/bolt-project/bolt/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bolt-project/bolt/issues/49/comments","statuses_url":"https://api.github.com/repos/bolt-project/bolt/statuses/ef1f9aaa79a339be5f00a17a052e2fa899f7b016","head":{"label":"jwittenbach:reshape","ref":"reshape","sha":"ef1f9aaa79a339be5f00a17a052e2fa899f7b016","user":{"login":"jwittenbach","id":9537932,"avatar_url":"https://avatars.githubusercontent.com/u/9537932?v=3","gravatar_id":"","url":"https://api.github.com/users/jwittenbach","html_url":"https://github.com/jwittenbach","followers_url":"https://api.github.com/users/jwittenbach/followers","following_url":"https://api.github.com/users/jwittenbach/following{/other_user}","gists_url":"https://api.github.com/users/jwittenbach/gists{/gist_id}","starred_url":"https://api.github.com/users/jwittenbach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwittenbach/subscriptions","organizations_url":"https://api.github.com/users/jwittenbach/orgs","repos_url":"https://api.github.com/users/jwittenbach/repos","events_url":"https://api.github.com/users/jwittenbach/events{/privacy}","received_events_url":"https://api.github.com/users/jwittenbach/received_events","type":"User","site_admin":false},"repo":{"id":38546182,"name":"bolt","full_name":"jwittenbach/bolt","owner":{"login":"jwittenbach","id":9537932,"avatar_url":"https://avatars.githubusercontent.com/u/9537932?v=3","gravatar_id":"","url":"https://api.github.com/users/jwittenbach","html_url":"https://github.com/jwittenbach","followers_url":"https://api.github.com/users/jwittenbach/followers","following_url":"https://api.github.com/users/jwittenbach/following{/other_user}","gists_url":"https://api.github.com/users/jwittenbach/gists{/gist_id}","starred_url":"https://api.github.com/users/jwittenbach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwittenbach/subscriptions","organizations_url":"https://api.github.com/users/jwittenbach/orgs","repos_url":"https://api.github.com/users/jwittenbach/repos","events_url":"https://api.github.com/users/jwittenbach/events{/privacy}","received_events_url":"https://api.github.com/users/jwittenbach/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jwittenbach/bolt","description":"Distributed multidimensional arrays","fork":true,"url":"https://api.github.com/repos/jwittenbach/bolt","forks_url":"https://api.github.com/repos/jwittenbach/bolt/forks","keys_url":"https://api.github.com/repos/jwittenbach/bolt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jwittenbach/bolt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jwittenbach/bolt/teams","hooks_url":"https://api.github.com/repos/jwittenbach/bolt/hooks","issue_events_url":"https://api.github.com/repos/jwittenbach/bolt/issues/events{/number}","events_url":"https://api.github.com/repos/jwittenbach/bolt/events","assignees_url":"https://api.github.com/repos/jwittenbach/bolt/assignees{/user}","branches_url":"https://api.github.com/repos/jwittenbach/bolt/branches{/branch}","tags_url":"https://api.github.com/repos/jwittenbach/bolt/tags","blobs_url":"https://api.github.com/repos/jwittenbach/bolt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jwittenbach/bolt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jwittenbach/bolt/git/refs{/sha}","trees_url":"https://api.github.com/repos/jwittenbach/bolt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jwittenbach/bolt/statuses/{sha}","languages_url":"https://api.github.com/repos/jwittenbach/bolt/languages","stargazers_url":"https://api.github.com/repos/jwittenbach/bolt/stargazers","contributors_url":"https://api.github.com/repos/jwittenbach/bolt/contributors","subscribers_url":"https://api.github.com/repos/jwittenbach/bolt/subscribers","subscription_url":"https://api.github.com/repos/jwittenbach/bolt/subscription","commits_url":"https://api.github.com/repos/jwittenbach/bolt/commits{/sha}","git_commits_url":"https://api.github.com/repos/jwittenbach/bolt/git/commits{/sha}","comments_url":"https://api.github.com/repos/jwittenbach/bolt/comments{/number}","issue_comment_url":"https://api.github.com/repos/jwittenbach/bolt/issues/comments{/number}","contents_url":"https://api.github.com/repos/jwittenbach/bolt/contents/{+path}","compare_url":"https://api.github.com/repos/jwittenbach/bolt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jwittenbach/bolt/merges","archive_url":"https://api.github.com/repos/jwittenbach/bolt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jwittenbach/bolt/downloads","issues_url":"https://api.github.com/repos/jwittenbach/bolt/issues{/number}","pulls_url":"https://api.github.com/repos/jwittenbach/bolt/pulls{/number}","milestones_url":"https://api.github.com/repos/jwittenbach/bolt/milestones{/number}","notifications_url":"https://api.github.com/repos/jwittenbach/bolt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jwittenbach/bolt/labels{/name}","releases_url":"https://api.github.com/repos/jwittenbach/bolt/releases{/id}","created_at":"2015-07-04T20:06:08Z","updated_at":"2015-07-04T20:06:08Z","pushed_at":"2015-07-06T05:16:52Z","git_url":"git://github.com/jwittenbach/bolt.git","ssh_url":"git@github.com:jwittenbach/bolt.git","clone_url":"https://github.com/jwittenbach/bolt.git","svn_url":"https://github.com/jwittenbach/bolt","homepage":"","size":905,"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":"bolt-project:master","ref":"master","sha":"1125c193ab2b180049bd1afe9cf1991b564abda4","user":{"login":"bolt-project","id":13179941,"avatar_url":"https://avatars.githubusercontent.com/u/13179941?v=3","gravatar_id":"","url":"https://api.github.com/users/bolt-project","html_url":"https://github.com/bolt-project","followers_url":"https://api.github.com/users/bolt-project/followers","following_url":"https://api.github.com/users/bolt-project/following{/other_user}","gists_url":"https://api.github.com/users/bolt-project/gists{/gist_id}","starred_url":"https://api.github.com/users/bolt-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bolt-project/subscriptions","organizations_url":"https://api.github.com/users/bolt-project/orgs","repos_url":"https://api.github.com/users/bolt-project/repos","events_url":"https://api.github.com/users/bolt-project/events{/privacy}","received_events_url":"https://api.github.com/users/bolt-project/received_events","type":"Organization","site_admin":false},"repo":{"id":37824257,"name":"bolt","full_name":"bolt-project/bolt","owner":{"login":"bolt-project","id":13179941,"avatar_url":"https://avatars.githubusercontent.com/u/13179941?v=3","gravatar_id":"","url":"https://api.github.com/users/bolt-project","html_url":"https://github.com/bolt-project","followers_url":"https://api.github.com/users/bolt-project/followers","following_url":"https://api.github.com/users/bolt-project/following{/other_user}","gists_url":"https://api.github.com/users/bolt-project/gists{/gist_id}","starred_url":"https://api.github.com/users/bolt-project/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bolt-project/subscriptions","organizations_url":"https://api.github.com/users/bolt-project/orgs","repos_url":"https://api.github.com/users/bolt-project/repos","events_url":"https://api.github.com/users/bolt-project/events{/privacy}","received_events_url":"https://api.github.com/users/bolt-project/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bolt-project/bolt","description":"Distributed multidimensional arrays","fork":false,"url":"https://api.github.com/repos/bolt-project/bolt","forks_url":"https://api.github.com/repos/bolt-project/bolt/forks","keys_url":"https://api.github.com/repos/bolt-project/bolt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bolt-project/bolt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bolt-project/bolt/teams","hooks_url":"https://api.github.com/repos/bolt-project/bolt/hooks","issue_events_url":"https://api.github.com/repos/bolt-project/bolt/issues/events{/number}","events_url":"https://api.github.com/repos/bolt-project/bolt/events","assignees_url":"https://api.github.com/repos/bolt-project/bolt/assignees{/user}","branches_url":"https://api.github.com/repos/bolt-project/bolt/branches{/branch}","tags_url":"https://api.github.com/repos/bolt-project/bolt/tags","blobs_url":"https://api.github.com/repos/bolt-project/bolt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bolt-project/bolt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bolt-project/bolt/git/refs{/sha}","trees_url":"https://api.github.com/repos/bolt-project/bolt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bolt-project/bolt/statuses/{sha}","languages_url":"https://api.github.com/repos/bolt-project/bolt/languages","stargazers_url":"https://api.github.com/repos/bolt-project/bolt/stargazers","contributors_url":"https://api.github.com/repos/bolt-project/bolt/contributors","subscribers_url":"https://api.github.com/repos/bolt-project/bolt/subscribers","subscription_url":"https://api.github.com/repos/bolt-project/bolt/subscription","commits_url":"https://api.github.com/repos/bolt-project/bolt/commits{/sha}","git_commits_url":"https://api.github.com/repos/bolt-project/bolt/git/commits{/sha}","comments_url":"https://api.github.com/repos/bolt-project/bolt/comments{/number}","issue_comment_url":"https://api.github.com/repos/bolt-project/bolt/issues/comments{/number}","contents_url":"https://api.github.com/repos/bolt-project/bolt/contents/{+path}","compare_url":"https://api.github.com/repos/bolt-project/bolt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bolt-project/bolt/merges","archive_url":"https://api.github.com/repos/bolt-project/bolt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bolt-project/bolt/downloads","issues_url":"https://api.github.com/repos/bolt-project/bolt/issues{/number}","pulls_url":"https://api.github.com/repos/bolt-project/bolt/pulls{/number}","milestones_url":"https://api.github.com/repos/bolt-project/bolt/milestones{/number}","notifications_url":"https://api.github.com/repos/bolt-project/bolt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bolt-project/bolt/labels{/name}","releases_url":"https://api.github.com/repos/bolt-project/bolt/releases{/id}","created_at":"2015-06-21T20:15:19Z","updated_at":"2015-07-05T19:40:33Z","pushed_at":"2015-07-06T05:16:54Z","git_url":"git://github.com/bolt-project/bolt.git","ssh_url":"git@github.com:bolt-project/bolt.git","clone_url":"https://github.com/bolt-project/bolt.git","svn_url":"https://github.com/bolt-project/bolt","homepage":"","size":1523,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":7,"forks":2,"open_issues":7,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bolt-project/bolt/pulls/49"},"html":{"href":"https://github.com/bolt-project/bolt/pull/49"},"issue":{"href":"https://api.github.com/repos/bolt-project/bolt/issues/49"},"comments":{"href":"https://api.github.com/repos/bolt-project/bolt/issues/49/comments"},"review_comments":{"href":"https://api.github.com/repos/bolt-project/bolt/pulls/49/comments"},"review_comment":{"href":"https://api.github.com/repos/bolt-project/bolt/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bolt-project/bolt/pulls/49/commits"},"statuses":{"href":"https://api.github.com/repos/bolt-project/bolt/statuses/ef1f9aaa79a339be5f00a17a052e2fa899f7b016"}}}}