{"action":"created","comment":{"url":"https://api.github.com/repos/amplab/keystone/pulls/comments/55968053","id":55968053,"diff_hunk":"@@ -0,0 +1,47 @@\n+package nodes.images\n+\n+import org.apache.spark.rdd.RDD\n+\n+import utils.{ImageUtils, Image}\n+import pipelines.FunctionNode\n+\n+/**\n+  * Extract random square patches from an image\n+  *\n+  * @param numPatches number of random patches to extract\n+  * @param patchSizeX size of each patch along xDim\n+  * @param patchSizeY size of each patch along yDim\n+  * @return numPatches images of size patchSizeX x patchSizeY\n+  */\n+case class RandomPatcher(\n+    numPatches: Int,\n+    patchSizeX: Int,\n+    patchSizeY: Int,\n+    seed: Long = 12334L) extends FunctionNode[RDD[Image], RDD[Image]] {\n+\n+  val rnd = new scala.util.Random(seed)","path":"src/main/scala/nodes/images/RandomPatcher.scala","position":22,"original_position":22,"commit_id":"d0d6da5caef307e3373c26ac353077d5807c246a","original_commit_id":"d0d6da5caef307e3373c26ac353077d5807c246a","user":{"login":"Vaishaal","id":1361040,"avatar_url":"https://avatars.githubusercontent.com/u/1361040?v=3","gravatar_id":"","url":"https://api.github.com/users/Vaishaal","html_url":"https://github.com/Vaishaal","followers_url":"https://api.github.com/users/Vaishaal/followers","following_url":"https://api.github.com/users/Vaishaal/following{/other_user}","gists_url":"https://api.github.com/users/Vaishaal/gists{/gist_id}","starred_url":"https://api.github.com/users/Vaishaal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Vaishaal/subscriptions","organizations_url":"https://api.github.com/users/Vaishaal/orgs","repos_url":"https://api.github.com/users/Vaishaal/repos","events_url":"https://api.github.com/users/Vaishaal/events{/privacy}","received_events_url":"https://api.github.com/users/Vaishaal/received_events","type":"User","site_admin":false},"body":"Same deal about serializability...","created_at":"2016-03-14T08:37:22Z","updated_at":"2016-03-14T08:37:22Z","html_url":"https://github.com/amplab/keystone/pull/247#discussion_r55968053","pull_request_url":"https://api.github.com/repos/amplab/keystone/pulls/247","_links":{"self":{"href":"https://api.github.com/repos/amplab/keystone/pulls/comments/55968053"},"html":{"href":"https://github.com/amplab/keystone/pull/247#discussion_r55968053"},"pull_request":{"href":"https://api.github.com/repos/amplab/keystone/pulls/247"}}},"pull_request":{"url":"https://api.github.com/repos/amplab/keystone/pulls/247","id":62629523,"html_url":"https://github.com/amplab/keystone/pull/247","diff_url":"https://github.com/amplab/keystone/pull/247.diff","patch_url":"https://github.com/amplab/keystone/pull/247.patch","issue_url":"https://api.github.com/repos/amplab/keystone/issues/247","number":247,"state":"open","locked":false,"title":"Port Cifar Augmented pipeline and its nodes","user":{"login":"shivaram","id":143893,"avatar_url":"https://avatars.githubusercontent.com/u/143893?v=3","gravatar_id":"","url":"https://api.github.com/users/shivaram","html_url":"https://github.com/shivaram","followers_url":"https://api.github.com/users/shivaram/followers","following_url":"https://api.github.com/users/shivaram/following{/other_user}","gists_url":"https://api.github.com/users/shivaram/gists{/gist_id}","starred_url":"https://api.github.com/users/shivaram/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shivaram/subscriptions","organizations_url":"https://api.github.com/users/shivaram/orgs","repos_url":"https://api.github.com/users/shivaram/repos","events_url":"https://api.github.com/users/shivaram/events{/privacy}","received_events_url":"https://api.github.com/users/shivaram/received_events","type":"User","site_admin":false},"body":"Fixes #242 ","created_at":"2016-03-12T03:20:51Z","updated_at":"2016-03-14T08:37:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dc4060c84b28a9b37c3adac687bcde69e5335464","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/amplab/keystone/pulls/247/commits","review_comments_url":"https://api.github.com/repos/amplab/keystone/pulls/247/comments","review_comment_url":"https://api.github.com/repos/amplab/keystone/pulls/comments{/number}","comments_url":"https://api.github.com/repos/amplab/keystone/issues/247/comments","statuses_url":"https://api.github.com/repos/amplab/keystone/statuses/d0d6da5caef307e3373c26ac353077d5807c246a","head":{"label":"shivaram:cifar-augmenter","ref":"cifar-augmenter","sha":"d0d6da5caef307e3373c26ac353077d5807c246a","user":{"login":"shivaram","id":143893,"avatar_url":"https://avatars.githubusercontent.com/u/143893?v=3","gravatar_id":"","url":"https://api.github.com/users/shivaram","html_url":"https://github.com/shivaram","followers_url":"https://api.github.com/users/shivaram/followers","following_url":"https://api.github.com/users/shivaram/following{/other_user}","gists_url":"https://api.github.com/users/shivaram/gists{/gist_id}","starred_url":"https://api.github.com/users/shivaram/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shivaram/subscriptions","organizations_url":"https://api.github.com/users/shivaram/orgs","repos_url":"https://api.github.com/users/shivaram/repos","events_url":"https://api.github.com/users/shivaram/events{/privacy}","received_events_url":"https://api.github.com/users/shivaram/received_events","type":"User","site_admin":false},"repo":{"id":35298460,"name":"keystone","full_name":"shivaram/keystone","owner":{"login":"shivaram","id":143893,"avatar_url":"https://avatars.githubusercontent.com/u/143893?v=3","gravatar_id":"","url":"https://api.github.com/users/shivaram","html_url":"https://github.com/shivaram","followers_url":"https://api.github.com/users/shivaram/followers","following_url":"https://api.github.com/users/shivaram/following{/other_user}","gists_url":"https://api.github.com/users/shivaram/gists{/gist_id}","starred_url":"https://api.github.com/users/shivaram/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shivaram/subscriptions","organizations_url":"https://api.github.com/users/shivaram/orgs","repos_url":"https://api.github.com/users/shivaram/repos","events_url":"https://api.github.com/users/shivaram/events{/privacy}","received_events_url":"https://api.github.com/users/shivaram/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/shivaram/keystone","description":"The biggest, baddest pipelines around.","fork":true,"url":"https://api.github.com/repos/shivaram/keystone","forks_url":"https://api.github.com/repos/shivaram/keystone/forks","keys_url":"https://api.github.com/repos/shivaram/keystone/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shivaram/keystone/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shivaram/keystone/teams","hooks_url":"https://api.github.com/repos/shivaram/keystone/hooks","issue_events_url":"https://api.github.com/repos/shivaram/keystone/issues/events{/number}","events_url":"https://api.github.com/repos/shivaram/keystone/events","assignees_url":"https://api.github.com/repos/shivaram/keystone/assignees{/user}","branches_url":"https://api.github.com/repos/shivaram/keystone/branches{/branch}","tags_url":"https://api.github.com/repos/shivaram/keystone/tags","blobs_url":"https://api.github.com/repos/shivaram/keystone/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shivaram/keystone/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shivaram/keystone/git/refs{/sha}","trees_url":"https://api.github.com/repos/shivaram/keystone/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shivaram/keystone/statuses/{sha}","languages_url":"https://api.github.com/repos/shivaram/keystone/languages","stargazers_url":"https://api.github.com/repos/shivaram/keystone/stargazers","contributors_url":"https://api.github.com/repos/shivaram/keystone/contributors","subscribers_url":"https://api.github.com/repos/shivaram/keystone/subscribers","subscription_url":"https://api.github.com/repos/shivaram/keystone/subscription","commits_url":"https://api.github.com/repos/shivaram/keystone/commits{/sha}","git_commits_url":"https://api.github.com/repos/shivaram/keystone/git/commits{/sha}","comments_url":"https://api.github.com/repos/shivaram/keystone/comments{/number}","issue_comment_url":"https://api.github.com/repos/shivaram/keystone/issues/comments{/number}","contents_url":"https://api.github.com/repos/shivaram/keystone/contents/{+path}","compare_url":"https://api.github.com/repos/shivaram/keystone/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shivaram/keystone/merges","archive_url":"https://api.github.com/repos/shivaram/keystone/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shivaram/keystone/downloads","issues_url":"https://api.github.com/repos/shivaram/keystone/issues{/number}","pulls_url":"https://api.github.com/repos/shivaram/keystone/pulls{/number}","milestones_url":"https://api.github.com/repos/shivaram/keystone/milestones{/number}","notifications_url":"https://api.github.com/repos/shivaram/keystone/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shivaram/keystone/labels{/name}","releases_url":"https://api.github.com/repos/shivaram/keystone/releases{/id}","deployments_url":"https://api.github.com/repos/shivaram/keystone/deployments","created_at":"2015-05-08T19:44:01Z","updated_at":"2015-05-20T23:44:01Z","pushed_at":"2016-03-12T20:47:59Z","git_url":"git://github.com/shivaram/keystone.git","ssh_url":"git@github.com:shivaram/keystone.git","clone_url":"https://github.com/shivaram/keystone.git","svn_url":"https://github.com/shivaram/keystone","homepage":null,"size":49914,"stargazers_count":0,"watchers_count":0,"language":"Scala","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"imagenet-research"}},"base":{"label":"amplab:master","ref":"master","sha":"59fee6cac36b9ab2820edabac6142a610a134557","user":{"login":"amplab","id":1438454,"avatar_url":"https://avatars.githubusercontent.com/u/1438454?v=3","gravatar_id":"","url":"https://api.github.com/users/amplab","html_url":"https://github.com/amplab","followers_url":"https://api.github.com/users/amplab/followers","following_url":"https://api.github.com/users/amplab/following{/other_user}","gists_url":"https://api.github.com/users/amplab/gists{/gist_id}","starred_url":"https://api.github.com/users/amplab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amplab/subscriptions","organizations_url":"https://api.github.com/users/amplab/orgs","repos_url":"https://api.github.com/users/amplab/repos","events_url":"https://api.github.com/users/amplab/events{/privacy}","received_events_url":"https://api.github.com/users/amplab/received_events","type":"Organization","site_admin":false},"repo":{"id":33748726,"name":"keystone","full_name":"amplab/keystone","owner":{"login":"amplab","id":1438454,"avatar_url":"https://avatars.githubusercontent.com/u/1438454?v=3","gravatar_id":"","url":"https://api.github.com/users/amplab","html_url":"https://github.com/amplab","followers_url":"https://api.github.com/users/amplab/followers","following_url":"https://api.github.com/users/amplab/following{/other_user}","gists_url":"https://api.github.com/users/amplab/gists{/gist_id}","starred_url":"https://api.github.com/users/amplab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amplab/subscriptions","organizations_url":"https://api.github.com/users/amplab/orgs","repos_url":"https://api.github.com/users/amplab/repos","events_url":"https://api.github.com/users/amplab/events{/privacy}","received_events_url":"https://api.github.com/users/amplab/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/amplab/keystone","description":"Simplifying robust end-to-end machine learning on Apache Spark.","fork":false,"url":"https://api.github.com/repos/amplab/keystone","forks_url":"https://api.github.com/repos/amplab/keystone/forks","keys_url":"https://api.github.com/repos/amplab/keystone/keys{/key_id}","collaborators_url":"https://api.github.com/repos/amplab/keystone/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/amplab/keystone/teams","hooks_url":"https://api.github.com/repos/amplab/keystone/hooks","issue_events_url":"https://api.github.com/repos/amplab/keystone/issues/events{/number}","events_url":"https://api.github.com/repos/amplab/keystone/events","assignees_url":"https://api.github.com/repos/amplab/keystone/assignees{/user}","branches_url":"https://api.github.com/repos/amplab/keystone/branches{/branch}","tags_url":"https://api.github.com/repos/amplab/keystone/tags","blobs_url":"https://api.github.com/repos/amplab/keystone/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/amplab/keystone/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/amplab/keystone/git/refs{/sha}","trees_url":"https://api.github.com/repos/amplab/keystone/git/trees{/sha}","statuses_url":"https://api.github.com/repos/amplab/keystone/statuses/{sha}","languages_url":"https://api.github.com/repos/amplab/keystone/languages","stargazers_url":"https://api.github.com/repos/amplab/keystone/stargazers","contributors_url":"https://api.github.com/repos/amplab/keystone/contributors","subscribers_url":"https://api.github.com/repos/amplab/keystone/subscribers","subscription_url":"https://api.github.com/repos/amplab/keystone/subscription","commits_url":"https://api.github.com/repos/amplab/keystone/commits{/sha}","git_commits_url":"https://api.github.com/repos/amplab/keystone/git/commits{/sha}","comments_url":"https://api.github.com/repos/amplab/keystone/comments{/number}","issue_comment_url":"https://api.github.com/repos/amplab/keystone/issues/comments{/number}","contents_url":"https://api.github.com/repos/amplab/keystone/contents/{+path}","compare_url":"https://api.github.com/repos/amplab/keystone/compare/{base}...{head}","merges_url":"https://api.github.com/repos/amplab/keystone/merges","archive_url":"https://api.github.com/repos/amplab/keystone/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/amplab/keystone/downloads","issues_url":"https://api.github.com/repos/amplab/keystone/issues{/number}","pulls_url":"https://api.github.com/repos/amplab/keystone/pulls{/number}","milestones_url":"https://api.github.com/repos/amplab/keystone/milestones{/number}","notifications_url":"https://api.github.com/repos/amplab/keystone/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/amplab/keystone/labels{/name}","releases_url":"https://api.github.com/repos/amplab/keystone/releases{/id}","deployments_url":"https://api.github.com/repos/amplab/keystone/deployments","created_at":"2015-04-10T20:16:11Z","updated_at":"2016-03-11T13:42:32Z","pushed_at":"2016-03-14T06:05:57Z","git_url":"git://github.com/amplab/keystone.git","ssh_url":"git@github.com:amplab/keystone.git","clone_url":"https://github.com/amplab/keystone.git","svn_url":"https://github.com/amplab/keystone","homepage":"http://keystone-ml.org/","size":17801,"stargazers_count":294,"watchers_count":294,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":63,"mirror_url":null,"open_issues_count":48,"forks":63,"open_issues":48,"watchers":294,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/amplab/keystone/pulls/247"},"html":{"href":"https://github.com/amplab/keystone/pull/247"},"issue":{"href":"https://api.github.com/repos/amplab/keystone/issues/247"},"comments":{"href":"https://api.github.com/repos/amplab/keystone/issues/247/comments"},"review_comments":{"href":"https://api.github.com/repos/amplab/keystone/pulls/247/comments"},"review_comment":{"href":"https://api.github.com/repos/amplab/keystone/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/amplab/keystone/pulls/247/commits"},"statuses":{"href":"https://api.github.com/repos/amplab/keystone/statuses/d0d6da5caef307e3373c26ac353077d5807c246a"}}}}