{"action":"created","comment":{"url":"https://api.github.com/repos/alpha-asp/Alpha/pulls/comments/357217032","pull_request_review_id":331227642,"id":357217032,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDM1NzIxNzAzMg==","diff_hunk":"@@ -119,42 +147,33 @@ public String visitTerminal(TerminalNode node) {\n \t\treturn node.getText();\n \t}\n \n-\t/*protected CommonParsedObject aggregateResult(CommonParsedObject aggregate, CommonParsedObject nextResult) {\n-\t\tListOfParsedObjects aggList;\n-\t\tif (aggregate instanceof ListOfParsedObjects) {\n-\t\t\taggList = (ListOfParsedObjects) aggregate;\n-\t\t\t((ListOfParsedObjects) aggregate).add(nextResult);\n-\t\t}  else {\n-\t\t\taggList = new ListOfParsedObjects(new ArrayList<>());\n-\t\t}\n-\n-\t\tif (aggregate != null) {\t// default result is null, ignore it\n-\t\t\taggList.add(aggregate);\n-\t\t}\n-\n-\t\tif (nextResult instanceof ListOfParsedObjects) {\n-\t\t\taggList.addAll((ListOfParsedObjects) nextResult);\n-\t\t} else {\n-\t\t\taggList.add(nextResult);\n-\t\t}\n-\n-\t\treturn aggList;\n-\t}*/\n+\t/*","path":"src/main/java/at/ac/tuwien/kr/alpha/grounder/parser/ParseTreeVisitor.java","position":115,"original_position":115,"commit_id":"76ba131389ebbd9133c3a1d36964c6b4955bb8df","original_commit_id":"76ba131389ebbd9133c3a1d36964c6b4955bb8df","user":{"login":"rtaupe","id":1563953,"node_id":"MDQ6VXNlcjE1NjM5NTM=","avatar_url":"https://avatars2.githubusercontent.com/u/1563953?v=4","gravatar_id":"","url":"https://api.github.com/users/rtaupe","html_url":"https://github.com/rtaupe","followers_url":"https://api.github.com/users/rtaupe/followers","following_url":"https://api.github.com/users/rtaupe/following{/other_user}","gists_url":"https://api.github.com/users/rtaupe/gists{/gist_id}","starred_url":"https://api.github.com/users/rtaupe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rtaupe/subscriptions","organizations_url":"https://api.github.com/users/rtaupe/orgs","repos_url":"https://api.github.com/users/rtaupe/repos","events_url":"https://api.github.com/users/rtaupe/events{/privacy}","received_events_url":"https://api.github.com/users/rtaupe/received_events","type":"User","site_admin":false},"body":"This change seems unnecessary.","created_at":"2019-12-12T15:43:32Z","updated_at":"2019-12-12T15:57:18Z","html_url":"https://github.com/alpha-asp/Alpha/pull/207#discussion_r357217032","pull_request_url":"https://api.github.com/repos/alpha-asp/Alpha/pulls/207","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/alpha-asp/Alpha/pulls/comments/357217032"},"html":{"href":"https://github.com/alpha-asp/Alpha/pull/207#discussion_r357217032"},"pull_request":{"href":"https://api.github.com/repos/alpha-asp/Alpha/pulls/207"}}},"pull_request":{"url":"https://api.github.com/repos/alpha-asp/Alpha/pulls/207","id":343482993,"node_id":"MDExOlB1bGxSZXF1ZXN0MzQzNDgyOTkz","html_url":"https://github.com/alpha-asp/Alpha/pull/207","diff_url":"https://github.com/alpha-asp/Alpha/pull/207.diff","patch_url":"https://github.com/alpha-asp/Alpha/pull/207.patch","issue_url":"https://api.github.com/repos/alpha-asp/Alpha/issues/207","number":207,"state":"open","locked":false,"title":"Partial up-front evaluation of stratifiable program parts - issue #75","user":{"login":"madmike200590","id":15123983,"node_id":"MDQ6VXNlcjE1MTIzOTgz","avatar_url":"https://avatars0.githubusercontent.com/u/15123983?v=4","gravatar_id":"","url":"https://api.github.com/users/madmike200590","html_url":"https://github.com/madmike200590","followers_url":"https://api.github.com/users/madmike200590/followers","following_url":"https://api.github.com/users/madmike200590/following{/other_user}","gists_url":"https://api.github.com/users/madmike200590/gists{/gist_id}","starred_url":"https://api.github.com/users/madmike200590/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/madmike200590/subscriptions","organizations_url":"https://api.github.com/users/madmike200590/orgs","repos_url":"https://api.github.com/users/madmike200590/repos","events_url":"https://api.github.com/users/madmike200590/events{/privacy}","received_events_url":"https://api.github.com/users/madmike200590/received_events","type":"User","site_admin":false},"body":"# Stratified Evaluation\r\nEvaluates the stratifiable program part that only depends on facts up-front before the resulting, simplified, program is passed to the grounder. Stratified evaluation is implemented as a program transformation. Solved (i.e. fully evaluated) rules are removed from the program, atoms derived during stratified evaluation are added to the program as facts.\r\n\r\n## Added command line flags\r\n* ```-nse,--disable-stratified-eval``` disables stratified up-front evaluation, i.e. the input program gets passed to the grounder right after normalization\r\n* ```-pp,--write-preproc <target>``` writes the normalized (and partially evaluated) program to the file at ```target```\r\n* ```-dG,--depgraph <target>``` writes the input program's dependency graph to the file at ```target``` in dot (graphviz) format\r\n* ```-cG,--compgraph <target>``` writes the input program's component graph to the file at ```target``` in dot (graphviz) format\r\n\r\n## Refactorings\r\n* ```Atom``` is now an abstract class rather than an interface\r\n* ```AbstractRule``` as common superclass for all types of rules\r\n* ```AbstractProgram``` as common superclass for all types of programs\r\n* program types immutable, replaced ```program.accumulate(...)``` with builders\r\n* new program types: ```InputProgram``` for parse result, may contain choices, aggregates etc, ```NormalProgram``` for a program without choice heads, ```InternalProgram```: required input type for grounder, does not permit choice heads and aggregate literals; ```AnalyzedProgram```: subclass of ```InternalProgram```, stores dependency and component graphs, input type for stratified evaluator","created_at":"2019-11-20T17:28:09Z","updated_at":"2019-12-12T15:57:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a4a4af6d78af5f95a5f059e67caab4496d8c7ca5","assignee":null,"assignees":[],"requested_reviewers":[{"login":"AntoniusW","id":2951491,"node_id":"MDQ6VXNlcjI5NTE0OTE=","avatar_url":"https://avatars2.githubusercontent.com/u/2951491?v=4","gravatar_id":"","url":"https://api.github.com/users/AntoniusW","html_url":"https://github.com/AntoniusW","followers_url":"https://api.github.com/users/AntoniusW/followers","following_url":"https://api.github.com/users/AntoniusW/following{/other_user}","gists_url":"https://api.github.com/users/AntoniusW/gists{/gist_id}","starred_url":"https://api.github.com/users/AntoniusW/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AntoniusW/subscriptions","organizations_url":"https://api.github.com/users/AntoniusW/orgs","repos_url":"https://api.github.com/users/AntoniusW/repos","events_url":"https://api.github.com/users/AntoniusW/events{/privacy}","received_events_url":"https://api.github.com/users/AntoniusW/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/alpha-asp/Alpha/pulls/207/commits","review_comments_url":"https://api.github.com/repos/alpha-asp/Alpha/pulls/207/comments","review_comment_url":"https://api.github.com/repos/alpha-asp/Alpha/pulls/comments{/number}","comments_url":"https://api.github.com/repos/alpha-asp/Alpha/issues/207/comments","statuses_url":"https://api.github.com/repos/alpha-asp/Alpha/statuses/76ba131389ebbd9133c3a1d36964c6b4955bb8df","head":{"label":"madmike200590:master","ref":"master","sha":"76ba131389ebbd9133c3a1d36964c6b4955bb8df","user":{"login":"madmike200590","id":15123983,"node_id":"MDQ6VXNlcjE1MTIzOTgz","avatar_url":"https://avatars0.githubusercontent.com/u/15123983?v=4","gravatar_id":"","url":"https://api.github.com/users/madmike200590","html_url":"https://github.com/madmike200590","followers_url":"https://api.github.com/users/madmike200590/followers","following_url":"https://api.github.com/users/madmike200590/following{/other_user}","gists_url":"https://api.github.com/users/madmike200590/gists{/gist_id}","starred_url":"https://api.github.com/users/madmike200590/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/madmike200590/subscriptions","organizations_url":"https://api.github.com/users/madmike200590/orgs","repos_url":"https://api.github.com/users/madmike200590/repos","events_url":"https://api.github.com/users/madmike200590/events{/privacy}","received_events_url":"https://api.github.com/users/madmike200590/received_events","type":"User","site_admin":false},"repo":{"id":161681590,"node_id":"MDEwOlJlcG9zaXRvcnkxNjE2ODE1OTA=","name":"Alpha","full_name":"madmike200590/Alpha","private":false,"owner":{"login":"madmike200590","id":15123983,"node_id":"MDQ6VXNlcjE1MTIzOTgz","avatar_url":"https://avatars0.githubusercontent.com/u/15123983?v=4","gravatar_id":"","url":"https://api.github.com/users/madmike200590","html_url":"https://github.com/madmike200590","followers_url":"https://api.github.com/users/madmike200590/followers","following_url":"https://api.github.com/users/madmike200590/following{/other_user}","gists_url":"https://api.github.com/users/madmike200590/gists{/gist_id}","starred_url":"https://api.github.com/users/madmike200590/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/madmike200590/subscriptions","organizations_url":"https://api.github.com/users/madmike200590/orgs","repos_url":"https://api.github.com/users/madmike200590/repos","events_url":"https://api.github.com/users/madmike200590/events{/privacy}","received_events_url":"https://api.github.com/users/madmike200590/received_events","type":"User","site_admin":false},"html_url":"https://github.com/madmike200590/Alpha","description":"The Alpha solver for lazy-grounding Answer-Set Programming.","fork":true,"url":"https://api.github.com/repos/madmike200590/Alpha","forks_url":"https://api.github.com/repos/madmike200590/Alpha/forks","keys_url":"https://api.github.com/repos/madmike200590/Alpha/keys{/key_id}","collaborators_url":"https://api.github.com/repos/madmike200590/Alpha/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/madmike200590/Alpha/teams","hooks_url":"https://api.github.com/repos/madmike200590/Alpha/hooks","issue_events_url":"https://api.github.com/repos/madmike200590/Alpha/issues/events{/number}","events_url":"https://api.github.com/repos/madmike200590/Alpha/events","assignees_url":"https://api.github.com/repos/madmike200590/Alpha/assignees{/user}","branches_url":"https://api.github.com/repos/madmike200590/Alpha/branches{/branch}","tags_url":"https://api.github.com/repos/madmike200590/Alpha/tags","blobs_url":"https://api.github.com/repos/madmike200590/Alpha/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/madmike200590/Alpha/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/madmike200590/Alpha/git/refs{/sha}","trees_url":"https://api.github.com/repos/madmike200590/Alpha/git/trees{/sha}","statuses_url":"https://api.github.com/repos/madmike200590/Alpha/statuses/{sha}","languages_url":"https://api.github.com/repos/madmike200590/Alpha/languages","stargazers_url":"https://api.github.com/repos/madmike200590/Alpha/stargazers","contributors_url":"https://api.github.com/repos/madmike200590/Alpha/contributors","subscribers_url":"https://api.github.com/repos/madmike200590/Alpha/subscribers","subscription_url":"https://api.github.com/repos/madmike200590/Alpha/subscription","commits_url":"https://api.github.com/repos/madmike200590/Alpha/commits{/sha}","git_commits_url":"https://api.github.com/repos/madmike200590/Alpha/git/commits{/sha}","comments_url":"https://api.github.com/repos/madmike200590/Alpha/comments{/number}","issue_comment_url":"https://api.github.com/repos/madmike200590/Alpha/issues/comments{/number}","contents_url":"https://api.github.com/repos/madmike200590/Alpha/contents/{+path}","compare_url":"https://api.github.com/repos/madmike200590/Alpha/compare/{base}...{head}","merges_url":"https://api.github.com/repos/madmike200590/Alpha/merges","archive_url":"https://api.github.com/repos/madmike200590/Alpha/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/madmike200590/Alpha/downloads","issues_url":"https://api.github.com/repos/madmike200590/Alpha/issues{/number}","pulls_url":"https://api.github.com/repos/madmike200590/Alpha/pulls{/number}","milestones_url":"https://api.github.com/repos/madmike200590/Alpha/milestones{/number}","notifications_url":"https://api.github.com/repos/madmike200590/Alpha/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/madmike200590/Alpha/labels{/name}","releases_url":"https://api.github.com/repos/madmike200590/Alpha/releases{/id}","deployments_url":"https://api.github.com/repos/madmike200590/Alpha/deployments","created_at":"2018-12-13T18:50:46Z","updated_at":"2019-12-05T17:55:30Z","pushed_at":"2019-12-12T15:39:07Z","git_url":"git://github.com/madmike200590/Alpha.git","ssh_url":"git@github.com:madmike200590/Alpha.git","clone_url":"https://github.com/madmike200590/Alpha.git","svn_url":"https://github.com/madmike200590/Alpha","homepage":"http://www.kr.tuwien.ac.at/research/systems/alpha/","size":45374,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":1,"license":{"key":"bsd-2-clause","name":"BSD 2-Clause \"Simplified\" License","spdx_id":"BSD-2-Clause","url":"https://api.github.com/licenses/bsd-2-clause","node_id":"MDc6TGljZW5zZTQ="},"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"alpha-asp:master","ref":"master","sha":"a3fb4dce31eb049233882989d55b75999e8f1463","user":{"login":"alpha-asp","id":25613637,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1NjEzNjM3","avatar_url":"https://avatars2.githubusercontent.com/u/25613637?v=4","gravatar_id":"","url":"https://api.github.com/users/alpha-asp","html_url":"https://github.com/alpha-asp","followers_url":"https://api.github.com/users/alpha-asp/followers","following_url":"https://api.github.com/users/alpha-asp/following{/other_user}","gists_url":"https://api.github.com/users/alpha-asp/gists{/gist_id}","starred_url":"https://api.github.com/users/alpha-asp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alpha-asp/subscriptions","organizations_url":"https://api.github.com/users/alpha-asp/orgs","repos_url":"https://api.github.com/users/alpha-asp/repos","events_url":"https://api.github.com/users/alpha-asp/events{/privacy}","received_events_url":"https://api.github.com/users/alpha-asp/received_events","type":"Organization","site_admin":false},"repo":{"id":62882005,"node_id":"MDEwOlJlcG9zaXRvcnk2Mjg4MjAwNQ==","name":"Alpha","full_name":"alpha-asp/Alpha","private":false,"owner":{"login":"alpha-asp","id":25613637,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1NjEzNjM3","avatar_url":"https://avatars2.githubusercontent.com/u/25613637?v=4","gravatar_id":"","url":"https://api.github.com/users/alpha-asp","html_url":"https://github.com/alpha-asp","followers_url":"https://api.github.com/users/alpha-asp/followers","following_url":"https://api.github.com/users/alpha-asp/following{/other_user}","gists_url":"https://api.github.com/users/alpha-asp/gists{/gist_id}","starred_url":"https://api.github.com/users/alpha-asp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alpha-asp/subscriptions","organizations_url":"https://api.github.com/users/alpha-asp/orgs","repos_url":"https://api.github.com/users/alpha-asp/repos","events_url":"https://api.github.com/users/alpha-asp/events{/privacy}","received_events_url":"https://api.github.com/users/alpha-asp/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/alpha-asp/Alpha","description":"The Alpha solver for lazy-grounding Answer-Set Programming.","fork":false,"url":"https://api.github.com/repos/alpha-asp/Alpha","forks_url":"https://api.github.com/repos/alpha-asp/Alpha/forks","keys_url":"https://api.github.com/repos/alpha-asp/Alpha/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alpha-asp/Alpha/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alpha-asp/Alpha/teams","hooks_url":"https://api.github.com/repos/alpha-asp/Alpha/hooks","issue_events_url":"https://api.github.com/repos/alpha-asp/Alpha/issues/events{/number}","events_url":"https://api.github.com/repos/alpha-asp/Alpha/events","assignees_url":"https://api.github.com/repos/alpha-asp/Alpha/assignees{/user}","branches_url":"https://api.github.com/repos/alpha-asp/Alpha/branches{/branch}","tags_url":"https://api.github.com/repos/alpha-asp/Alpha/tags","blobs_url":"https://api.github.com/repos/alpha-asp/Alpha/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alpha-asp/Alpha/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alpha-asp/Alpha/git/refs{/sha}","trees_url":"https://api.github.com/repos/alpha-asp/Alpha/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alpha-asp/Alpha/statuses/{sha}","languages_url":"https://api.github.com/repos/alpha-asp/Alpha/languages","stargazers_url":"https://api.github.com/repos/alpha-asp/Alpha/stargazers","contributors_url":"https://api.github.com/repos/alpha-asp/Alpha/contributors","subscribers_url":"https://api.github.com/repos/alpha-asp/Alpha/subscribers","subscription_url":"https://api.github.com/repos/alpha-asp/Alpha/subscription","commits_url":"https://api.github.com/repos/alpha-asp/Alpha/commits{/sha}","git_commits_url":"https://api.github.com/repos/alpha-asp/Alpha/git/commits{/sha}","comments_url":"https://api.github.com/repos/alpha-asp/Alpha/comments{/number}","issue_comment_url":"https://api.github.com/repos/alpha-asp/Alpha/issues/comments{/number}","contents_url":"https://api.github.com/repos/alpha-asp/Alpha/contents/{+path}","compare_url":"https://api.github.com/repos/alpha-asp/Alpha/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alpha-asp/Alpha/merges","archive_url":"https://api.github.com/repos/alpha-asp/Alpha/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alpha-asp/Alpha/downloads","issues_url":"https://api.github.com/repos/alpha-asp/Alpha/issues{/number}","pulls_url":"https://api.github.com/repos/alpha-asp/Alpha/pulls{/number}","milestones_url":"https://api.github.com/repos/alpha-asp/Alpha/milestones{/number}","notifications_url":"https://api.github.com/repos/alpha-asp/Alpha/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alpha-asp/Alpha/labels{/name}","releases_url":"https://api.github.com/repos/alpha-asp/Alpha/releases{/id}","deployments_url":"https://api.github.com/repos/alpha-asp/Alpha/deployments","created_at":"2016-07-08T10:52:13Z","updated_at":"2019-12-05T16:52:22Z","pushed_at":"2019-12-12T15:37:44Z","git_url":"git://github.com/alpha-asp/Alpha.git","ssh_url":"git@github.com:alpha-asp/Alpha.git","clone_url":"https://github.com/alpha-asp/Alpha.git","svn_url":"https://github.com/alpha-asp/Alpha","homepage":"http://www.kr.tuwien.ac.at/research/systems/alpha/","size":13872,"stargazers_count":26,"watchers_count":26,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":52,"license":{"key":"bsd-2-clause","name":"BSD 2-Clause \"Simplified\" License","spdx_id":"BSD-2-Clause","url":"https://api.github.com/licenses/bsd-2-clause","node_id":"MDc6TGljZW5zZTQ="},"forks":3,"open_issues":52,"watchers":26,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/alpha-asp/Alpha/pulls/207"},"html":{"href":"https://github.com/alpha-asp/Alpha/pull/207"},"issue":{"href":"https://api.github.com/repos/alpha-asp/Alpha/issues/207"},"comments":{"href":"https://api.github.com/repos/alpha-asp/Alpha/issues/207/comments"},"review_comments":{"href":"https://api.github.com/repos/alpha-asp/Alpha/pulls/207/comments"},"review_comment":{"href":"https://api.github.com/repos/alpha-asp/Alpha/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/alpha-asp/Alpha/pulls/207/commits"},"statuses":{"href":"https://api.github.com/repos/alpha-asp/Alpha/statuses/76ba131389ebbd9133c3a1d36964c6b4955bb8df"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"rtaupe"}}