{"action":"created","comment":{"url":"https://api.github.com/repos/KevM/tikaondotnet/pulls/comments/91795832","pull_request_review_id":12308080,"id":91795832,"diff_hunk":"@@ -1,52 +1,15 @@\n-﻿using System;\n-using org.apache.tika.config;\n-using org.apache.tika.detect;\n-using org.apache.tika.io;\n-using org.apache.tika.mime;\n-\n-namespace TikaOnDotNet.TextExtraction\n+﻿namespace TikaOnDotNet.TextExtraction\n {\n+    /// <summary>\n+    /// Contains extension methods to standard .NET objects\n+    /// </summary>\n \tpublic static class Extensions\n \t{\n-\t\tpublic static string ToFormat(this string formatMe, params object[] args)\n-\t\t{\n-\t\t\treturn string.Format(formatMe, args);\n-\t\t}\n-\n-        private static readonly TikaConfig Config = TikaConfig.getDefaultConfig();\n-        public static TextExtractionResult Extract(this TextExtractor te, byte[] data, string filePath, string contentType)\n-        {\n-            var result = te.Extract\n-                (\n-                    metadata =>\n-                    {\n-                        metadata.add(\"resourceName\", System.IO.Path.GetFileName(filePath));\n-                        metadata.add(\"FilePath\", filePath);\n-                        if (!contentType.Equals(\"application/octet-stream\", StringComparison.CurrentCultureIgnoreCase))\n-                            metadata.add(\"Content-Type\", contentType);\n-                        else\n-                        {\n-                            var detector = Config.getDetector();\n-                            using (var inputStream = TikaInputStream.@get(data, metadata))\n-                            {\n-                                var foundType = detector.detect(inputStream, metadata);\n-                                if (\n-                                    !foundType.toString()\n-                                        .Equals(\"application/octet-stream\", StringComparison.CurrentCultureIgnoreCase))\n-                                    metadata.add(\"Content-Type\", foundType.toString());\n-                            }\n-                        }\n-\n-                        return TikaInputStream.get(data, metadata);\n-                    }\n-                );\n-\n-            return result;\n-        }\n-\n-        public static TextExtractionResult Extract(this TextExtractor te, byte[] data, string filePath)\n-        {\n-            return te.Extract(data, filePath, \"application/octet-stream\");\n-        }\n+        #region ToFormat","path":"src/TikaOnDotnet.TextExtractor/Extensions.cs","position":null,"original_position":55,"commit_id":"f13f27bae04b75cecfaceaa0667f2ed02e44b693","original_commit_id":"bf5d93b503ba426e784d8809d067110308b8a505","user":{"login":"KevM","id":1565,"avatar_url":"https://avatars.githubusercontent.com/u/1565?v=3","gravatar_id":"","url":"https://api.github.com/users/KevM","html_url":"https://github.com/KevM","followers_url":"https://api.github.com/users/KevM/followers","following_url":"https://api.github.com/users/KevM/following{/other_user}","gists_url":"https://api.github.com/users/KevM/gists{/gist_id}","starred_url":"https://api.github.com/users/KevM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KevM/subscriptions","organizations_url":"https://api.github.com/users/KevM/orgs","repos_url":"https://api.github.com/users/KevM/repos","events_url":"https://api.github.com/users/KevM/events{/privacy}","received_events_url":"https://api.github.com/users/KevM/received_events","type":"User","site_admin":false},"body":"Again no #regions. I know that I don't have a style guide and there is not much code to go off of to get the feel for how I like things to be. But I really don't like regions.","created_at":"2016-12-09T21:10:11Z","updated_at":"2016-12-09T21:10:11Z","html_url":"https://github.com/KevM/tikaondotnet/pull/72#discussion_r91795832","pull_request_url":"https://api.github.com/repos/KevM/tikaondotnet/pulls/72","_links":{"self":{"href":"https://api.github.com/repos/KevM/tikaondotnet/pulls/comments/91795832"},"html":{"href":"https://github.com/KevM/tikaondotnet/pull/72#discussion_r91795832"},"pull_request":{"href":"https://api.github.com/repos/KevM/tikaondotnet/pulls/72"}}},"pull_request":{"url":"https://api.github.com/repos/KevM/tikaondotnet/pulls/72","id":97379025,"html_url":"https://github.com/KevM/tikaondotnet/pull/72","diff_url":"https://github.com/KevM/tikaondotnet/pull/72.diff","patch_url":"https://github.com/KevM/tikaondotnet/pull/72.patch","issue_url":"https://api.github.com/repos/KevM/tikaondotnet/issues/72","number":72,"state":"open","locked":false,"title":"Added support for tesseract ocr and added test cases","user":{"login":"Sicos1977","id":6692947,"avatar_url":"https://avatars.githubusercontent.com/u/6692947?v=3","gravatar_id":"","url":"https://api.github.com/users/Sicos1977","html_url":"https://github.com/Sicos1977","followers_url":"https://api.github.com/users/Sicos1977/followers","following_url":"https://api.github.com/users/Sicos1977/following{/other_user}","gists_url":"https://api.github.com/users/Sicos1977/gists{/gist_id}","starred_url":"https://api.github.com/users/Sicos1977/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sicos1977/subscriptions","organizations_url":"https://api.github.com/users/Sicos1977/orgs","repos_url":"https://api.github.com/users/Sicos1977/repos","events_url":"https://api.github.com/users/Sicos1977/events{/privacy}","received_events_url":"https://api.github.com/users/Sicos1977/received_events","type":"User","site_admin":false},"body":"Hi,\r\n\r\n- Added support for tesseract OCR, I used the code from issue #62 (since he never made a PR)\r\n- Added new test cases (MSG and TIF files)\r\n- Extended and modified comment\r\n- Added regions\r\n\r\nI hope you like it.\r\n\r\nHave a nice weekend.","created_at":"2016-12-09T20:58:19Z","updated_at":"2016-12-09T21:20:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fddfad16b0b9637b4032620d51c2306fcdefcf5a","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/KevM/tikaondotnet/pulls/72/commits","review_comments_url":"https://api.github.com/repos/KevM/tikaondotnet/pulls/72/comments","review_comment_url":"https://api.github.com/repos/KevM/tikaondotnet/pulls/comments{/number}","comments_url":"https://api.github.com/repos/KevM/tikaondotnet/issues/72/comments","statuses_url":"https://api.github.com/repos/KevM/tikaondotnet/statuses/f13f27bae04b75cecfaceaa0667f2ed02e44b693","head":{"label":"Sicos1977:master","ref":"master","sha":"f13f27bae04b75cecfaceaa0667f2ed02e44b693","user":{"login":"Sicos1977","id":6692947,"avatar_url":"https://avatars.githubusercontent.com/u/6692947?v=3","gravatar_id":"","url":"https://api.github.com/users/Sicos1977","html_url":"https://github.com/Sicos1977","followers_url":"https://api.github.com/users/Sicos1977/followers","following_url":"https://api.github.com/users/Sicos1977/following{/other_user}","gists_url":"https://api.github.com/users/Sicos1977/gists{/gist_id}","starred_url":"https://api.github.com/users/Sicos1977/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sicos1977/subscriptions","organizations_url":"https://api.github.com/users/Sicos1977/orgs","repos_url":"https://api.github.com/users/Sicos1977/repos","events_url":"https://api.github.com/users/Sicos1977/events{/privacy}","received_events_url":"https://api.github.com/users/Sicos1977/received_events","type":"User","site_admin":false},"repo":{"id":75650115,"name":"tikaondotnet","full_name":"Sicos1977/tikaondotnet","owner":{"login":"Sicos1977","id":6692947,"avatar_url":"https://avatars.githubusercontent.com/u/6692947?v=3","gravatar_id":"","url":"https://api.github.com/users/Sicos1977","html_url":"https://github.com/Sicos1977","followers_url":"https://api.github.com/users/Sicos1977/followers","following_url":"https://api.github.com/users/Sicos1977/following{/other_user}","gists_url":"https://api.github.com/users/Sicos1977/gists{/gist_id}","starred_url":"https://api.github.com/users/Sicos1977/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sicos1977/subscriptions","organizations_url":"https://api.github.com/users/Sicos1977/orgs","repos_url":"https://api.github.com/users/Sicos1977/repos","events_url":"https://api.github.com/users/Sicos1977/events{/privacy}","received_events_url":"https://api.github.com/users/Sicos1977/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Sicos1977/tikaondotnet","description":"Use the Java Tika text extraction library on the .NET platform","fork":true,"url":"https://api.github.com/repos/Sicos1977/tikaondotnet","forks_url":"https://api.github.com/repos/Sicos1977/tikaondotnet/forks","keys_url":"https://api.github.com/repos/Sicos1977/tikaondotnet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Sicos1977/tikaondotnet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Sicos1977/tikaondotnet/teams","hooks_url":"https://api.github.com/repos/Sicos1977/tikaondotnet/hooks","issue_events_url":"https://api.github.com/repos/Sicos1977/tikaondotnet/issues/events{/number}","events_url":"https://api.github.com/repos/Sicos1977/tikaondotnet/events","assignees_url":"https://api.github.com/repos/Sicos1977/tikaondotnet/assignees{/user}","branches_url":"https://api.github.com/repos/Sicos1977/tikaondotnet/branches{/branch}","tags_url":"https://api.github.com/repos/Sicos1977/tikaondotnet/tags","blobs_url":"https://api.github.com/repos/Sicos1977/tikaondotnet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Sicos1977/tikaondotnet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Sicos1977/tikaondotnet/git/refs{/sha}","trees_url":"https://api.github.com/repos/Sicos1977/tikaondotnet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Sicos1977/tikaondotnet/statuses/{sha}","languages_url":"https://api.github.com/repos/Sicos1977/tikaondotnet/languages","stargazers_url":"https://api.github.com/repos/Sicos1977/tikaondotnet/stargazers","contributors_url":"https://api.github.com/repos/Sicos1977/tikaondotnet/contributors","subscribers_url":"https://api.github.com/repos/Sicos1977/tikaondotnet/subscribers","subscription_url":"https://api.github.com/repos/Sicos1977/tikaondotnet/subscription","commits_url":"https://api.github.com/repos/Sicos1977/tikaondotnet/commits{/sha}","git_commits_url":"https://api.github.com/repos/Sicos1977/tikaondotnet/git/commits{/sha}","comments_url":"https://api.github.com/repos/Sicos1977/tikaondotnet/comments{/number}","issue_comment_url":"https://api.github.com/repos/Sicos1977/tikaondotnet/issues/comments{/number}","contents_url":"https://api.github.com/repos/Sicos1977/tikaondotnet/contents/{+path}","compare_url":"https://api.github.com/repos/Sicos1977/tikaondotnet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Sicos1977/tikaondotnet/merges","archive_url":"https://api.github.com/repos/Sicos1977/tikaondotnet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Sicos1977/tikaondotnet/downloads","issues_url":"https://api.github.com/repos/Sicos1977/tikaondotnet/issues{/number}","pulls_url":"https://api.github.com/repos/Sicos1977/tikaondotnet/pulls{/number}","milestones_url":"https://api.github.com/repos/Sicos1977/tikaondotnet/milestones{/number}","notifications_url":"https://api.github.com/repos/Sicos1977/tikaondotnet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Sicos1977/tikaondotnet/labels{/name}","releases_url":"https://api.github.com/repos/Sicos1977/tikaondotnet/releases{/id}","deployments_url":"https://api.github.com/repos/Sicos1977/tikaondotnet/deployments","created_at":"2016-12-05T17:34:56Z","updated_at":"2016-12-05T17:34:57Z","pushed_at":"2016-12-09T21:09:04Z","git_url":"git://github.com/Sicos1977/tikaondotnet.git","ssh_url":"git@github.com:Sicos1977/tikaondotnet.git","clone_url":"https://github.com/Sicos1977/tikaondotnet.git","svn_url":"https://github.com/Sicos1977/tikaondotnet","homepage":"http://kevm.github.com/tikaondotnet","size":161530,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"KevM:master","ref":"master","sha":"c4ee6440816af5d2105fd7d357420ce9bd067cf5","user":{"login":"KevM","id":1565,"avatar_url":"https://avatars.githubusercontent.com/u/1565?v=3","gravatar_id":"","url":"https://api.github.com/users/KevM","html_url":"https://github.com/KevM","followers_url":"https://api.github.com/users/KevM/followers","following_url":"https://api.github.com/users/KevM/following{/other_user}","gists_url":"https://api.github.com/users/KevM/gists{/gist_id}","starred_url":"https://api.github.com/users/KevM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KevM/subscriptions","organizations_url":"https://api.github.com/users/KevM/orgs","repos_url":"https://api.github.com/users/KevM/repos","events_url":"https://api.github.com/users/KevM/events{/privacy}","received_events_url":"https://api.github.com/users/KevM/received_events","type":"User","site_admin":false},"repo":{"id":753747,"name":"tikaondotnet","full_name":"KevM/tikaondotnet","owner":{"login":"KevM","id":1565,"avatar_url":"https://avatars.githubusercontent.com/u/1565?v=3","gravatar_id":"","url":"https://api.github.com/users/KevM","html_url":"https://github.com/KevM","followers_url":"https://api.github.com/users/KevM/followers","following_url":"https://api.github.com/users/KevM/following{/other_user}","gists_url":"https://api.github.com/users/KevM/gists{/gist_id}","starred_url":"https://api.github.com/users/KevM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KevM/subscriptions","organizations_url":"https://api.github.com/users/KevM/orgs","repos_url":"https://api.github.com/users/KevM/repos","events_url":"https://api.github.com/users/KevM/events{/privacy}","received_events_url":"https://api.github.com/users/KevM/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/KevM/tikaondotnet","description":"Use the Java Tika text extraction library on the .NET platform","fork":false,"url":"https://api.github.com/repos/KevM/tikaondotnet","forks_url":"https://api.github.com/repos/KevM/tikaondotnet/forks","keys_url":"https://api.github.com/repos/KevM/tikaondotnet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/KevM/tikaondotnet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/KevM/tikaondotnet/teams","hooks_url":"https://api.github.com/repos/KevM/tikaondotnet/hooks","issue_events_url":"https://api.github.com/repos/KevM/tikaondotnet/issues/events{/number}","events_url":"https://api.github.com/repos/KevM/tikaondotnet/events","assignees_url":"https://api.github.com/repos/KevM/tikaondotnet/assignees{/user}","branches_url":"https://api.github.com/repos/KevM/tikaondotnet/branches{/branch}","tags_url":"https://api.github.com/repos/KevM/tikaondotnet/tags","blobs_url":"https://api.github.com/repos/KevM/tikaondotnet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/KevM/tikaondotnet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/KevM/tikaondotnet/git/refs{/sha}","trees_url":"https://api.github.com/repos/KevM/tikaondotnet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/KevM/tikaondotnet/statuses/{sha}","languages_url":"https://api.github.com/repos/KevM/tikaondotnet/languages","stargazers_url":"https://api.github.com/repos/KevM/tikaondotnet/stargazers","contributors_url":"https://api.github.com/repos/KevM/tikaondotnet/contributors","subscribers_url":"https://api.github.com/repos/KevM/tikaondotnet/subscribers","subscription_url":"https://api.github.com/repos/KevM/tikaondotnet/subscription","commits_url":"https://api.github.com/repos/KevM/tikaondotnet/commits{/sha}","git_commits_url":"https://api.github.com/repos/KevM/tikaondotnet/git/commits{/sha}","comments_url":"https://api.github.com/repos/KevM/tikaondotnet/comments{/number}","issue_comment_url":"https://api.github.com/repos/KevM/tikaondotnet/issues/comments{/number}","contents_url":"https://api.github.com/repos/KevM/tikaondotnet/contents/{+path}","compare_url":"https://api.github.com/repos/KevM/tikaondotnet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/KevM/tikaondotnet/merges","archive_url":"https://api.github.com/repos/KevM/tikaondotnet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/KevM/tikaondotnet/downloads","issues_url":"https://api.github.com/repos/KevM/tikaondotnet/issues{/number}","pulls_url":"https://api.github.com/repos/KevM/tikaondotnet/pulls{/number}","milestones_url":"https://api.github.com/repos/KevM/tikaondotnet/milestones{/number}","notifications_url":"https://api.github.com/repos/KevM/tikaondotnet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/KevM/tikaondotnet/labels{/name}","releases_url":"https://api.github.com/repos/KevM/tikaondotnet/releases{/id}","deployments_url":"https://api.github.com/repos/KevM/tikaondotnet/deployments","created_at":"2010-07-02T16:15:05Z","updated_at":"2016-12-08T19:18:24Z","pushed_at":"2016-12-09T21:09:05Z","git_url":"git://github.com/KevM/tikaondotnet.git","ssh_url":"git@github.com:KevM/tikaondotnet.git","clone_url":"https://github.com/KevM/tikaondotnet.git","svn_url":"https://github.com/KevM/tikaondotnet","homepage":"http://kevm.github.io/tikaondotnet/","size":228547,"stargazers_count":75,"watchers_count":75,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":38,"mirror_url":null,"open_issues_count":11,"forks":38,"open_issues":11,"watchers":75,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/KevM/tikaondotnet/pulls/72"},"html":{"href":"https://github.com/KevM/tikaondotnet/pull/72"},"issue":{"href":"https://api.github.com/repos/KevM/tikaondotnet/issues/72"},"comments":{"href":"https://api.github.com/repos/KevM/tikaondotnet/issues/72/comments"},"review_comments":{"href":"https://api.github.com/repos/KevM/tikaondotnet/pulls/72/comments"},"review_comment":{"href":"https://api.github.com/repos/KevM/tikaondotnet/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/KevM/tikaondotnet/pulls/72/commits"},"statuses":{"href":"https://api.github.com/repos/KevM/tikaondotnet/statuses/f13f27bae04b75cecfaceaa0667f2ed02e44b693"}}}}
{"actor":{"display_login":"KevM"}}