GitHub PullRequestReviewCommentEvent at 2014-02-09 22:34:03
Repository: incubator-spark
Actor: rxin
Payload: {"comment":{"url":"https://api.github.com/repos/apache/incubator-spark/pulls/comments/9571358","id":9571358,"diff_hunk":"@@ -80,7 +80,8 @@ object LocalKMeans {\n \n       var mappings = closest.groupBy[Int] (x => x._1)\n \n-      var pointStats = mappings.map(pair => pair._2.reduceLeft [(Int, (Vector, Int))] {case ((id1, (x1, y1)), (id2, (x2, y2))) => (id1, (x1 + x2, y1+y2))})\n+      var pointStats = mappings.map(pair => pair._2.reduceLeft [(Int, (Vector, Int))] {","path":"examples/src/main/scala/org/apache/spark/examples/LocalKMeans.scala","position":5,"original_position":5,"commit_id":"3872fc91748259fec5f206f265441b6e2fccad9a","original_commit_id":"3872fc91748259fec5f206f265441b6e2fccad9a","user":{"login":"rxin","id":323388,"avatar_url":"https://gravatar.com/avatar/73bfac91877fce35c6d20e16e9e53677?d=https%3A%2F%2Fidenticons.github.com%2F017ef876ba320362d11baf01bb584eee.png&r=x","gravatar_id":"73bfac91877fce35c6d20e16e9e53677","url":"https://api.github.com/users/rxin","html_url":"https://github.com/rxin","followers_url":"https://api.github.com/users/rxin/followers","following_url":"https://api.github.com/users/rxin/following{/other_user}","gists_url":"https://api.github.com/users/rxin/gists{/gist_id}","starred_url":"https://api.github.com/users/rxin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rxin/subscriptions","organizations_url":"https://api.github.com/users/rxin/orgs","repos_url":"https://api.github.com/users/rxin/repos","events_url":"https://api.github.com/users/rxin/events{/privacy}","received_events_url":"https://api.github.com/users/rxin/received_events","type":"User","site_admin":false},"body":"```scala\r\nvar pointStats = mappings.map { pair =>\r\n  pair._2.reduceLeft [(Int, (Vector, Int))] {\r\n    case ((id1, (x1, y1)), (id2, (x2, y2))) => (id1, (x1 + x2, y1 + y2))})\r\n  }\r\n}\r\n```","created_at":"2014-02-09T22:34:03Z","updated_at":"2014-02-09T22:34:03Z","html_url":"https://github.com/apache/incubator-spark/pull/567#discussion_r9571358","pull_request_url":"https://api.github.com/repos/apache/incubator-spark/pulls/567","_links":{"self":{"href":"https://api.github.com/repos/apache/incubator-spark/pulls/comments/9571358"},"html":{"href":"https://github.com/apache/incubator-spark/pull/567#discussion_r9571358"},"pull_request":{"href":"https://api.github.com/repos/apache/incubator-spark/pulls/567"}}}}