{"action":"created","comment":{"url":"https://api.github.com/repos/pfnet/chainer/pulls/comments/70755830","id":70755830,"diff_hunk":"@@ -1,9 +1,156 @@\n # flake8: NOQA\n # \"flake8: NOQA\" to suppress warning \"H104  File contains nothing but comments\"\n+import cupy\n+\n+import six\n+\n+\n+class AxisConcatenator(object):\n+    \"\"\"Translates slice objects to concatenation along an axis.\n+\n+    For detailed documentation on usage, see `r_`.\n+\n+    \"\"\"\n+    def _retval(self, res):\n+        self.axis = self._axis\n+        self.matrix = self._matrix\n+        self.col = 0\n+        return res\n+\n+    def _output_obj(self, newobj, tempobj, ndmin, trans1d):\n+        k2 = ndmin - tempobj.ndim\n+        if (trans1d < 0):\n+            trans1d += k2 + 1\n+        defaxes = list(six.moves.range(ndmin))\n+        k1 = trans1d\n+        axes = defaxes[:k1] + defaxes[k2:] + \\\n+               defaxes[k1:k2]\n+        newobj = newobj.transpose(axes)\n+        return newobj\n+\n+    def __init__(self, axis=0, matrix=False, ndmin=1, trans1d=-1):\n+        self._axis = axis\n+        self._matrix = matrix\n+        self.axis = axis\n+        self.matrix = matrix\n+        self.col = 0","path":"cupy/indexing/generate.py","position":36,"original_position":36,"commit_id":"588968898eb211adb55783b3a850856f88426145","original_commit_id":"588968898eb211adb55783b3a850856f88426145","user":{"login":"delta2323","id":407052,"avatar_url":"https://avatars.githubusercontent.com/u/407052?v=3","gravatar_id":"","url":"https://api.github.com/users/delta2323","html_url":"https://github.com/delta2323","followers_url":"https://api.github.com/users/delta2323/followers","following_url":"https://api.github.com/users/delta2323/following{/other_user}","gists_url":"https://api.github.com/users/delta2323/gists{/gist_id}","starred_url":"https://api.github.com/users/delta2323/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/delta2323/subscriptions","organizations_url":"https://api.github.com/users/delta2323/orgs","repos_url":"https://api.github.com/users/delta2323/repos","events_url":"https://api.github.com/users/delta2323/events{/privacy}","received_events_url":"https://api.github.com/users/delta2323/received_events","type":"User","site_admin":false},"body":"`self.col` is not used.","created_at":"2016-07-14T06:45:27Z","updated_at":"2016-07-14T06:45:27Z","html_url":"https://github.com/pfnet/chainer/pull/1018#discussion_r70755830","pull_request_url":"https://api.github.com/repos/pfnet/chainer/pulls/1018","_links":{"self":{"href":"https://api.github.com/repos/pfnet/chainer/pulls/comments/70755830"},"html":{"href":"https://github.com/pfnet/chainer/pull/1018#discussion_r70755830"},"pull_request":{"href":"https://api.github.com/repos/pfnet/chainer/pulls/1018"}}},"pull_request":{"url":"https://api.github.com/repos/pfnet/chainer/pulls/1018","id":62635871,"html_url":"https://github.com/pfnet/chainer/pull/1018","diff_url":"https://github.com/pfnet/chainer/pull/1018.diff","patch_url":"https://github.com/pfnet/chainer/pull/1018.patch","issue_url":"https://api.github.com/repos/pfnet/chainer/issues/1018","number":1018,"state":"open","locked":false,"title":"Added cupy functions at indexing generate.py","user":{"login":"hisa0507","id":1094429,"avatar_url":"https://avatars.githubusercontent.com/u/1094429?v=3","gravatar_id":"","url":"https://api.github.com/users/hisa0507","html_url":"https://github.com/hisa0507","followers_url":"https://api.github.com/users/hisa0507/followers","following_url":"https://api.github.com/users/hisa0507/following{/other_user}","gists_url":"https://api.github.com/users/hisa0507/gists{/gist_id}","starred_url":"https://api.github.com/users/hisa0507/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hisa0507/subscriptions","organizations_url":"https://api.github.com/users/hisa0507/orgs","repos_url":"https://api.github.com/users/hisa0507/repos","events_url":"https://api.github.com/users/hisa0507/events{/privacy}","received_events_url":"https://api.github.com/users/hisa0507/received_events","type":"User","site_admin":false},"body":"Added cupy functions(r_ and c_). I Implemented them but some use cases are not implemented, so they call NotImpletemented Function at that time.","created_at":"2016-03-12T08:38:04Z","updated_at":"2016-07-14T06:45:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e85acae7306cd7f963212b72daf9145a121a6c2d","assignee":{"login":"delta2323","id":407052,"avatar_url":"https://avatars.githubusercontent.com/u/407052?v=3","gravatar_id":"","url":"https://api.github.com/users/delta2323","html_url":"https://github.com/delta2323","followers_url":"https://api.github.com/users/delta2323/followers","following_url":"https://api.github.com/users/delta2323/following{/other_user}","gists_url":"https://api.github.com/users/delta2323/gists{/gist_id}","starred_url":"https://api.github.com/users/delta2323/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/delta2323/subscriptions","organizations_url":"https://api.github.com/users/delta2323/orgs","repos_url":"https://api.github.com/users/delta2323/repos","events_url":"https://api.github.com/users/delta2323/events{/privacy}","received_events_url":"https://api.github.com/users/delta2323/received_events","type":"User","site_admin":false},"assignees":[{"login":"delta2323","id":407052,"avatar_url":"https://avatars.githubusercontent.com/u/407052?v=3","gravatar_id":"","url":"https://api.github.com/users/delta2323","html_url":"https://github.com/delta2323","followers_url":"https://api.github.com/users/delta2323/followers","following_url":"https://api.github.com/users/delta2323/following{/other_user}","gists_url":"https://api.github.com/users/delta2323/gists{/gist_id}","starred_url":"https://api.github.com/users/delta2323/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/delta2323/subscriptions","organizations_url":"https://api.github.com/users/delta2323/orgs","repos_url":"https://api.github.com/users/delta2323/repos","events_url":"https://api.github.com/users/delta2323/events{/privacy}","received_events_url":"https://api.github.com/users/delta2323/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/pfnet/chainer/pulls/1018/commits","review_comments_url":"https://api.github.com/repos/pfnet/chainer/pulls/1018/comments","review_comment_url":"https://api.github.com/repos/pfnet/chainer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pfnet/chainer/issues/1018/comments","statuses_url":"https://api.github.com/repos/pfnet/chainer/statuses/588968898eb211adb55783b3a850856f88426145","head":{"label":"hisa0507:add_cupy_func_generate","ref":"add_cupy_func_generate","sha":"588968898eb211adb55783b3a850856f88426145","user":{"login":"hisa0507","id":1094429,"avatar_url":"https://avatars.githubusercontent.com/u/1094429?v=3","gravatar_id":"","url":"https://api.github.com/users/hisa0507","html_url":"https://github.com/hisa0507","followers_url":"https://api.github.com/users/hisa0507/followers","following_url":"https://api.github.com/users/hisa0507/following{/other_user}","gists_url":"https://api.github.com/users/hisa0507/gists{/gist_id}","starred_url":"https://api.github.com/users/hisa0507/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hisa0507/subscriptions","organizations_url":"https://api.github.com/users/hisa0507/orgs","repos_url":"https://api.github.com/users/hisa0507/repos","events_url":"https://api.github.com/users/hisa0507/events{/privacy}","received_events_url":"https://api.github.com/users/hisa0507/received_events","type":"User","site_admin":false},"repo":{"id":51130833,"name":"chainer","full_name":"hisa0507/chainer","owner":{"login":"hisa0507","id":1094429,"avatar_url":"https://avatars.githubusercontent.com/u/1094429?v=3","gravatar_id":"","url":"https://api.github.com/users/hisa0507","html_url":"https://github.com/hisa0507","followers_url":"https://api.github.com/users/hisa0507/followers","following_url":"https://api.github.com/users/hisa0507/following{/other_user}","gists_url":"https://api.github.com/users/hisa0507/gists{/gist_id}","starred_url":"https://api.github.com/users/hisa0507/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hisa0507/subscriptions","organizations_url":"https://api.github.com/users/hisa0507/orgs","repos_url":"https://api.github.com/users/hisa0507/repos","events_url":"https://api.github.com/users/hisa0507/events{/privacy}","received_events_url":"https://api.github.com/users/hisa0507/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hisa0507/chainer","description":"A flexible framework of neural networks for deep learning","fork":true,"url":"https://api.github.com/repos/hisa0507/chainer","forks_url":"https://api.github.com/repos/hisa0507/chainer/forks","keys_url":"https://api.github.com/repos/hisa0507/chainer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hisa0507/chainer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hisa0507/chainer/teams","hooks_url":"https://api.github.com/repos/hisa0507/chainer/hooks","issue_events_url":"https://api.github.com/repos/hisa0507/chainer/issues/events{/number}","events_url":"https://api.github.com/repos/hisa0507/chainer/events","assignees_url":"https://api.github.com/repos/hisa0507/chainer/assignees{/user}","branches_url":"https://api.github.com/repos/hisa0507/chainer/branches{/branch}","tags_url":"https://api.github.com/repos/hisa0507/chainer/tags","blobs_url":"https://api.github.com/repos/hisa0507/chainer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hisa0507/chainer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hisa0507/chainer/git/refs{/sha}","trees_url":"https://api.github.com/repos/hisa0507/chainer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hisa0507/chainer/statuses/{sha}","languages_url":"https://api.github.com/repos/hisa0507/chainer/languages","stargazers_url":"https://api.github.com/repos/hisa0507/chainer/stargazers","contributors_url":"https://api.github.com/repos/hisa0507/chainer/contributors","subscribers_url":"https://api.github.com/repos/hisa0507/chainer/subscribers","subscription_url":"https://api.github.com/repos/hisa0507/chainer/subscription","commits_url":"https://api.github.com/repos/hisa0507/chainer/commits{/sha}","git_commits_url":"https://api.github.com/repos/hisa0507/chainer/git/commits{/sha}","comments_url":"https://api.github.com/repos/hisa0507/chainer/comments{/number}","issue_comment_url":"https://api.github.com/repos/hisa0507/chainer/issues/comments{/number}","contents_url":"https://api.github.com/repos/hisa0507/chainer/contents/{+path}","compare_url":"https://api.github.com/repos/hisa0507/chainer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hisa0507/chainer/merges","archive_url":"https://api.github.com/repos/hisa0507/chainer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hisa0507/chainer/downloads","issues_url":"https://api.github.com/repos/hisa0507/chainer/issues{/number}","pulls_url":"https://api.github.com/repos/hisa0507/chainer/pulls{/number}","milestones_url":"https://api.github.com/repos/hisa0507/chainer/milestones{/number}","notifications_url":"https://api.github.com/repos/hisa0507/chainer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hisa0507/chainer/labels{/name}","releases_url":"https://api.github.com/repos/hisa0507/chainer/releases{/id}","deployments_url":"https://api.github.com/repos/hisa0507/chainer/deployments","created_at":"2016-02-05T06:46:46Z","updated_at":"2016-02-05T06:46:47Z","pushed_at":"2016-07-08T12:37:44Z","git_url":"git://github.com/hisa0507/chainer.git","ssh_url":"git@github.com:hisa0507/chainer.git","clone_url":"https://github.com/hisa0507/chainer.git","svn_url":"https://github.com/hisa0507/chainer","homepage":"http://chainer.org","size":9762,"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":"pfnet:master","ref":"master","sha":"9e93a4a7902d7d1d09d0efadf3aa29efcfb1b149","user":{"login":"pfnet","id":9739572,"avatar_url":"https://avatars.githubusercontent.com/u/9739572?v=3","gravatar_id":"","url":"https://api.github.com/users/pfnet","html_url":"https://github.com/pfnet","followers_url":"https://api.github.com/users/pfnet/followers","following_url":"https://api.github.com/users/pfnet/following{/other_user}","gists_url":"https://api.github.com/users/pfnet/gists{/gist_id}","starred_url":"https://api.github.com/users/pfnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pfnet/subscriptions","organizations_url":"https://api.github.com/users/pfnet/orgs","repos_url":"https://api.github.com/users/pfnet/repos","events_url":"https://api.github.com/users/pfnet/events{/privacy}","received_events_url":"https://api.github.com/users/pfnet/received_events","type":"Organization","site_admin":false},"repo":{"id":36914478,"name":"chainer","full_name":"pfnet/chainer","owner":{"login":"pfnet","id":9739572,"avatar_url":"https://avatars.githubusercontent.com/u/9739572?v=3","gravatar_id":"","url":"https://api.github.com/users/pfnet","html_url":"https://github.com/pfnet","followers_url":"https://api.github.com/users/pfnet/followers","following_url":"https://api.github.com/users/pfnet/following{/other_user}","gists_url":"https://api.github.com/users/pfnet/gists{/gist_id}","starred_url":"https://api.github.com/users/pfnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pfnet/subscriptions","organizations_url":"https://api.github.com/users/pfnet/orgs","repos_url":"https://api.github.com/users/pfnet/repos","events_url":"https://api.github.com/users/pfnet/events{/privacy}","received_events_url":"https://api.github.com/users/pfnet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pfnet/chainer","description":"A flexible framework of neural networks for deep learning","fork":false,"url":"https://api.github.com/repos/pfnet/chainer","forks_url":"https://api.github.com/repos/pfnet/chainer/forks","keys_url":"https://api.github.com/repos/pfnet/chainer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pfnet/chainer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pfnet/chainer/teams","hooks_url":"https://api.github.com/repos/pfnet/chainer/hooks","issue_events_url":"https://api.github.com/repos/pfnet/chainer/issues/events{/number}","events_url":"https://api.github.com/repos/pfnet/chainer/events","assignees_url":"https://api.github.com/repos/pfnet/chainer/assignees{/user}","branches_url":"https://api.github.com/repos/pfnet/chainer/branches{/branch}","tags_url":"https://api.github.com/repos/pfnet/chainer/tags","blobs_url":"https://api.github.com/repos/pfnet/chainer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pfnet/chainer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pfnet/chainer/git/refs{/sha}","trees_url":"https://api.github.com/repos/pfnet/chainer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pfnet/chainer/statuses/{sha}","languages_url":"https://api.github.com/repos/pfnet/chainer/languages","stargazers_url":"https://api.github.com/repos/pfnet/chainer/stargazers","contributors_url":"https://api.github.com/repos/pfnet/chainer/contributors","subscribers_url":"https://api.github.com/repos/pfnet/chainer/subscribers","subscription_url":"https://api.github.com/repos/pfnet/chainer/subscription","commits_url":"https://api.github.com/repos/pfnet/chainer/commits{/sha}","git_commits_url":"https://api.github.com/repos/pfnet/chainer/git/commits{/sha}","comments_url":"https://api.github.com/repos/pfnet/chainer/comments{/number}","issue_comment_url":"https://api.github.com/repos/pfnet/chainer/issues/comments{/number}","contents_url":"https://api.github.com/repos/pfnet/chainer/contents/{+path}","compare_url":"https://api.github.com/repos/pfnet/chainer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pfnet/chainer/merges","archive_url":"https://api.github.com/repos/pfnet/chainer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pfnet/chainer/downloads","issues_url":"https://api.github.com/repos/pfnet/chainer/issues{/number}","pulls_url":"https://api.github.com/repos/pfnet/chainer/pulls{/number}","milestones_url":"https://api.github.com/repos/pfnet/chainer/milestones{/number}","notifications_url":"https://api.github.com/repos/pfnet/chainer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pfnet/chainer/labels{/name}","releases_url":"https://api.github.com/repos/pfnet/chainer/releases{/id}","deployments_url":"https://api.github.com/repos/pfnet/chainer/deployments","created_at":"2015-06-05T05:50:37Z","updated_at":"2016-07-13T14:43:44Z","pushed_at":"2016-07-14T06:19:34Z","git_url":"git://github.com/pfnet/chainer.git","ssh_url":"git@github.com:pfnet/chainer.git","clone_url":"https://github.com/pfnet/chainer.git","svn_url":"https://github.com/pfnet/chainer","homepage":"http://chainer.org","size":23835,"stargazers_count":1498,"watchers_count":1498,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":351,"mirror_url":null,"open_issues_count":180,"forks":351,"open_issues":180,"watchers":1498,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pfnet/chainer/pulls/1018"},"html":{"href":"https://github.com/pfnet/chainer/pull/1018"},"issue":{"href":"https://api.github.com/repos/pfnet/chainer/issues/1018"},"comments":{"href":"https://api.github.com/repos/pfnet/chainer/issues/1018/comments"},"review_comments":{"href":"https://api.github.com/repos/pfnet/chainer/pulls/1018/comments"},"review_comment":{"href":"https://api.github.com/repos/pfnet/chainer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pfnet/chainer/pulls/1018/commits"},"statuses":{"href":"https://api.github.com/repos/pfnet/chainer/statuses/588968898eb211adb55783b3a850856f88426145"}}}}
{"actor":{"display_login":"delta2323"}}