{"action":"created","comment":{"url":"https://api.github.com/repos/wmde/WikibaseDataModelServices/pulls/comments/36864735","id":36864735,"diff_hunk":"@@ -0,0 +1,59 @@\n+<?php\n+\n+namespace Wikibase\\DataModel\\Services\\Diff;\n+\n+use Diff\\DiffOp\\DiffOp;\n+use Diff\\DiffOpFactory as DiffDiffOpFactory;\n+use InvalidArgumentException;\n+\n+/**\n+ * Class for changes that can be represented as a Diff.\n+ *\n+ * @since 1.1","path":"src/Diff/DiffOpFactory.php","position":null,"original_position":12,"commit_id":"18f167706d6a7d07915bd5e950125870cb6a3acb","original_commit_id":"5ee2ba543014fe9a2b706460b8a0f9ace211a3fd","user":{"login":"JeroenDeDauw","id":146040,"avatar_url":"https://avatars.githubusercontent.com/u/146040?v=3","gravatar_id":"","url":"https://api.github.com/users/JeroenDeDauw","html_url":"https://github.com/JeroenDeDauw","followers_url":"https://api.github.com/users/JeroenDeDauw/followers","following_url":"https://api.github.com/users/JeroenDeDauw/following{/other_user}","gists_url":"https://api.github.com/users/JeroenDeDauw/gists{/gist_id}","starred_url":"https://api.github.com/users/JeroenDeDauw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JeroenDeDauw/subscriptions","organizations_url":"https://api.github.com/users/JeroenDeDauw/orgs","repos_url":"https://api.github.com/users/JeroenDeDauw/repos","events_url":"https://api.github.com/users/JeroenDeDauw/events{/privacy}","received_events_url":"https://api.github.com/users/JeroenDeDauw/received_events","type":"User","site_admin":false},"body":"Updated","created_at":"2015-08-12T14:19:48Z","updated_at":"2015-08-12T14:19:48Z","html_url":"https://github.com/wmde/WikibaseDataModelServices/pull/22#discussion_r36864735","pull_request_url":"https://api.github.com/repos/wmde/WikibaseDataModelServices/pulls/22","_links":{"self":{"href":"https://api.github.com/repos/wmde/WikibaseDataModelServices/pulls/comments/36864735"},"html":{"href":"https://github.com/wmde/WikibaseDataModelServices/pull/22#discussion_r36864735"},"pull_request":{"href":"https://api.github.com/repos/wmde/WikibaseDataModelServices/pulls/22"}}},"pull_request":{"url":"https://api.github.com/repos/wmde/WikibaseDataModelServices/pulls/22","id":41896429,"html_url":"https://github.com/wmde/WikibaseDataModelServices/pull/22","diff_url":"https://github.com/wmde/WikibaseDataModelServices/pull/22.diff","patch_url":"https://github.com/wmde/WikibaseDataModelServices/pull/22.patch","issue_url":"https://api.github.com/repos/wmde/WikibaseDataModelServices/issues/22","number":22,"state":"open","locked":false,"title":"Add DiffOpFactory","user":{"login":"addshore","id":3308769,"avatar_url":"https://avatars.githubusercontent.com/u/3308769?v=3","gravatar_id":"","url":"https://api.github.com/users/addshore","html_url":"https://github.com/addshore","followers_url":"https://api.github.com/users/addshore/followers","following_url":"https://api.github.com/users/addshore/following{/other_user}","gists_url":"https://api.github.com/users/addshore/gists{/gist_id}","starred_url":"https://api.github.com/users/addshore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/addshore/subscriptions","organizations_url":"https://api.github.com/users/addshore/orgs","repos_url":"https://api.github.com/users/addshore/repos","events_url":"https://api.github.com/users/addshore/events{/privacy}","received_events_url":"https://api.github.com/users/addshore/received_events","type":"User","site_admin":false},"body":"This is a CP from WikibaseLib\r\n(with a minor alteration)","created_at":"2015-08-07T14:19:53Z","updated_at":"2015-08-12T14:19:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a45dd66f682c5b446c72ef9bc4016d37b10c2b6b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/wmde/WikibaseDataModelServices/pulls/22/commits","review_comments_url":"https://api.github.com/repos/wmde/WikibaseDataModelServices/pulls/22/comments","review_comment_url":"https://api.github.com/repos/wmde/WikibaseDataModelServices/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wmde/WikibaseDataModelServices/issues/22/comments","statuses_url":"https://api.github.com/repos/wmde/WikibaseDataModelServices/statuses/18f167706d6a7d07915bd5e950125870cb6a3acb","head":{"label":"wmde:diffOpFactory","ref":"diffOpFactory","sha":"18f167706d6a7d07915bd5e950125870cb6a3acb","user":{"login":"wmde","id":664724,"avatar_url":"https://avatars.githubusercontent.com/u/664724?v=3","gravatar_id":"","url":"https://api.github.com/users/wmde","html_url":"https://github.com/wmde","followers_url":"https://api.github.com/users/wmde/followers","following_url":"https://api.github.com/users/wmde/following{/other_user}","gists_url":"https://api.github.com/users/wmde/gists{/gist_id}","starred_url":"https://api.github.com/users/wmde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wmde/subscriptions","organizations_url":"https://api.github.com/users/wmde/orgs","repos_url":"https://api.github.com/users/wmde/repos","events_url":"https://api.github.com/users/wmde/events{/privacy}","received_events_url":"https://api.github.com/users/wmde/received_events","type":"Organization","site_admin":false},"repo":{"id":37833375,"name":"WikibaseDataModelServices","full_name":"wmde/WikibaseDataModelServices","owner":{"login":"wmde","id":664724,"avatar_url":"https://avatars.githubusercontent.com/u/664724?v=3","gravatar_id":"","url":"https://api.github.com/users/wmde","html_url":"https://github.com/wmde","followers_url":"https://api.github.com/users/wmde/followers","following_url":"https://api.github.com/users/wmde/following{/other_user}","gists_url":"https://api.github.com/users/wmde/gists{/gist_id}","starred_url":"https://api.github.com/users/wmde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wmde/subscriptions","organizations_url":"https://api.github.com/users/wmde/orgs","repos_url":"https://api.github.com/users/wmde/repos","events_url":"https://api.github.com/users/wmde/events{/privacy}","received_events_url":"https://api.github.com/users/wmde/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wmde/WikibaseDataModelServices","description":"A collection of services around Wikibase DataModel","fork":false,"url":"https://api.github.com/repos/wmde/WikibaseDataModelServices","forks_url":"https://api.github.com/repos/wmde/WikibaseDataModelServices/forks","keys_url":"https://api.github.com/repos/wmde/WikibaseDataModelServices/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wmde/WikibaseDataModelServices/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wmde/WikibaseDataModelServices/teams","hooks_url":"https://api.github.com/repos/wmde/WikibaseDataModelServices/hooks","issue_events_url":"https://api.github.com/repos/wmde/WikibaseDataModelServices/issues/events{/number}","events_url":"https://api.github.com/repos/wmde/WikibaseDataModelServices/events","assignees_url":"https://api.github.com/repos/wmde/WikibaseDataModelServices/assignees{/user}","branches_url":"https://api.github.com/repos/wmde/WikibaseDataModelServices/branches{/branch}","tags_url":"https://api.github.com/repos/wmde/WikibaseDataModelServices/tags","blobs_url":"https://api.github.com/repos/wmde/WikibaseDataModelServices/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wmde/WikibaseDataModelServices/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wmde/WikibaseDataModelServices/git/refs{/sha}","trees_url":"https://api.github.com/repos/wmde/WikibaseDataModelServices/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wmde/WikibaseDataModelServices/statuses/{sha}","languages_url":"https://api.github.com/repos/wmde/WikibaseDataModelServices/languages","stargazers_url":"https://api.github.com/repos/wmde/WikibaseDataModelServices/stargazers","contributors_url":"https://api.github.com/repos/wmde/WikibaseDataModelServices/contributors","subscribers_url":"https://api.github.com/repos/wmde/WikibaseDataModelServices/subscribers","subscription_url":"https://api.github.com/repos/wmde/WikibaseDataModelServices/subscription","commits_url":"https://api.github.com/repos/wmde/WikibaseDataModelServices/commits{/sha}","git_commits_url":"https://api.github.com/repos/wmde/WikibaseDataModelServices/git/commits{/sha}","comments_url":"https://api.github.com/repos/wmde/WikibaseDataModelServices/comments{/number}","issue_comment_url":"https://api.github.com/repos/wmde/WikibaseDataModelServices/issues/comments{/number}","contents_url":"https://api.github.com/repos/wmde/WikibaseDataModelServices/contents/{+path}","compare_url":"https://api.github.com/repos/wmde/WikibaseDataModelServices/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wmde/WikibaseDataModelServices/merges","archive_url":"https://api.github.com/repos/wmde/WikibaseDataModelServices/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wmde/WikibaseDataModelServices/downloads","issues_url":"https://api.github.com/repos/wmde/WikibaseDataModelServices/issues{/number}","pulls_url":"https://api.github.com/repos/wmde/WikibaseDataModelServices/pulls{/number}","milestones_url":"https://api.github.com/repos/wmde/WikibaseDataModelServices/milestones{/number}","notifications_url":"https://api.github.com/repos/wmde/WikibaseDataModelServices/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wmde/WikibaseDataModelServices/labels{/name}","releases_url":"https://api.github.com/repos/wmde/WikibaseDataModelServices/releases{/id}","created_at":"2015-06-22T01:47:49Z","updated_at":"2015-06-22T02:25:22Z","pushed_at":"2015-08-12T14:19:37Z","git_url":"git://github.com/wmde/WikibaseDataModelServices.git","ssh_url":"git@github.com:wmde/WikibaseDataModelServices.git","clone_url":"https://github.com/wmde/WikibaseDataModelServices.git","svn_url":"https://github.com/wmde/WikibaseDataModelServices","homepage":"http://wikiba.se","size":572,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":7,"forks":0,"open_issues":7,"watchers":0,"default_branch":"master"}},"base":{"label":"wmde:master","ref":"master","sha":"2ff09dc6ff687935acf4f5495aa44078a6997a63","user":{"login":"wmde","id":664724,"avatar_url":"https://avatars.githubusercontent.com/u/664724?v=3","gravatar_id":"","url":"https://api.github.com/users/wmde","html_url":"https://github.com/wmde","followers_url":"https://api.github.com/users/wmde/followers","following_url":"https://api.github.com/users/wmde/following{/other_user}","gists_url":"https://api.github.com/users/wmde/gists{/gist_id}","starred_url":"https://api.github.com/users/wmde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wmde/subscriptions","organizations_url":"https://api.github.com/users/wmde/orgs","repos_url":"https://api.github.com/users/wmde/repos","events_url":"https://api.github.com/users/wmde/events{/privacy}","received_events_url":"https://api.github.com/users/wmde/received_events","type":"Organization","site_admin":false},"repo":{"id":37833375,"name":"WikibaseDataModelServices","full_name":"wmde/WikibaseDataModelServices","owner":{"login":"wmde","id":664724,"avatar_url":"https://avatars.githubusercontent.com/u/664724?v=3","gravatar_id":"","url":"https://api.github.com/users/wmde","html_url":"https://github.com/wmde","followers_url":"https://api.github.com/users/wmde/followers","following_url":"https://api.github.com/users/wmde/following{/other_user}","gists_url":"https://api.github.com/users/wmde/gists{/gist_id}","starred_url":"https://api.github.com/users/wmde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wmde/subscriptions","organizations_url":"https://api.github.com/users/wmde/orgs","repos_url":"https://api.github.com/users/wmde/repos","events_url":"https://api.github.com/users/wmde/events{/privacy}","received_events_url":"https://api.github.com/users/wmde/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wmde/WikibaseDataModelServices","description":"A collection of services around Wikibase DataModel","fork":false,"url":"https://api.github.com/repos/wmde/WikibaseDataModelServices","forks_url":"https://api.github.com/repos/wmde/WikibaseDataModelServices/forks","keys_url":"https://api.github.com/repos/wmde/WikibaseDataModelServices/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wmde/WikibaseDataModelServices/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wmde/WikibaseDataModelServices/teams","hooks_url":"https://api.github.com/repos/wmde/WikibaseDataModelServices/hooks","issue_events_url":"https://api.github.com/repos/wmde/WikibaseDataModelServices/issues/events{/number}","events_url":"https://api.github.com/repos/wmde/WikibaseDataModelServices/events","assignees_url":"https://api.github.com/repos/wmde/WikibaseDataModelServices/assignees{/user}","branches_url":"https://api.github.com/repos/wmde/WikibaseDataModelServices/branches{/branch}","tags_url":"https://api.github.com/repos/wmde/WikibaseDataModelServices/tags","blobs_url":"https://api.github.com/repos/wmde/WikibaseDataModelServices/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wmde/WikibaseDataModelServices/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wmde/WikibaseDataModelServices/git/refs{/sha}","trees_url":"https://api.github.com/repos/wmde/WikibaseDataModelServices/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wmde/WikibaseDataModelServices/statuses/{sha}","languages_url":"https://api.github.com/repos/wmde/WikibaseDataModelServices/languages","stargazers_url":"https://api.github.com/repos/wmde/WikibaseDataModelServices/stargazers","contributors_url":"https://api.github.com/repos/wmde/WikibaseDataModelServices/contributors","subscribers_url":"https://api.github.com/repos/wmde/WikibaseDataModelServices/subscribers","subscription_url":"https://api.github.com/repos/wmde/WikibaseDataModelServices/subscription","commits_url":"https://api.github.com/repos/wmde/WikibaseDataModelServices/commits{/sha}","git_commits_url":"https://api.github.com/repos/wmde/WikibaseDataModelServices/git/commits{/sha}","comments_url":"https://api.github.com/repos/wmde/WikibaseDataModelServices/comments{/number}","issue_comment_url":"https://api.github.com/repos/wmde/WikibaseDataModelServices/issues/comments{/number}","contents_url":"https://api.github.com/repos/wmde/WikibaseDataModelServices/contents/{+path}","compare_url":"https://api.github.com/repos/wmde/WikibaseDataModelServices/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wmde/WikibaseDataModelServices/merges","archive_url":"https://api.github.com/repos/wmde/WikibaseDataModelServices/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wmde/WikibaseDataModelServices/downloads","issues_url":"https://api.github.com/repos/wmde/WikibaseDataModelServices/issues{/number}","pulls_url":"https://api.github.com/repos/wmde/WikibaseDataModelServices/pulls{/number}","milestones_url":"https://api.github.com/repos/wmde/WikibaseDataModelServices/milestones{/number}","notifications_url":"https://api.github.com/repos/wmde/WikibaseDataModelServices/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wmde/WikibaseDataModelServices/labels{/name}","releases_url":"https://api.github.com/repos/wmde/WikibaseDataModelServices/releases{/id}","created_at":"2015-06-22T01:47:49Z","updated_at":"2015-06-22T02:25:22Z","pushed_at":"2015-08-12T14:19:37Z","git_url":"git://github.com/wmde/WikibaseDataModelServices.git","ssh_url":"git@github.com:wmde/WikibaseDataModelServices.git","clone_url":"https://github.com/wmde/WikibaseDataModelServices.git","svn_url":"https://github.com/wmde/WikibaseDataModelServices","homepage":"http://wikiba.se","size":572,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":7,"forks":0,"open_issues":7,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wmde/WikibaseDataModelServices/pulls/22"},"html":{"href":"https://github.com/wmde/WikibaseDataModelServices/pull/22"},"issue":{"href":"https://api.github.com/repos/wmde/WikibaseDataModelServices/issues/22"},"comments":{"href":"https://api.github.com/repos/wmde/WikibaseDataModelServices/issues/22/comments"},"review_comments":{"href":"https://api.github.com/repos/wmde/WikibaseDataModelServices/pulls/22/comments"},"review_comment":{"href":"https://api.github.com/repos/wmde/WikibaseDataModelServices/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wmde/WikibaseDataModelServices/pulls/22/commits"},"statuses":{"href":"https://api.github.com/repos/wmde/WikibaseDataModelServices/statuses/18f167706d6a7d07915bd5e950125870cb6a3acb"}}}}