{"action":"created","issue":{"url":"https://api.github.com/repos/apache/spark/issues/13601","repository_url":"https://api.github.com/repos/apache/spark","labels_url":"https://api.github.com/repos/apache/spark/issues/13601/labels{/name}","comments_url":"https://api.github.com/repos/apache/spark/issues/13601/comments","events_url":"https://api.github.com/repos/apache/spark/issues/13601/events","html_url":"https://github.com/apache/spark/pull/13601","id":159649215,"number":13601,"title":"[SPARK-15875] Try to use Seq.isEmpty and Seq.nonEmpty instead of Seq.length == 0 and Seq.length > 0","user":{"login":"yangw1234","id":10561966,"avatar_url":"https://avatars.githubusercontent.com/u/10561966?v=3","gravatar_id":"","url":"https://api.github.com/users/yangw1234","html_url":"https://github.com/yangw1234","followers_url":"https://api.github.com/users/yangw1234/followers","following_url":"https://api.github.com/users/yangw1234/following{/other_user}","gists_url":"https://api.github.com/users/yangw1234/gists{/gist_id}","starred_url":"https://api.github.com/users/yangw1234/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yangw1234/subscriptions","organizations_url":"https://api.github.com/users/yangw1234/orgs","repos_url":"https://api.github.com/users/yangw1234/repos","events_url":"https://api.github.com/users/yangw1234/events{/privacy}","received_events_url":"https://api.github.com/users/yangw1234/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-06-10T14:35:38Z","updated_at":"2016-06-10T17:28:44Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/apache/spark/pulls/13601","html_url":"https://github.com/apache/spark/pull/13601","diff_url":"https://github.com/apache/spark/pull/13601.diff","patch_url":"https://github.com/apache/spark/pull/13601.patch"},"body":"## What changes were proposed in this pull request?\r\n\r\nIn scala, immutable.List.length is an expensive operation so we should\r\navoid using Seq.length == 0 or Seq.lenth > 0, and use Seq.isEmpty and Seq.nonEmpty instead.\r\n\r\n## How was this patch tested?\r\nexisting tests\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/apache/spark/issues/comments/225244808","html_url":"https://github.com/apache/spark/pull/13601#issuecomment-225244808","issue_url":"https://api.github.com/repos/apache/spark/issues/13601","id":225244808,"user":{"login":"JoshRosen","id":50748,"avatar_url":"https://avatars.githubusercontent.com/u/50748?v=3","gravatar_id":"","url":"https://api.github.com/users/JoshRosen","html_url":"https://github.com/JoshRosen","followers_url":"https://api.github.com/users/JoshRosen/followers","following_url":"https://api.github.com/users/JoshRosen/following{/other_user}","gists_url":"https://api.github.com/users/JoshRosen/gists{/gist_id}","starred_url":"https://api.github.com/users/JoshRosen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoshRosen/subscriptions","organizations_url":"https://api.github.com/users/JoshRosen/orgs","repos_url":"https://api.github.com/users/JoshRosen/repos","events_url":"https://api.github.com/users/JoshRosen/events{/privacy}","received_events_url":"https://api.github.com/users/JoshRosen/received_events","type":"User","site_admin":false},"created_at":"2016-06-10T17:28:44Z","updated_at":"2016-06-10T17:28:44Z","body":"Jenkins, this is ok to test."}}
{"actor":{"display_login":"JoshRosen"}}