{"action":"created","comment":{"url":"https://api.github.com/repos/KevM/tikaondotnet/pulls/comments/91865056","pull_request_review_id":12372803,"id":91865056,"diff_hunk":"@@ -0,0 +1,167 @@\n+using System;\n+using java.io;\n+using org.apache.tika;\n+using org.apache.tika.config;\n+using org.apache.tika.detect;\n+using org.apache.tika.metadata;\n+using org.apache.tika.mime;\n+using org.apache.tika.parser;\n+using org.apache.tika.parser.ocr;\n+using org.apache.tika.parser.pdf;\n+using Exception = System.Exception;\n+using Object = java.lang.Object;\n+using Parser = org.apache.tika.parser.Parser;\n+using StringBuilder = System.Text.StringBuilder;\n+\n+namespace TikaOnDotNet.TextExtraction\n+{\n+    /// <summary>\n+    ///     With this class text can be extracted from all different kind of documents with\n+    ///     the use of Tika and Tesseract\n+    /// </summary>\n+    public class TextExtractorOCR : TextExtractor\n+    {\n+        #region Fields","path":"src/TikaOnDotnet.TextExtractor/TextExtractorOCR.cs","position":24,"original_position":24,"commit_id":"cbef44f00a53f5543c49304d78954eedd22484a0","original_commit_id":"cbef44f00a53f5543c49304d78954eedd22484a0","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":"Please kill all regions.","created_at":"2016-12-11T20:55:08Z","updated_at":"2016-12-11T21:04:03Z","html_url":"https://github.com/KevM/tikaondotnet/pull/72#discussion_r91865056","pull_request_url":"https://api.github.com/repos/KevM/tikaondotnet/pulls/72","_links":{"self":{"href":"https://api.github.com/repos/KevM/tikaondotnet/pulls/comments/91865056"},"html":{"href":"https://github.com/KevM/tikaondotnet/pull/72#discussion_r91865056"},"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-11T21:04:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8bded5233adbc9bef465db94b2023958cf24b2a2","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/cbef44f00a53f5543c49304d78954eedd22484a0","head":{"label":"Sicos1977:master","ref":"master","sha":"cbef44f00a53f5543c49304d78954eedd22484a0","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-11T17:53:59Z","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":161636,"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-11T17:54:00Z","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":37,"mirror_url":null,"open_issues_count":10,"forks":37,"open_issues":10,"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/cbef44f00a53f5543c49304d78954eedd22484a0"}}}}
{"actor":{"display_login":"KevM"}}