{"action":"created","comment":{"url":"https://api.github.com/repos/ubtue/ub_tools/pulls/comments/228872689","pull_request_review_id":169234974,"id":228872689,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyODg3MjY4OQ==","diff_hunk":"@@ -114,6 +115,24 @@ std::string GetMediaType(const std::string &document, const bool auto_simplify)\n }\n \n \n+std::string GetMediaType(const std::string &document, std::string * const subtype, const bool auto_simplify) {\n+    std::string media_type = GetMediaType(document, auto_simplify);\n+\n+    if (media_type == \"text/xml\") {\n+        XMLParser parser(document, XMLParser::XML_STRING);\n+\n+        std::map<std::string, std::string> attrib_map;\n+        XMLParser::XMLPart part;\n+        if (parser.skipTo(XMLParser::XMLPart::OPENING_TAG, \"\", &part)) {\n+            if (part.data_ == \"TEI\")\n+                *subtype = \"tei\";\n+        }\n+    }","path":"cpp/lib/src/MediaTypeUtil.cc","position":24,"original_position":24,"commit_id":"6d952f3a6aa4745bd2fba6dcba01860c18de6752","original_commit_id":"6d952f3a6aa4745bd2fba6dcba01860c18de6752","user":{"login":"ruschein","id":991243,"node_id":"MDQ6VXNlcjk5MTI0Mw==","avatar_url":"https://avatars3.githubusercontent.com/u/991243?v=4","gravatar_id":"","url":"https://api.github.com/users/ruschein","html_url":"https://github.com/ruschein","followers_url":"https://api.github.com/users/ruschein/followers","following_url":"https://api.github.com/users/ruschein/following{/other_user}","gists_url":"https://api.github.com/users/ruschein/gists{/gist_id}","starred_url":"https://api.github.com/users/ruschein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruschein/subscriptions","organizations_url":"https://api.github.com/users/ruschein/orgs","repos_url":"https://api.github.com/users/ruschein/repos","events_url":"https://api.github.com/users/ruschein/events{/privacy}","received_events_url":"https://api.github.com/users/ruschein/received_events","type":"User","site_admin":false},"body":"Should this be \"tei\" or \"TEI\"?","created_at":"2018-10-29T10:36:28Z","updated_at":"2018-10-29T10:39:06Z","html_url":"https://github.com/ubtue/ub_tools/pull/2225#discussion_r228872689","pull_request_url":"https://api.github.com/repos/ubtue/ub_tools/pulls/2225","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/ubtue/ub_tools/pulls/comments/228872689"},"html":{"href":"https://github.com/ubtue/ub_tools/pull/2225#discussion_r228872689"},"pull_request":{"href":"https://api.github.com/repos/ubtue/ub_tools/pulls/2225"}}},"pull_request":{"url":"https://api.github.com/repos/ubtue/ub_tools/pulls/2225","id":226089686,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI2MDg5Njg2","html_url":"https://github.com/ubtue/ub_tools/pull/2225","diff_url":"https://github.com/ubtue/ub_tools/pull/2225.diff","patch_url":"https://github.com/ubtue/ub_tools/pull/2225.patch","issue_url":"https://api.github.com/repos/ubtue/ub_tools/issues/2225","number":2225,"state":"open","locked":false,"title":"Fulltext optimizations for OpenDigi TEI files","user":{"login":"mtrojan-ub","id":26873381,"node_id":"MDQ6VXNlcjI2ODczMzgx","avatar_url":"https://avatars2.githubusercontent.com/u/26873381?v=4","gravatar_id":"","url":"https://api.github.com/users/mtrojan-ub","html_url":"https://github.com/mtrojan-ub","followers_url":"https://api.github.com/users/mtrojan-ub/followers","following_url":"https://api.github.com/users/mtrojan-ub/following{/other_user}","gists_url":"https://api.github.com/users/mtrojan-ub/gists{/gist_id}","starred_url":"https://api.github.com/users/mtrojan-ub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtrojan-ub/subscriptions","organizations_url":"https://api.github.com/users/mtrojan-ub/orgs","repos_url":"https://api.github.com/users/mtrojan-ub/repos","events_url":"https://api.github.com/users/mtrojan-ub/events{/privacy}","received_events_url":"https://api.github.com/users/mtrojan-ub/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-10-26T13:00:42Z","updated_at":"2018-10-29T10:39:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"82f170b87ea402a11706bc5df47c5caf4d0368b5","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ubtue/ub_tools/pulls/2225/commits","review_comments_url":"https://api.github.com/repos/ubtue/ub_tools/pulls/2225/comments","review_comment_url":"https://api.github.com/repos/ubtue/ub_tools/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ubtue/ub_tools/issues/2225/comments","statuses_url":"https://api.github.com/repos/ubtue/ub_tools/statuses/6d952f3a6aa4745bd2fba6dcba01860c18de6752","head":{"label":"ubtue:mtrojan","ref":"mtrojan","sha":"6d952f3a6aa4745bd2fba6dcba01860c18de6752","user":{"login":"ubtue","id":12495698,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyNDk1Njk4","avatar_url":"https://avatars0.githubusercontent.com/u/12495698?v=4","gravatar_id":"","url":"https://api.github.com/users/ubtue","html_url":"https://github.com/ubtue","followers_url":"https://api.github.com/users/ubtue/followers","following_url":"https://api.github.com/users/ubtue/following{/other_user}","gists_url":"https://api.github.com/users/ubtue/gists{/gist_id}","starred_url":"https://api.github.com/users/ubtue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ubtue/subscriptions","organizations_url":"https://api.github.com/users/ubtue/orgs","repos_url":"https://api.github.com/users/ubtue/repos","events_url":"https://api.github.com/users/ubtue/events{/privacy}","received_events_url":"https://api.github.com/users/ubtue/received_events","type":"Organization","site_admin":false},"repo":{"id":35827831,"node_id":"MDEwOlJlcG9zaXRvcnkzNTgyNzgzMQ==","name":"ub_tools","full_name":"ubtue/ub_tools","private":false,"owner":{"login":"ubtue","id":12495698,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyNDk1Njk4","avatar_url":"https://avatars0.githubusercontent.com/u/12495698?v=4","gravatar_id":"","url":"https://api.github.com/users/ubtue","html_url":"https://github.com/ubtue","followers_url":"https://api.github.com/users/ubtue/followers","following_url":"https://api.github.com/users/ubtue/following{/other_user}","gists_url":"https://api.github.com/users/ubtue/gists{/gist_id}","starred_url":"https://api.github.com/users/ubtue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ubtue/subscriptions","organizations_url":"https://api.github.com/users/ubtue/orgs","repos_url":"https://api.github.com/users/ubtue/repos","events_url":"https://api.github.com/users/ubtue/events{/privacy}","received_events_url":"https://api.github.com/users/ubtue/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/ubtue/ub_tools","description":"Various C++ utility programs typically relating to MARC 21 manipulation.","fork":false,"url":"https://api.github.com/repos/ubtue/ub_tools","forks_url":"https://api.github.com/repos/ubtue/ub_tools/forks","keys_url":"https://api.github.com/repos/ubtue/ub_tools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ubtue/ub_tools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ubtue/ub_tools/teams","hooks_url":"https://api.github.com/repos/ubtue/ub_tools/hooks","issue_events_url":"https://api.github.com/repos/ubtue/ub_tools/issues/events{/number}","events_url":"https://api.github.com/repos/ubtue/ub_tools/events","assignees_url":"https://api.github.com/repos/ubtue/ub_tools/assignees{/user}","branches_url":"https://api.github.com/repos/ubtue/ub_tools/branches{/branch}","tags_url":"https://api.github.com/repos/ubtue/ub_tools/tags","blobs_url":"https://api.github.com/repos/ubtue/ub_tools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ubtue/ub_tools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ubtue/ub_tools/git/refs{/sha}","trees_url":"https://api.github.com/repos/ubtue/ub_tools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ubtue/ub_tools/statuses/{sha}","languages_url":"https://api.github.com/repos/ubtue/ub_tools/languages","stargazers_url":"https://api.github.com/repos/ubtue/ub_tools/stargazers","contributors_url":"https://api.github.com/repos/ubtue/ub_tools/contributors","subscribers_url":"https://api.github.com/repos/ubtue/ub_tools/subscribers","subscription_url":"https://api.github.com/repos/ubtue/ub_tools/subscription","commits_url":"https://api.github.com/repos/ubtue/ub_tools/commits{/sha}","git_commits_url":"https://api.github.com/repos/ubtue/ub_tools/git/commits{/sha}","comments_url":"https://api.github.com/repos/ubtue/ub_tools/comments{/number}","issue_comment_url":"https://api.github.com/repos/ubtue/ub_tools/issues/comments{/number}","contents_url":"https://api.github.com/repos/ubtue/ub_tools/contents/{+path}","compare_url":"https://api.github.com/repos/ubtue/ub_tools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ubtue/ub_tools/merges","archive_url":"https://api.github.com/repos/ubtue/ub_tools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ubtue/ub_tools/downloads","issues_url":"https://api.github.com/repos/ubtue/ub_tools/issues{/number}","pulls_url":"https://api.github.com/repos/ubtue/ub_tools/pulls{/number}","milestones_url":"https://api.github.com/repos/ubtue/ub_tools/milestones{/number}","notifications_url":"https://api.github.com/repos/ubtue/ub_tools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ubtue/ub_tools/labels{/name}","releases_url":"https://api.github.com/repos/ubtue/ub_tools/releases{/id}","deployments_url":"https://api.github.com/repos/ubtue/ub_tools/deployments","created_at":"2015-05-18T16:02:47Z","updated_at":"2018-10-29T10:31:09Z","pushed_at":"2018-10-29T10:31:06Z","git_url":"git://github.com/ubtue/ub_tools.git","ssh_url":"git@github.com:ubtue/ub_tools.git","clone_url":"https://github.com/ubtue/ub_tools.git","svn_url":"https://github.com/ubtue/ub_tools","homepage":null,"size":92366,"stargazers_count":3,"watchers_count":3,"language":"C++","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0","node_id":"MDc6TGljZW5zZTE="},"forks":0,"open_issues":2,"watchers":3,"default_branch":"master"}},"base":{"label":"ubtue:master","ref":"master","sha":"3529ab7f75377ba9e9ba21be551c3a14bb814547","user":{"login":"ubtue","id":12495698,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyNDk1Njk4","avatar_url":"https://avatars0.githubusercontent.com/u/12495698?v=4","gravatar_id":"","url":"https://api.github.com/users/ubtue","html_url":"https://github.com/ubtue","followers_url":"https://api.github.com/users/ubtue/followers","following_url":"https://api.github.com/users/ubtue/following{/other_user}","gists_url":"https://api.github.com/users/ubtue/gists{/gist_id}","starred_url":"https://api.github.com/users/ubtue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ubtue/subscriptions","organizations_url":"https://api.github.com/users/ubtue/orgs","repos_url":"https://api.github.com/users/ubtue/repos","events_url":"https://api.github.com/users/ubtue/events{/privacy}","received_events_url":"https://api.github.com/users/ubtue/received_events","type":"Organization","site_admin":false},"repo":{"id":35827831,"node_id":"MDEwOlJlcG9zaXRvcnkzNTgyNzgzMQ==","name":"ub_tools","full_name":"ubtue/ub_tools","private":false,"owner":{"login":"ubtue","id":12495698,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyNDk1Njk4","avatar_url":"https://avatars0.githubusercontent.com/u/12495698?v=4","gravatar_id":"","url":"https://api.github.com/users/ubtue","html_url":"https://github.com/ubtue","followers_url":"https://api.github.com/users/ubtue/followers","following_url":"https://api.github.com/users/ubtue/following{/other_user}","gists_url":"https://api.github.com/users/ubtue/gists{/gist_id}","starred_url":"https://api.github.com/users/ubtue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ubtue/subscriptions","organizations_url":"https://api.github.com/users/ubtue/orgs","repos_url":"https://api.github.com/users/ubtue/repos","events_url":"https://api.github.com/users/ubtue/events{/privacy}","received_events_url":"https://api.github.com/users/ubtue/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/ubtue/ub_tools","description":"Various C++ utility programs typically relating to MARC 21 manipulation.","fork":false,"url":"https://api.github.com/repos/ubtue/ub_tools","forks_url":"https://api.github.com/repos/ubtue/ub_tools/forks","keys_url":"https://api.github.com/repos/ubtue/ub_tools/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ubtue/ub_tools/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ubtue/ub_tools/teams","hooks_url":"https://api.github.com/repos/ubtue/ub_tools/hooks","issue_events_url":"https://api.github.com/repos/ubtue/ub_tools/issues/events{/number}","events_url":"https://api.github.com/repos/ubtue/ub_tools/events","assignees_url":"https://api.github.com/repos/ubtue/ub_tools/assignees{/user}","branches_url":"https://api.github.com/repos/ubtue/ub_tools/branches{/branch}","tags_url":"https://api.github.com/repos/ubtue/ub_tools/tags","blobs_url":"https://api.github.com/repos/ubtue/ub_tools/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ubtue/ub_tools/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ubtue/ub_tools/git/refs{/sha}","trees_url":"https://api.github.com/repos/ubtue/ub_tools/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ubtue/ub_tools/statuses/{sha}","languages_url":"https://api.github.com/repos/ubtue/ub_tools/languages","stargazers_url":"https://api.github.com/repos/ubtue/ub_tools/stargazers","contributors_url":"https://api.github.com/repos/ubtue/ub_tools/contributors","subscribers_url":"https://api.github.com/repos/ubtue/ub_tools/subscribers","subscription_url":"https://api.github.com/repos/ubtue/ub_tools/subscription","commits_url":"https://api.github.com/repos/ubtue/ub_tools/commits{/sha}","git_commits_url":"https://api.github.com/repos/ubtue/ub_tools/git/commits{/sha}","comments_url":"https://api.github.com/repos/ubtue/ub_tools/comments{/number}","issue_comment_url":"https://api.github.com/repos/ubtue/ub_tools/issues/comments{/number}","contents_url":"https://api.github.com/repos/ubtue/ub_tools/contents/{+path}","compare_url":"https://api.github.com/repos/ubtue/ub_tools/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ubtue/ub_tools/merges","archive_url":"https://api.github.com/repos/ubtue/ub_tools/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ubtue/ub_tools/downloads","issues_url":"https://api.github.com/repos/ubtue/ub_tools/issues{/number}","pulls_url":"https://api.github.com/repos/ubtue/ub_tools/pulls{/number}","milestones_url":"https://api.github.com/repos/ubtue/ub_tools/milestones{/number}","notifications_url":"https://api.github.com/repos/ubtue/ub_tools/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ubtue/ub_tools/labels{/name}","releases_url":"https://api.github.com/repos/ubtue/ub_tools/releases{/id}","deployments_url":"https://api.github.com/repos/ubtue/ub_tools/deployments","created_at":"2015-05-18T16:02:47Z","updated_at":"2018-10-29T10:31:09Z","pushed_at":"2018-10-29T10:31:06Z","git_url":"git://github.com/ubtue/ub_tools.git","ssh_url":"git@github.com:ubtue/ub_tools.git","clone_url":"https://github.com/ubtue/ub_tools.git","svn_url":"https://github.com/ubtue/ub_tools","homepage":null,"size":92366,"stargazers_count":3,"watchers_count":3,"language":"C++","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0","node_id":"MDc6TGljZW5zZTE="},"forks":0,"open_issues":2,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ubtue/ub_tools/pulls/2225"},"html":{"href":"https://github.com/ubtue/ub_tools/pull/2225"},"issue":{"href":"https://api.github.com/repos/ubtue/ub_tools/issues/2225"},"comments":{"href":"https://api.github.com/repos/ubtue/ub_tools/issues/2225/comments"},"review_comments":{"href":"https://api.github.com/repos/ubtue/ub_tools/pulls/2225/comments"},"review_comment":{"href":"https://api.github.com/repos/ubtue/ub_tools/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ubtue/ub_tools/pulls/2225/commits"},"statuses":{"href":"https://api.github.com/repos/ubtue/ub_tools/statuses/6d952f3a6aa4745bd2fba6dcba01860c18de6752"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"ruschein"}}