{"action":"created","comment":{"url":"https://api.github.com/repos/facebook/stetho/pulls/comments/28053305","id":28053305,"diff_hunk":"@@ -0,0 +1,112 @@\n+package com.facebook.stetho.sample;\n+\n+import android.content.ContentResolver;\n+import android.database.Cursor;\n+import com.facebook.stetho.dumpapp.DumpException;\n+import com.facebook.stetho.dumpapp.DumperContext;\n+import com.facebook.stetho.dumpapp.DumperPlugin;\n+\n+import java.io.PrintStream;\n+import java.util.List;\n+\n+public class APODContentProviderDumper implements DumperPlugin {\n+\n+  private static final String NAME = \"content\";\n+\n+  private static final String CMD_LIST = \"list\";\n+  private static final String USAGE_LIST = CMD_LIST;\n+\n+  private static final String CMD_CLEAR = \"clear\";\n+  private static final String USAGE_CLEAR = CMD_CLEAR;\n+\n+  private static final String CMD_REMOVE_ROW = \"delete\";\n+  private static final String USAGE_REMOVE_ROW = CMD_REMOVE_ROW + \" <row id>\";\n+\n+  private final ContentResolver mContentResolver;\n+\n+  public APODContentProviderDumper(ContentResolver contentResolver) {\n+    mContentResolver = contentResolver;\n+  }\n+\n+  @Override\n+  public String getName() {\n+    return NAME;\n+  }\n+\n+  @Override\n+  public void dump(DumperContext dumpContext) throws DumpException {\n+    PrintStream writer = dumpContext.getStdout();\n+    List<String> rawArgs = dumpContext.getArgsAsList();\n+    if (rawArgs.size() == 0) {\n+      usage(writer);\n+      return;\n+    }\n+    String command = rawArgs.get(0);","path":"stetho-sample/src/debug/java/com/facebook/stetho/sample/APODContentProviderDumper.java","position":44,"original_position":44,"commit_id":"6e82bc82dc283a735256dc5d3a9c28a33ffc6b74","original_commit_id":"6e82bc82dc283a735256dc5d3a9c28a33ffc6b74","user":{"login":"longinoa","id":3724320,"avatar_url":"https://avatars.githubusercontent.com/u/3724320?v=3","gravatar_id":"","url":"https://api.github.com/users/longinoa","html_url":"https://github.com/longinoa","followers_url":"https://api.github.com/users/longinoa/followers","following_url":"https://api.github.com/users/longinoa/following{/other_user}","gists_url":"https://api.github.com/users/longinoa/gists{/gist_id}","starred_url":"https://api.github.com/users/longinoa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/longinoa/subscriptions","organizations_url":"https://api.github.com/users/longinoa/orgs","repos_url":"https://api.github.com/users/longinoa/repos","events_url":"https://api.github.com/users/longinoa/events{/privacy}","received_events_url":"https://api.github.com/users/longinoa/received_events","type":"User","site_admin":false},"body":"done","created_at":"2015-04-09T11:17:01Z","updated_at":"2015-04-09T11:17:01Z","html_url":"https://github.com/facebook/stetho/pull/144#discussion_r28053305","pull_request_url":"https://api.github.com/repos/facebook/stetho/pulls/144","_links":{"self":{"href":"https://api.github.com/repos/facebook/stetho/pulls/comments/28053305"},"html":{"href":"https://github.com/facebook/stetho/pull/144#discussion_r28053305"},"pull_request":{"href":"https://api.github.com/repos/facebook/stetho/pulls/144"}}},"pull_request":{"url":"https://api.github.com/repos/facebook/stetho/pulls/144","id":32811089,"html_url":"https://github.com/facebook/stetho/pull/144","diff_url":"https://github.com/facebook/stetho/pull/144.diff","patch_url":"https://github.com/facebook/stetho/pull/144.patch","issue_url":"https://api.github.com/repos/facebook/stetho/issues/144","number":144,"state":"open","locked":false,"title":"Add content provider dumper","user":{"login":"longinoa","id":3724320,"avatar_url":"https://avatars.githubusercontent.com/u/3724320?v=3","gravatar_id":"","url":"https://api.github.com/users/longinoa","html_url":"https://github.com/longinoa","followers_url":"https://api.github.com/users/longinoa/followers","following_url":"https://api.github.com/users/longinoa/following{/other_user}","gists_url":"https://api.github.com/users/longinoa/gists{/gist_id}","starred_url":"https://api.github.com/users/longinoa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/longinoa/subscriptions","organizations_url":"https://api.github.com/users/longinoa/orgs","repos_url":"https://api.github.com/users/longinoa/repos","events_url":"https://api.github.com/users/longinoa/events{/privacy}","received_events_url":"https://api.github.com/users/longinoa/received_events","type":"User","site_admin":false},"body":"This adds a basic ContentProvider dumper for the APODContentProvider.\r\nIt supports clear/delete/list.\r\nSee https://gist.github.com/a351d105269845215c77 for sample output\r\n\r\nIt also fixes the APODContentProvider where it was not calling\r\nnotifyChange() on various write paths.","created_at":"2015-04-07T22:12:56Z","updated_at":"2015-04-09T11:17:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"68bb739db15978c30235c0b12ed52d70ee8af5d0","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/facebook/stetho/pulls/144/commits","review_comments_url":"https://api.github.com/repos/facebook/stetho/pulls/144/comments","review_comment_url":"https://api.github.com/repos/facebook/stetho/pulls/comments{/number}","comments_url":"https://api.github.com/repos/facebook/stetho/issues/144/comments","statuses_url":"https://api.github.com/repos/facebook/stetho/statuses/6e82bc82dc283a735256dc5d3a9c28a33ffc6b74","head":{"label":"longinoa:dumpers","ref":"dumpers","sha":"6e82bc82dc283a735256dc5d3a9c28a33ffc6b74","user":{"login":"longinoa","id":3724320,"avatar_url":"https://avatars.githubusercontent.com/u/3724320?v=3","gravatar_id":"","url":"https://api.github.com/users/longinoa","html_url":"https://github.com/longinoa","followers_url":"https://api.github.com/users/longinoa/followers","following_url":"https://api.github.com/users/longinoa/following{/other_user}","gists_url":"https://api.github.com/users/longinoa/gists{/gist_id}","starred_url":"https://api.github.com/users/longinoa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/longinoa/subscriptions","organizations_url":"https://api.github.com/users/longinoa/orgs","repos_url":"https://api.github.com/users/longinoa/repos","events_url":"https://api.github.com/users/longinoa/events{/privacy}","received_events_url":"https://api.github.com/users/longinoa/received_events","type":"User","site_admin":false},"repo":{"id":30987314,"name":"stetho","full_name":"longinoa/stetho","owner":{"login":"longinoa","id":3724320,"avatar_url":"https://avatars.githubusercontent.com/u/3724320?v=3","gravatar_id":"","url":"https://api.github.com/users/longinoa","html_url":"https://github.com/longinoa","followers_url":"https://api.github.com/users/longinoa/followers","following_url":"https://api.github.com/users/longinoa/following{/other_user}","gists_url":"https://api.github.com/users/longinoa/gists{/gist_id}","starred_url":"https://api.github.com/users/longinoa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/longinoa/subscriptions","organizations_url":"https://api.github.com/users/longinoa/orgs","repos_url":"https://api.github.com/users/longinoa/repos","events_url":"https://api.github.com/users/longinoa/events{/privacy}","received_events_url":"https://api.github.com/users/longinoa/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/longinoa/stetho","description":"Stetho is a debug bridge for Android applications, enabling the powerful Chrome Developer Tools and much more.","fork":true,"url":"https://api.github.com/repos/longinoa/stetho","forks_url":"https://api.github.com/repos/longinoa/stetho/forks","keys_url":"https://api.github.com/repos/longinoa/stetho/keys{/key_id}","collaborators_url":"https://api.github.com/repos/longinoa/stetho/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/longinoa/stetho/teams","hooks_url":"https://api.github.com/repos/longinoa/stetho/hooks","issue_events_url":"https://api.github.com/repos/longinoa/stetho/issues/events{/number}","events_url":"https://api.github.com/repos/longinoa/stetho/events","assignees_url":"https://api.github.com/repos/longinoa/stetho/assignees{/user}","branches_url":"https://api.github.com/repos/longinoa/stetho/branches{/branch}","tags_url":"https://api.github.com/repos/longinoa/stetho/tags","blobs_url":"https://api.github.com/repos/longinoa/stetho/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/longinoa/stetho/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/longinoa/stetho/git/refs{/sha}","trees_url":"https://api.github.com/repos/longinoa/stetho/git/trees{/sha}","statuses_url":"https://api.github.com/repos/longinoa/stetho/statuses/{sha}","languages_url":"https://api.github.com/repos/longinoa/stetho/languages","stargazers_url":"https://api.github.com/repos/longinoa/stetho/stargazers","contributors_url":"https://api.github.com/repos/longinoa/stetho/contributors","subscribers_url":"https://api.github.com/repos/longinoa/stetho/subscribers","subscription_url":"https://api.github.com/repos/longinoa/stetho/subscription","commits_url":"https://api.github.com/repos/longinoa/stetho/commits{/sha}","git_commits_url":"https://api.github.com/repos/longinoa/stetho/git/commits{/sha}","comments_url":"https://api.github.com/repos/longinoa/stetho/comments{/number}","issue_comment_url":"https://api.github.com/repos/longinoa/stetho/issues/comments{/number}","contents_url":"https://api.github.com/repos/longinoa/stetho/contents/{+path}","compare_url":"https://api.github.com/repos/longinoa/stetho/compare/{base}...{head}","merges_url":"https://api.github.com/repos/longinoa/stetho/merges","archive_url":"https://api.github.com/repos/longinoa/stetho/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/longinoa/stetho/downloads","issues_url":"https://api.github.com/repos/longinoa/stetho/issues{/number}","pulls_url":"https://api.github.com/repos/longinoa/stetho/pulls{/number}","milestones_url":"https://api.github.com/repos/longinoa/stetho/milestones{/number}","notifications_url":"https://api.github.com/repos/longinoa/stetho/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/longinoa/stetho/labels{/name}","releases_url":"https://api.github.com/repos/longinoa/stetho/releases{/id}","created_at":"2015-02-18T21:14:49Z","updated_at":"2015-03-11T22:42:13Z","pushed_at":"2015-04-07T22:12:28Z","git_url":"git://github.com/longinoa/stetho.git","ssh_url":"git@github.com:longinoa/stetho.git","clone_url":"https://github.com/longinoa/stetho.git","svn_url":"https://github.com/longinoa/stetho","homepage":"http://facebook.github.io/stetho/","size":875,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"facebook:master","ref":"master","sha":"94866292acd4d0f7189ff1213c6d38927afc3494","user":{"login":"facebook","id":69631,"avatar_url":"https://avatars.githubusercontent.com/u/69631?v=3","gravatar_id":"","url":"https://api.github.com/users/facebook","html_url":"https://github.com/facebook","followers_url":"https://api.github.com/users/facebook/followers","following_url":"https://api.github.com/users/facebook/following{/other_user}","gists_url":"https://api.github.com/users/facebook/gists{/gist_id}","starred_url":"https://api.github.com/users/facebook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/facebook/subscriptions","organizations_url":"https://api.github.com/users/facebook/orgs","repos_url":"https://api.github.com/users/facebook/repos","events_url":"https://api.github.com/users/facebook/events{/privacy}","received_events_url":"https://api.github.com/users/facebook/received_events","type":"Organization","site_admin":false},"repo":{"id":29703871,"name":"stetho","full_name":"facebook/stetho","owner":{"login":"facebook","id":69631,"avatar_url":"https://avatars.githubusercontent.com/u/69631?v=3","gravatar_id":"","url":"https://api.github.com/users/facebook","html_url":"https://github.com/facebook","followers_url":"https://api.github.com/users/facebook/followers","following_url":"https://api.github.com/users/facebook/following{/other_user}","gists_url":"https://api.github.com/users/facebook/gists{/gist_id}","starred_url":"https://api.github.com/users/facebook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/facebook/subscriptions","organizations_url":"https://api.github.com/users/facebook/orgs","repos_url":"https://api.github.com/users/facebook/repos","events_url":"https://api.github.com/users/facebook/events{/privacy}","received_events_url":"https://api.github.com/users/facebook/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/facebook/stetho","description":"Stetho is a debug bridge for Android applications, enabling the powerful Chrome Developer Tools and much more.","fork":false,"url":"https://api.github.com/repos/facebook/stetho","forks_url":"https://api.github.com/repos/facebook/stetho/forks","keys_url":"https://api.github.com/repos/facebook/stetho/keys{/key_id}","collaborators_url":"https://api.github.com/repos/facebook/stetho/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/facebook/stetho/teams","hooks_url":"https://api.github.com/repos/facebook/stetho/hooks","issue_events_url":"https://api.github.com/repos/facebook/stetho/issues/events{/number}","events_url":"https://api.github.com/repos/facebook/stetho/events","assignees_url":"https://api.github.com/repos/facebook/stetho/assignees{/user}","branches_url":"https://api.github.com/repos/facebook/stetho/branches{/branch}","tags_url":"https://api.github.com/repos/facebook/stetho/tags","blobs_url":"https://api.github.com/repos/facebook/stetho/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/facebook/stetho/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/facebook/stetho/git/refs{/sha}","trees_url":"https://api.github.com/repos/facebook/stetho/git/trees{/sha}","statuses_url":"https://api.github.com/repos/facebook/stetho/statuses/{sha}","languages_url":"https://api.github.com/repos/facebook/stetho/languages","stargazers_url":"https://api.github.com/repos/facebook/stetho/stargazers","contributors_url":"https://api.github.com/repos/facebook/stetho/contributors","subscribers_url":"https://api.github.com/repos/facebook/stetho/subscribers","subscription_url":"https://api.github.com/repos/facebook/stetho/subscription","commits_url":"https://api.github.com/repos/facebook/stetho/commits{/sha}","git_commits_url":"https://api.github.com/repos/facebook/stetho/git/commits{/sha}","comments_url":"https://api.github.com/repos/facebook/stetho/comments{/number}","issue_comment_url":"https://api.github.com/repos/facebook/stetho/issues/comments{/number}","contents_url":"https://api.github.com/repos/facebook/stetho/contents/{+path}","compare_url":"https://api.github.com/repos/facebook/stetho/compare/{base}...{head}","merges_url":"https://api.github.com/repos/facebook/stetho/merges","archive_url":"https://api.github.com/repos/facebook/stetho/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/facebook/stetho/downloads","issues_url":"https://api.github.com/repos/facebook/stetho/issues{/number}","pulls_url":"https://api.github.com/repos/facebook/stetho/pulls{/number}","milestones_url":"https://api.github.com/repos/facebook/stetho/milestones{/number}","notifications_url":"https://api.github.com/repos/facebook/stetho/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/facebook/stetho/labels{/name}","releases_url":"https://api.github.com/repos/facebook/stetho/releases{/id}","created_at":"2015-01-22T22:34:10Z","updated_at":"2015-04-09T10:07:41Z","pushed_at":"2015-04-08T21:18:26Z","git_url":"git://github.com/facebook/stetho.git","ssh_url":"git@github.com:facebook/stetho.git","clone_url":"https://github.com/facebook/stetho.git","svn_url":"https://github.com/facebook/stetho","homepage":"http://facebook.github.io/stetho/","size":2464,"stargazers_count":2261,"watchers_count":2261,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":143,"mirror_url":null,"open_issues_count":24,"forks":143,"open_issues":24,"watchers":2261,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/facebook/stetho/pulls/144"},"html":{"href":"https://github.com/facebook/stetho/pull/144"},"issue":{"href":"https://api.github.com/repos/facebook/stetho/issues/144"},"comments":{"href":"https://api.github.com/repos/facebook/stetho/issues/144/comments"},"review_comments":{"href":"https://api.github.com/repos/facebook/stetho/pulls/144/comments"},"review_comment":{"href":"https://api.github.com/repos/facebook/stetho/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/facebook/stetho/pulls/144/commits"},"statuses":{"href":"https://api.github.com/repos/facebook/stetho/statuses/6e82bc82dc283a735256dc5d3a9c28a33ffc6b74"}}}}