{"action":"created","comment":{"url":"https://api.github.com/repos/kframework/k/pulls/comments/25651265","id":25651265,"diff_hunk":"@@ -0,0 +1,48 @@\n+// Copyright (c) 2015 K Team. All Rights Reserved.\n+package org.kframework.parser.concrete2kore.disambiguation;\n+\n+import org.kframework.parser.Ambiguity;\n+import org.kframework.parser.ProductionReference;\n+import org.kframework.parser.SetsGeneralTransformer;\n+import org.kframework.parser.Term;\n+import org.kframework.utils.errorsystem.KException;\n+import org.kframework.utils.errorsystem.KException.ExceptionType;\n+import org.kframework.utils.errorsystem.KException.KExceptionGroup;\n+import org.kframework.utils.errorsystem.ParseFailedException;\n+import scala.Tuple2;\n+import scala.util.Either;\n+import scala.util.Right;\n+\n+import java.util.Set;\n+\n+/**\n+ * Eliminate remaining ambiguities by choosing one of them.\n+ */\n+public class AmbFilter extends SetsGeneralTransformer<ParseFailedException, ParseFailedException> {","path":"kernel/src/main/java/org/kframework/parser/concrete2kore/disambiguation/AmbFilter.java","position":21,"original_position":21,"commit_id":"8672037e426f27344dffe5b641d52c7a6f950ead","original_commit_id":"8672037e426f27344dffe5b641d52c7a6f950ead","user":{"login":"cos","id":37514,"avatar_url":"https://avatars.githubusercontent.com/u/37514?v=3","gravatar_id":"","url":"https://api.github.com/users/cos","html_url":"https://github.com/cos","followers_url":"https://api.github.com/users/cos/followers","following_url":"https://api.github.com/users/cos/following{/other_user}","gists_url":"https://api.github.com/users/cos/gists{/gist_id}","starred_url":"https://api.github.com/users/cos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cos/subscriptions","organizations_url":"https://api.github.com/users/cos/orgs","repos_url":"https://api.github.com/users/cos/repos","events_url":"https://api.github.com/users/cos/events{/privacy}","received_events_url":"https://api.github.com/users/cos/received_events","type":"User","site_admin":false},"body":"should the right-hand side be of a different type representing a warning, not an exception?","created_at":"2015-03-02T23:54:29Z","updated_at":"2015-03-02T23:54:29Z","html_url":"https://github.com/kframework/k/pull/1367#discussion_r25651265","pull_request_url":"https://api.github.com/repos/kframework/k/pulls/1367","_links":{"self":{"href":"https://api.github.com/repos/kframework/k/pulls/comments/25651265"},"html":{"href":"https://github.com/kframework/k/pull/1367#discussion_r25651265"},"pull_request":{"href":"https://api.github.com/repos/kframework/k/pulls/1367"}}},"pull_request":{"url":"https://api.github.com/repos/kframework/k/pulls/1367","id":30310270,"html_url":"https://github.com/kframework/k/pull/1367","diff_url":"https://github.com/kframework/k/pull/1367.diff","patch_url":"https://github.com/kframework/k/pull/1367.patch","issue_url":"https://api.github.com/repos/kframework/k/issues/1367","number":1367,"state":"open","locked":false,"title":"Rule grammar2","user":{"login":"radumereuta","id":5113255,"avatar_url":"https://avatars.githubusercontent.com/u/5113255?v=3","gravatar_id":"","url":"https://api.github.com/users/radumereuta","html_url":"https://github.com/radumereuta","followers_url":"https://api.github.com/users/radumereuta/followers","following_url":"https://api.github.com/users/radumereuta/following{/other_user}","gists_url":"https://api.github.com/users/radumereuta/gists{/gist_id}","starred_url":"https://api.github.com/users/radumereuta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/radumereuta/subscriptions","organizations_url":"https://api.github.com/users/radumereuta/orgs","repos_url":"https://api.github.com/users/radumereuta/repos","events_url":"https://api.github.com/users/radumereuta/events{/privacy}","received_events_url":"https://api.github.com/users/radumereuta/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-03-02T19:02:54Z","updated_at":"2015-03-02T23:54:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5656d953451f642d700de0fc3a991261577ffe6f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/kframework/k/pulls/1367/commits","review_comments_url":"https://api.github.com/repos/kframework/k/pulls/1367/comments","review_comment_url":"https://api.github.com/repos/kframework/k/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kframework/k/issues/1367/comments","statuses_url":"https://api.github.com/repos/kframework/k/statuses/8672037e426f27344dffe5b641d52c7a6f950ead","head":{"label":"kframework:ruleGrammar2","ref":"ruleGrammar2","sha":"8672037e426f27344dffe5b641d52c7a6f950ead","user":{"login":"kframework","id":5104335,"avatar_url":"https://avatars.githubusercontent.com/u/5104335?v=3","gravatar_id":"","url":"https://api.github.com/users/kframework","html_url":"https://github.com/kframework","followers_url":"https://api.github.com/users/kframework/followers","following_url":"https://api.github.com/users/kframework/following{/other_user}","gists_url":"https://api.github.com/users/kframework/gists{/gist_id}","starred_url":"https://api.github.com/users/kframework/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kframework/subscriptions","organizations_url":"https://api.github.com/users/kframework/orgs","repos_url":"https://api.github.com/users/kframework/repos","events_url":"https://api.github.com/users/kframework/events{/privacy}","received_events_url":"https://api.github.com/users/kframework/received_events","type":"Organization","site_admin":false},"repo":{"id":11711223,"name":"k","full_name":"kframework/k","owner":{"login":"kframework","id":5104335,"avatar_url":"https://avatars.githubusercontent.com/u/5104335?v=3","gravatar_id":"","url":"https://api.github.com/users/kframework","html_url":"https://github.com/kframework","followers_url":"https://api.github.com/users/kframework/followers","following_url":"https://api.github.com/users/kframework/following{/other_user}","gists_url":"https://api.github.com/users/kframework/gists{/gist_id}","starred_url":"https://api.github.com/users/kframework/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kframework/subscriptions","organizations_url":"https://api.github.com/users/kframework/orgs","repos_url":"https://api.github.com/users/kframework/repos","events_url":"https://api.github.com/users/kframework/events{/privacy}","received_events_url":"https://api.github.com/users/kframework/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kframework/k","description":"The K tools","fork":false,"url":"https://api.github.com/repos/kframework/k","forks_url":"https://api.github.com/repos/kframework/k/forks","keys_url":"https://api.github.com/repos/kframework/k/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kframework/k/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kframework/k/teams","hooks_url":"https://api.github.com/repos/kframework/k/hooks","issue_events_url":"https://api.github.com/repos/kframework/k/issues/events{/number}","events_url":"https://api.github.com/repos/kframework/k/events","assignees_url":"https://api.github.com/repos/kframework/k/assignees{/user}","branches_url":"https://api.github.com/repos/kframework/k/branches{/branch}","tags_url":"https://api.github.com/repos/kframework/k/tags","blobs_url":"https://api.github.com/repos/kframework/k/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kframework/k/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kframework/k/git/refs{/sha}","trees_url":"https://api.github.com/repos/kframework/k/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kframework/k/statuses/{sha}","languages_url":"https://api.github.com/repos/kframework/k/languages","stargazers_url":"https://api.github.com/repos/kframework/k/stargazers","contributors_url":"https://api.github.com/repos/kframework/k/contributors","subscribers_url":"https://api.github.com/repos/kframework/k/subscribers","subscription_url":"https://api.github.com/repos/kframework/k/subscription","commits_url":"https://api.github.com/repos/kframework/k/commits{/sha}","git_commits_url":"https://api.github.com/repos/kframework/k/git/commits{/sha}","comments_url":"https://api.github.com/repos/kframework/k/comments{/number}","issue_comment_url":"https://api.github.com/repos/kframework/k/issues/comments{/number}","contents_url":"https://api.github.com/repos/kframework/k/contents/{+path}","compare_url":"https://api.github.com/repos/kframework/k/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kframework/k/merges","archive_url":"https://api.github.com/repos/kframework/k/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kframework/k/downloads","issues_url":"https://api.github.com/repos/kframework/k/issues{/number}","pulls_url":"https://api.github.com/repos/kframework/k/pulls{/number}","milestones_url":"https://api.github.com/repos/kframework/k/milestones{/number}","notifications_url":"https://api.github.com/repos/kframework/k/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kframework/k/labels{/name}","releases_url":"https://api.github.com/repos/kframework/k/releases{/id}","created_at":"2013-07-27T21:22:53Z","updated_at":"2015-02-27T21:48:49Z","pushed_at":"2015-03-02T23:45:27Z","git_url":"git://github.com/kframework/k.git","ssh_url":"git@github.com:kframework/k.git","clone_url":"https://github.com/kframework/k.git","svn_url":"https://github.com/kframework/k","homepage":"kframework.org","size":340894,"stargazers_count":55,"watchers_count":55,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":47,"mirror_url":null,"open_issues_count":329,"forks":47,"open_issues":329,"watchers":55,"default_branch":"master"}},"base":{"label":"kframework:master","ref":"master","sha":"40238606209fec7c83a7db253d9dcb7f6c29aabb","user":{"login":"kframework","id":5104335,"avatar_url":"https://avatars.githubusercontent.com/u/5104335?v=3","gravatar_id":"","url":"https://api.github.com/users/kframework","html_url":"https://github.com/kframework","followers_url":"https://api.github.com/users/kframework/followers","following_url":"https://api.github.com/users/kframework/following{/other_user}","gists_url":"https://api.github.com/users/kframework/gists{/gist_id}","starred_url":"https://api.github.com/users/kframework/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kframework/subscriptions","organizations_url":"https://api.github.com/users/kframework/orgs","repos_url":"https://api.github.com/users/kframework/repos","events_url":"https://api.github.com/users/kframework/events{/privacy}","received_events_url":"https://api.github.com/users/kframework/received_events","type":"Organization","site_admin":false},"repo":{"id":11711223,"name":"k","full_name":"kframework/k","owner":{"login":"kframework","id":5104335,"avatar_url":"https://avatars.githubusercontent.com/u/5104335?v=3","gravatar_id":"","url":"https://api.github.com/users/kframework","html_url":"https://github.com/kframework","followers_url":"https://api.github.com/users/kframework/followers","following_url":"https://api.github.com/users/kframework/following{/other_user}","gists_url":"https://api.github.com/users/kframework/gists{/gist_id}","starred_url":"https://api.github.com/users/kframework/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kframework/subscriptions","organizations_url":"https://api.github.com/users/kframework/orgs","repos_url":"https://api.github.com/users/kframework/repos","events_url":"https://api.github.com/users/kframework/events{/privacy}","received_events_url":"https://api.github.com/users/kframework/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kframework/k","description":"The K tools","fork":false,"url":"https://api.github.com/repos/kframework/k","forks_url":"https://api.github.com/repos/kframework/k/forks","keys_url":"https://api.github.com/repos/kframework/k/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kframework/k/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kframework/k/teams","hooks_url":"https://api.github.com/repos/kframework/k/hooks","issue_events_url":"https://api.github.com/repos/kframework/k/issues/events{/number}","events_url":"https://api.github.com/repos/kframework/k/events","assignees_url":"https://api.github.com/repos/kframework/k/assignees{/user}","branches_url":"https://api.github.com/repos/kframework/k/branches{/branch}","tags_url":"https://api.github.com/repos/kframework/k/tags","blobs_url":"https://api.github.com/repos/kframework/k/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kframework/k/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kframework/k/git/refs{/sha}","trees_url":"https://api.github.com/repos/kframework/k/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kframework/k/statuses/{sha}","languages_url":"https://api.github.com/repos/kframework/k/languages","stargazers_url":"https://api.github.com/repos/kframework/k/stargazers","contributors_url":"https://api.github.com/repos/kframework/k/contributors","subscribers_url":"https://api.github.com/repos/kframework/k/subscribers","subscription_url":"https://api.github.com/repos/kframework/k/subscription","commits_url":"https://api.github.com/repos/kframework/k/commits{/sha}","git_commits_url":"https://api.github.com/repos/kframework/k/git/commits{/sha}","comments_url":"https://api.github.com/repos/kframework/k/comments{/number}","issue_comment_url":"https://api.github.com/repos/kframework/k/issues/comments{/number}","contents_url":"https://api.github.com/repos/kframework/k/contents/{+path}","compare_url":"https://api.github.com/repos/kframework/k/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kframework/k/merges","archive_url":"https://api.github.com/repos/kframework/k/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kframework/k/downloads","issues_url":"https://api.github.com/repos/kframework/k/issues{/number}","pulls_url":"https://api.github.com/repos/kframework/k/pulls{/number}","milestones_url":"https://api.github.com/repos/kframework/k/milestones{/number}","notifications_url":"https://api.github.com/repos/kframework/k/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kframework/k/labels{/name}","releases_url":"https://api.github.com/repos/kframework/k/releases{/id}","created_at":"2013-07-27T21:22:53Z","updated_at":"2015-02-27T21:48:49Z","pushed_at":"2015-03-02T23:45:27Z","git_url":"git://github.com/kframework/k.git","ssh_url":"git@github.com:kframework/k.git","clone_url":"https://github.com/kframework/k.git","svn_url":"https://github.com/kframework/k","homepage":"kframework.org","size":340894,"stargazers_count":55,"watchers_count":55,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":47,"mirror_url":null,"open_issues_count":329,"forks":47,"open_issues":329,"watchers":55,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kframework/k/pulls/1367"},"html":{"href":"https://github.com/kframework/k/pull/1367"},"issue":{"href":"https://api.github.com/repos/kframework/k/issues/1367"},"comments":{"href":"https://api.github.com/repos/kframework/k/issues/1367/comments"},"review_comments":{"href":"https://api.github.com/repos/kframework/k/pulls/1367/comments"},"review_comment":{"href":"https://api.github.com/repos/kframework/k/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kframework/k/pulls/1367/commits"},"statuses":{"href":"https://api.github.com/repos/kframework/k/statuses/8672037e426f27344dffe5b641d52c7a6f950ead"}}}}