{"action":"created","comment":{"url":"https://api.github.com/repos/yotamhc/ml-temp/pulls/comments/48094462","id":48094462,"diff_hunk":"@@ -0,0 +1,75 @@\n+package org.moonlightcontroller.blocks;\n+\n+import java.util.Map;\n+\n+import org.moonlightcontroller.aggregator.UUIDGenerator;\n+import org.moonlightcontroller.exceptions.MergeException;\n+import org.moonlightcontroller.processing.BlockClass;\n+import org.moonlightcontroller.processing.ProcessingBlock;\n+\n+\n+public class Alert extends ProcessingBlock implements IStaticProcessingBlock {\n+\n+\tprivate String message;\n+\t\n+\tprivate Alert(String id, String message) {\n+\t\tsuper(id);\n+\t\tthis.message = message;\n+\t}\n+\t\t\n+\tpublic String getMessage() {\n+\t\treturn message;\n+\t}\n+\n+\t@Override\n+\tpublic BlockClass getBlockClass() {\n+\t\treturn BlockClass.BLOCK_CLASS_STATIC;\n+\t}\n+\n+\t@Override\n+\tpublic String getBlockType() {\n+\t\treturn \"Alert\";\n+\t}\n+\n+\t@Override\n+\tprotected ProcessingBlock spawn(String id) {\n+\t\treturn new Alert(id, this.message);\n+\t}\n+\n+\t@Override\n+\tpublic boolean canMergeWith(IStaticProcessingBlock other) {\n+\t\tif (!(other instanceof Alert))\n+\t\t\treturn false;\n+\t\treturn true;\n+\t}\n+\n+\t@Override\n+\tpublic IStaticProcessingBlock mergeWith(IStaticProcessingBlock other) throws MergeException {\n+\t\tif (other instanceof Alert) {\n+\t\t\tAlert o = (Alert)other;\n+\t\t\treturn new Alert(\"MERGED##\" + this.getId() + \"##\" + other.getId() + \"##\" + UUIDGenerator.getSystemInstance().getUUID().toString(), this.message + \";;\" + o.message);\n+\t\t} else {\n+\t\t\tthrow new MergeException(\"Cannot merge statics of different type\");\n+\t\t}\n+\t}\n+\t\n+\t@Override\n+\tprotected void putConfiguration(Map<String, String> config) {\n+\t\t// TODO: Does alert have config?","path":"src/main/java/org/moonlightcontroller/blocks/Alert.java","position":58,"original_position":58,"commit_id":"4bf49abacead22a07bbfd248f790d3856e1b2140","original_commit_id":"4bf49abacead22a07bbfd248f790d3856e1b2140","user":{"login":"yotamhc","id":1969274,"avatar_url":"https://avatars.githubusercontent.com/u/1969274?v=3","gravatar_id":"","url":"https://api.github.com/users/yotamhc","html_url":"https://github.com/yotamhc","followers_url":"https://api.github.com/users/yotamhc/followers","following_url":"https://api.github.com/users/yotamhc/following{/other_user}","gists_url":"https://api.github.com/users/yotamhc/gists{/gist_id}","starred_url":"https://api.github.com/users/yotamhc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yotamhc/subscriptions","organizations_url":"https://api.github.com/users/yotamhc/orgs","repos_url":"https://api.github.com/users/yotamhc/repos","events_url":"https://api.github.com/users/yotamhc/events{/privacy}","received_events_url":"https://api.github.com/users/yotamhc/received_events","type":"User","site_admin":false},"body":"Yes, see part 5.16 in the OpenBox spec (we can ignore optional parameters)","created_at":"2015-12-19T17:02:14Z","updated_at":"2015-12-19T17:02:14Z","html_url":"https://github.com/yotamhc/ml-temp/pull/23#discussion_r48094462","pull_request_url":"https://api.github.com/repos/yotamhc/ml-temp/pulls/23","_links":{"self":{"href":"https://api.github.com/repos/yotamhc/ml-temp/pulls/comments/48094462"},"html":{"href":"https://github.com/yotamhc/ml-temp/pull/23#discussion_r48094462"},"pull_request":{"href":"https://api.github.com/repos/yotamhc/ml-temp/pulls/23"}}},"pull_request":{"url":"https://api.github.com/repos/yotamhc/ml-temp/pulls/23","id":54177081,"html_url":"https://github.com/yotamhc/ml-temp/pull/23","diff_url":"https://github.com/yotamhc/ml-temp/pull/23.diff","patch_url":"https://github.com/yotamhc/ml-temp/pull/23.patch","issue_url":"https://api.github.com/repos/yotamhc/ml-temp/issues/23","number":23,"state":"open","locked":false,"title":"Merging aggregator back to master","user":{"login":"til0n","id":15367803,"avatar_url":"https://avatars.githubusercontent.com/u/15367803?v=3","gravatar_id":"","url":"https://api.github.com/users/til0n","html_url":"https://github.com/til0n","followers_url":"https://api.github.com/users/til0n/followers","following_url":"https://api.github.com/users/til0n/following{/other_user}","gists_url":"https://api.github.com/users/til0n/gists{/gist_id}","starred_url":"https://api.github.com/users/til0n/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/til0n/subscriptions","organizations_url":"https://api.github.com/users/til0n/orgs","repos_url":"https://api.github.com/users/til0n/repos","events_url":"https://api.github.com/users/til0n/events{/privacy}","received_events_url":"https://api.github.com/users/til0n/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-12-19T11:39:01Z","updated_at":"2015-12-19T17:02:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9347d63524ea3c5da4b519ec69bbd800557e0d9d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/yotamhc/ml-temp/pulls/23/commits","review_comments_url":"https://api.github.com/repos/yotamhc/ml-temp/pulls/23/comments","review_comment_url":"https://api.github.com/repos/yotamhc/ml-temp/pulls/comments{/number}","comments_url":"https://api.github.com/repos/yotamhc/ml-temp/issues/23/comments","statuses_url":"https://api.github.com/repos/yotamhc/ml-temp/statuses/4bf49abacead22a07bbfd248f790d3856e1b2140","head":{"label":"til0n:master","ref":"master","sha":"4bf49abacead22a07bbfd248f790d3856e1b2140","user":{"login":"til0n","id":15367803,"avatar_url":"https://avatars.githubusercontent.com/u/15367803?v=3","gravatar_id":"","url":"https://api.github.com/users/til0n","html_url":"https://github.com/til0n","followers_url":"https://api.github.com/users/til0n/followers","following_url":"https://api.github.com/users/til0n/following{/other_user}","gists_url":"https://api.github.com/users/til0n/gists{/gist_id}","starred_url":"https://api.github.com/users/til0n/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/til0n/subscriptions","organizations_url":"https://api.github.com/users/til0n/orgs","repos_url":"https://api.github.com/users/til0n/repos","events_url":"https://api.github.com/users/til0n/events{/privacy}","received_events_url":"https://api.github.com/users/til0n/received_events","type":"User","site_admin":false},"repo":{"id":45263497,"name":"ml-temp","full_name":"til0n/ml-temp","owner":{"login":"til0n","id":15367803,"avatar_url":"https://avatars.githubusercontent.com/u/15367803?v=3","gravatar_id":"","url":"https://api.github.com/users/til0n","html_url":"https://github.com/til0n","followers_url":"https://api.github.com/users/til0n/followers","following_url":"https://api.github.com/users/til0n/following{/other_user}","gists_url":"https://api.github.com/users/til0n/gists{/gist_id}","starred_url":"https://api.github.com/users/til0n/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/til0n/subscriptions","organizations_url":"https://api.github.com/users/til0n/orgs","repos_url":"https://api.github.com/users/til0n/repos","events_url":"https://api.github.com/users/til0n/events{/privacy}","received_events_url":"https://api.github.com/users/til0n/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/til0n/ml-temp","description":"Temporary repository for the ML project","fork":true,"url":"https://api.github.com/repos/til0n/ml-temp","forks_url":"https://api.github.com/repos/til0n/ml-temp/forks","keys_url":"https://api.github.com/repos/til0n/ml-temp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/til0n/ml-temp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/til0n/ml-temp/teams","hooks_url":"https://api.github.com/repos/til0n/ml-temp/hooks","issue_events_url":"https://api.github.com/repos/til0n/ml-temp/issues/events{/number}","events_url":"https://api.github.com/repos/til0n/ml-temp/events","assignees_url":"https://api.github.com/repos/til0n/ml-temp/assignees{/user}","branches_url":"https://api.github.com/repos/til0n/ml-temp/branches{/branch}","tags_url":"https://api.github.com/repos/til0n/ml-temp/tags","blobs_url":"https://api.github.com/repos/til0n/ml-temp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/til0n/ml-temp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/til0n/ml-temp/git/refs{/sha}","trees_url":"https://api.github.com/repos/til0n/ml-temp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/til0n/ml-temp/statuses/{sha}","languages_url":"https://api.github.com/repos/til0n/ml-temp/languages","stargazers_url":"https://api.github.com/repos/til0n/ml-temp/stargazers","contributors_url":"https://api.github.com/repos/til0n/ml-temp/contributors","subscribers_url":"https://api.github.com/repos/til0n/ml-temp/subscribers","subscription_url":"https://api.github.com/repos/til0n/ml-temp/subscription","commits_url":"https://api.github.com/repos/til0n/ml-temp/commits{/sha}","git_commits_url":"https://api.github.com/repos/til0n/ml-temp/git/commits{/sha}","comments_url":"https://api.github.com/repos/til0n/ml-temp/comments{/number}","issue_comment_url":"https://api.github.com/repos/til0n/ml-temp/issues/comments{/number}","contents_url":"https://api.github.com/repos/til0n/ml-temp/contents/{+path}","compare_url":"https://api.github.com/repos/til0n/ml-temp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/til0n/ml-temp/merges","archive_url":"https://api.github.com/repos/til0n/ml-temp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/til0n/ml-temp/downloads","issues_url":"https://api.github.com/repos/til0n/ml-temp/issues{/number}","pulls_url":"https://api.github.com/repos/til0n/ml-temp/pulls{/number}","milestones_url":"https://api.github.com/repos/til0n/ml-temp/milestones{/number}","notifications_url":"https://api.github.com/repos/til0n/ml-temp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/til0n/ml-temp/labels{/name}","releases_url":"https://api.github.com/repos/til0n/ml-temp/releases{/id}","created_at":"2015-10-30T16:37:50Z","updated_at":"2015-10-30T21:05:10Z","pushed_at":"2015-12-19T15:45:05Z","git_url":"git://github.com/til0n/ml-temp.git","ssh_url":"git@github.com:til0n/ml-temp.git","clone_url":"https://github.com/til0n/ml-temp.git","svn_url":"https://github.com/til0n/ml-temp","homepage":null,"size":218,"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":"yotamhc:master","ref":"master","sha":"6213f792f8fdef65028285f0aae2e29d34691a42","user":{"login":"yotamhc","id":1969274,"avatar_url":"https://avatars.githubusercontent.com/u/1969274?v=3","gravatar_id":"","url":"https://api.github.com/users/yotamhc","html_url":"https://github.com/yotamhc","followers_url":"https://api.github.com/users/yotamhc/followers","following_url":"https://api.github.com/users/yotamhc/following{/other_user}","gists_url":"https://api.github.com/users/yotamhc/gists{/gist_id}","starred_url":"https://api.github.com/users/yotamhc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yotamhc/subscriptions","organizations_url":"https://api.github.com/users/yotamhc/orgs","repos_url":"https://api.github.com/users/yotamhc/repos","events_url":"https://api.github.com/users/yotamhc/events{/privacy}","received_events_url":"https://api.github.com/users/yotamhc/received_events","type":"User","site_admin":false},"repo":{"id":45137816,"name":"ml-temp","full_name":"yotamhc/ml-temp","owner":{"login":"yotamhc","id":1969274,"avatar_url":"https://avatars.githubusercontent.com/u/1969274?v=3","gravatar_id":"","url":"https://api.github.com/users/yotamhc","html_url":"https://github.com/yotamhc","followers_url":"https://api.github.com/users/yotamhc/followers","following_url":"https://api.github.com/users/yotamhc/following{/other_user}","gists_url":"https://api.github.com/users/yotamhc/gists{/gist_id}","starred_url":"https://api.github.com/users/yotamhc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yotamhc/subscriptions","organizations_url":"https://api.github.com/users/yotamhc/orgs","repos_url":"https://api.github.com/users/yotamhc/repos","events_url":"https://api.github.com/users/yotamhc/events{/privacy}","received_events_url":"https://api.github.com/users/yotamhc/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yotamhc/ml-temp","description":"Temporary repository for the ML project","fork":false,"url":"https://api.github.com/repos/yotamhc/ml-temp","forks_url":"https://api.github.com/repos/yotamhc/ml-temp/forks","keys_url":"https://api.github.com/repos/yotamhc/ml-temp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yotamhc/ml-temp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yotamhc/ml-temp/teams","hooks_url":"https://api.github.com/repos/yotamhc/ml-temp/hooks","issue_events_url":"https://api.github.com/repos/yotamhc/ml-temp/issues/events{/number}","events_url":"https://api.github.com/repos/yotamhc/ml-temp/events","assignees_url":"https://api.github.com/repos/yotamhc/ml-temp/assignees{/user}","branches_url":"https://api.github.com/repos/yotamhc/ml-temp/branches{/branch}","tags_url":"https://api.github.com/repos/yotamhc/ml-temp/tags","blobs_url":"https://api.github.com/repos/yotamhc/ml-temp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yotamhc/ml-temp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yotamhc/ml-temp/git/refs{/sha}","trees_url":"https://api.github.com/repos/yotamhc/ml-temp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yotamhc/ml-temp/statuses/{sha}","languages_url":"https://api.github.com/repos/yotamhc/ml-temp/languages","stargazers_url":"https://api.github.com/repos/yotamhc/ml-temp/stargazers","contributors_url":"https://api.github.com/repos/yotamhc/ml-temp/contributors","subscribers_url":"https://api.github.com/repos/yotamhc/ml-temp/subscribers","subscription_url":"https://api.github.com/repos/yotamhc/ml-temp/subscription","commits_url":"https://api.github.com/repos/yotamhc/ml-temp/commits{/sha}","git_commits_url":"https://api.github.com/repos/yotamhc/ml-temp/git/commits{/sha}","comments_url":"https://api.github.com/repos/yotamhc/ml-temp/comments{/number}","issue_comment_url":"https://api.github.com/repos/yotamhc/ml-temp/issues/comments{/number}","contents_url":"https://api.github.com/repos/yotamhc/ml-temp/contents/{+path}","compare_url":"https://api.github.com/repos/yotamhc/ml-temp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yotamhc/ml-temp/merges","archive_url":"https://api.github.com/repos/yotamhc/ml-temp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yotamhc/ml-temp/downloads","issues_url":"https://api.github.com/repos/yotamhc/ml-temp/issues{/number}","pulls_url":"https://api.github.com/repos/yotamhc/ml-temp/pulls{/number}","milestones_url":"https://api.github.com/repos/yotamhc/ml-temp/milestones{/number}","notifications_url":"https://api.github.com/repos/yotamhc/ml-temp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yotamhc/ml-temp/labels{/name}","releases_url":"https://api.github.com/repos/yotamhc/ml-temp/releases{/id}","created_at":"2015-10-28T19:47:32Z","updated_at":"2015-10-31T08:56:40Z","pushed_at":"2015-12-19T15:45:05Z","git_url":"git://github.com/yotamhc/ml-temp.git","ssh_url":"git@github.com:yotamhc/ml-temp.git","clone_url":"https://github.com/yotamhc/ml-temp.git","svn_url":"https://github.com/yotamhc/ml-temp","homepage":null,"size":194,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/yotamhc/ml-temp/pulls/23"},"html":{"href":"https://github.com/yotamhc/ml-temp/pull/23"},"issue":{"href":"https://api.github.com/repos/yotamhc/ml-temp/issues/23"},"comments":{"href":"https://api.github.com/repos/yotamhc/ml-temp/issues/23/comments"},"review_comments":{"href":"https://api.github.com/repos/yotamhc/ml-temp/pulls/23/comments"},"review_comment":{"href":"https://api.github.com/repos/yotamhc/ml-temp/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/yotamhc/ml-temp/pulls/23/commits"},"statuses":{"href":"https://api.github.com/repos/yotamhc/ml-temp/statuses/4bf49abacead22a07bbfd248f790d3856e1b2140"}}}}