{"action":"created","comment":{"url":"https://api.github.com/repos/Sage-Bionetworks/Synapse-Repository-Services/pulls/comments/29883489","id":29883489,"diff_hunk":"@@ -0,0 +1,105 @@\n+package org.sagebionetworks.client;\n+\n+import java.io.File;\n+import java.io.IOException;\n+import java.net.URL;\n+\n+import org.apache.http.HttpResponse;\n+import org.apache.http.HttpStatus;\n+import org.apache.http.client.ClientProtocolException;\n+import org.apache.http.client.methods.HttpPut;\n+import org.apache.http.entity.ByteArrayEntity;\n+import org.apache.http.util.EntityUtils;\n+import org.sagebionetworks.client.exceptions.SynapseClientException;\n+import org.sagebionetworks.client.exceptions.SynapseException;\n+import org.sagebionetworks.client.exceptions.SynapseServerException;\n+\n+public class HttpClientHelper {","path":"lib/lib-javaclient/src/main/java/org/sagebionetworks/client/HttpClientHelper.java","position":17,"original_position":17,"commit_id":"8a266ed537de5281b6b18e39c721e7237f712e31","original_commit_id":"8a266ed537de5281b6b18e39c721e7237f712e31","user":{"login":"brucehoff","id":1627352,"avatar_url":"https://avatars.githubusercontent.com/u/1627352?v=3","gravatar_id":"","url":"https://api.github.com/users/brucehoff","html_url":"https://github.com/brucehoff","followers_url":"https://api.github.com/users/brucehoff/followers","following_url":"https://api.github.com/users/brucehoff/following{/other_user}","gists_url":"https://api.github.com/users/brucehoff/gists{/gist_id}","starred_url":"https://api.github.com/users/brucehoff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brucehoff/subscriptions","organizations_url":"https://api.github.com/users/brucehoff/orgs","repos_url":"https://api.github.com/users/brucehoff/repos","events_url":"https://api.github.com/users/brucehoff/events{/privacy}","received_events_url":"https://api.github.com/users/brucehoff/received_events","type":"User","site_admin":false},"body":"comment","created_at":"2015-05-07T18:49:56Z","updated_at":"2015-05-07T18:49:56Z","html_url":"https://github.com/Sage-Bionetworks/Synapse-Repository-Services/pull/1869#discussion_r29883489","pull_request_url":"https://api.github.com/repos/Sage-Bionetworks/Synapse-Repository-Services/pulls/1869","_links":{"self":{"href":"https://api.github.com/repos/Sage-Bionetworks/Synapse-Repository-Services/pulls/comments/29883489"},"html":{"href":"https://github.com/Sage-Bionetworks/Synapse-Repository-Services/pull/1869#discussion_r29883489"},"pull_request":{"href":"https://api.github.com/repos/Sage-Bionetworks/Synapse-Repository-Services/pulls/1869"}}},"pull_request":{"url":"https://api.github.com/repos/Sage-Bionetworks/Synapse-Repository-Services/pulls/1869","id":34881830,"html_url":"https://github.com/Sage-Bionetworks/Synapse-Repository-Services/pull/1869","diff_url":"https://github.com/Sage-Bionetworks/Synapse-Repository-Services/pull/1869.diff","patch_url":"https://github.com/Sage-Bionetworks/Synapse-Repository-Services/pull/1869.patch","issue_url":"https://api.github.com/repos/Sage-Bionetworks/Synapse-Repository-Services/issues/1869","number":1869,"state":"open","locked":false,"title":"Plfm 3310a","user":{"login":"brucehoff","id":1627352,"avatar_url":"https://avatars.githubusercontent.com/u/1627352?v=3","gravatar_id":"","url":"https://api.github.com/users/brucehoff","html_url":"https://github.com/brucehoff","followers_url":"https://api.github.com/users/brucehoff/followers","following_url":"https://api.github.com/users/brucehoff/following{/other_user}","gists_url":"https://api.github.com/users/brucehoff/gists{/gist_id}","starred_url":"https://api.github.com/users/brucehoff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brucehoff/subscriptions","organizations_url":"https://api.github.com/users/brucehoff/orgs","repos_url":"https://api.github.com/users/brucehoff/repos","events_url":"https://api.github.com/users/brucehoff/events{/privacy}","received_events_url":"https://api.github.com/users/brucehoff/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-05-07T04:09:47Z","updated_at":"2015-05-07T18:49:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"76bc7213d840f97e196cad2701230a8aea00df48","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Sage-Bionetworks/Synapse-Repository-Services/pulls/1869/commits","review_comments_url":"https://api.github.com/repos/Sage-Bionetworks/Synapse-Repository-Services/pulls/1869/comments","review_comment_url":"https://api.github.com/repos/Sage-Bionetworks/Synapse-Repository-Services/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Sage-Bionetworks/Synapse-Repository-Services/issues/1869/comments","statuses_url":"https://api.github.com/repos/Sage-Bionetworks/Synapse-Repository-Services/statuses/8a266ed537de5281b6b18e39c721e7237f712e31","head":{"label":"brucehoff:PLFM-3310a","ref":"PLFM-3310a","sha":"8a266ed537de5281b6b18e39c721e7237f712e31","user":{"login":"brucehoff","id":1627352,"avatar_url":"https://avatars.githubusercontent.com/u/1627352?v=3","gravatar_id":"","url":"https://api.github.com/users/brucehoff","html_url":"https://github.com/brucehoff","followers_url":"https://api.github.com/users/brucehoff/followers","following_url":"https://api.github.com/users/brucehoff/following{/other_user}","gists_url":"https://api.github.com/users/brucehoff/gists{/gist_id}","starred_url":"https://api.github.com/users/brucehoff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brucehoff/subscriptions","organizations_url":"https://api.github.com/users/brucehoff/orgs","repos_url":"https://api.github.com/users/brucehoff/repos","events_url":"https://api.github.com/users/brucehoff/events{/privacy}","received_events_url":"https://api.github.com/users/brucehoff/received_events","type":"User","site_admin":false},"repo":{"id":4721584,"name":"Synapse-Repository-Services","full_name":"brucehoff/Synapse-Repository-Services","owner":{"login":"brucehoff","id":1627352,"avatar_url":"https://avatars.githubusercontent.com/u/1627352?v=3","gravatar_id":"","url":"https://api.github.com/users/brucehoff","html_url":"https://github.com/brucehoff","followers_url":"https://api.github.com/users/brucehoff/followers","following_url":"https://api.github.com/users/brucehoff/following{/other_user}","gists_url":"https://api.github.com/users/brucehoff/gists{/gist_id}","starred_url":"https://api.github.com/users/brucehoff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brucehoff/subscriptions","organizations_url":"https://api.github.com/users/brucehoff/orgs","repos_url":"https://api.github.com/users/brucehoff/repos","events_url":"https://api.github.com/users/brucehoff/events{/privacy}","received_events_url":"https://api.github.com/users/brucehoff/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/brucehoff/Synapse-Repository-Services","description":"The Synapse Repository Services project is the home of the JSON REST web services for Synapse.","fork":true,"url":"https://api.github.com/repos/brucehoff/Synapse-Repository-Services","forks_url":"https://api.github.com/repos/brucehoff/Synapse-Repository-Services/forks","keys_url":"https://api.github.com/repos/brucehoff/Synapse-Repository-Services/keys{/key_id}","collaborators_url":"https://api.github.com/repos/brucehoff/Synapse-Repository-Services/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/brucehoff/Synapse-Repository-Services/teams","hooks_url":"https://api.github.com/repos/brucehoff/Synapse-Repository-Services/hooks","issue_events_url":"https://api.github.com/repos/brucehoff/Synapse-Repository-Services/issues/events{/number}","events_url":"https://api.github.com/repos/brucehoff/Synapse-Repository-Services/events","assignees_url":"https://api.github.com/repos/brucehoff/Synapse-Repository-Services/assignees{/user}","branches_url":"https://api.github.com/repos/brucehoff/Synapse-Repository-Services/branches{/branch}","tags_url":"https://api.github.com/repos/brucehoff/Synapse-Repository-Services/tags","blobs_url":"https://api.github.com/repos/brucehoff/Synapse-Repository-Services/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/brucehoff/Synapse-Repository-Services/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/brucehoff/Synapse-Repository-Services/git/refs{/sha}","trees_url":"https://api.github.com/repos/brucehoff/Synapse-Repository-Services/git/trees{/sha}","statuses_url":"https://api.github.com/repos/brucehoff/Synapse-Repository-Services/statuses/{sha}","languages_url":"https://api.github.com/repos/brucehoff/Synapse-Repository-Services/languages","stargazers_url":"https://api.github.com/repos/brucehoff/Synapse-Repository-Services/stargazers","contributors_url":"https://api.github.com/repos/brucehoff/Synapse-Repository-Services/contributors","subscribers_url":"https://api.github.com/repos/brucehoff/Synapse-Repository-Services/subscribers","subscription_url":"https://api.github.com/repos/brucehoff/Synapse-Repository-Services/subscription","commits_url":"https://api.github.com/repos/brucehoff/Synapse-Repository-Services/commits{/sha}","git_commits_url":"https://api.github.com/repos/brucehoff/Synapse-Repository-Services/git/commits{/sha}","comments_url":"https://api.github.com/repos/brucehoff/Synapse-Repository-Services/comments{/number}","issue_comment_url":"https://api.github.com/repos/brucehoff/Synapse-Repository-Services/issues/comments{/number}","contents_url":"https://api.github.com/repos/brucehoff/Synapse-Repository-Services/contents/{+path}","compare_url":"https://api.github.com/repos/brucehoff/Synapse-Repository-Services/compare/{base}...{head}","merges_url":"https://api.github.com/repos/brucehoff/Synapse-Repository-Services/merges","archive_url":"https://api.github.com/repos/brucehoff/Synapse-Repository-Services/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/brucehoff/Synapse-Repository-Services/downloads","issues_url":"https://api.github.com/repos/brucehoff/Synapse-Repository-Services/issues{/number}","pulls_url":"https://api.github.com/repos/brucehoff/Synapse-Repository-Services/pulls{/number}","milestones_url":"https://api.github.com/repos/brucehoff/Synapse-Repository-Services/milestones{/number}","notifications_url":"https://api.github.com/repos/brucehoff/Synapse-Repository-Services/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/brucehoff/Synapse-Repository-Services/labels{/name}","releases_url":"https://api.github.com/repos/brucehoff/Synapse-Repository-Services/releases{/id}","created_at":"2012-06-20T02:32:01Z","updated_at":"2014-06-23T20:02:53Z","pushed_at":"2015-05-07T18:05:38Z","git_url":"git://github.com/brucehoff/Synapse-Repository-Services.git","ssh_url":"git@github.com:brucehoff/Synapse-Repository-Services.git","clone_url":"https://github.com/brucehoff/Synapse-Repository-Services.git","svn_url":"https://github.com/brucehoff/Synapse-Repository-Services","homepage":null,"size":56696,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"Sage-Bionetworks:develop","ref":"develop","sha":"e371c5b23bded53a491f0152f444c6f8147de4da","user":{"login":"Sage-Bionetworks","id":1250897,"avatar_url":"https://avatars.githubusercontent.com/u/1250897?v=3","gravatar_id":"","url":"https://api.github.com/users/Sage-Bionetworks","html_url":"https://github.com/Sage-Bionetworks","followers_url":"https://api.github.com/users/Sage-Bionetworks/followers","following_url":"https://api.github.com/users/Sage-Bionetworks/following{/other_user}","gists_url":"https://api.github.com/users/Sage-Bionetworks/gists{/gist_id}","starred_url":"https://api.github.com/users/Sage-Bionetworks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sage-Bionetworks/subscriptions","organizations_url":"https://api.github.com/users/Sage-Bionetworks/orgs","repos_url":"https://api.github.com/users/Sage-Bionetworks/repos","events_url":"https://api.github.com/users/Sage-Bionetworks/events{/privacy}","received_events_url":"https://api.github.com/users/Sage-Bionetworks/received_events","type":"Organization","site_admin":false},"repo":{"id":4400676,"name":"Synapse-Repository-Services","full_name":"Sage-Bionetworks/Synapse-Repository-Services","owner":{"login":"Sage-Bionetworks","id":1250897,"avatar_url":"https://avatars.githubusercontent.com/u/1250897?v=3","gravatar_id":"","url":"https://api.github.com/users/Sage-Bionetworks","html_url":"https://github.com/Sage-Bionetworks","followers_url":"https://api.github.com/users/Sage-Bionetworks/followers","following_url":"https://api.github.com/users/Sage-Bionetworks/following{/other_user}","gists_url":"https://api.github.com/users/Sage-Bionetworks/gists{/gist_id}","starred_url":"https://api.github.com/users/Sage-Bionetworks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sage-Bionetworks/subscriptions","organizations_url":"https://api.github.com/users/Sage-Bionetworks/orgs","repos_url":"https://api.github.com/users/Sage-Bionetworks/repos","events_url":"https://api.github.com/users/Sage-Bionetworks/events{/privacy}","received_events_url":"https://api.github.com/users/Sage-Bionetworks/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Sage-Bionetworks/Synapse-Repository-Services","description":"The Synapse Repository Services project is the home of the JSON REST web services for Synapse.","fork":false,"url":"https://api.github.com/repos/Sage-Bionetworks/Synapse-Repository-Services","forks_url":"https://api.github.com/repos/Sage-Bionetworks/Synapse-Repository-Services/forks","keys_url":"https://api.github.com/repos/Sage-Bionetworks/Synapse-Repository-Services/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Sage-Bionetworks/Synapse-Repository-Services/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Sage-Bionetworks/Synapse-Repository-Services/teams","hooks_url":"https://api.github.com/repos/Sage-Bionetworks/Synapse-Repository-Services/hooks","issue_events_url":"https://api.github.com/repos/Sage-Bionetworks/Synapse-Repository-Services/issues/events{/number}","events_url":"https://api.github.com/repos/Sage-Bionetworks/Synapse-Repository-Services/events","assignees_url":"https://api.github.com/repos/Sage-Bionetworks/Synapse-Repository-Services/assignees{/user}","branches_url":"https://api.github.com/repos/Sage-Bionetworks/Synapse-Repository-Services/branches{/branch}","tags_url":"https://api.github.com/repos/Sage-Bionetworks/Synapse-Repository-Services/tags","blobs_url":"https://api.github.com/repos/Sage-Bionetworks/Synapse-Repository-Services/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Sage-Bionetworks/Synapse-Repository-Services/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Sage-Bionetworks/Synapse-Repository-Services/git/refs{/sha}","trees_url":"https://api.github.com/repos/Sage-Bionetworks/Synapse-Repository-Services/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Sage-Bionetworks/Synapse-Repository-Services/statuses/{sha}","languages_url":"https://api.github.com/repos/Sage-Bionetworks/Synapse-Repository-Services/languages","stargazers_url":"https://api.github.com/repos/Sage-Bionetworks/Synapse-Repository-Services/stargazers","contributors_url":"https://api.github.com/repos/Sage-Bionetworks/Synapse-Repository-Services/contributors","subscribers_url":"https://api.github.com/repos/Sage-Bionetworks/Synapse-Repository-Services/subscribers","subscription_url":"https://api.github.com/repos/Sage-Bionetworks/Synapse-Repository-Services/subscription","commits_url":"https://api.github.com/repos/Sage-Bionetworks/Synapse-Repository-Services/commits{/sha}","git_commits_url":"https://api.github.com/repos/Sage-Bionetworks/Synapse-Repository-Services/git/commits{/sha}","comments_url":"https://api.github.com/repos/Sage-Bionetworks/Synapse-Repository-Services/comments{/number}","issue_comment_url":"https://api.github.com/repos/Sage-Bionetworks/Synapse-Repository-Services/issues/comments{/number}","contents_url":"https://api.github.com/repos/Sage-Bionetworks/Synapse-Repository-Services/contents/{+path}","compare_url":"https://api.github.com/repos/Sage-Bionetworks/Synapse-Repository-Services/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Sage-Bionetworks/Synapse-Repository-Services/merges","archive_url":"https://api.github.com/repos/Sage-Bionetworks/Synapse-Repository-Services/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Sage-Bionetworks/Synapse-Repository-Services/downloads","issues_url":"https://api.github.com/repos/Sage-Bionetworks/Synapse-Repository-Services/issues{/number}","pulls_url":"https://api.github.com/repos/Sage-Bionetworks/Synapse-Repository-Services/pulls{/number}","milestones_url":"https://api.github.com/repos/Sage-Bionetworks/Synapse-Repository-Services/milestones{/number}","notifications_url":"https://api.github.com/repos/Sage-Bionetworks/Synapse-Repository-Services/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Sage-Bionetworks/Synapse-Repository-Services/labels{/name}","releases_url":"https://api.github.com/repos/Sage-Bionetworks/Synapse-Repository-Services/releases{/id}","created_at":"2012-05-22T01:06:50Z","updated_at":"2015-05-07T18:20:40Z","pushed_at":"2015-05-07T18:20:59Z","git_url":"git://github.com/Sage-Bionetworks/Synapse-Repository-Services.git","ssh_url":"git@github.com:Sage-Bionetworks/Synapse-Repository-Services.git","clone_url":"https://github.com/Sage-Bionetworks/Synapse-Repository-Services.git","svn_url":"https://github.com/Sage-Bionetworks/Synapse-Repository-Services","homepage":null,"size":59677,"stargazers_count":17,"watchers_count":17,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":24,"mirror_url":null,"open_issues_count":7,"forks":24,"open_issues":7,"watchers":17,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/Sage-Bionetworks/Synapse-Repository-Services/pulls/1869"},"html":{"href":"https://github.com/Sage-Bionetworks/Synapse-Repository-Services/pull/1869"},"issue":{"href":"https://api.github.com/repos/Sage-Bionetworks/Synapse-Repository-Services/issues/1869"},"comments":{"href":"https://api.github.com/repos/Sage-Bionetworks/Synapse-Repository-Services/issues/1869/comments"},"review_comments":{"href":"https://api.github.com/repos/Sage-Bionetworks/Synapse-Repository-Services/pulls/1869/comments"},"review_comment":{"href":"https://api.github.com/repos/Sage-Bionetworks/Synapse-Repository-Services/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Sage-Bionetworks/Synapse-Repository-Services/pulls/1869/commits"},"statuses":{"href":"https://api.github.com/repos/Sage-Bionetworks/Synapse-Repository-Services/statuses/8a266ed537de5281b6b18e39c721e7237f712e31"}}}}