{"action":"created","comment":{"url":"https://api.github.com/repos/kframework/k/pulls/comments/210704229","pull_request_review_id":146977411,"id":210704229,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxMDcwNDIyOQ==","diff_hunk":"@@ -0,0 +1,149 @@\n+// Copyright (c) 2018 K Team. All Rights Reserved.\n+package org.kframework.unparser;\n+\n+import com.davekoelle.AlphanumComparator;\n+import org.kframework.attributes.Att;\n+import org.kframework.compile.ExpandMacros;\n+import org.kframework.definition.Definition;\n+import org.kframework.definition.Module;\n+import org.kframework.kompile.KompileOptions;\n+import org.kframework.kore.Assoc;\n+import org.kframework.kore.K;\n+import org.kframework.kore.KApply;\n+import org.kframework.kore.KVariable;\n+import org.kframework.kore.TransformK;\n+import org.kframework.main.GlobalOptions;\n+import org.kframework.parser.ProductionReference;\n+import org.kframework.parser.concrete2kore.generator.RuleGrammarGenerator;\n+import org.kframework.parser.concrete2kore.ParseInModule;\n+import org.kframework.utils.errorsystem.KEMException;\n+import org.kframework.utils.errorsystem.KExceptionManager;\n+import org.kframework.utils.file.FileUtil;\n+import org.kframework.utils.file.TTYInfo;\n+import scala.Tuple2;\n+\n+import java.io.IOException;\n+import java.util.ArrayList;\n+import java.util.Comparator;\n+import java.util.HashMap;\n+import java.util.List;\n+import java.util.Map;\n+import java.util.function.Consumer;\n+import java.util.stream.Collectors;\n+\n+import static org.kframework.kore.KORE.*;\n+\n+/**\n+ * Class for printing information and outputting to files using various serializers.\n+ */\n+public class KPrint {\n+\n+    private final KExceptionManager kem;\n+    private final FileUtil          files;\n+    private final TTYInfo           tty;\n+\n+    public final PrintOptions options;\n+\n+    public KPrint() {\n+        this(new KExceptionManager(new GlobalOptions()), FileUtil.testFileUtil(), new TTYInfo(false, false, false), new PrintOptions());\n+    }\n+\n+    public KPrint(KExceptionManager kem, FileUtil files, TTYInfo tty, PrintOptions options) {","path":"kernel/src/main/java/org/kframework/unparser/KPrint.java","position":51,"original_position":51,"commit_id":"6d5882d38b41e9cfa5c612e4dd0790e706b4b528","original_commit_id":"6d5882d38b41e9cfa5c612e4dd0790e706b4b528","user":{"login":"dwightguth","id":5104541,"node_id":"MDQ6VXNlcjUxMDQ1NDE=","avatar_url":"https://avatars0.githubusercontent.com/u/5104541?v=4","gravatar_id":"","url":"https://api.github.com/users/dwightguth","html_url":"https://github.com/dwightguth","followers_url":"https://api.github.com/users/dwightguth/followers","following_url":"https://api.github.com/users/dwightguth/following{/other_user}","gists_url":"https://api.github.com/users/dwightguth/gists{/gist_id}","starred_url":"https://api.github.com/users/dwightguth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dwightguth/subscriptions","organizations_url":"https://api.github.com/users/dwightguth/orgs","repos_url":"https://api.github.com/users/dwightguth/repos","events_url":"https://api.github.com/users/dwightguth/events{/privacy}","received_events_url":"https://api.github.com/users/dwightguth/received_events","type":"User","site_admin":false},"body":"This constructor needs the `@Inject` attribute","created_at":"2018-08-16T18:50:55Z","updated_at":"2018-08-16T18:53:15Z","html_url":"https://github.com/kframework/k/pull/117#discussion_r210704229","pull_request_url":"https://api.github.com/repos/kframework/k/pulls/117","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/kframework/k/pulls/comments/210704229"},"html":{"href":"https://github.com/kframework/k/pull/117#discussion_r210704229"},"pull_request":{"href":"https://api.github.com/repos/kframework/k/pulls/117"}}},"pull_request":{"url":"https://api.github.com/repos/kframework/k/pulls/117","id":201603964,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAxNjAzOTY0","html_url":"https://github.com/kframework/k/pull/117","diff_url":"https://github.com/kframework/k/pull/117.diff","patch_url":"https://github.com/kframework/k/pull/117.patch","issue_url":"https://api.github.com/repos/kframework/k/issues/117","number":117,"state":"open","locked":false,"title":"[REFACTORING] Kprint","user":{"login":"ehildenb","id":12721972,"node_id":"MDQ6VXNlcjEyNzIxOTcy","avatar_url":"https://avatars0.githubusercontent.com/u/12721972?v=4","gravatar_id":"","url":"https://api.github.com/users/ehildenb","html_url":"https://github.com/ehildenb","followers_url":"https://api.github.com/users/ehildenb/followers","following_url":"https://api.github.com/users/ehildenb/following{/other_user}","gists_url":"https://api.github.com/users/ehildenb/gists{/gist_id}","starred_url":"https://api.github.com/users/ehildenb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ehildenb/subscriptions","organizations_url":"https://api.github.com/users/ehildenb/orgs","repos_url":"https://api.github.com/users/ehildenb/repos","events_url":"https://api.github.com/users/ehildenb/events{/privacy}","received_events_url":"https://api.github.com/users/ehildenb/received_events","type":"User","site_admin":false},"body":"Isolate printing and unparsing infrastructure to new module KPrint.","created_at":"2018-07-16T11:06:02Z","updated_at":"2018-08-16T18:53:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"56cbbad8baef1437ed44794cd77a3990c14971d8","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/kframework/k/pulls/117/commits","review_comments_url":"https://api.github.com/repos/kframework/k/pulls/117/comments","review_comment_url":"https://api.github.com/repos/kframework/k/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kframework/k/issues/117/comments","statuses_url":"https://api.github.com/repos/kframework/k/statuses/6d5882d38b41e9cfa5c612e4dd0790e706b4b528","head":{"label":"kframework:kprint","ref":"kprint","sha":"6d5882d38b41e9cfa5c612e4dd0790e706b4b528","user":{"login":"kframework","id":5104335,"node_id":"MDEyOk9yZ2FuaXphdGlvbjUxMDQzMzU=","avatar_url":"https://avatars2.githubusercontent.com/u/5104335?v=4","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":50041690,"node_id":"MDEwOlJlcG9zaXRvcnk1MDA0MTY5MA==","name":"k","full_name":"kframework/k","owner":{"login":"kframework","id":5104335,"node_id":"MDEyOk9yZ2FuaXphdGlvbjUxMDQzMzU=","avatar_url":"https://avatars2.githubusercontent.com/u/5104335?v=4","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":"K Framework Tools 5.0","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}","deployments_url":"https://api.github.com/repos/kframework/k/deployments","created_at":"2016-01-20T16:05:56Z","updated_at":"2018-08-15T13:20:35Z","pushed_at":"2018-08-16T18:46:34Z","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":"","size":53212,"stargazers_count":46,"watchers_count":46,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":19,"mirror_url":null,"archived":false,"open_issues_count":37,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":19,"open_issues":37,"watchers":46,"default_branch":"master"}},"base":{"label":"kframework:master","ref":"master","sha":"4665e4c327188de0fee2972c3d32aa781ab253d1","user":{"login":"kframework","id":5104335,"node_id":"MDEyOk9yZ2FuaXphdGlvbjUxMDQzMzU=","avatar_url":"https://avatars2.githubusercontent.com/u/5104335?v=4","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":50041690,"node_id":"MDEwOlJlcG9zaXRvcnk1MDA0MTY5MA==","name":"k","full_name":"kframework/k","owner":{"login":"kframework","id":5104335,"node_id":"MDEyOk9yZ2FuaXphdGlvbjUxMDQzMzU=","avatar_url":"https://avatars2.githubusercontent.com/u/5104335?v=4","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":"K Framework Tools 5.0","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}","deployments_url":"https://api.github.com/repos/kframework/k/deployments","created_at":"2016-01-20T16:05:56Z","updated_at":"2018-08-15T13:20:35Z","pushed_at":"2018-08-16T18:46:34Z","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":"","size":53212,"stargazers_count":46,"watchers_count":46,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":19,"mirror_url":null,"archived":false,"open_issues_count":37,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":19,"open_issues":37,"watchers":46,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kframework/k/pulls/117"},"html":{"href":"https://github.com/kframework/k/pull/117"},"issue":{"href":"https://api.github.com/repos/kframework/k/issues/117"},"comments":{"href":"https://api.github.com/repos/kframework/k/issues/117/comments"},"review_comments":{"href":"https://api.github.com/repos/kframework/k/pulls/117/comments"},"review_comment":{"href":"https://api.github.com/repos/kframework/k/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kframework/k/pulls/117/commits"},"statuses":{"href":"https://api.github.com/repos/kframework/k/statuses/6d5882d38b41e9cfa5c612e4dd0790e706b4b528"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"dwightguth"}}