{"action":"created","comment":{"url":"https://api.github.com/repos/wso2/siddhi/pulls/comments/77994381","id":77994381,"diff_hunk":"@@ -0,0 +1,88 @@\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+package org.wso2.siddhi.extension.markov;\n+\n+import org.apache.log4j.Logger;\n+\n+import java.io.Serializable;\n+import java.util.HashMap;\n+import java.util.Map;\n+\n+public class MarkovMatrix implements Serializable {\n+\n+    private static final Logger log = Logger.getLogger(MarkovMatrix.class);\n+    private static final long serialVersionUID = -6731569100412292454L;\n+    Map<String, Double> transitionCount;\n+    Map<String, Double> startStateCount;\n+\n+    public MarkovMatrix() {","path":"modules/siddhi-extensions/markov-models/src/main/java/org/wso2/siddhi/extension/markov/MarkovMatrix.java","position":34,"original_position":34,"commit_id":"cf099a3f33ab854f0d076cd68d7f80392e150a08","original_commit_id":"cf099a3f33ab854f0d076cd68d7f80392e150a08","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":"Thanks for the suggestion. Fixed with https://github.com/wso2/siddhi/pull/189/commits/690b60924a459f505cce35f57d2ce6b05e4980c2","created_at":"2016-09-08T12:18:45Z","updated_at":"2016-09-08T12:18:45Z","html_url":"https://github.com/wso2/siddhi/pull/184#discussion_r77994381","pull_request_url":"https://api.github.com/repos/wso2/siddhi/pulls/184","_links":{"self":{"href":"https://api.github.com/repos/wso2/siddhi/pulls/comments/77994381"},"html":{"href":"https://github.com/wso2/siddhi/pull/184#discussion_r77994381"},"pull_request":{"href":"https://api.github.com/repos/wso2/siddhi/pulls/184"}}},"pull_request":{"url":"https://api.github.com/repos/wso2/siddhi/pulls/184","id":82503170,"html_url":"https://github.com/wso2/siddhi/pull/184","diff_url":"https://github.com/wso2/siddhi/pull/184.diff","patch_url":"https://github.com/wso2/siddhi/pull/184.patch","issue_url":"https://api.github.com/repos/wso2/siddhi/issues/184","number":184,"state":"closed","locked":false,"title":"Siddhi Extension for Markov models","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-08-24T08:44:28Z","updated_at":"2016-09-08T12:18:45Z","closed_at":"2016-08-24T08:53:27Z","merged_at":"2016-08-24T08:53:27Z","merge_commit_sha":"f907c6e3cc7a61fb320a3c8e26753d37d65ea2ae","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/wso2/siddhi/pulls/184/commits","review_comments_url":"https://api.github.com/repos/wso2/siddhi/pulls/184/comments","review_comment_url":"https://api.github.com/repos/wso2/siddhi/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wso2/siddhi/issues/184/comments","statuses_url":"https://api.github.com/repos/wso2/siddhi/statuses/cf099a3f33ab854f0d076cd68d7f80392e150a08","head":{"label":"ashensw:master","ref":"master","sha":"cf099a3f33ab854f0d076cd68d7f80392e150a08","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":5635,"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":"b5c9d182562114ee692fb55a7d14fa4db6c62c4f","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/184"},"html":{"href":"https://github.com/wso2/siddhi/pull/184"},"issue":{"href":"https://api.github.com/repos/wso2/siddhi/issues/184"},"comments":{"href":"https://api.github.com/repos/wso2/siddhi/issues/184/comments"},"review_comments":{"href":"https://api.github.com/repos/wso2/siddhi/pulls/184/comments"},"review_comment":{"href":"https://api.github.com/repos/wso2/siddhi/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wso2/siddhi/pulls/184/commits"},"statuses":{"href":"https://api.github.com/repos/wso2/siddhi/statuses/cf099a3f33ab854f0d076cd68d7f80392e150a08"}}}}
{"actor":{"display_login":"ashensw"}}