{"action":"created","comment":{"url":"https://api.github.com/repos/OryxProject/oryx/pulls/comments/23687012","id":23687012,"diff_hunk":"@@ -204,18 +202,6 @@ public Vector call(String[] tokens) {\n     });\n   }\n \n-  private static Cluster toCluster(Vector clusterCenter, int clusterId, int clusterSize) {\n-    String s = Arrays.toString(clusterCenter.toArray());\n-    return new Cluster()\n-        .withId(String.valueOf(clusterId))\n-        .withName(\"cluster_\" + clusterId)\n-        .withSize(clusterSize)\n-        .withArray(new Array()\n-            .withType(Array.Type.REAL)\n-            .withValue(s.substring(1, s.length() - 1))","path":"oryx-app-mllib/src/main/java/com/cloudera/oryx/app/mllib/kmeans/KMeansUpdate.java","position":99,"original_position":99,"commit_id":"b9f4133050247b0447ddbbb2b3249e68ed9983a8","original_commit_id":"b9f4133050247b0447ddbbb2b3249e68ed9983a8","user":{"login":"srowen","id":822522,"avatar_url":"https://avatars.githubusercontent.com/u/822522?v=3","gravatar_id":"","url":"https://api.github.com/users/srowen","html_url":"https://github.com/srowen","followers_url":"https://api.github.com/users/srowen/followers","following_url":"https://api.github.com/users/srowen/following{/other_user}","gists_url":"https://api.github.com/users/srowen/gists{/gist_id}","starred_url":"https://api.github.com/users/srowen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/srowen/subscriptions","organizations_url":"https://api.github.com/users/srowen/orgs","repos_url":"https://api.github.com/users/srowen/repos","events_url":"https://api.github.com/users/srowen/events{/privacy}","received_events_url":"https://api.github.com/users/srowen/received_events","type":"User","site_admin":false},"body":"This has to be joined on spaces I think. I did so when I inlined this above.","created_at":"2015-01-28T13:43:34Z","updated_at":"2015-01-28T13:43:34Z","html_url":"https://github.com/OryxProject/oryx/pull/131#discussion_r23687012","pull_request_url":"https://api.github.com/repos/OryxProject/oryx/pulls/131","_links":{"self":{"href":"https://api.github.com/repos/OryxProject/oryx/pulls/comments/23687012"},"html":{"href":"https://github.com/OryxProject/oryx/pull/131#discussion_r23687012"},"pull_request":{"href":"https://api.github.com/repos/OryxProject/oryx/pulls/131"}}},"pull_request":{"url":"https://api.github.com/repos/OryxProject/oryx/pulls/131","id":28193947,"html_url":"https://github.com/OryxProject/oryx/pull/131","diff_url":"https://github.com/OryxProject/oryx/pull/131.diff","patch_url":"https://github.com/OryxProject/oryx/pull/131.patch","issue_url":"https://api.github.com/repos/OryxProject/oryx/issues/131","number":131,"state":"open","locked":false,"title":"Small changes and potential fixes to KMeansUpdate","user":{"login":"srowen","id":822522,"avatar_url":"https://avatars.githubusercontent.com/u/822522?v=3","gravatar_id":"","url":"https://api.github.com/users/srowen","html_url":"https://github.com/srowen","followers_url":"https://api.github.com/users/srowen/followers","following_url":"https://api.github.com/users/srowen/following{/other_user}","gists_url":"https://api.github.com/users/srowen/gists{/gist_id}","starred_url":"https://api.github.com/users/srowen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/srowen/subscriptions","organizations_url":"https://api.github.com/users/srowen/orgs","repos_url":"https://api.github.com/users/srowen/repos","events_url":"https://api.github.com/users/srowen/events{/privacy}","received_events_url":"https://api.github.com/users/srowen/received_events","type":"User","site_admin":false},"body":"Suneel, I'll annotate the changes I propose below. WDYT?","created_at":"2015-01-28T13:41:26Z","updated_at":"2015-01-28T13:43:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8a91afbf08103af654e7a77d4fb33cc95a8950ad","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/OryxProject/oryx/pulls/131/commits","review_comments_url":"https://api.github.com/repos/OryxProject/oryx/pulls/131/comments","review_comment_url":"https://api.github.com/repos/OryxProject/oryx/pulls/comments/{number}","comments_url":"https://api.github.com/repos/OryxProject/oryx/issues/131/comments","statuses_url":"https://api.github.com/repos/OryxProject/oryx/statuses/b9f4133050247b0447ddbbb2b3249e68ed9983a8","head":{"label":"srowen:KMeansChanges","ref":"KMeansChanges","sha":"b9f4133050247b0447ddbbb2b3249e68ed9983a8","user":{"login":"srowen","id":822522,"avatar_url":"https://avatars.githubusercontent.com/u/822522?v=3","gravatar_id":"","url":"https://api.github.com/users/srowen","html_url":"https://github.com/srowen","followers_url":"https://api.github.com/users/srowen/followers","following_url":"https://api.github.com/users/srowen/following{/other_user}","gists_url":"https://api.github.com/users/srowen/gists{/gist_id}","starred_url":"https://api.github.com/users/srowen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/srowen/subscriptions","organizations_url":"https://api.github.com/users/srowen/orgs","repos_url":"https://api.github.com/users/srowen/repos","events_url":"https://api.github.com/users/srowen/events{/privacy}","received_events_url":"https://api.github.com/users/srowen/received_events","type":"User","site_admin":false},"repo":{"id":22754274,"name":"oryx","full_name":"srowen/oryx","owner":{"login":"srowen","id":822522,"avatar_url":"https://avatars.githubusercontent.com/u/822522?v=3","gravatar_id":"","url":"https://api.github.com/users/srowen","html_url":"https://github.com/srowen","followers_url":"https://api.github.com/users/srowen/followers","following_url":"https://api.github.com/users/srowen/following{/other_user}","gists_url":"https://api.github.com/users/srowen/gists{/gist_id}","starred_url":"https://api.github.com/users/srowen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/srowen/subscriptions","organizations_url":"https://api.github.com/users/srowen/orgs","repos_url":"https://api.github.com/users/srowen/repos","events_url":"https://api.github.com/users/srowen/events{/privacy}","received_events_url":"https://api.github.com/users/srowen/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/srowen/oryx","description":"Oryx 2 (incubating): Lambda architecture on Spark for real-time large scale machine learning","fork":true,"url":"https://api.github.com/repos/srowen/oryx","forks_url":"https://api.github.com/repos/srowen/oryx/forks","keys_url":"https://api.github.com/repos/srowen/oryx/keys{/key_id}","collaborators_url":"https://api.github.com/repos/srowen/oryx/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/srowen/oryx/teams","hooks_url":"https://api.github.com/repos/srowen/oryx/hooks","issue_events_url":"https://api.github.com/repos/srowen/oryx/issues/events{/number}","events_url":"https://api.github.com/repos/srowen/oryx/events","assignees_url":"https://api.github.com/repos/srowen/oryx/assignees{/user}","branches_url":"https://api.github.com/repos/srowen/oryx/branches{/branch}","tags_url":"https://api.github.com/repos/srowen/oryx/tags","blobs_url":"https://api.github.com/repos/srowen/oryx/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/srowen/oryx/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/srowen/oryx/git/refs{/sha}","trees_url":"https://api.github.com/repos/srowen/oryx/git/trees{/sha}","statuses_url":"https://api.github.com/repos/srowen/oryx/statuses/{sha}","languages_url":"https://api.github.com/repos/srowen/oryx/languages","stargazers_url":"https://api.github.com/repos/srowen/oryx/stargazers","contributors_url":"https://api.github.com/repos/srowen/oryx/contributors","subscribers_url":"https://api.github.com/repos/srowen/oryx/subscribers","subscription_url":"https://api.github.com/repos/srowen/oryx/subscription","commits_url":"https://api.github.com/repos/srowen/oryx/commits{/sha}","git_commits_url":"https://api.github.com/repos/srowen/oryx/git/commits{/sha}","comments_url":"https://api.github.com/repos/srowen/oryx/comments{/number}","issue_comment_url":"https://api.github.com/repos/srowen/oryx/issues/comments/{number}","contents_url":"https://api.github.com/repos/srowen/oryx/contents/{+path}","compare_url":"https://api.github.com/repos/srowen/oryx/compare/{base}...{head}","merges_url":"https://api.github.com/repos/srowen/oryx/merges","archive_url":"https://api.github.com/repos/srowen/oryx/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/srowen/oryx/downloads","issues_url":"https://api.github.com/repos/srowen/oryx/issues{/number}","pulls_url":"https://api.github.com/repos/srowen/oryx/pulls{/number}","milestones_url":"https://api.github.com/repos/srowen/oryx/milestones{/number}","notifications_url":"https://api.github.com/repos/srowen/oryx/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/srowen/oryx/labels{/name}","releases_url":"https://api.github.com/repos/srowen/oryx/releases{/id}","created_at":"2014-08-08T10:23:24Z","updated_at":"2015-01-28T13:21:09Z","pushed_at":"2015-01-28T13:38:39Z","git_url":"git://github.com/srowen/oryx.git","ssh_url":"git@github.com:srowen/oryx.git","clone_url":"https://github.com/srowen/oryx.git","svn_url":"https://github.com/srowen/oryx","homepage":null,"size":2517,"stargazers_count":7,"watchers_count":7,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":0,"forks":3,"open_issues":0,"watchers":7,"default_branch":"master"}},"base":{"label":"OryxProject:master","ref":"master","sha":"d8821ab51873fd7343425868fe4e5761821aadfc","user":{"login":"OryxProject","id":8270649,"avatar_url":"https://avatars.githubusercontent.com/u/8270649?v=3","gravatar_id":"","url":"https://api.github.com/users/OryxProject","html_url":"https://github.com/OryxProject","followers_url":"https://api.github.com/users/OryxProject/followers","following_url":"https://api.github.com/users/OryxProject/following{/other_user}","gists_url":"https://api.github.com/users/OryxProject/gists{/gist_id}","starred_url":"https://api.github.com/users/OryxProject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OryxProject/subscriptions","organizations_url":"https://api.github.com/users/OryxProject/orgs","repos_url":"https://api.github.com/users/OryxProject/repos","events_url":"https://api.github.com/users/OryxProject/events{/privacy}","received_events_url":"https://api.github.com/users/OryxProject/received_events","type":"Organization","site_admin":false},"repo":{"id":22269384,"name":"oryx","full_name":"OryxProject/oryx","owner":{"login":"OryxProject","id":8270649,"avatar_url":"https://avatars.githubusercontent.com/u/8270649?v=3","gravatar_id":"","url":"https://api.github.com/users/OryxProject","html_url":"https://github.com/OryxProject","followers_url":"https://api.github.com/users/OryxProject/followers","following_url":"https://api.github.com/users/OryxProject/following{/other_user}","gists_url":"https://api.github.com/users/OryxProject/gists{/gist_id}","starred_url":"https://api.github.com/users/OryxProject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OryxProject/subscriptions","organizations_url":"https://api.github.com/users/OryxProject/orgs","repos_url":"https://api.github.com/users/OryxProject/repos","events_url":"https://api.github.com/users/OryxProject/events{/privacy}","received_events_url":"https://api.github.com/users/OryxProject/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OryxProject/oryx","description":"Oryx 2 (incubating): Lambda architecture on Spark for real-time large scale machine learning","fork":false,"url":"https://api.github.com/repos/OryxProject/oryx","forks_url":"https://api.github.com/repos/OryxProject/oryx/forks","keys_url":"https://api.github.com/repos/OryxProject/oryx/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OryxProject/oryx/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OryxProject/oryx/teams","hooks_url":"https://api.github.com/repos/OryxProject/oryx/hooks","issue_events_url":"https://api.github.com/repos/OryxProject/oryx/issues/events{/number}","events_url":"https://api.github.com/repos/OryxProject/oryx/events","assignees_url":"https://api.github.com/repos/OryxProject/oryx/assignees{/user}","branches_url":"https://api.github.com/repos/OryxProject/oryx/branches{/branch}","tags_url":"https://api.github.com/repos/OryxProject/oryx/tags","blobs_url":"https://api.github.com/repos/OryxProject/oryx/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OryxProject/oryx/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OryxProject/oryx/git/refs{/sha}","trees_url":"https://api.github.com/repos/OryxProject/oryx/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OryxProject/oryx/statuses/{sha}","languages_url":"https://api.github.com/repos/OryxProject/oryx/languages","stargazers_url":"https://api.github.com/repos/OryxProject/oryx/stargazers","contributors_url":"https://api.github.com/repos/OryxProject/oryx/contributors","subscribers_url":"https://api.github.com/repos/OryxProject/oryx/subscribers","subscription_url":"https://api.github.com/repos/OryxProject/oryx/subscription","commits_url":"https://api.github.com/repos/OryxProject/oryx/commits{/sha}","git_commits_url":"https://api.github.com/repos/OryxProject/oryx/git/commits{/sha}","comments_url":"https://api.github.com/repos/OryxProject/oryx/comments{/number}","issue_comment_url":"https://api.github.com/repos/OryxProject/oryx/issues/comments/{number}","contents_url":"https://api.github.com/repos/OryxProject/oryx/contents/{+path}","compare_url":"https://api.github.com/repos/OryxProject/oryx/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OryxProject/oryx/merges","archive_url":"https://api.github.com/repos/OryxProject/oryx/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OryxProject/oryx/downloads","issues_url":"https://api.github.com/repos/OryxProject/oryx/issues{/number}","pulls_url":"https://api.github.com/repos/OryxProject/oryx/pulls{/number}","milestones_url":"https://api.github.com/repos/OryxProject/oryx/milestones{/number}","notifications_url":"https://api.github.com/repos/OryxProject/oryx/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OryxProject/oryx/labels{/name}","releases_url":"https://api.github.com/repos/OryxProject/oryx/releases{/id}","created_at":"2014-07-25T20:08:44Z","updated_at":"2015-01-28T13:40:37Z","pushed_at":"2015-01-28T13:40:37Z","git_url":"git://github.com/OryxProject/oryx.git","ssh_url":"git@github.com:OryxProject/oryx.git","clone_url":"https://github.com/OryxProject/oryx.git","svn_url":"https://github.com/OryxProject/oryx","homepage":null,"size":5055,"stargazers_count":209,"watchers_count":209,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":41,"mirror_url":null,"open_issues_count":9,"forks":41,"open_issues":9,"watchers":209,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/OryxProject/oryx/pulls/131"},"html":{"href":"https://github.com/OryxProject/oryx/pull/131"},"issue":{"href":"https://api.github.com/repos/OryxProject/oryx/issues/131"},"comments":{"href":"https://api.github.com/repos/OryxProject/oryx/issues/131/comments"},"review_comments":{"href":"https://api.github.com/repos/OryxProject/oryx/pulls/131/comments"},"review_comment":{"href":"https://api.github.com/repos/OryxProject/oryx/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/OryxProject/oryx/pulls/131/commits"},"statuses":{"href":"https://api.github.com/repos/OryxProject/oryx/statuses/b9f4133050247b0447ddbbb2b3249e68ed9983a8"}}}}