{"action":"created","comment":{"url":"https://api.github.com/repos/jeffmay/bson-adt/pulls/comments/37546530","id":37546530,"diff_hunk":"@@ -0,0 +1,908 @@\n+package org.google.plaintext;\n+\n+/*\n+ * Test harness for diff_match_patch.java\n+ *\n+ * Copyright 2006 Google Inc.\n+ * http://code.google.com/p/google-diff-match-patch/\n+ *\n+ * Licensed under the Apache License, Version 2.0 (the \"License\");\n+ * you may not use this file except in compliance with the License.\n+ * You may obtain a copy of the License at\n+ *\n+ *   http://www.apache.org/licenses/LICENSE-2.0\n+ *\n+ * Unless required by applicable law or agreed to in writing, software\n+ * distributed under the License is distributed on an \"AS IS\" BASIS,\n+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+ * See the License for the specific language governing permissions and\n+ * limitations under the License.\n+ */\n+import junit.framework.TestCase;\n+\n+import java.util.ArrayList;\n+import java.util.Arrays;\n+import java.util.HashMap;\n+import java.util.LinkedList;\n+import java.util.List;\n+import java.util.Map;\n+\n+import org.google.plaintext.diff_match_patch.*;\n+\n+public class diff_match_patch_test extends TestCase {\n+\n+    private diff_match_patch dmp;\n+    private diff_match_patch.Operation DELETE = diff_match_patch.Operation.DELETE;\n+    private diff_match_patch.Operation EQUAL = diff_match_patch.Operation.EQUAL;\n+    private diff_match_patch.Operation INSERT = diff_match_patch.Operation.INSERT;\n+\n+    protected void setUp() {\n+        // Create an instance of the diff_match_patch object.\n+        dmp = new diff_match_patch();\n+    }\n+\n+\n+    //  DIFF TEST FUNCTIONS\n+\n+\n+    public void testDiffCommonPrefix() {\n+        // Detect any common prefix.\n+        assertEquals(\"diff_commonPrefix: Null case.\", 0, dmp.diff_commonPrefix(\"abc\", \"xyz\"));\n+\n+        assertEquals(\"diff_commonPrefix: Non-null case.\", 4, dmp.diff_commonPrefix(\"1234abcdef\", \"1234xyz\"));\n+\n+        assertEquals(\"diff_commonPrefix: Whole case.\", 4, dmp.diff_commonPrefix(\"1234\", \"1234xyz\"));","path":"bson-adt-core/src/test/java/org/google/plaintext/diff_match_patch_test.java","position":54,"original_position":54,"commit_id":"c0f850f5fb563cc3e7667776e1eed9808f994f64","original_commit_id":"c0f850f5fb563cc3e7667776e1eed9808f994f64","user":{"login":"egprentice","id":12240593,"avatar_url":"https://avatars.githubusercontent.com/u/12240593?v=3","gravatar_id":"","url":"https://api.github.com/users/egprentice","html_url":"https://github.com/egprentice","followers_url":"https://api.github.com/users/egprentice/followers","following_url":"https://api.github.com/users/egprentice/following{/other_user}","gists_url":"https://api.github.com/users/egprentice/gists{/gist_id}","starred_url":"https://api.github.com/users/egprentice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/egprentice/subscriptions","organizations_url":"https://api.github.com/users/egprentice/orgs","repos_url":"https://api.github.com/users/egprentice/repos","events_url":"https://api.github.com/users/egprentice/events{/privacy}","received_events_url":"https://api.github.com/users/egprentice/received_events","type":"User","site_admin":false},"body":"also try\r\n assertEquals(\"diff_commonPrefix: Whole case.\", 4, dmp.diff_commonPrefix(\"1234xyz\", \"1234\"));","created_at":"2015-08-20T15:54:52Z","updated_at":"2015-08-20T15:54:52Z","html_url":"https://github.com/jeffmay/bson-adt/pull/7#discussion_r37546530","pull_request_url":"https://api.github.com/repos/jeffmay/bson-adt/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/jeffmay/bson-adt/pulls/comments/37546530"},"html":{"href":"https://github.com/jeffmay/bson-adt/pull/7#discussion_r37546530"},"pull_request":{"href":"https://api.github.com/repos/jeffmay/bson-adt/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/jeffmay/bson-adt/pulls/7","id":42651897,"html_url":"https://github.com/jeffmay/bson-adt/pull/7","diff_url":"https://github.com/jeffmay/bson-adt/pull/7.diff","patch_url":"https://github.com/jeffmay/bson-adt/pull/7.patch","issue_url":"https://api.github.com/repos/jeffmay/bson-adt/issues/7","number":7,"state":"open","locked":false,"title":"Addressed bug fixes from 1.3.0","user":{"login":"jeffmay","id":755988,"avatar_url":"https://avatars.githubusercontent.com/u/755988?v=3","gravatar_id":"","url":"https://api.github.com/users/jeffmay","html_url":"https://github.com/jeffmay","followers_url":"https://api.github.com/users/jeffmay/followers","following_url":"https://api.github.com/users/jeffmay/following{/other_user}","gists_url":"https://api.github.com/users/jeffmay/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffmay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffmay/subscriptions","organizations_url":"https://api.github.com/users/jeffmay/orgs","repos_url":"https://api.github.com/users/jeffmay/repos","events_url":"https://api.github.com/users/jeffmay/events{/privacy}","received_events_url":"https://api.github.com/users/jeffmay/received_events","type":"User","site_admin":false},"body":"@egprentice @audax-shreyaspurohit","created_at":"2015-08-18T01:07:23Z","updated_at":"2015-08-20T15:54:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"082d9bc2afa3eb1ab17ea8b5438320360542b3f5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jeffmay/bson-adt/pulls/7/commits","review_comments_url":"https://api.github.com/repos/jeffmay/bson-adt/pulls/7/comments","review_comment_url":"https://api.github.com/repos/jeffmay/bson-adt/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jeffmay/bson-adt/issues/7/comments","statuses_url":"https://api.github.com/repos/jeffmay/bson-adt/statuses/c0f850f5fb563cc3e7667776e1eed9808f994f64","head":{"label":"jeffmay:bugfixes","ref":"bugfixes","sha":"c0f850f5fb563cc3e7667776e1eed9808f994f64","user":{"login":"jeffmay","id":755988,"avatar_url":"https://avatars.githubusercontent.com/u/755988?v=3","gravatar_id":"","url":"https://api.github.com/users/jeffmay","html_url":"https://github.com/jeffmay","followers_url":"https://api.github.com/users/jeffmay/followers","following_url":"https://api.github.com/users/jeffmay/following{/other_user}","gists_url":"https://api.github.com/users/jeffmay/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffmay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffmay/subscriptions","organizations_url":"https://api.github.com/users/jeffmay/orgs","repos_url":"https://api.github.com/users/jeffmay/repos","events_url":"https://api.github.com/users/jeffmay/events{/privacy}","received_events_url":"https://api.github.com/users/jeffmay/received_events","type":"User","site_admin":false},"repo":{"id":27928812,"name":"bson-adt","full_name":"jeffmay/bson-adt","owner":{"login":"jeffmay","id":755988,"avatar_url":"https://avatars.githubusercontent.com/u/755988?v=3","gravatar_id":"","url":"https://api.github.com/users/jeffmay","html_url":"https://github.com/jeffmay","followers_url":"https://api.github.com/users/jeffmay/followers","following_url":"https://api.github.com/users/jeffmay/following{/other_user}","gists_url":"https://api.github.com/users/jeffmay/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffmay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffmay/subscriptions","organizations_url":"https://api.github.com/users/jeffmay/orgs","repos_url":"https://api.github.com/users/jeffmay/repos","events_url":"https://api.github.com/users/jeffmay/events{/privacy}","received_events_url":"https://api.github.com/users/jeffmay/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jeffmay/bson-adt","description":"A closed generic algebraic data type for Bson serialization and deserialization in Scala","fork":false,"url":"https://api.github.com/repos/jeffmay/bson-adt","forks_url":"https://api.github.com/repos/jeffmay/bson-adt/forks","keys_url":"https://api.github.com/repos/jeffmay/bson-adt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jeffmay/bson-adt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jeffmay/bson-adt/teams","hooks_url":"https://api.github.com/repos/jeffmay/bson-adt/hooks","issue_events_url":"https://api.github.com/repos/jeffmay/bson-adt/issues/events{/number}","events_url":"https://api.github.com/repos/jeffmay/bson-adt/events","assignees_url":"https://api.github.com/repos/jeffmay/bson-adt/assignees{/user}","branches_url":"https://api.github.com/repos/jeffmay/bson-adt/branches{/branch}","tags_url":"https://api.github.com/repos/jeffmay/bson-adt/tags","blobs_url":"https://api.github.com/repos/jeffmay/bson-adt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jeffmay/bson-adt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jeffmay/bson-adt/git/refs{/sha}","trees_url":"https://api.github.com/repos/jeffmay/bson-adt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jeffmay/bson-adt/statuses/{sha}","languages_url":"https://api.github.com/repos/jeffmay/bson-adt/languages","stargazers_url":"https://api.github.com/repos/jeffmay/bson-adt/stargazers","contributors_url":"https://api.github.com/repos/jeffmay/bson-adt/contributors","subscribers_url":"https://api.github.com/repos/jeffmay/bson-adt/subscribers","subscription_url":"https://api.github.com/repos/jeffmay/bson-adt/subscription","commits_url":"https://api.github.com/repos/jeffmay/bson-adt/commits{/sha}","git_commits_url":"https://api.github.com/repos/jeffmay/bson-adt/git/commits{/sha}","comments_url":"https://api.github.com/repos/jeffmay/bson-adt/comments{/number}","issue_comment_url":"https://api.github.com/repos/jeffmay/bson-adt/issues/comments{/number}","contents_url":"https://api.github.com/repos/jeffmay/bson-adt/contents/{+path}","compare_url":"https://api.github.com/repos/jeffmay/bson-adt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jeffmay/bson-adt/merges","archive_url":"https://api.github.com/repos/jeffmay/bson-adt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jeffmay/bson-adt/downloads","issues_url":"https://api.github.com/repos/jeffmay/bson-adt/issues{/number}","pulls_url":"https://api.github.com/repos/jeffmay/bson-adt/pulls{/number}","milestones_url":"https://api.github.com/repos/jeffmay/bson-adt/milestones{/number}","notifications_url":"https://api.github.com/repos/jeffmay/bson-adt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jeffmay/bson-adt/labels{/name}","releases_url":"https://api.github.com/repos/jeffmay/bson-adt/releases{/id}","created_at":"2014-12-12T16:42:11Z","updated_at":"2015-05-04T17:23:16Z","pushed_at":"2015-08-20T15:25:07Z","git_url":"git://github.com/jeffmay/bson-adt.git","ssh_url":"git@github.com:jeffmay/bson-adt.git","clone_url":"https://github.com/jeffmay/bson-adt.git","svn_url":"https://github.com/jeffmay/bson-adt","homepage":null,"size":329,"stargazers_count":0,"watchers_count":0,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"jeffmay:master","ref":"master","sha":"3d910afbac37101f77bc76100cb3ef7abc4f4427","user":{"login":"jeffmay","id":755988,"avatar_url":"https://avatars.githubusercontent.com/u/755988?v=3","gravatar_id":"","url":"https://api.github.com/users/jeffmay","html_url":"https://github.com/jeffmay","followers_url":"https://api.github.com/users/jeffmay/followers","following_url":"https://api.github.com/users/jeffmay/following{/other_user}","gists_url":"https://api.github.com/users/jeffmay/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffmay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffmay/subscriptions","organizations_url":"https://api.github.com/users/jeffmay/orgs","repos_url":"https://api.github.com/users/jeffmay/repos","events_url":"https://api.github.com/users/jeffmay/events{/privacy}","received_events_url":"https://api.github.com/users/jeffmay/received_events","type":"User","site_admin":false},"repo":{"id":27928812,"name":"bson-adt","full_name":"jeffmay/bson-adt","owner":{"login":"jeffmay","id":755988,"avatar_url":"https://avatars.githubusercontent.com/u/755988?v=3","gravatar_id":"","url":"https://api.github.com/users/jeffmay","html_url":"https://github.com/jeffmay","followers_url":"https://api.github.com/users/jeffmay/followers","following_url":"https://api.github.com/users/jeffmay/following{/other_user}","gists_url":"https://api.github.com/users/jeffmay/gists{/gist_id}","starred_url":"https://api.github.com/users/jeffmay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeffmay/subscriptions","organizations_url":"https://api.github.com/users/jeffmay/orgs","repos_url":"https://api.github.com/users/jeffmay/repos","events_url":"https://api.github.com/users/jeffmay/events{/privacy}","received_events_url":"https://api.github.com/users/jeffmay/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jeffmay/bson-adt","description":"A closed generic algebraic data type for Bson serialization and deserialization in Scala","fork":false,"url":"https://api.github.com/repos/jeffmay/bson-adt","forks_url":"https://api.github.com/repos/jeffmay/bson-adt/forks","keys_url":"https://api.github.com/repos/jeffmay/bson-adt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jeffmay/bson-adt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jeffmay/bson-adt/teams","hooks_url":"https://api.github.com/repos/jeffmay/bson-adt/hooks","issue_events_url":"https://api.github.com/repos/jeffmay/bson-adt/issues/events{/number}","events_url":"https://api.github.com/repos/jeffmay/bson-adt/events","assignees_url":"https://api.github.com/repos/jeffmay/bson-adt/assignees{/user}","branches_url":"https://api.github.com/repos/jeffmay/bson-adt/branches{/branch}","tags_url":"https://api.github.com/repos/jeffmay/bson-adt/tags","blobs_url":"https://api.github.com/repos/jeffmay/bson-adt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jeffmay/bson-adt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jeffmay/bson-adt/git/refs{/sha}","trees_url":"https://api.github.com/repos/jeffmay/bson-adt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jeffmay/bson-adt/statuses/{sha}","languages_url":"https://api.github.com/repos/jeffmay/bson-adt/languages","stargazers_url":"https://api.github.com/repos/jeffmay/bson-adt/stargazers","contributors_url":"https://api.github.com/repos/jeffmay/bson-adt/contributors","subscribers_url":"https://api.github.com/repos/jeffmay/bson-adt/subscribers","subscription_url":"https://api.github.com/repos/jeffmay/bson-adt/subscription","commits_url":"https://api.github.com/repos/jeffmay/bson-adt/commits{/sha}","git_commits_url":"https://api.github.com/repos/jeffmay/bson-adt/git/commits{/sha}","comments_url":"https://api.github.com/repos/jeffmay/bson-adt/comments{/number}","issue_comment_url":"https://api.github.com/repos/jeffmay/bson-adt/issues/comments{/number}","contents_url":"https://api.github.com/repos/jeffmay/bson-adt/contents/{+path}","compare_url":"https://api.github.com/repos/jeffmay/bson-adt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jeffmay/bson-adt/merges","archive_url":"https://api.github.com/repos/jeffmay/bson-adt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jeffmay/bson-adt/downloads","issues_url":"https://api.github.com/repos/jeffmay/bson-adt/issues{/number}","pulls_url":"https://api.github.com/repos/jeffmay/bson-adt/pulls{/number}","milestones_url":"https://api.github.com/repos/jeffmay/bson-adt/milestones{/number}","notifications_url":"https://api.github.com/repos/jeffmay/bson-adt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jeffmay/bson-adt/labels{/name}","releases_url":"https://api.github.com/repos/jeffmay/bson-adt/releases{/id}","created_at":"2014-12-12T16:42:11Z","updated_at":"2015-05-04T17:23:16Z","pushed_at":"2015-08-20T15:25:07Z","git_url":"git://github.com/jeffmay/bson-adt.git","ssh_url":"git@github.com:jeffmay/bson-adt.git","clone_url":"https://github.com/jeffmay/bson-adt.git","svn_url":"https://github.com/jeffmay/bson-adt","homepage":null,"size":329,"stargazers_count":0,"watchers_count":0,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jeffmay/bson-adt/pulls/7"},"html":{"href":"https://github.com/jeffmay/bson-adt/pull/7"},"issue":{"href":"https://api.github.com/repos/jeffmay/bson-adt/issues/7"},"comments":{"href":"https://api.github.com/repos/jeffmay/bson-adt/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/jeffmay/bson-adt/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/jeffmay/bson-adt/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jeffmay/bson-adt/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/jeffmay/bson-adt/statuses/c0f850f5fb563cc3e7667776e1eed9808f994f64"}}}}