{"action":"created","comment":{"url":"https://api.github.com/repos/apache/spark/pulls/comments/46080243","id":46080243,"diff_hunk":"@@ -0,0 +1,53 @@\n+/*\n+ * Licensed to the Apache Software Foundation (ASF) under one or more\n+ * contributor license agreements.  See the NOTICE file distributed with\n+ * this work for additional information regarding copyright ownership.\n+ * The ASF licenses this file to You under the Apache License, Version 2.0\n+ * (the \"License\"); you may not use this file except in compliance with\n+ * the License.  You may obtain a copy of the License at\n+ *\n+ *    http://www.apache.org/licenses/LICENSE-2.0\n+ *\n+ * Unless required by applicable law or agreed to in writing, software\n+ * distributed under the License is distributed on an \"AS IS\" BASIS,\n+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+ * See the License for the specific language governing permissions and\n+ * limitations under the License.\n+ */\n+\n+// scalastyle:off println\n+package org.apache.spark.examples.ml\n+\n+// $example on$\n+import org.apache.spark.ml.feature.ElementwiseProduct\n+import org.apache.spark.mllib.linalg.Vectors\n+// $example off$\n+import org.apache.spark.sql.SQLContext\n+import org.apache.spark.{SparkConf, SparkContext}\n+\n+object ElementwiseProductExample {","path":"examples/src/main/scala/org/apache/spark/examples/ml/ElementWiseProductExample.scala","position":28,"original_position":28,"commit_id":"c143d4b2e35275f72ef7b6e5f73ef8cfcceddc4a","original_commit_id":"c143d4b2e35275f72ef7b6e5f73ef8cfcceddc4a","user":{"login":"yinxusen","id":2637239,"avatar_url":"https://avatars.githubusercontent.com/u/2637239?v=3","gravatar_id":"","url":"https://api.github.com/users/yinxusen","html_url":"https://github.com/yinxusen","followers_url":"https://api.github.com/users/yinxusen/followers","following_url":"https://api.github.com/users/yinxusen/following{/other_user}","gists_url":"https://api.github.com/users/yinxusen/gists{/gist_id}","starred_url":"https://api.github.com/users/yinxusen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yinxusen/subscriptions","organizations_url":"https://api.github.com/users/yinxusen/orgs","repos_url":"https://api.github.com/users/yinxusen/repos","events_url":"https://api.github.com/users/yinxusen/events{/privacy}","received_events_url":"https://api.github.com/users/yinxusen/received_events","type":"User","site_admin":false},"body":"Change the file name into `ElementwiseProductExample.scala`, i.e. lower case the `w`, making it consistency with the class name. Change the file name in `ml-features.md` accordingly.","created_at":"2015-11-28T14:25:41Z","updated_at":"2015-11-28T14:25:41Z","html_url":"https://github.com/apache/spark/pull/10002#discussion_r46080243","pull_request_url":"https://api.github.com/repos/apache/spark/pulls/10002","_links":{"self":{"href":"https://api.github.com/repos/apache/spark/pulls/comments/46080243"},"html":{"href":"https://github.com/apache/spark/pull/10002#discussion_r46080243"},"pull_request":{"href":"https://api.github.com/repos/apache/spark/pulls/10002"}}},"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/10002","id":51905027,"html_url":"https://github.com/apache/spark/pull/10002","diff_url":"https://github.com/apache/spark/pull/10002.diff","patch_url":"https://github.com/apache/spark/pull/10002.patch","issue_url":"https://api.github.com/repos/apache/spark/issues/10002","number":10002,"state":"open","locked":false,"title":"[SPARK-11551][DOC][Example]Replace example code in ml-features.md using include_example","user":{"login":"somideshmukh","id":13100125,"avatar_url":"https://avatars.githubusercontent.com/u/13100125?v=3","gravatar_id":"","url":"https://api.github.com/users/somideshmukh","html_url":"https://github.com/somideshmukh","followers_url":"https://api.github.com/users/somideshmukh/followers","following_url":"https://api.github.com/users/somideshmukh/following{/other_user}","gists_url":"https://api.github.com/users/somideshmukh/gists{/gist_id}","starred_url":"https://api.github.com/users/somideshmukh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/somideshmukh/subscriptions","organizations_url":"https://api.github.com/users/somideshmukh/orgs","repos_url":"https://api.github.com/users/somideshmukh/repos","events_url":"https://api.github.com/users/somideshmukh/events{/privacy}","received_events_url":"https://api.github.com/users/somideshmukh/received_events","type":"User","site_admin":false},"body":"Made new patch contaning only markdown examples moved to exmaple/folder.\nOny three  java code were not shfted since they were contaning compliation error ,these classes are\n1)StandardScale 2)NormalizerExample 3)VectorIndexer","created_at":"2015-11-26T12:07:22Z","updated_at":"2015-11-28T14:25:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"60fac84f96b25142d0cd14b12d0008e592d5c229","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apache/spark/pulls/10002/commits","review_comments_url":"https://api.github.com/repos/apache/spark/pulls/10002/comments","review_comment_url":"https://api.github.com/repos/apache/spark/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/spark/issues/10002/comments","statuses_url":"https://api.github.com/repos/apache/spark/statuses/c143d4b2e35275f72ef7b6e5f73ef8cfcceddc4a","head":{"label":"somideshmukh:SomilBranch1.33","ref":"SomilBranch1.33","sha":"c143d4b2e35275f72ef7b6e5f73ef8cfcceddc4a","user":{"login":"somideshmukh","id":13100125,"avatar_url":"https://avatars.githubusercontent.com/u/13100125?v=3","gravatar_id":"","url":"https://api.github.com/users/somideshmukh","html_url":"https://github.com/somideshmukh","followers_url":"https://api.github.com/users/somideshmukh/followers","following_url":"https://api.github.com/users/somideshmukh/following{/other_user}","gists_url":"https://api.github.com/users/somideshmukh/gists{/gist_id}","starred_url":"https://api.github.com/users/somideshmukh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/somideshmukh/subscriptions","organizations_url":"https://api.github.com/users/somideshmukh/orgs","repos_url":"https://api.github.com/users/somideshmukh/repos","events_url":"https://api.github.com/users/somideshmukh/events{/privacy}","received_events_url":"https://api.github.com/users/somideshmukh/received_events","type":"User","site_admin":false},"repo":{"id":45387198,"name":"spark","full_name":"somideshmukh/spark","owner":{"login":"somideshmukh","id":13100125,"avatar_url":"https://avatars.githubusercontent.com/u/13100125?v=3","gravatar_id":"","url":"https://api.github.com/users/somideshmukh","html_url":"https://github.com/somideshmukh","followers_url":"https://api.github.com/users/somideshmukh/followers","following_url":"https://api.github.com/users/somideshmukh/following{/other_user}","gists_url":"https://api.github.com/users/somideshmukh/gists{/gist_id}","starred_url":"https://api.github.com/users/somideshmukh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/somideshmukh/subscriptions","organizations_url":"https://api.github.com/users/somideshmukh/orgs","repos_url":"https://api.github.com/users/somideshmukh/repos","events_url":"https://api.github.com/users/somideshmukh/events{/privacy}","received_events_url":"https://api.github.com/users/somideshmukh/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/somideshmukh/spark","description":"Mirror of Apache Spark","fork":true,"url":"https://api.github.com/repos/somideshmukh/spark","forks_url":"https://api.github.com/repos/somideshmukh/spark/forks","keys_url":"https://api.github.com/repos/somideshmukh/spark/keys{/key_id}","collaborators_url":"https://api.github.com/repos/somideshmukh/spark/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/somideshmukh/spark/teams","hooks_url":"https://api.github.com/repos/somideshmukh/spark/hooks","issue_events_url":"https://api.github.com/repos/somideshmukh/spark/issues/events{/number}","events_url":"https://api.github.com/repos/somideshmukh/spark/events","assignees_url":"https://api.github.com/repos/somideshmukh/spark/assignees{/user}","branches_url":"https://api.github.com/repos/somideshmukh/spark/branches{/branch}","tags_url":"https://api.github.com/repos/somideshmukh/spark/tags","blobs_url":"https://api.github.com/repos/somideshmukh/spark/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/somideshmukh/spark/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/somideshmukh/spark/git/refs{/sha}","trees_url":"https://api.github.com/repos/somideshmukh/spark/git/trees{/sha}","statuses_url":"https://api.github.com/repos/somideshmukh/spark/statuses/{sha}","languages_url":"https://api.github.com/repos/somideshmukh/spark/languages","stargazers_url":"https://api.github.com/repos/somideshmukh/spark/stargazers","contributors_url":"https://api.github.com/repos/somideshmukh/spark/contributors","subscribers_url":"https://api.github.com/repos/somideshmukh/spark/subscribers","subscription_url":"https://api.github.com/repos/somideshmukh/spark/subscription","commits_url":"https://api.github.com/repos/somideshmukh/spark/commits{/sha}","git_commits_url":"https://api.github.com/repos/somideshmukh/spark/git/commits{/sha}","comments_url":"https://api.github.com/repos/somideshmukh/spark/comments{/number}","issue_comment_url":"https://api.github.com/repos/somideshmukh/spark/issues/comments{/number}","contents_url":"https://api.github.com/repos/somideshmukh/spark/contents/{+path}","compare_url":"https://api.github.com/repos/somideshmukh/spark/compare/{base}...{head}","merges_url":"https://api.github.com/repos/somideshmukh/spark/merges","archive_url":"https://api.github.com/repos/somideshmukh/spark/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/somideshmukh/spark/downloads","issues_url":"https://api.github.com/repos/somideshmukh/spark/issues{/number}","pulls_url":"https://api.github.com/repos/somideshmukh/spark/pulls{/number}","milestones_url":"https://api.github.com/repos/somideshmukh/spark/milestones{/number}","notifications_url":"https://api.github.com/repos/somideshmukh/spark/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/somideshmukh/spark/labels{/name}","releases_url":"https://api.github.com/repos/somideshmukh/spark/releases{/id}","created_at":"2015-11-02T10:17:55Z","updated_at":"2015-11-02T10:18:27Z","pushed_at":"2015-11-28T11:59:59Z","git_url":"git://github.com/somideshmukh/spark.git","ssh_url":"git@github.com:somideshmukh/spark.git","clone_url":"https://github.com/somideshmukh/spark.git","svn_url":"https://github.com/somideshmukh/spark","homepage":null,"size":135305,"stargazers_count":0,"watchers_count":0,"language":"Scala","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":"001f0528a851ac314b390e65eb0583f89e69a949","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":17165658,"name":"spark","full_name":"apache/spark","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/spark","description":"Mirror of Apache Spark","fork":false,"url":"https://api.github.com/repos/apache/spark","forks_url":"https://api.github.com/repos/apache/spark/forks","keys_url":"https://api.github.com/repos/apache/spark/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/spark/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/spark/teams","hooks_url":"https://api.github.com/repos/apache/spark/hooks","issue_events_url":"https://api.github.com/repos/apache/spark/issues/events{/number}","events_url":"https://api.github.com/repos/apache/spark/events","assignees_url":"https://api.github.com/repos/apache/spark/assignees{/user}","branches_url":"https://api.github.com/repos/apache/spark/branches{/branch}","tags_url":"https://api.github.com/repos/apache/spark/tags","blobs_url":"https://api.github.com/repos/apache/spark/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/spark/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/spark/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/spark/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/spark/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/spark/languages","stargazers_url":"https://api.github.com/repos/apache/spark/stargazers","contributors_url":"https://api.github.com/repos/apache/spark/contributors","subscribers_url":"https://api.github.com/repos/apache/spark/subscribers","subscription_url":"https://api.github.com/repos/apache/spark/subscription","commits_url":"https://api.github.com/repos/apache/spark/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/spark/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/spark/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/spark/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/spark/contents/{+path}","compare_url":"https://api.github.com/repos/apache/spark/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/spark/merges","archive_url":"https://api.github.com/repos/apache/spark/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/spark/downloads","issues_url":"https://api.github.com/repos/apache/spark/issues{/number}","pulls_url":"https://api.github.com/repos/apache/spark/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/spark/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/spark/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/spark/labels{/name}","releases_url":"https://api.github.com/repos/apache/spark/releases{/id}","created_at":"2014-02-25T08:00:08Z","updated_at":"2015-11-28T14:22:15Z","pushed_at":"2015-11-28T12:43:51Z","git_url":"git://github.com/apache/spark.git","ssh_url":"git@github.com:apache/spark.git","clone_url":"https://github.com/apache/spark.git","svn_url":"https://github.com/apache/spark","homepage":null,"size":387649,"stargazers_count":6378,"watchers_count":6378,"language":"Scala","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":5876,"mirror_url":"git://git.apache.org/spark.git","open_issues_count":383,"forks":5876,"open_issues":383,"watchers":6378,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/spark/pulls/10002"},"html":{"href":"https://github.com/apache/spark/pull/10002"},"issue":{"href":"https://api.github.com/repos/apache/spark/issues/10002"},"comments":{"href":"https://api.github.com/repos/apache/spark/issues/10002/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/spark/pulls/10002/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/spark/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/spark/pulls/10002/commits"},"statuses":{"href":"https://api.github.com/repos/apache/spark/statuses/c143d4b2e35275f72ef7b6e5f73ef8cfcceddc4a"}}}}