{"action":"created","comment":{"url":"https://api.github.com/repos/kaldi-asr/kaldi/pulls/comments/57805421","id":57805421,"diff_hunk":"@@ -0,0 +1,74 @@\n+// util/kaldi-holder.cc\n+\n+// Copyright 2009-2011     Microsoft Corporation\n+//                2016     Xiaohui Zhang\n+\n+// See ../../COPYING for clarification regarding multiple authors\n+//\n+// Licensed under the Apache License, Version 2.0 (the \"License\");\n+// you may not use this file except in compliance with the License.\n+// You may obtain a copy of the License at\n+//\n+//  http://www.apache.org/licenses/LICENSE-2.0\n+//\n+// THIS CODE IS PROVIDED *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n+// KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\n+// WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\n+// MERCHANTABLITY OR NON-INFRINGEMENT.\n+// See the Apache 2 License for the specific language governing permissions and\n+// limitations under the License.\n+\n+#include \"util/kaldi-holder.h\"\n+#include \"matrix/kaldi-matrix.h\"\n+\n+namespace kaldi {\n+\n+template<class Real>\n+bool ExtractObjectRange(const Matrix<Real> &input, const std::string &range,\n+                        Matrix<Real> *output) {\n+  if (range.empty()) {\n+    KALDI_ERR << \"Empty range specifier.\"; \n+    return false;\n+  }\n+  std::vector<std::string> splits;\n+  SplitStringToVector(range, \",\", true, &splits);  ","path":"src/util/kaldi-holder.cc","position":34,"original_position":34,"commit_id":"3db86d008bd226b855446000447ef89bc387e2d1","original_commit_id":"3db86d008bd226b855446000447ef89bc387e2d1","user":{"login":"danpovey","id":3298747,"avatar_url":"https://avatars.githubusercontent.com/u/3298747?v=3","gravatar_id":"","url":"https://api.github.com/users/danpovey","html_url":"https://github.com/danpovey","followers_url":"https://api.github.com/users/danpovey/followers","following_url":"https://api.github.com/users/danpovey/following{/other_user}","gists_url":"https://api.github.com/users/danpovey/gists{/gist_id}","starred_url":"https://api.github.com/users/danpovey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danpovey/subscriptions","organizations_url":"https://api.github.com/users/danpovey/orgs","repos_url":"https://api.github.com/users/danpovey/repos","events_url":"https://api.github.com/users/danpovey/events{/privacy}","received_events_url":"https://api.github.com/users/danpovey/received_events","type":"User","site_admin":false},"body":"this 'true' should probably be 'false'.","created_at":"2016-03-29T21:37:56Z","updated_at":"2016-03-29T21:37:56Z","html_url":"https://github.com/kaldi-asr/kaldi/pull/611#discussion_r57805421","pull_request_url":"https://api.github.com/repos/kaldi-asr/kaldi/pulls/611","_links":{"self":{"href":"https://api.github.com/repos/kaldi-asr/kaldi/pulls/comments/57805421"},"html":{"href":"https://github.com/kaldi-asr/kaldi/pull/611#discussion_r57805421"},"pull_request":{"href":"https://api.github.com/repos/kaldi-asr/kaldi/pulls/611"}}},"pull_request":{"url":"https://api.github.com/repos/kaldi-asr/kaldi/pulls/611","id":63831608,"html_url":"https://github.com/kaldi-asr/kaldi/pull/611","diff_url":"https://github.com/kaldi-asr/kaldi/pull/611.diff","patch_url":"https://github.com/kaldi-asr/kaldi/pull/611.patch","issue_url":"https://api.github.com/repos/kaldi-asr/kaldi/issues/611","number":611,"state":"open","locked":false,"title":"chain: fixes #476 and enabled reading partial matrices with TableReader.","user":{"login":"xiaohui-zhang","id":14189585,"avatar_url":"https://avatars.githubusercontent.com/u/14189585?v=3","gravatar_id":"","url":"https://api.github.com/users/xiaohui-zhang","html_url":"https://github.com/xiaohui-zhang","followers_url":"https://api.github.com/users/xiaohui-zhang/followers","following_url":"https://api.github.com/users/xiaohui-zhang/following{/other_user}","gists_url":"https://api.github.com/users/xiaohui-zhang/gists{/gist_id}","starred_url":"https://api.github.com/users/xiaohui-zhang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xiaohui-zhang/subscriptions","organizations_url":"https://api.github.com/users/xiaohui-zhang/orgs","repos_url":"https://api.github.com/users/xiaohui-zhang/repos","events_url":"https://api.github.com/users/xiaohui-zhang/events{/privacy}","received_events_url":"https://api.github.com/users/xiaohui-zhang/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-03-23T04:55:36Z","updated_at":"2016-03-29T21:37:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"401d1d7f49048afd6e49b61368483f5be70cde2a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/kaldi-asr/kaldi/pulls/611/commits","review_comments_url":"https://api.github.com/repos/kaldi-asr/kaldi/pulls/611/comments","review_comment_url":"https://api.github.com/repos/kaldi-asr/kaldi/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kaldi-asr/kaldi/issues/611/comments","statuses_url":"https://api.github.com/repos/kaldi-asr/kaldi/statuses/3db86d008bd226b855446000447ef89bc387e2d1","head":{"label":"xiaohui-zhang:chain","ref":"chain","sha":"3db86d008bd226b855446000447ef89bc387e2d1","user":{"login":"xiaohui-zhang","id":14189585,"avatar_url":"https://avatars.githubusercontent.com/u/14189585?v=3","gravatar_id":"","url":"https://api.github.com/users/xiaohui-zhang","html_url":"https://github.com/xiaohui-zhang","followers_url":"https://api.github.com/users/xiaohui-zhang/followers","following_url":"https://api.github.com/users/xiaohui-zhang/following{/other_user}","gists_url":"https://api.github.com/users/xiaohui-zhang/gists{/gist_id}","starred_url":"https://api.github.com/users/xiaohui-zhang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xiaohui-zhang/subscriptions","organizations_url":"https://api.github.com/users/xiaohui-zhang/orgs","repos_url":"https://api.github.com/users/xiaohui-zhang/repos","events_url":"https://api.github.com/users/xiaohui-zhang/events{/privacy}","received_events_url":"https://api.github.com/users/xiaohui-zhang/received_events","type":"User","site_admin":false},"repo":{"id":42145647,"name":"kaldi","full_name":"xiaohui-zhang/kaldi","owner":{"login":"xiaohui-zhang","id":14189585,"avatar_url":"https://avatars.githubusercontent.com/u/14189585?v=3","gravatar_id":"","url":"https://api.github.com/users/xiaohui-zhang","html_url":"https://github.com/xiaohui-zhang","followers_url":"https://api.github.com/users/xiaohui-zhang/followers","following_url":"https://api.github.com/users/xiaohui-zhang/following{/other_user}","gists_url":"https://api.github.com/users/xiaohui-zhang/gists{/gist_id}","starred_url":"https://api.github.com/users/xiaohui-zhang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xiaohui-zhang/subscriptions","organizations_url":"https://api.github.com/users/xiaohui-zhang/orgs","repos_url":"https://api.github.com/users/xiaohui-zhang/repos","events_url":"https://api.github.com/users/xiaohui-zhang/events{/privacy}","received_events_url":"https://api.github.com/users/xiaohui-zhang/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/xiaohui-zhang/kaldi","description":"This is now the official location of the Kaldi project.","fork":true,"url":"https://api.github.com/repos/xiaohui-zhang/kaldi","forks_url":"https://api.github.com/repos/xiaohui-zhang/kaldi/forks","keys_url":"https://api.github.com/repos/xiaohui-zhang/kaldi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xiaohui-zhang/kaldi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xiaohui-zhang/kaldi/teams","hooks_url":"https://api.github.com/repos/xiaohui-zhang/kaldi/hooks","issue_events_url":"https://api.github.com/repos/xiaohui-zhang/kaldi/issues/events{/number}","events_url":"https://api.github.com/repos/xiaohui-zhang/kaldi/events","assignees_url":"https://api.github.com/repos/xiaohui-zhang/kaldi/assignees{/user}","branches_url":"https://api.github.com/repos/xiaohui-zhang/kaldi/branches{/branch}","tags_url":"https://api.github.com/repos/xiaohui-zhang/kaldi/tags","blobs_url":"https://api.github.com/repos/xiaohui-zhang/kaldi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xiaohui-zhang/kaldi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xiaohui-zhang/kaldi/git/refs{/sha}","trees_url":"https://api.github.com/repos/xiaohui-zhang/kaldi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xiaohui-zhang/kaldi/statuses/{sha}","languages_url":"https://api.github.com/repos/xiaohui-zhang/kaldi/languages","stargazers_url":"https://api.github.com/repos/xiaohui-zhang/kaldi/stargazers","contributors_url":"https://api.github.com/repos/xiaohui-zhang/kaldi/contributors","subscribers_url":"https://api.github.com/repos/xiaohui-zhang/kaldi/subscribers","subscription_url":"https://api.github.com/repos/xiaohui-zhang/kaldi/subscription","commits_url":"https://api.github.com/repos/xiaohui-zhang/kaldi/commits{/sha}","git_commits_url":"https://api.github.com/repos/xiaohui-zhang/kaldi/git/commits{/sha}","comments_url":"https://api.github.com/repos/xiaohui-zhang/kaldi/comments{/number}","issue_comment_url":"https://api.github.com/repos/xiaohui-zhang/kaldi/issues/comments{/number}","contents_url":"https://api.github.com/repos/xiaohui-zhang/kaldi/contents/{+path}","compare_url":"https://api.github.com/repos/xiaohui-zhang/kaldi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xiaohui-zhang/kaldi/merges","archive_url":"https://api.github.com/repos/xiaohui-zhang/kaldi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xiaohui-zhang/kaldi/downloads","issues_url":"https://api.github.com/repos/xiaohui-zhang/kaldi/issues{/number}","pulls_url":"https://api.github.com/repos/xiaohui-zhang/kaldi/pulls{/number}","milestones_url":"https://api.github.com/repos/xiaohui-zhang/kaldi/milestones{/number}","notifications_url":"https://api.github.com/repos/xiaohui-zhang/kaldi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xiaohui-zhang/kaldi/labels{/name}","releases_url":"https://api.github.com/repos/xiaohui-zhang/kaldi/releases{/id}","deployments_url":"https://api.github.com/repos/xiaohui-zhang/kaldi/deployments","created_at":"2015-09-09T00:04:25Z","updated_at":"2016-01-01T06:15:16Z","pushed_at":"2016-03-29T18:44:03Z","git_url":"git://github.com/xiaohui-zhang/kaldi.git","ssh_url":"git@github.com:xiaohui-zhang/kaldi.git","clone_url":"https://github.com/xiaohui-zhang/kaldi.git","svn_url":"https://github.com/xiaohui-zhang/kaldi","homepage":"http://kaldi-asr.org","size":100805,"stargazers_count":0,"watchers_count":0,"language":"C++","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":"kaldi-asr:chain","ref":"chain","sha":"e706ca200f87aa1c89671205d020e78797ed1c8e","user":{"login":"kaldi-asr","id":11650082,"avatar_url":"https://avatars.githubusercontent.com/u/11650082?v=3","gravatar_id":"","url":"https://api.github.com/users/kaldi-asr","html_url":"https://github.com/kaldi-asr","followers_url":"https://api.github.com/users/kaldi-asr/followers","following_url":"https://api.github.com/users/kaldi-asr/following{/other_user}","gists_url":"https://api.github.com/users/kaldi-asr/gists{/gist_id}","starred_url":"https://api.github.com/users/kaldi-asr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaldi-asr/subscriptions","organizations_url":"https://api.github.com/users/kaldi-asr/orgs","repos_url":"https://api.github.com/users/kaldi-asr/repos","events_url":"https://api.github.com/users/kaldi-asr/events{/privacy}","received_events_url":"https://api.github.com/users/kaldi-asr/received_events","type":"Organization","site_admin":false},"repo":{"id":34275045,"name":"kaldi","full_name":"kaldi-asr/kaldi","owner":{"login":"kaldi-asr","id":11650082,"avatar_url":"https://avatars.githubusercontent.com/u/11650082?v=3","gravatar_id":"","url":"https://api.github.com/users/kaldi-asr","html_url":"https://github.com/kaldi-asr","followers_url":"https://api.github.com/users/kaldi-asr/followers","following_url":"https://api.github.com/users/kaldi-asr/following{/other_user}","gists_url":"https://api.github.com/users/kaldi-asr/gists{/gist_id}","starred_url":"https://api.github.com/users/kaldi-asr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaldi-asr/subscriptions","organizations_url":"https://api.github.com/users/kaldi-asr/orgs","repos_url":"https://api.github.com/users/kaldi-asr/repos","events_url":"https://api.github.com/users/kaldi-asr/events{/privacy}","received_events_url":"https://api.github.com/users/kaldi-asr/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kaldi-asr/kaldi","description":"This is now the official location of the Kaldi project.","fork":false,"url":"https://api.github.com/repos/kaldi-asr/kaldi","forks_url":"https://api.github.com/repos/kaldi-asr/kaldi/forks","keys_url":"https://api.github.com/repos/kaldi-asr/kaldi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kaldi-asr/kaldi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kaldi-asr/kaldi/teams","hooks_url":"https://api.github.com/repos/kaldi-asr/kaldi/hooks","issue_events_url":"https://api.github.com/repos/kaldi-asr/kaldi/issues/events{/number}","events_url":"https://api.github.com/repos/kaldi-asr/kaldi/events","assignees_url":"https://api.github.com/repos/kaldi-asr/kaldi/assignees{/user}","branches_url":"https://api.github.com/repos/kaldi-asr/kaldi/branches{/branch}","tags_url":"https://api.github.com/repos/kaldi-asr/kaldi/tags","blobs_url":"https://api.github.com/repos/kaldi-asr/kaldi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kaldi-asr/kaldi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kaldi-asr/kaldi/git/refs{/sha}","trees_url":"https://api.github.com/repos/kaldi-asr/kaldi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kaldi-asr/kaldi/statuses/{sha}","languages_url":"https://api.github.com/repos/kaldi-asr/kaldi/languages","stargazers_url":"https://api.github.com/repos/kaldi-asr/kaldi/stargazers","contributors_url":"https://api.github.com/repos/kaldi-asr/kaldi/contributors","subscribers_url":"https://api.github.com/repos/kaldi-asr/kaldi/subscribers","subscription_url":"https://api.github.com/repos/kaldi-asr/kaldi/subscription","commits_url":"https://api.github.com/repos/kaldi-asr/kaldi/commits{/sha}","git_commits_url":"https://api.github.com/repos/kaldi-asr/kaldi/git/commits{/sha}","comments_url":"https://api.github.com/repos/kaldi-asr/kaldi/comments{/number}","issue_comment_url":"https://api.github.com/repos/kaldi-asr/kaldi/issues/comments{/number}","contents_url":"https://api.github.com/repos/kaldi-asr/kaldi/contents/{+path}","compare_url":"https://api.github.com/repos/kaldi-asr/kaldi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kaldi-asr/kaldi/merges","archive_url":"https://api.github.com/repos/kaldi-asr/kaldi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kaldi-asr/kaldi/downloads","issues_url":"https://api.github.com/repos/kaldi-asr/kaldi/issues{/number}","pulls_url":"https://api.github.com/repos/kaldi-asr/kaldi/pulls{/number}","milestones_url":"https://api.github.com/repos/kaldi-asr/kaldi/milestones{/number}","notifications_url":"https://api.github.com/repos/kaldi-asr/kaldi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kaldi-asr/kaldi/labels{/name}","releases_url":"https://api.github.com/repos/kaldi-asr/kaldi/releases{/id}","deployments_url":"https://api.github.com/repos/kaldi-asr/kaldi/deployments","created_at":"2015-04-20T17:23:16Z","updated_at":"2016-03-29T11:26:14Z","pushed_at":"2016-03-29T18:44:04Z","git_url":"git://github.com/kaldi-asr/kaldi.git","ssh_url":"git@github.com:kaldi-asr/kaldi.git","clone_url":"https://github.com/kaldi-asr/kaldi.git","svn_url":"https://github.com/kaldi-asr/kaldi","homepage":"http://kaldi-asr.org","size":114992,"stargazers_count":527,"watchers_count":527,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":314,"mirror_url":null,"open_issues_count":38,"forks":314,"open_issues":38,"watchers":527,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kaldi-asr/kaldi/pulls/611"},"html":{"href":"https://github.com/kaldi-asr/kaldi/pull/611"},"issue":{"href":"https://api.github.com/repos/kaldi-asr/kaldi/issues/611"},"comments":{"href":"https://api.github.com/repos/kaldi-asr/kaldi/issues/611/comments"},"review_comments":{"href":"https://api.github.com/repos/kaldi-asr/kaldi/pulls/611/comments"},"review_comment":{"href":"https://api.github.com/repos/kaldi-asr/kaldi/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kaldi-asr/kaldi/pulls/611/commits"},"statuses":{"href":"https://api.github.com/repos/kaldi-asr/kaldi/statuses/3db86d008bd226b855446000447ef89bc387e2d1"}}}}