{"action":"created","comment":{"url":"https://api.github.com/repos/apache/spark/pulls/comments/25124130","id":25124130,"diff_hunk":"@@ -18,29 +18,58 @@\n package org.apache.spark.examples.mllib\n \n import org.apache.spark.mllib.fpm.FPGrowth\n-import org.apache.spark.{SparkContext, SparkConf}\n+import org.apache.spark.{SparkConf, SparkContext}\n+import scopt.OptionParser","path":"examples/src/main/scala/org/apache/spark/examples/mllib/FPGrowthExample.scala","position":6,"original_position":6,"commit_id":"3bb74f6602c7697ced88de53bd008dad9b97fedb","original_commit_id":"3bb74f6602c7697ced88de53bd008dad9b97fedb","user":{"login":"mengxr","id":829644,"avatar_url":"https://avatars.githubusercontent.com/u/829644?v=3","gravatar_id":"","url":"https://api.github.com/users/mengxr","html_url":"https://github.com/mengxr","followers_url":"https://api.github.com/users/mengxr/followers","following_url":"https://api.github.com/users/mengxr/following{/other_user}","gists_url":"https://api.github.com/users/mengxr/gists{/gist_id}","starred_url":"https://api.github.com/users/mengxr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mengxr/subscriptions","organizations_url":"https://api.github.com/users/mengxr/orgs","repos_url":"https://api.github.com/users/mengxr/repos","events_url":"https://api.github.com/users/mengxr/events{/privacy}","received_events_url":"https://api.github.com/users/mengxr/received_events","type":"User","site_admin":false},"body":"organize imports (https://cwiki.apache.org/confluence/display/SPARK/Spark+Code+Style+Guide#SparkCodeStyleGuide-Imports)","created_at":"2015-02-21T18:06:01Z","updated_at":"2015-02-21T18:06:01Z","html_url":"https://github.com/apache/spark/pull/4714#discussion_r25124130","pull_request_url":"https://api.github.com/repos/apache/spark/pulls/4714","_links":{"self":{"href":"https://api.github.com/repos/apache/spark/pulls/comments/25124130"},"html":{"href":"https://github.com/apache/spark/pull/4714#discussion_r25124130"},"pull_request":{"href":"https://api.github.com/repos/apache/spark/pulls/4714"}}},"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/4714","id":29753982,"html_url":"https://github.com/apache/spark/pull/4714","diff_url":"https://github.com/apache/spark/pull/4714.diff","patch_url":"https://github.com/apache/spark/pull/4714.patch","issue_url":"https://api.github.com/repos/apache/spark/issues/4714","number":4714,"state":"open","locked":false,"title":"[SPARK-5939][MLLib] make FPGrowth example app take parameters","user":{"login":"jackylk","id":6500698,"avatar_url":"https://avatars.githubusercontent.com/u/6500698?v=3","gravatar_id":"","url":"https://api.github.com/users/jackylk","html_url":"https://github.com/jackylk","followers_url":"https://api.github.com/users/jackylk/followers","following_url":"https://api.github.com/users/jackylk/following{/other_user}","gists_url":"https://api.github.com/users/jackylk/gists{/gist_id}","starred_url":"https://api.github.com/users/jackylk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jackylk/subscriptions","organizations_url":"https://api.github.com/users/jackylk/orgs","repos_url":"https://api.github.com/users/jackylk/repos","events_url":"https://api.github.com/users/jackylk/events{/privacy}","received_events_url":"https://api.github.com/users/jackylk/received_events","type":"User","site_admin":false},"body":"Add parameter parsing in FPGrowth example app in Scala and Java\r\nAnd a sample data file is added in data/mllib folder","created_at":"2015-02-21T14:01:05Z","updated_at":"2015-02-21T18:06:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dfafcaf63c318ef2a1ddd2da4958d2c5d576b95a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apache/spark/pulls/4714/commits","review_comments_url":"https://api.github.com/repos/apache/spark/pulls/4714/comments","review_comment_url":"https://api.github.com/repos/apache/spark/pulls/comments/{number}","comments_url":"https://api.github.com/repos/apache/spark/issues/4714/comments","statuses_url":"https://api.github.com/repos/apache/spark/statuses/3bb74f6602c7697ced88de53bd008dad9b97fedb","head":{"label":"jackylk:parameter","ref":"parameter","sha":"3bb74f6602c7697ced88de53bd008dad9b97fedb","user":{"login":"jackylk","id":6500698,"avatar_url":"https://avatars.githubusercontent.com/u/6500698?v=3","gravatar_id":"","url":"https://api.github.com/users/jackylk","html_url":"https://github.com/jackylk","followers_url":"https://api.github.com/users/jackylk/followers","following_url":"https://api.github.com/users/jackylk/following{/other_user}","gists_url":"https://api.github.com/users/jackylk/gists{/gist_id}","starred_url":"https://api.github.com/users/jackylk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jackylk/subscriptions","organizations_url":"https://api.github.com/users/jackylk/orgs","repos_url":"https://api.github.com/users/jackylk/repos","events_url":"https://api.github.com/users/jackylk/events{/privacy}","received_events_url":"https://api.github.com/users/jackylk/received_events","type":"User","site_admin":false},"repo":{"id":24837242,"name":"spark","full_name":"jackylk/spark","owner":{"login":"jackylk","id":6500698,"avatar_url":"https://avatars.githubusercontent.com/u/6500698?v=3","gravatar_id":"","url":"https://api.github.com/users/jackylk","html_url":"https://github.com/jackylk","followers_url":"https://api.github.com/users/jackylk/followers","following_url":"https://api.github.com/users/jackylk/following{/other_user}","gists_url":"https://api.github.com/users/jackylk/gists{/gist_id}","starred_url":"https://api.github.com/users/jackylk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jackylk/subscriptions","organizations_url":"https://api.github.com/users/jackylk/orgs","repos_url":"https://api.github.com/users/jackylk/repos","events_url":"https://api.github.com/users/jackylk/events{/privacy}","received_events_url":"https://api.github.com/users/jackylk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jackylk/spark","description":"Mirror of Apache Spark","fork":true,"url":"https://api.github.com/repos/jackylk/spark","forks_url":"https://api.github.com/repos/jackylk/spark/forks","keys_url":"https://api.github.com/repos/jackylk/spark/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jackylk/spark/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jackylk/spark/teams","hooks_url":"https://api.github.com/repos/jackylk/spark/hooks","issue_events_url":"https://api.github.com/repos/jackylk/spark/issues/events{/number}","events_url":"https://api.github.com/repos/jackylk/spark/events","assignees_url":"https://api.github.com/repos/jackylk/spark/assignees{/user}","branches_url":"https://api.github.com/repos/jackylk/spark/branches{/branch}","tags_url":"https://api.github.com/repos/jackylk/spark/tags","blobs_url":"https://api.github.com/repos/jackylk/spark/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jackylk/spark/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jackylk/spark/git/refs{/sha}","trees_url":"https://api.github.com/repos/jackylk/spark/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jackylk/spark/statuses/{sha}","languages_url":"https://api.github.com/repos/jackylk/spark/languages","stargazers_url":"https://api.github.com/repos/jackylk/spark/stargazers","contributors_url":"https://api.github.com/repos/jackylk/spark/contributors","subscribers_url":"https://api.github.com/repos/jackylk/spark/subscribers","subscription_url":"https://api.github.com/repos/jackylk/spark/subscription","commits_url":"https://api.github.com/repos/jackylk/spark/commits{/sha}","git_commits_url":"https://api.github.com/repos/jackylk/spark/git/commits{/sha}","comments_url":"https://api.github.com/repos/jackylk/spark/comments{/number}","issue_comment_url":"https://api.github.com/repos/jackylk/spark/issues/comments/{number}","contents_url":"https://api.github.com/repos/jackylk/spark/contents/{+path}","compare_url":"https://api.github.com/repos/jackylk/spark/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jackylk/spark/merges","archive_url":"https://api.github.com/repos/jackylk/spark/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jackylk/spark/downloads","issues_url":"https://api.github.com/repos/jackylk/spark/issues{/number}","pulls_url":"https://api.github.com/repos/jackylk/spark/pulls{/number}","milestones_url":"https://api.github.com/repos/jackylk/spark/milestones{/number}","notifications_url":"https://api.github.com/repos/jackylk/spark/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jackylk/spark/labels{/name}","releases_url":"https://api.github.com/repos/jackylk/spark/releases{/id}","created_at":"2014-10-06T07:29:40Z","updated_at":"2015-01-20T11:54:59Z","pushed_at":"2015-02-21T15:32:47Z","git_url":"git://github.com/jackylk/spark.git","ssh_url":"git@github.com:jackylk/spark.git","clone_url":"https://github.com/jackylk/spark.git","svn_url":"https://github.com/jackylk/spark","homepage":null,"size":94964,"stargazers_count":4,"watchers_count":4,"language":"Scala","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":0,"forks":2,"open_issues":0,"watchers":4,"default_branch":"master"}},"base":{"label":"apache:master","ref":"master","sha":"e155324711740da97698b93526128b0eae2dc0ce","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-02-21T18:01:16Z","pushed_at":"2015-02-21T18:01:30Z","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":1293089,"stargazers_count":2946,"watchers_count":2946,"language":"Scala","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2565,"mirror_url":"git://git.apache.org/spark.git","open_issues_count":264,"forks":2565,"open_issues":264,"watchers":2946,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/spark/pulls/4714"},"html":{"href":"https://github.com/apache/spark/pull/4714"},"issue":{"href":"https://api.github.com/repos/apache/spark/issues/4714"},"comments":{"href":"https://api.github.com/repos/apache/spark/issues/4714/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/spark/pulls/4714/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/spark/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/apache/spark/pulls/4714/commits"},"statuses":{"href":"https://api.github.com/repos/apache/spark/statuses/3bb74f6602c7697ced88de53bd008dad9b97fedb"}}}}