{"action":"created","comment":{"url":"https://api.github.com/repos/apache/spark/pulls/comments/35735873","id":35735873,"diff_hunk":"@@ -44,27 +46,43 @@ class PrefixSpan private (\n     private var maxPatternLength: Int) extends Logging with Serializable {\n \n   /**\n+   * The maximum number of items allowed in a projected database before local processing. If a\n+   * projected database exceeds this size, another iteration of distributed PrefixSpan is run.\n+   */\n+  private val maxLocalProjDBSize: Long = 10000\n+\n+  /**\n    * Constructs a default instance with default parameters\n    * {minSupport: `0.1`, maxPatternLength: `10`}.\n    */\n   def this() = this(0.1, 10)\n \n   /**\n+   * Get the minimal support (i.e. the frequency of occurrence before a pattern is considered\n+   * frequent).\n+   */\n+  def getMinSupport(): Double = this.minSupport","path":"mllib/src/main/scala/org/apache/spark/mllib/fpm/PrefixSpan.scala","position":28,"original_position":28,"commit_id":"ad23aa9f10aaa515b5d0804b4dbbef5d75005e0f","original_commit_id":"ad23aa9f10aaa515b5d0804b4dbbef5d75005e0f","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":"remove `()`","created_at":"2015-07-29T08:01:54Z","updated_at":"2015-07-29T08:01:54Z","html_url":"https://github.com/apache/spark/pull/7412#discussion_r35735873","pull_request_url":"https://api.github.com/repos/apache/spark/pulls/7412","_links":{"self":{"href":"https://api.github.com/repos/apache/spark/pulls/comments/35735873"},"html":{"href":"https://github.com/apache/spark/pull/7412#discussion_r35735873"},"pull_request":{"href":"https://api.github.com/repos/apache/spark/pulls/7412"}}},"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/7412","id":39986032,"html_url":"https://github.com/apache/spark/pull/7412","diff_url":"https://github.com/apache/spark/pull/7412.diff","patch_url":"https://github.com/apache/spark/pull/7412.patch","issue_url":"https://api.github.com/repos/apache/spark/issues/7412","number":7412,"state":"open","locked":false,"title":"[SPARK-8998][MLlib] Collect enough frequent prefixes before local processing in PrefixSpan (new)","user":{"login":"zhangjiajin","id":13159256,"avatar_url":"https://avatars.githubusercontent.com/u/13159256?v=3","gravatar_id":"","url":"https://api.github.com/users/zhangjiajin","html_url":"https://github.com/zhangjiajin","followers_url":"https://api.github.com/users/zhangjiajin/followers","following_url":"https://api.github.com/users/zhangjiajin/following{/other_user}","gists_url":"https://api.github.com/users/zhangjiajin/gists{/gist_id}","starred_url":"https://api.github.com/users/zhangjiajin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhangjiajin/subscriptions","organizations_url":"https://api.github.com/users/zhangjiajin/orgs","repos_url":"https://api.github.com/users/zhangjiajin/repos","events_url":"https://api.github.com/users/zhangjiajin/events{/privacy}","received_events_url":"https://api.github.com/users/zhangjiajin/received_events","type":"User","site_admin":false},"body":"Collect enough frequent prefixes before projection in PrefixSpan","created_at":"2015-07-15T03:51:54Z","updated_at":"2015-07-29T08:01:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e112670c473a06925c500565f907289acaa38a25","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apache/spark/pulls/7412/commits","review_comments_url":"https://api.github.com/repos/apache/spark/pulls/7412/comments","review_comment_url":"https://api.github.com/repos/apache/spark/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/spark/issues/7412/comments","statuses_url":"https://api.github.com/repos/apache/spark/statuses/ad23aa9f10aaa515b5d0804b4dbbef5d75005e0f","head":{"label":"zhangjiajin:CollectEnoughPrefixes","ref":"CollectEnoughPrefixes","sha":"ad23aa9f10aaa515b5d0804b4dbbef5d75005e0f","user":{"login":"zhangjiajin","id":13159256,"avatar_url":"https://avatars.githubusercontent.com/u/13159256?v=3","gravatar_id":"","url":"https://api.github.com/users/zhangjiajin","html_url":"https://github.com/zhangjiajin","followers_url":"https://api.github.com/users/zhangjiajin/followers","following_url":"https://api.github.com/users/zhangjiajin/following{/other_user}","gists_url":"https://api.github.com/users/zhangjiajin/gists{/gist_id}","starred_url":"https://api.github.com/users/zhangjiajin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhangjiajin/subscriptions","organizations_url":"https://api.github.com/users/zhangjiajin/orgs","repos_url":"https://api.github.com/users/zhangjiajin/repos","events_url":"https://api.github.com/users/zhangjiajin/events{/privacy}","received_events_url":"https://api.github.com/users/zhangjiajin/received_events","type":"User","site_admin":false},"repo":{"id":38591062,"name":"spark","full_name":"zhangjiajin/spark","owner":{"login":"zhangjiajin","id":13159256,"avatar_url":"https://avatars.githubusercontent.com/u/13159256?v=3","gravatar_id":"","url":"https://api.github.com/users/zhangjiajin","html_url":"https://github.com/zhangjiajin","followers_url":"https://api.github.com/users/zhangjiajin/followers","following_url":"https://api.github.com/users/zhangjiajin/following{/other_user}","gists_url":"https://api.github.com/users/zhangjiajin/gists{/gist_id}","starred_url":"https://api.github.com/users/zhangjiajin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhangjiajin/subscriptions","organizations_url":"https://api.github.com/users/zhangjiajin/orgs","repos_url":"https://api.github.com/users/zhangjiajin/repos","events_url":"https://api.github.com/users/zhangjiajin/events{/privacy}","received_events_url":"https://api.github.com/users/zhangjiajin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zhangjiajin/spark","description":"Mirror of Apache Spark","fork":true,"url":"https://api.github.com/repos/zhangjiajin/spark","forks_url":"https://api.github.com/repos/zhangjiajin/spark/forks","keys_url":"https://api.github.com/repos/zhangjiajin/spark/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zhangjiajin/spark/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zhangjiajin/spark/teams","hooks_url":"https://api.github.com/repos/zhangjiajin/spark/hooks","issue_events_url":"https://api.github.com/repos/zhangjiajin/spark/issues/events{/number}","events_url":"https://api.github.com/repos/zhangjiajin/spark/events","assignees_url":"https://api.github.com/repos/zhangjiajin/spark/assignees{/user}","branches_url":"https://api.github.com/repos/zhangjiajin/spark/branches{/branch}","tags_url":"https://api.github.com/repos/zhangjiajin/spark/tags","blobs_url":"https://api.github.com/repos/zhangjiajin/spark/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zhangjiajin/spark/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zhangjiajin/spark/git/refs{/sha}","trees_url":"https://api.github.com/repos/zhangjiajin/spark/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zhangjiajin/spark/statuses/{sha}","languages_url":"https://api.github.com/repos/zhangjiajin/spark/languages","stargazers_url":"https://api.github.com/repos/zhangjiajin/spark/stargazers","contributors_url":"https://api.github.com/repos/zhangjiajin/spark/contributors","subscribers_url":"https://api.github.com/repos/zhangjiajin/spark/subscribers","subscription_url":"https://api.github.com/repos/zhangjiajin/spark/subscription","commits_url":"https://api.github.com/repos/zhangjiajin/spark/commits{/sha}","git_commits_url":"https://api.github.com/repos/zhangjiajin/spark/git/commits{/sha}","comments_url":"https://api.github.com/repos/zhangjiajin/spark/comments{/number}","issue_comment_url":"https://api.github.com/repos/zhangjiajin/spark/issues/comments{/number}","contents_url":"https://api.github.com/repos/zhangjiajin/spark/contents/{+path}","compare_url":"https://api.github.com/repos/zhangjiajin/spark/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zhangjiajin/spark/merges","archive_url":"https://api.github.com/repos/zhangjiajin/spark/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zhangjiajin/spark/downloads","issues_url":"https://api.github.com/repos/zhangjiajin/spark/issues{/number}","pulls_url":"https://api.github.com/repos/zhangjiajin/spark/pulls{/number}","milestones_url":"https://api.github.com/repos/zhangjiajin/spark/milestones{/number}","notifications_url":"https://api.github.com/repos/zhangjiajin/spark/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zhangjiajin/spark/labels{/name}","releases_url":"https://api.github.com/repos/zhangjiajin/spark/releases{/id}","created_at":"2015-07-06T01:29:00Z","updated_at":"2015-07-06T01:29:21Z","pushed_at":"2015-07-29T02:30:58Z","git_url":"git://github.com/zhangjiajin/spark.git","ssh_url":"git@github.com:zhangjiajin/spark.git","clone_url":"https://github.com/zhangjiajin/spark.git","svn_url":"https://github.com/zhangjiajin/spark","homepage":null,"size":114303,"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":"ba33096846dc8061e97a7bf8f3b46f899d530159","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-07-29T06:12:29Z","pushed_at":"2015-07-29T08:01:08Z","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":1613648,"stargazers_count":4894,"watchers_count":4894,"language":"Scala","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":4430,"mirror_url":"git://git.apache.org/spark.git","open_issues_count":349,"forks":4430,"open_issues":349,"watchers":4894,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/spark/pulls/7412"},"html":{"href":"https://github.com/apache/spark/pull/7412"},"issue":{"href":"https://api.github.com/repos/apache/spark/issues/7412"},"comments":{"href":"https://api.github.com/repos/apache/spark/issues/7412/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/spark/pulls/7412/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/spark/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/spark/pulls/7412/commits"},"statuses":{"href":"https://api.github.com/repos/apache/spark/statuses/ad23aa9f10aaa515b5d0804b4dbbef5d75005e0f"}}}}