{"action":"created","comment":{"url":"https://api.github.com/repos/apache/tika/pulls/comments/24708599","id":24708599,"diff_hunk":"@@ -131,13 +166,13 @@ public void testEstonia() throws Exception {\n         ProfilingWriter writer = new ProfilingWriter();\n         writeTo(estonian, writer);\n         LanguageIdentifier identifier =\n-            new LanguageIdentifier(writer.getProfile());\n+                new LanguageIdentifier(writer.getProfile());","path":"tika-core/src/test/java/org/apache/tika/language/LanguageIdentifierTest.java","position":77,"original_position":77,"commit_id":"7794005daa68a3b663d2d4f9c3373ed718ae3ad7","original_commit_id":"7794005daa68a3b663d2d4f9c3373ed718ae3ad7","user":{"login":"chrismattmann","id":395887,"avatar_url":"https://avatars.githubusercontent.com/u/395887?v=3","gravatar_id":"","url":"https://api.github.com/users/chrismattmann","html_url":"https://github.com/chrismattmann","followers_url":"https://api.github.com/users/chrismattmann/followers","following_url":"https://api.github.com/users/chrismattmann/following{/other_user}","gists_url":"https://api.github.com/users/chrismattmann/gists{/gist_id}","starred_url":"https://api.github.com/users/chrismattmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrismattmann/subscriptions","organizations_url":"https://api.github.com/users/chrismattmann/orgs","repos_url":"https://api.github.com/users/chrismattmann/repos","events_url":"https://api.github.com/users/chrismattmann/events{/privacy}","received_events_url":"https://api.github.com/users/chrismattmann/received_events","type":"User","site_admin":false},"body":"unneeded reformatting.","created_at":"2015-02-14T00:29:49Z","updated_at":"2015-02-14T00:29:49Z","html_url":"https://github.com/apache/tika/pull/29#discussion_r24708599","pull_request_url":"https://api.github.com/repos/apache/tika/pulls/29","_links":{"self":{"href":"https://api.github.com/repos/apache/tika/pulls/comments/24708599"},"html":{"href":"https://github.com/apache/tika/pull/29#discussion_r24708599"},"pull_request":{"href":"https://api.github.com/repos/apache/tika/pulls/29"}}},"pull_request":{"url":"https://api.github.com/repos/apache/tika/pulls/29","id":29310491,"html_url":"https://github.com/apache/tika/pull/29","diff_url":"https://github.com/apache/tika/pull/29.diff","patch_url":"https://github.com/apache/tika/pull/29.patch","issue_url":"https://api.github.com/repos/apache/tika/issues/29","number":29,"state":"open","locked":false,"title":"2 times speed increase of language profile distance calculation","user":{"login":"tokee","id":199454,"avatar_url":"https://avatars.githubusercontent.com/u/199454?v=3","gravatar_id":"","url":"https://api.github.com/users/tokee","html_url":"https://github.com/tokee","followers_url":"https://api.github.com/users/tokee/followers","following_url":"https://api.github.com/users/tokee/following{/other_user}","gists_url":"https://api.github.com/users/tokee/gists{/gist_id}","starred_url":"https://api.github.com/users/tokee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tokee/subscriptions","organizations_url":"https://api.github.com/users/tokee/orgs","repos_url":"https://api.github.com/users/tokee/repos","events_url":"https://api.github.com/users/tokee/events{/privacy}","received_events_url":"https://api.github.com/users/tokee/received_events","type":"User","site_admin":false},"body":"The distance calculation for language profiles creates a Set of Strings with each call and performs hashtable lookups for all those Strings. This patch creates and caches compact structures that are iterated sequentially. The result is a factor 2 speed up (see the performance test in LanguageIdentifierTest).","created_at":"2015-02-14T00:20:16Z","updated_at":"2015-02-14T00:29:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"62a33b0534753a8bd125074ae8904004c50accb3","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apache/tika/pulls/29/commits","review_comments_url":"https://api.github.com/repos/apache/tika/pulls/29/comments","review_comment_url":"https://api.github.com/repos/apache/tika/pulls/comments/{number}","comments_url":"https://api.github.com/repos/apache/tika/issues/29/comments","statuses_url":"https://api.github.com/repos/apache/tika/statuses/7794005daa68a3b663d2d4f9c3373ed718ae3ad7","head":{"label":"tokee:language-performance","ref":"language-performance","sha":"7794005daa68a3b663d2d4f9c3373ed718ae3ad7","user":{"login":"tokee","id":199454,"avatar_url":"https://avatars.githubusercontent.com/u/199454?v=3","gravatar_id":"","url":"https://api.github.com/users/tokee","html_url":"https://github.com/tokee","followers_url":"https://api.github.com/users/tokee/followers","following_url":"https://api.github.com/users/tokee/following{/other_user}","gists_url":"https://api.github.com/users/tokee/gists{/gist_id}","starred_url":"https://api.github.com/users/tokee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tokee/subscriptions","organizations_url":"https://api.github.com/users/tokee/orgs","repos_url":"https://api.github.com/users/tokee/repos","events_url":"https://api.github.com/users/tokee/events{/privacy}","received_events_url":"https://api.github.com/users/tokee/received_events","type":"User","site_admin":false},"repo":{"id":30781095,"name":"tika","full_name":"tokee/tika","owner":{"login":"tokee","id":199454,"avatar_url":"https://avatars.githubusercontent.com/u/199454?v=3","gravatar_id":"","url":"https://api.github.com/users/tokee","html_url":"https://github.com/tokee","followers_url":"https://api.github.com/users/tokee/followers","following_url":"https://api.github.com/users/tokee/following{/other_user}","gists_url":"https://api.github.com/users/tokee/gists{/gist_id}","starred_url":"https://api.github.com/users/tokee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tokee/subscriptions","organizations_url":"https://api.github.com/users/tokee/orgs","repos_url":"https://api.github.com/users/tokee/repos","events_url":"https://api.github.com/users/tokee/events{/privacy}","received_events_url":"https://api.github.com/users/tokee/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tokee/tika","description":"Mirror of Apache Tika","fork":true,"url":"https://api.github.com/repos/tokee/tika","forks_url":"https://api.github.com/repos/tokee/tika/forks","keys_url":"https://api.github.com/repos/tokee/tika/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tokee/tika/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tokee/tika/teams","hooks_url":"https://api.github.com/repos/tokee/tika/hooks","issue_events_url":"https://api.github.com/repos/tokee/tika/issues/events{/number}","events_url":"https://api.github.com/repos/tokee/tika/events","assignees_url":"https://api.github.com/repos/tokee/tika/assignees{/user}","branches_url":"https://api.github.com/repos/tokee/tika/branches{/branch}","tags_url":"https://api.github.com/repos/tokee/tika/tags","blobs_url":"https://api.github.com/repos/tokee/tika/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tokee/tika/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tokee/tika/git/refs{/sha}","trees_url":"https://api.github.com/repos/tokee/tika/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tokee/tika/statuses/{sha}","languages_url":"https://api.github.com/repos/tokee/tika/languages","stargazers_url":"https://api.github.com/repos/tokee/tika/stargazers","contributors_url":"https://api.github.com/repos/tokee/tika/contributors","subscribers_url":"https://api.github.com/repos/tokee/tika/subscribers","subscription_url":"https://api.github.com/repos/tokee/tika/subscription","commits_url":"https://api.github.com/repos/tokee/tika/commits{/sha}","git_commits_url":"https://api.github.com/repos/tokee/tika/git/commits{/sha}","comments_url":"https://api.github.com/repos/tokee/tika/comments{/number}","issue_comment_url":"https://api.github.com/repos/tokee/tika/issues/comments/{number}","contents_url":"https://api.github.com/repos/tokee/tika/contents/{+path}","compare_url":"https://api.github.com/repos/tokee/tika/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tokee/tika/merges","archive_url":"https://api.github.com/repos/tokee/tika/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tokee/tika/downloads","issues_url":"https://api.github.com/repos/tokee/tika/issues{/number}","pulls_url":"https://api.github.com/repos/tokee/tika/pulls{/number}","milestones_url":"https://api.github.com/repos/tokee/tika/milestones{/number}","notifications_url":"https://api.github.com/repos/tokee/tika/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tokee/tika/labels{/name}","releases_url":"https://api.github.com/repos/tokee/tika/releases{/id}","created_at":"2015-02-13T23:39:17Z","updated_at":"2015-02-13T23:39:22Z","pushed_at":"2015-02-14T00:01:51Z","git_url":"git://github.com/tokee/tika.git","ssh_url":"git@github.com:tokee/tika.git","clone_url":"https://github.com/tokee/tika.git","svn_url":"https://github.com/tokee/tika","homepage":null,"size":83374,"stargazers_count":0,"watchers_count":0,"language":"Java","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":"trunk"}},"base":{"label":"apache:trunk","ref":"trunk","sha":"8d7eb28d31d83a32a3da6e33b9703123daed7f47","user":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"repo":{"id":206427,"name":"tika","full_name":"apache/tika","owner":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apache/tika","description":"Mirror of Apache Tika","fork":false,"url":"https://api.github.com/repos/apache/tika","forks_url":"https://api.github.com/repos/apache/tika/forks","keys_url":"https://api.github.com/repos/apache/tika/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/tika/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/tika/teams","hooks_url":"https://api.github.com/repos/apache/tika/hooks","issue_events_url":"https://api.github.com/repos/apache/tika/issues/events{/number}","events_url":"https://api.github.com/repos/apache/tika/events","assignees_url":"https://api.github.com/repos/apache/tika/assignees{/user}","branches_url":"https://api.github.com/repos/apache/tika/branches{/branch}","tags_url":"https://api.github.com/repos/apache/tika/tags","blobs_url":"https://api.github.com/repos/apache/tika/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/tika/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/tika/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/tika/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/tika/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/tika/languages","stargazers_url":"https://api.github.com/repos/apache/tika/stargazers","contributors_url":"https://api.github.com/repos/apache/tika/contributors","subscribers_url":"https://api.github.com/repos/apache/tika/subscribers","subscription_url":"https://api.github.com/repos/apache/tika/subscription","commits_url":"https://api.github.com/repos/apache/tika/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/tika/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/tika/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/tika/issues/comments/{number}","contents_url":"https://api.github.com/repos/apache/tika/contents/{+path}","compare_url":"https://api.github.com/repos/apache/tika/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/tika/merges","archive_url":"https://api.github.com/repos/apache/tika/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/tika/downloads","issues_url":"https://api.github.com/repos/apache/tika/issues{/number}","pulls_url":"https://api.github.com/repos/apache/tika/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/tika/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/tika/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/tika/labels{/name}","releases_url":"https://api.github.com/repos/apache/tika/releases{/id}","created_at":"2009-05-21T02:12:11Z","updated_at":"2015-02-13T16:41:07Z","pushed_at":"2015-02-13T16:41:05Z","git_url":"git://github.com/apache/tika.git","ssh_url":"git@github.com:apache/tika.git","clone_url":"https://github.com/apache/tika.git","svn_url":"https://github.com/apache/tika","homepage":null,"size":83374,"stargazers_count":166,"watchers_count":166,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":91,"mirror_url":"git://git.apache.org/tika.git","open_issues_count":3,"forks":91,"open_issues":3,"watchers":166,"default_branch":"trunk"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/tika/pulls/29"},"html":{"href":"https://github.com/apache/tika/pull/29"},"issue":{"href":"https://api.github.com/repos/apache/tika/issues/29"},"comments":{"href":"https://api.github.com/repos/apache/tika/issues/29/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/tika/pulls/29/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/tika/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/apache/tika/pulls/29/commits"},"statuses":{"href":"https://api.github.com/repos/apache/tika/statuses/7794005daa68a3b663d2d4f9c3373ed718ae3ad7"}}}}