{"action":"created","comment":{"url":"https://api.github.com/repos/DataTorrent/examples/pulls/comments/66376084","id":66376084,"diff_hunk":"@@ -0,0 +1,51 @@\n+/**\n+ * Put your copyright and license info here.\n+ */\n+package com.example.myapexapp;\n+\n+import java.io.IOException;\n+\n+import javax.validation.ConstraintViolationException;\n+\n+import org.junit.Assert;\n+\n+import org.apache.hadoop.conf.Configuration;\n+import org.junit.Test;\n+\n+import com.datatorrent.api.LocalMode;\n+import com.example.myapexapp.Application;\n+\n+/**\n+ * Test the DAG declaration in local mode.\n+ */\n+public class ApplicationTest {\n+\n+  // helper routine\n+  private void go(final boolean useUnifier) throws Exception {\n+    try {\n+      LocalMode lma = LocalMode.newInstance();\n+      Configuration conf = new Configuration(false);\n+      conf.addResource(this.getClass().getResourceAsStream(\"/META-INF/properties.xml\"));\n+      if (useUnifier) {\n+        conf.setBoolean(\"dt.application.MyFirstApplication.operator.range.prop.useUnifier\",\n+                        true);\n+      }\n+      lma.prepareDAG(new Application(), conf);\n+      LocalMode.Controller lc = lma.getController();\n+      lc.run(10000); // runs for 10 seconds and quits","path":"tutorials/unifiers/src/test/java/com/example/myapexapp/ApplicationTest.java","position":35,"original_position":35,"commit_id":"43cefb65d55ddec7c2cc6d202129efdf8305000b","original_commit_id":"43cefb65d55ddec7c2cc6d202129efdf8305000b","user":{"login":"tweise","id":263695,"avatar_url":"https://avatars.githubusercontent.com/u/263695?v=3","gravatar_id":"","url":"https://api.github.com/users/tweise","html_url":"https://github.com/tweise","followers_url":"https://api.github.com/users/tweise/followers","following_url":"https://api.github.com/users/tweise/following{/other_user}","gists_url":"https://api.github.com/users/tweise/gists{/gist_id}","starred_url":"https://api.github.com/users/tweise/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tweise/subscriptions","organizations_url":"https://api.github.com/users/tweise/orgs","repos_url":"https://api.github.com/users/tweise/repos","events_url":"https://api.github.com/users/tweise/events{/privacy}","received_events_url":"https://api.github.com/users/tweise/received_events","type":"User","site_admin":false},"body":"In the future we want to validate the result instead of doing this!","created_at":"2016-06-09T02:57:11Z","updated_at":"2016-06-09T02:57:11Z","html_url":"https://github.com/DataTorrent/examples/pull/11#discussion_r66376084","pull_request_url":"https://api.github.com/repos/DataTorrent/examples/pulls/11","_links":{"self":{"href":"https://api.github.com/repos/DataTorrent/examples/pulls/comments/66376084"},"html":{"href":"https://github.com/DataTorrent/examples/pull/11#discussion_r66376084"},"pull_request":{"href":"https://api.github.com/repos/DataTorrent/examples/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/DataTorrent/examples/pulls/11","id":73150004,"html_url":"https://github.com/DataTorrent/examples/pull/11","diff_url":"https://github.com/DataTorrent/examples/pull/11.diff","patch_url":"https://github.com/DataTorrent/examples/pull/11.patch","issue_url":"https://api.github.com/repos/DataTorrent/examples/issues/11","number":11,"state":"open","locked":false,"title":"Add unifier example","user":{"login":"amberarrow","id":2498185,"avatar_url":"https://avatars.githubusercontent.com/u/2498185?v=3","gravatar_id":"","url":"https://api.github.com/users/amberarrow","html_url":"https://github.com/amberarrow","followers_url":"https://api.github.com/users/amberarrow/followers","following_url":"https://api.github.com/users/amberarrow/following{/other_user}","gists_url":"https://api.github.com/users/amberarrow/gists{/gist_id}","starred_url":"https://api.github.com/users/amberarrow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amberarrow/subscriptions","organizations_url":"https://api.github.com/users/amberarrow/orgs","repos_url":"https://api.github.com/users/amberarrow/repos","events_url":"https://api.github.com/users/amberarrow/events{/privacy}","received_events_url":"https://api.github.com/users/amberarrow/received_events","type":"User","site_admin":false},"body":"A dead-simple sample application that illustrates how results differ when a custom unifier is used versus the default pass-through unifier. Uses UnifierRange from Malhar.\r\n\r\n@tweise Please take a look","created_at":"2016-06-09T02:36:12Z","updated_at":"2016-06-09T02:57:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"577d768c38ed92336f128b45223f155110656165","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/DataTorrent/examples/pulls/11/commits","review_comments_url":"https://api.github.com/repos/DataTorrent/examples/pulls/11/comments","review_comment_url":"https://api.github.com/repos/DataTorrent/examples/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DataTorrent/examples/issues/11/comments","statuses_url":"https://api.github.com/repos/DataTorrent/examples/statuses/43cefb65d55ddec7c2cc6d202129efdf8305000b","head":{"label":"amberarrow:add-unifiers","ref":"add-unifiers","sha":"43cefb65d55ddec7c2cc6d202129efdf8305000b","user":{"login":"amberarrow","id":2498185,"avatar_url":"https://avatars.githubusercontent.com/u/2498185?v=3","gravatar_id":"","url":"https://api.github.com/users/amberarrow","html_url":"https://github.com/amberarrow","followers_url":"https://api.github.com/users/amberarrow/followers","following_url":"https://api.github.com/users/amberarrow/following{/other_user}","gists_url":"https://api.github.com/users/amberarrow/gists{/gist_id}","starred_url":"https://api.github.com/users/amberarrow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amberarrow/subscriptions","organizations_url":"https://api.github.com/users/amberarrow/orgs","repos_url":"https://api.github.com/users/amberarrow/repos","events_url":"https://api.github.com/users/amberarrow/events{/privacy}","received_events_url":"https://api.github.com/users/amberarrow/received_events","type":"User","site_admin":false},"repo":{"id":54124304,"name":"examples","full_name":"amberarrow/examples","owner":{"login":"amberarrow","id":2498185,"avatar_url":"https://avatars.githubusercontent.com/u/2498185?v=3","gravatar_id":"","url":"https://api.github.com/users/amberarrow","html_url":"https://github.com/amberarrow","followers_url":"https://api.github.com/users/amberarrow/followers","following_url":"https://api.github.com/users/amberarrow/following{/other_user}","gists_url":"https://api.github.com/users/amberarrow/gists{/gist_id}","starred_url":"https://api.github.com/users/amberarrow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amberarrow/subscriptions","organizations_url":"https://api.github.com/users/amberarrow/orgs","repos_url":"https://api.github.com/users/amberarrow/repos","events_url":"https://api.github.com/users/amberarrow/events{/privacy}","received_events_url":"https://api.github.com/users/amberarrow/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/amberarrow/examples","description":"DataTorrent code samples for guides, tutorials, blogs","fork":true,"url":"https://api.github.com/repos/amberarrow/examples","forks_url":"https://api.github.com/repos/amberarrow/examples/forks","keys_url":"https://api.github.com/repos/amberarrow/examples/keys{/key_id}","collaborators_url":"https://api.github.com/repos/amberarrow/examples/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/amberarrow/examples/teams","hooks_url":"https://api.github.com/repos/amberarrow/examples/hooks","issue_events_url":"https://api.github.com/repos/amberarrow/examples/issues/events{/number}","events_url":"https://api.github.com/repos/amberarrow/examples/events","assignees_url":"https://api.github.com/repos/amberarrow/examples/assignees{/user}","branches_url":"https://api.github.com/repos/amberarrow/examples/branches{/branch}","tags_url":"https://api.github.com/repos/amberarrow/examples/tags","blobs_url":"https://api.github.com/repos/amberarrow/examples/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/amberarrow/examples/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/amberarrow/examples/git/refs{/sha}","trees_url":"https://api.github.com/repos/amberarrow/examples/git/trees{/sha}","statuses_url":"https://api.github.com/repos/amberarrow/examples/statuses/{sha}","languages_url":"https://api.github.com/repos/amberarrow/examples/languages","stargazers_url":"https://api.github.com/repos/amberarrow/examples/stargazers","contributors_url":"https://api.github.com/repos/amberarrow/examples/contributors","subscribers_url":"https://api.github.com/repos/amberarrow/examples/subscribers","subscription_url":"https://api.github.com/repos/amberarrow/examples/subscription","commits_url":"https://api.github.com/repos/amberarrow/examples/commits{/sha}","git_commits_url":"https://api.github.com/repos/amberarrow/examples/git/commits{/sha}","comments_url":"https://api.github.com/repos/amberarrow/examples/comments{/number}","issue_comment_url":"https://api.github.com/repos/amberarrow/examples/issues/comments{/number}","contents_url":"https://api.github.com/repos/amberarrow/examples/contents/{+path}","compare_url":"https://api.github.com/repos/amberarrow/examples/compare/{base}...{head}","merges_url":"https://api.github.com/repos/amberarrow/examples/merges","archive_url":"https://api.github.com/repos/amberarrow/examples/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/amberarrow/examples/downloads","issues_url":"https://api.github.com/repos/amberarrow/examples/issues{/number}","pulls_url":"https://api.github.com/repos/amberarrow/examples/pulls{/number}","milestones_url":"https://api.github.com/repos/amberarrow/examples/milestones{/number}","notifications_url":"https://api.github.com/repos/amberarrow/examples/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/amberarrow/examples/labels{/name}","releases_url":"https://api.github.com/repos/amberarrow/examples/releases{/id}","deployments_url":"https://api.github.com/repos/amberarrow/examples/deployments","created_at":"2016-03-17T14:26:15Z","updated_at":"2016-03-17T14:26:16Z","pushed_at":"2016-06-09T02:32:36Z","git_url":"git://github.com/amberarrow/examples.git","ssh_url":"git@github.com:amberarrow/examples.git","clone_url":"https://github.com/amberarrow/examples.git","svn_url":"https://github.com/amberarrow/examples","homepage":null,"size":1116,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"DataTorrent:master","ref":"master","sha":"35942b0b32e7540a84411603a83edd02be21a02b","user":{"login":"DataTorrent","id":4400063,"avatar_url":"https://avatars.githubusercontent.com/u/4400063?v=3","gravatar_id":"","url":"https://api.github.com/users/DataTorrent","html_url":"https://github.com/DataTorrent","followers_url":"https://api.github.com/users/DataTorrent/followers","following_url":"https://api.github.com/users/DataTorrent/following{/other_user}","gists_url":"https://api.github.com/users/DataTorrent/gists{/gist_id}","starred_url":"https://api.github.com/users/DataTorrent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DataTorrent/subscriptions","organizations_url":"https://api.github.com/users/DataTorrent/orgs","repos_url":"https://api.github.com/users/DataTorrent/repos","events_url":"https://api.github.com/users/DataTorrent/events{/privacy}","received_events_url":"https://api.github.com/users/DataTorrent/received_events","type":"Organization","site_admin":false},"repo":{"id":43836464,"name":"examples","full_name":"DataTorrent/examples","owner":{"login":"DataTorrent","id":4400063,"avatar_url":"https://avatars.githubusercontent.com/u/4400063?v=3","gravatar_id":"","url":"https://api.github.com/users/DataTorrent","html_url":"https://github.com/DataTorrent","followers_url":"https://api.github.com/users/DataTorrent/followers","following_url":"https://api.github.com/users/DataTorrent/following{/other_user}","gists_url":"https://api.github.com/users/DataTorrent/gists{/gist_id}","starred_url":"https://api.github.com/users/DataTorrent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DataTorrent/subscriptions","organizations_url":"https://api.github.com/users/DataTorrent/orgs","repos_url":"https://api.github.com/users/DataTorrent/repos","events_url":"https://api.github.com/users/DataTorrent/events{/privacy}","received_events_url":"https://api.github.com/users/DataTorrent/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DataTorrent/examples","description":"DataTorrent code samples for guides, tutorials, blogs","fork":false,"url":"https://api.github.com/repos/DataTorrent/examples","forks_url":"https://api.github.com/repos/DataTorrent/examples/forks","keys_url":"https://api.github.com/repos/DataTorrent/examples/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DataTorrent/examples/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DataTorrent/examples/teams","hooks_url":"https://api.github.com/repos/DataTorrent/examples/hooks","issue_events_url":"https://api.github.com/repos/DataTorrent/examples/issues/events{/number}","events_url":"https://api.github.com/repos/DataTorrent/examples/events","assignees_url":"https://api.github.com/repos/DataTorrent/examples/assignees{/user}","branches_url":"https://api.github.com/repos/DataTorrent/examples/branches{/branch}","tags_url":"https://api.github.com/repos/DataTorrent/examples/tags","blobs_url":"https://api.github.com/repos/DataTorrent/examples/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DataTorrent/examples/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DataTorrent/examples/git/refs{/sha}","trees_url":"https://api.github.com/repos/DataTorrent/examples/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DataTorrent/examples/statuses/{sha}","languages_url":"https://api.github.com/repos/DataTorrent/examples/languages","stargazers_url":"https://api.github.com/repos/DataTorrent/examples/stargazers","contributors_url":"https://api.github.com/repos/DataTorrent/examples/contributors","subscribers_url":"https://api.github.com/repos/DataTorrent/examples/subscribers","subscription_url":"https://api.github.com/repos/DataTorrent/examples/subscription","commits_url":"https://api.github.com/repos/DataTorrent/examples/commits{/sha}","git_commits_url":"https://api.github.com/repos/DataTorrent/examples/git/commits{/sha}","comments_url":"https://api.github.com/repos/DataTorrent/examples/comments{/number}","issue_comment_url":"https://api.github.com/repos/DataTorrent/examples/issues/comments{/number}","contents_url":"https://api.github.com/repos/DataTorrent/examples/contents/{+path}","compare_url":"https://api.github.com/repos/DataTorrent/examples/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DataTorrent/examples/merges","archive_url":"https://api.github.com/repos/DataTorrent/examples/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DataTorrent/examples/downloads","issues_url":"https://api.github.com/repos/DataTorrent/examples/issues{/number}","pulls_url":"https://api.github.com/repos/DataTorrent/examples/pulls{/number}","milestones_url":"https://api.github.com/repos/DataTorrent/examples/milestones{/number}","notifications_url":"https://api.github.com/repos/DataTorrent/examples/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DataTorrent/examples/labels{/name}","releases_url":"https://api.github.com/repos/DataTorrent/examples/releases{/id}","deployments_url":"https://api.github.com/repos/DataTorrent/examples/deployments","created_at":"2015-10-07T18:29:18Z","updated_at":"2016-06-04T19:48:48Z","pushed_at":"2016-06-09T02:47:39Z","git_url":"git://github.com/DataTorrent/examples.git","ssh_url":"git@github.com:DataTorrent/examples.git","clone_url":"https://github.com/DataTorrent/examples.git","svn_url":"https://github.com/DataTorrent/examples","homepage":null,"size":1188,"stargazers_count":3,"watchers_count":3,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":3,"forks":9,"open_issues":3,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/DataTorrent/examples/pulls/11"},"html":{"href":"https://github.com/DataTorrent/examples/pull/11"},"issue":{"href":"https://api.github.com/repos/DataTorrent/examples/issues/11"},"comments":{"href":"https://api.github.com/repos/DataTorrent/examples/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/DataTorrent/examples/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/DataTorrent/examples/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DataTorrent/examples/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/DataTorrent/examples/statuses/43cefb65d55ddec7c2cc6d202129efdf8305000b"}}}}
{"actor":{"display_login":"tweise"}}