{"action":"created","comment":{"url":"https://api.github.com/repos/wso2/siddhi/pulls/comments/78007502","id":78007502,"diff_hunk":"@@ -0,0 +1,61 @@\n+/*\n+ *\n+ *  * Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.\n+ *  *\n+ *  * WSO2 Inc. licenses this file to you under the Apache License,\n+ *  * Version 2.0 (the \"License\"); you may not use this file except\n+ *  * in compliance with the License.\n+ *  * You may obtain a copy of the License at\n+ *  *\n+ *  *     http://www.apache.org/licenses/LICENSE-2.0\n+ *  *\n+ *  * Unless required by applicable law or agreed to in writing,\n+ *  * software distributed under the License is distributed on an\n+ *  * \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\n+ *  * KIND, either express or implied. See the License for the\n+ *  * specific language governing permissions and limitations\n+ *  * under the License.\n+ *\n+ */\n+\n+package org.wso2.siddhi.extension.markov.test.util;\n+\n+import java.util.Arrays;\n+import java.util.Collection;\n+import java.util.List;\n+import java.util.concurrent.atomic.AtomicInteger;\n+\n+public class SiddhiTestHelper {","path":"modules/siddhi-extensions/markov-models/src/test/java/org/wso2/siddhi/extension/markov/test/util/SiddhiTestHelper.java","position":28,"original_position":28,"commit_id":"6ec926d984a25a5000d33f3696352a1d730628c3","original_commit_id":"690b60924a459f505cce35f57d2ce6b05e4980c2","user":{"login":"ruwanta","id":1294542,"avatar_url":"https://avatars.githubusercontent.com/u/1294542?v=3","gravatar_id":"","url":"https://api.github.com/users/ruwanta","html_url":"https://github.com/ruwanta","followers_url":"https://api.github.com/users/ruwanta/followers","following_url":"https://api.github.com/users/ruwanta/following{/other_user}","gists_url":"https://api.github.com/users/ruwanta/gists{/gist_id}","starred_url":"https://api.github.com/users/ruwanta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruwanta/subscriptions","organizations_url":"https://api.github.com/users/ruwanta/orgs","repos_url":"https://api.github.com/users/ruwanta/repos","events_url":"https://api.github.com/users/ruwanta/events{/privacy}","received_events_url":"https://api.github.com/users/ruwanta/received_events","type":"User","site_admin":false},"body":"@lasanthafdo , I am ok with current implementation, as this is a Test.  CountDownLatch helps to do similar things efficiently without the Thread.sleep(). Its just that I consider Thread.sleep() as bad programming practice. In short, I am OK with current implementation.","created_at":"2016-09-08T13:41:38Z","updated_at":"2016-09-08T13:41:38Z","html_url":"https://github.com/wso2/siddhi/pull/189#discussion_r78007502","pull_request_url":"https://api.github.com/repos/wso2/siddhi/pulls/189","_links":{"self":{"href":"https://api.github.com/repos/wso2/siddhi/pulls/comments/78007502"},"html":{"href":"https://github.com/wso2/siddhi/pull/189#discussion_r78007502"},"pull_request":{"href":"https://api.github.com/repos/wso2/siddhi/pulls/189"}}},"pull_request":{"url":"https://api.github.com/repos/wso2/siddhi/pulls/189","id":84464646,"html_url":"https://github.com/wso2/siddhi/pull/189","diff_url":"https://github.com/wso2/siddhi/pull/189.diff","patch_url":"https://github.com/wso2/siddhi/pull/189.patch","issue_url":"https://api.github.com/repos/wso2/siddhi/issues/189","number":189,"state":"open","locked":false,"title":"Changes according to the PR reviews","user":{"login":"ashensw","id":13478571,"avatar_url":"https://avatars.githubusercontent.com/u/13478571?v=3","gravatar_id":"","url":"https://api.github.com/users/ashensw","html_url":"https://github.com/ashensw","followers_url":"https://api.github.com/users/ashensw/followers","following_url":"https://api.github.com/users/ashensw/following{/other_user}","gists_url":"https://api.github.com/users/ashensw/gists{/gist_id}","starred_url":"https://api.github.com/users/ashensw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashensw/subscriptions","organizations_url":"https://api.github.com/users/ashensw/orgs","repos_url":"https://api.github.com/users/ashensw/repos","events_url":"https://api.github.com/users/ashensw/events{/privacy}","received_events_url":"https://api.github.com/users/ashensw/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-09-08T12:04:12Z","updated_at":"2016-09-08T13:41:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e590f3d257a341ebaeb3a2eb0a65fe58947fb82d","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/wso2/siddhi/pulls/189/commits","review_comments_url":"https://api.github.com/repos/wso2/siddhi/pulls/189/comments","review_comment_url":"https://api.github.com/repos/wso2/siddhi/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wso2/siddhi/issues/189/comments","statuses_url":"https://api.github.com/repos/wso2/siddhi/statuses/6ec926d984a25a5000d33f3696352a1d730628c3","head":{"label":"ashensw:master","ref":"master","sha":"6ec926d984a25a5000d33f3696352a1d730628c3","user":{"login":"ashensw","id":13478571,"avatar_url":"https://avatars.githubusercontent.com/u/13478571?v=3","gravatar_id":"","url":"https://api.github.com/users/ashensw","html_url":"https://github.com/ashensw","followers_url":"https://api.github.com/users/ashensw/followers","following_url":"https://api.github.com/users/ashensw/following{/other_user}","gists_url":"https://api.github.com/users/ashensw/gists{/gist_id}","starred_url":"https://api.github.com/users/ashensw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashensw/subscriptions","organizations_url":"https://api.github.com/users/ashensw/orgs","repos_url":"https://api.github.com/users/ashensw/repos","events_url":"https://api.github.com/users/ashensw/events{/privacy}","received_events_url":"https://api.github.com/users/ashensw/received_events","type":"User","site_admin":false},"repo":{"id":47962885,"name":"siddhi","full_name":"ashensw/siddhi","owner":{"login":"ashensw","id":13478571,"avatar_url":"https://avatars.githubusercontent.com/u/13478571?v=3","gravatar_id":"","url":"https://api.github.com/users/ashensw","html_url":"https://github.com/ashensw","followers_url":"https://api.github.com/users/ashensw/followers","following_url":"https://api.github.com/users/ashensw/following{/other_user}","gists_url":"https://api.github.com/users/ashensw/gists{/gist_id}","starred_url":"https://api.github.com/users/ashensw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashensw/subscriptions","organizations_url":"https://api.github.com/users/ashensw/orgs","repos_url":"https://api.github.com/users/ashensw/repos","events_url":"https://api.github.com/users/ashensw/events{/privacy}","received_events_url":"https://api.github.com/users/ashensw/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ashensw/siddhi","description":"","fork":true,"url":"https://api.github.com/repos/ashensw/siddhi","forks_url":"https://api.github.com/repos/ashensw/siddhi/forks","keys_url":"https://api.github.com/repos/ashensw/siddhi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ashensw/siddhi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ashensw/siddhi/teams","hooks_url":"https://api.github.com/repos/ashensw/siddhi/hooks","issue_events_url":"https://api.github.com/repos/ashensw/siddhi/issues/events{/number}","events_url":"https://api.github.com/repos/ashensw/siddhi/events","assignees_url":"https://api.github.com/repos/ashensw/siddhi/assignees{/user}","branches_url":"https://api.github.com/repos/ashensw/siddhi/branches{/branch}","tags_url":"https://api.github.com/repos/ashensw/siddhi/tags","blobs_url":"https://api.github.com/repos/ashensw/siddhi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ashensw/siddhi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ashensw/siddhi/git/refs{/sha}","trees_url":"https://api.github.com/repos/ashensw/siddhi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ashensw/siddhi/statuses/{sha}","languages_url":"https://api.github.com/repos/ashensw/siddhi/languages","stargazers_url":"https://api.github.com/repos/ashensw/siddhi/stargazers","contributors_url":"https://api.github.com/repos/ashensw/siddhi/contributors","subscribers_url":"https://api.github.com/repos/ashensw/siddhi/subscribers","subscription_url":"https://api.github.com/repos/ashensw/siddhi/subscription","commits_url":"https://api.github.com/repos/ashensw/siddhi/commits{/sha}","git_commits_url":"https://api.github.com/repos/ashensw/siddhi/git/commits{/sha}","comments_url":"https://api.github.com/repos/ashensw/siddhi/comments{/number}","issue_comment_url":"https://api.github.com/repos/ashensw/siddhi/issues/comments{/number}","contents_url":"https://api.github.com/repos/ashensw/siddhi/contents/{+path}","compare_url":"https://api.github.com/repos/ashensw/siddhi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ashensw/siddhi/merges","archive_url":"https://api.github.com/repos/ashensw/siddhi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ashensw/siddhi/downloads","issues_url":"https://api.github.com/repos/ashensw/siddhi/issues{/number}","pulls_url":"https://api.github.com/repos/ashensw/siddhi/pulls{/number}","milestones_url":"https://api.github.com/repos/ashensw/siddhi/milestones{/number}","notifications_url":"https://api.github.com/repos/ashensw/siddhi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ashensw/siddhi/labels{/name}","releases_url":"https://api.github.com/repos/ashensw/siddhi/releases{/id}","deployments_url":"https://api.github.com/repos/ashensw/siddhi/deployments","created_at":"2015-12-14T08:52:05Z","updated_at":"2016-06-13T05:11:22Z","pushed_at":"2016-09-08T12:01:12Z","git_url":"git://github.com/ashensw/siddhi.git","ssh_url":"git@github.com:ashensw/siddhi.git","clone_url":"https://github.com/ashensw/siddhi.git","svn_url":"https://github.com/ashensw/siddhi","homepage":null,"size":5640,"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":"wso2:master","ref":"master","sha":"453b37dc486b35f6057c2df725bcc2f848641eb9","user":{"login":"wso2","id":533043,"avatar_url":"https://avatars.githubusercontent.com/u/533043?v=3","gravatar_id":"","url":"https://api.github.com/users/wso2","html_url":"https://github.com/wso2","followers_url":"https://api.github.com/users/wso2/followers","following_url":"https://api.github.com/users/wso2/following{/other_user}","gists_url":"https://api.github.com/users/wso2/gists{/gist_id}","starred_url":"https://api.github.com/users/wso2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wso2/subscriptions","organizations_url":"https://api.github.com/users/wso2/orgs","repos_url":"https://api.github.com/users/wso2/repos","events_url":"https://api.github.com/users/wso2/events{/privacy}","received_events_url":"https://api.github.com/users/wso2/received_events","type":"Organization","site_admin":false},"repo":{"id":18988631,"name":"siddhi","full_name":"wso2/siddhi","owner":{"login":"wso2","id":533043,"avatar_url":"https://avatars.githubusercontent.com/u/533043?v=3","gravatar_id":"","url":"https://api.github.com/users/wso2","html_url":"https://github.com/wso2","followers_url":"https://api.github.com/users/wso2/followers","following_url":"https://api.github.com/users/wso2/following{/other_user}","gists_url":"https://api.github.com/users/wso2/gists{/gist_id}","starred_url":"https://api.github.com/users/wso2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wso2/subscriptions","organizations_url":"https://api.github.com/users/wso2/orgs","repos_url":"https://api.github.com/users/wso2/repos","events_url":"https://api.github.com/users/wso2/events{/privacy}","received_events_url":"https://api.github.com/users/wso2/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wso2/siddhi","description":"","fork":false,"url":"https://api.github.com/repos/wso2/siddhi","forks_url":"https://api.github.com/repos/wso2/siddhi/forks","keys_url":"https://api.github.com/repos/wso2/siddhi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wso2/siddhi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wso2/siddhi/teams","hooks_url":"https://api.github.com/repos/wso2/siddhi/hooks","issue_events_url":"https://api.github.com/repos/wso2/siddhi/issues/events{/number}","events_url":"https://api.github.com/repos/wso2/siddhi/events","assignees_url":"https://api.github.com/repos/wso2/siddhi/assignees{/user}","branches_url":"https://api.github.com/repos/wso2/siddhi/branches{/branch}","tags_url":"https://api.github.com/repos/wso2/siddhi/tags","blobs_url":"https://api.github.com/repos/wso2/siddhi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wso2/siddhi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wso2/siddhi/git/refs{/sha}","trees_url":"https://api.github.com/repos/wso2/siddhi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wso2/siddhi/statuses/{sha}","languages_url":"https://api.github.com/repos/wso2/siddhi/languages","stargazers_url":"https://api.github.com/repos/wso2/siddhi/stargazers","contributors_url":"https://api.github.com/repos/wso2/siddhi/contributors","subscribers_url":"https://api.github.com/repos/wso2/siddhi/subscribers","subscription_url":"https://api.github.com/repos/wso2/siddhi/subscription","commits_url":"https://api.github.com/repos/wso2/siddhi/commits{/sha}","git_commits_url":"https://api.github.com/repos/wso2/siddhi/git/commits{/sha}","comments_url":"https://api.github.com/repos/wso2/siddhi/comments{/number}","issue_comment_url":"https://api.github.com/repos/wso2/siddhi/issues/comments{/number}","contents_url":"https://api.github.com/repos/wso2/siddhi/contents/{+path}","compare_url":"https://api.github.com/repos/wso2/siddhi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wso2/siddhi/merges","archive_url":"https://api.github.com/repos/wso2/siddhi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wso2/siddhi/downloads","issues_url":"https://api.github.com/repos/wso2/siddhi/issues{/number}","pulls_url":"https://api.github.com/repos/wso2/siddhi/pulls{/number}","milestones_url":"https://api.github.com/repos/wso2/siddhi/milestones{/number}","notifications_url":"https://api.github.com/repos/wso2/siddhi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wso2/siddhi/labels{/name}","releases_url":"https://api.github.com/repos/wso2/siddhi/releases{/id}","deployments_url":"https://api.github.com/repos/wso2/siddhi/deployments","created_at":"2014-04-21T09:51:36Z","updated_at":"2016-09-06T08:19:58Z","pushed_at":"2016-09-08T12:04:12Z","git_url":"git://github.com/wso2/siddhi.git","ssh_url":"git@github.com:wso2/siddhi.git","clone_url":"https://github.com/wso2/siddhi.git","svn_url":"https://github.com/wso2/siddhi","homepage":null,"size":15631,"stargazers_count":194,"watchers_count":194,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":155,"mirror_url":null,"open_issues_count":18,"forks":155,"open_issues":18,"watchers":194,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wso2/siddhi/pulls/189"},"html":{"href":"https://github.com/wso2/siddhi/pull/189"},"issue":{"href":"https://api.github.com/repos/wso2/siddhi/issues/189"},"comments":{"href":"https://api.github.com/repos/wso2/siddhi/issues/189/comments"},"review_comments":{"href":"https://api.github.com/repos/wso2/siddhi/pulls/189/comments"},"review_comment":{"href":"https://api.github.com/repos/wso2/siddhi/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wso2/siddhi/pulls/189/commits"},"statuses":{"href":"https://api.github.com/repos/wso2/siddhi/statuses/6ec926d984a25a5000d33f3696352a1d730628c3"}}}}
{"actor":{"display_login":"ruwanta"}}