{"action":"closed","number":224,"pull_request":{"url":"https://api.github.com/repos/apache/mahout/pulls/224","id":67154003,"html_url":"https://github.com/apache/mahout/pull/224","diff_url":"https://github.com/apache/mahout/pull/224.diff","patch_url":"https://github.com/apache/mahout/pull/224.patch","issue_url":"https://api.github.com/repos/apache/mahout/issues/224","number":224,"state":"closed","locked":false,"title":"MAHOUT-1833 - Enhance svec function to accept cardinality as parameter","user":{"login":"resec","id":4277636,"avatar_url":"https://avatars.githubusercontent.com/u/4277636?v=3","gravatar_id":"","url":"https://api.github.com/users/resec","html_url":"https://github.com/resec","followers_url":"https://api.github.com/users/resec/followers","following_url":"https://api.github.com/users/resec/following{/other_user}","gists_url":"https://api.github.com/users/resec/gists{/gist_id}","starred_url":"https://api.github.com/users/resec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/resec/subscriptions","organizations_url":"https://api.github.com/users/resec/orgs","repos_url":"https://api.github.com/users/resec/repos","events_url":"https://api.github.com/users/resec/events{/privacy}","received_events_url":"https://api.github.com/users/resec/received_events","type":"User","site_admin":false},"body":"### What is this PR for?\r\nEnhance the existing svec function to accept cardinality as parameter(with default value defined), so user can specify the created vector size they want.\r\n\r\n### What type of PR is it?\r\n[Improvement]\r\n\r\n### Todos\r\n* [x] - Add the cardinality parameter to svec with default value defined\r\n* [x] - Add test case to MathSuite\r\n* [ ] - Update any doc if needed(pending to check)\r\n\r\n### What is the Jira issue?\r\n* [MAHOUT-1833](https://issues.apache.org/jira/browse/MAHOUT-1833)\r\n\r\n### How should this be tested?\r\n1. Clone the code into local\r\n2. Maven build and test, all tests should be green\r\n\r\n### Questions:\r\n* Does the licenses files need update? No\r\n* Is there breaking changes for older versions? No\r\n* Does this needs documentation? Pending to check","created_at":"2016-04-20T09:24:24Z","updated_at":"2016-04-22T20:41:27Z","closed_at":"2016-04-22T20:41:27Z","merged_at":null,"merge_commit_sha":"2023fd4280ba54c893cc13c9aa16f4e2a5823fb5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apache/mahout/pulls/224/commits","review_comments_url":"https://api.github.com/repos/apache/mahout/pulls/224/comments","review_comment_url":"https://api.github.com/repos/apache/mahout/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/mahout/issues/224/comments","statuses_url":"https://api.github.com/repos/apache/mahout/statuses/80be9190f8aa96008db4724fbede3d81fc18a708","head":{"label":"resec:new_svec","ref":"new_svec","sha":"80be9190f8aa96008db4724fbede3d81fc18a708","user":{"login":"resec","id":4277636,"avatar_url":"https://avatars.githubusercontent.com/u/4277636?v=3","gravatar_id":"","url":"https://api.github.com/users/resec","html_url":"https://github.com/resec","followers_url":"https://api.github.com/users/resec/followers","following_url":"https://api.github.com/users/resec/following{/other_user}","gists_url":"https://api.github.com/users/resec/gists{/gist_id}","starred_url":"https://api.github.com/users/resec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/resec/subscriptions","organizations_url":"https://api.github.com/users/resec/orgs","repos_url":"https://api.github.com/users/resec/repos","events_url":"https://api.github.com/users/resec/events{/privacy}","received_events_url":"https://api.github.com/users/resec/received_events","type":"User","site_admin":false},"repo":{"id":56653754,"name":"mahout","full_name":"resec/mahout","owner":{"login":"resec","id":4277636,"avatar_url":"https://avatars.githubusercontent.com/u/4277636?v=3","gravatar_id":"","url":"https://api.github.com/users/resec","html_url":"https://github.com/resec","followers_url":"https://api.github.com/users/resec/followers","following_url":"https://api.github.com/users/resec/following{/other_user}","gists_url":"https://api.github.com/users/resec/gists{/gist_id}","starred_url":"https://api.github.com/users/resec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/resec/subscriptions","organizations_url":"https://api.github.com/users/resec/orgs","repos_url":"https://api.github.com/users/resec/repos","events_url":"https://api.github.com/users/resec/events{/privacy}","received_events_url":"https://api.github.com/users/resec/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/resec/mahout","description":"Mirror of Apache Mahout","fork":true,"url":"https://api.github.com/repos/resec/mahout","forks_url":"https://api.github.com/repos/resec/mahout/forks","keys_url":"https://api.github.com/repos/resec/mahout/keys{/key_id}","collaborators_url":"https://api.github.com/repos/resec/mahout/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/resec/mahout/teams","hooks_url":"https://api.github.com/repos/resec/mahout/hooks","issue_events_url":"https://api.github.com/repos/resec/mahout/issues/events{/number}","events_url":"https://api.github.com/repos/resec/mahout/events","assignees_url":"https://api.github.com/repos/resec/mahout/assignees{/user}","branches_url":"https://api.github.com/repos/resec/mahout/branches{/branch}","tags_url":"https://api.github.com/repos/resec/mahout/tags","blobs_url":"https://api.github.com/repos/resec/mahout/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/resec/mahout/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/resec/mahout/git/refs{/sha}","trees_url":"https://api.github.com/repos/resec/mahout/git/trees{/sha}","statuses_url":"https://api.github.com/repos/resec/mahout/statuses/{sha}","languages_url":"https://api.github.com/repos/resec/mahout/languages","stargazers_url":"https://api.github.com/repos/resec/mahout/stargazers","contributors_url":"https://api.github.com/repos/resec/mahout/contributors","subscribers_url":"https://api.github.com/repos/resec/mahout/subscribers","subscription_url":"https://api.github.com/repos/resec/mahout/subscription","commits_url":"https://api.github.com/repos/resec/mahout/commits{/sha}","git_commits_url":"https://api.github.com/repos/resec/mahout/git/commits{/sha}","comments_url":"https://api.github.com/repos/resec/mahout/comments{/number}","issue_comment_url":"https://api.github.com/repos/resec/mahout/issues/comments{/number}","contents_url":"https://api.github.com/repos/resec/mahout/contents/{+path}","compare_url":"https://api.github.com/repos/resec/mahout/compare/{base}...{head}","merges_url":"https://api.github.com/repos/resec/mahout/merges","archive_url":"https://api.github.com/repos/resec/mahout/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/resec/mahout/downloads","issues_url":"https://api.github.com/repos/resec/mahout/issues{/number}","pulls_url":"https://api.github.com/repos/resec/mahout/pulls{/number}","milestones_url":"https://api.github.com/repos/resec/mahout/milestones{/number}","notifications_url":"https://api.github.com/repos/resec/mahout/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/resec/mahout/labels{/name}","releases_url":"https://api.github.com/repos/resec/mahout/releases{/id}","deployments_url":"https://api.github.com/repos/resec/mahout/deployments","created_at":"2016-04-20T03:54:44Z","updated_at":"2016-04-20T03:54:49Z","pushed_at":"2016-04-20T16:58:10Z","git_url":"git://github.com/resec/mahout.git","ssh_url":"git@github.com:resec/mahout.git","clone_url":"https://github.com/resec/mahout.git","svn_url":"https://github.com/resec/mahout","homepage":null,"size":48211,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"apache:master","ref":"master","sha":"536abe76b9a15f7e6482a82adf963b41905148fa","user":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"repo":{"id":20089859,"name":"mahout","full_name":"apache/mahout","owner":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apache/mahout","description":"Mirror of Apache Mahout","fork":false,"url":"https://api.github.com/repos/apache/mahout","forks_url":"https://api.github.com/repos/apache/mahout/forks","keys_url":"https://api.github.com/repos/apache/mahout/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/mahout/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/mahout/teams","hooks_url":"https://api.github.com/repos/apache/mahout/hooks","issue_events_url":"https://api.github.com/repos/apache/mahout/issues/events{/number}","events_url":"https://api.github.com/repos/apache/mahout/events","assignees_url":"https://api.github.com/repos/apache/mahout/assignees{/user}","branches_url":"https://api.github.com/repos/apache/mahout/branches{/branch}","tags_url":"https://api.github.com/repos/apache/mahout/tags","blobs_url":"https://api.github.com/repos/apache/mahout/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/mahout/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/mahout/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/mahout/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/mahout/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/mahout/languages","stargazers_url":"https://api.github.com/repos/apache/mahout/stargazers","contributors_url":"https://api.github.com/repos/apache/mahout/contributors","subscribers_url":"https://api.github.com/repos/apache/mahout/subscribers","subscription_url":"https://api.github.com/repos/apache/mahout/subscription","commits_url":"https://api.github.com/repos/apache/mahout/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/mahout/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/mahout/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/mahout/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/mahout/contents/{+path}","compare_url":"https://api.github.com/repos/apache/mahout/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/mahout/merges","archive_url":"https://api.github.com/repos/apache/mahout/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/mahout/downloads","issues_url":"https://api.github.com/repos/apache/mahout/issues{/number}","pulls_url":"https://api.github.com/repos/apache/mahout/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/mahout/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/mahout/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/mahout/labels{/name}","releases_url":"https://api.github.com/repos/apache/mahout/releases{/id}","deployments_url":"https://api.github.com/repos/apache/mahout/deployments","created_at":"2014-05-23T07:00:07Z","updated_at":"2016-04-22T13:56:54Z","pushed_at":"2016-04-22T20:41:26Z","git_url":"git://github.com/apache/mahout.git","ssh_url":"git@github.com:apache/mahout.git","clone_url":"https://github.com/apache/mahout.git","svn_url":"https://github.com/apache/mahout","homepage":null,"size":50790,"stargazers_count":786,"watchers_count":786,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":589,"mirror_url":"git://git.apache.org/mahout.git","open_issues_count":11,"forks":589,"open_issues":11,"watchers":786,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/mahout/pulls/224"},"html":{"href":"https://github.com/apache/mahout/pull/224"},"issue":{"href":"https://api.github.com/repos/apache/mahout/issues/224"},"comments":{"href":"https://api.github.com/repos/apache/mahout/issues/224/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/mahout/pulls/224/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/mahout/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/mahout/pulls/224/commits"},"statuses":{"href":"https://api.github.com/repos/apache/mahout/statuses/80be9190f8aa96008db4724fbede3d81fc18a708"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":10,"review_comments":0,"commits":2,"additions":23,"deletions":4,"changed_files":2}}