{"action":"created","comment":{"url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/pulls/comments/53270085","id":53270085,"diff_hunk":"@@ -0,0 +1,249 @@\n+package com.google.gcloud.storage.testing;\n+\n+import com.google.api.services.storage.model.Bucket;\n+import com.google.api.services.storage.model.StorageObject;\n+import com.google.gcloud.spi.StorageRpc;\n+import com.google.gcloud.storage.StorageException;\n+\n+import sun.reflect.generics.reflectiveObjects.NotImplementedException;\n+\n+import java.io.IOException;\n+import java.io.InputStream;\n+import java.math.BigInteger;\n+import java.nio.file.FileAlreadyExistsException;\n+import java.nio.file.NoSuchFileException;\n+import java.util.Arrays;\n+import java.util.HashMap;\n+import java.util.Map;\n+\n+/**\n+ * A bare-bones in-memory implementation of Storage, meant for testing.\n+ * See LocalGcsHelper.\n+ *\n+ * This class is NOT thread-safe.\n+ */\n+public class FakeStorageRpc implements StorageRpc {\n+\n+  // fullname -> metadata\n+  Map<String, StorageObject> stuff = new HashMap<>();\n+  // fullname -> contents\n+  Map<String, byte[]> contents = new HashMap<>();\n+\n+\n+  // remove all files\n+  void reset() {\n+    stuff = new HashMap<>();\n+    contents = new HashMap<>();\n+  }\n+\n+  @Override\n+  public Bucket create(Bucket bucket, Map<Option, ?> options) throws StorageException {\n+    return null;\n+  }\n+\n+  @Override\n+  public StorageObject create(StorageObject object, InputStream content, Map<Option, ?> options)\n+      throws StorageException {\n+    String key = fullname(object);\n+    stuff.put(key, object);\n+    try {\n+      contents.put(key, com.google.common.io.ByteStreams.toByteArray(content));\n+    } catch (IOException e) {\n+      throw new StorageException(e);\n+    }\n+    // TODO: crc, etc\n+    return object;\n+  }\n+\n+  @Override\n+  public Tuple<String, Iterable<Bucket>> list(Map<Option, ?> options) throws StorageException {\n+    return null;\n+  }\n+\n+  @Override\n+  public Tuple<String, Iterable<StorageObject>> list(String bucket, Map<Option, ?> options)\n+      throws StorageException {\n+    if (!options.isEmpty()) throw new NotImplementedException();\n+    return null;\n+  }\n+\n+  /**\n+   * Returns the requested bucket or {@code null} if not found.\n+   *\n+   * @throws StorageException upon failure\n+   */\n+  @Override\n+  public Bucket get(Bucket bucket, Map<Option, ?> options) throws StorageException {\n+    if (!options.isEmpty()) throw new NotImplementedException();\n+    return null;\n+  }\n+\n+  /**\n+   * Returns the requested storage object or {@code null} if not found.\n+   *\n+   * @throws StorageException upon failure\n+   */\n+  @Override\n+  public StorageObject get(StorageObject object, Map<Option, ?> options) throws StorageException {\n+    if (!options.isEmpty()) throw new NotImplementedException();\n+    String key = fullname(object);\n+    if (stuff.containsKey(key)) {\n+      StorageObject ret = stuff.get(key);\n+      if (contents.containsKey(key)) {\n+        ret.setSize(BigInteger.valueOf(contents.get(key).length));\n+      }\n+      return ret;\n+    }\n+    return null;\n+  }\n+\n+  @Override\n+  public Bucket patch(Bucket bucket, Map<Option, ?> options) throws StorageException {\n+    if (!options.isEmpty()) throw new NotImplementedException();\n+    return null;\n+  }\n+\n+  @Override\n+  public StorageObject patch(StorageObject storageObject, Map<Option, ?> options)\n+      throws StorageException {\n+    if (!options.isEmpty()) throw new NotImplementedException();\n+    return null;\n+  }\n+\n+  @Override\n+  public boolean delete(Bucket bucket, Map<Option, ?> options) throws StorageException {\n+    return false;\n+  }\n+\n+  @Override\n+  public boolean delete(StorageObject object, Map<Option, ?> options) throws StorageException {\n+    String key = fullname(object);\n+    contents.remove(key);\n+    return null != stuff.remove(key);\n+  }\n+\n+  @Override\n+  public BatchResponse batch(BatchRequest request) throws StorageException {\n+    return null;\n+  }\n+\n+  @Override\n+  public StorageObject compose(Iterable<StorageObject> sources, StorageObject target,\n+                               Map<Option, ?> targetOptions) throws StorageException {\n+    return null;\n+  }\n+\n+  @Override\n+  public byte[] load(StorageObject storageObject, Map<Option, ?> options) throws StorageException {\n+    String key = fullname(storageObject);\n+    if (!contents.containsKey(key)) {\n+      throw new StorageException(404, \"File not found: \" + key);\n+    }\n+    return contents.get(key);\n+  }\n+\n+  @Override\n+  public Tuple<String, byte[]> read(\n+      StorageObject from, Map<Option, ?> options, long zposition, int bytes)\n+      throws StorageException {\n+    if (!options.isEmpty()) throw new NotImplementedException();\n+    long position = zposition;\n+    String key = fullname(from);\n+    if (!contents.containsKey(key)) {\n+      throw new StorageException(404, \"File not found: \" + key);\n+    }\n+    if (position < 0) {\n+      position = 0;\n+    }\n+    byte[] full = contents.get(key);\n+    if ((int) position + bytes > full.length) {\n+      bytes = full.length - (int) position;\n+    }\n+    if (bytes <= 0) {\n+      // special case: you're trying to read past the end\n+      return Tuple.of(\"etag-goes-here\", new byte[0]);\n+    }\n+    byte[] ret = new byte[bytes];\n+    System.arraycopy(full, (int) position, ret, 0, bytes);\n+    return Tuple.of(\"etag-goes-here\", ret);\n+  }\n+\n+  @Override\n+  public String open(StorageObject object, Map<Option, ?> options) throws StorageException {\n+    String key = fullname(object);\n+    boolean mustNotExist = false;\n+    for (Option option : options.keySet()) {\n+      if (option instanceof StorageRpc.Option) {\n+        // this is a bit of a hack, since we don't implement generations.\n+        if ((StorageRpc.Option) option == Option.IF_GENERATION_MATCH\n+            && ((Long) options.get(option)).longValue() == 0L) {\n+          mustNotExist = true;\n+        }\n+      }\n+    }\n+    if (mustNotExist && stuff.containsKey(key)) {\n+      throw new StorageException(new java.nio.file.FileAlreadyExistsException(key));\n+    }\n+    stuff.put(key, object);\n+\n+    return fullname(object);\n+  }\n+\n+  @Override\n+  public void write(String uploadId, byte[] toWrite, int toWriteOffset, long destOffset,\n+                    int length, boolean last) throws StorageException {\n+    // this may have a lot more allocations than ideal, but it'll work.\n+    byte[] bytes;\n+    if (contents.containsKey(uploadId)) {\n+      bytes = contents.get(uploadId);\n+      if (bytes.length < length + destOffset) {\n+        bytes = new byte[(int) (length + destOffset)];\n+      }\n+    } else {\n+      bytes = new byte[(int) (length + destOffset)];\n+    }\n+    System.arraycopy(toWrite, toWriteOffset, bytes, (int) destOffset, length);\n+    contents.put(uploadId, bytes);\n+  }\n+\n+  @Override\n+  public RewriteResponse openRewrite(RewriteRequest rewriteRequest) throws StorageException {\n+    String sourceKey = fullname(rewriteRequest.source);\n+    // a little hackish, just good enough for the tests to work.\n+    if (!contents.containsKey(sourceKey)) {\n+      throw new StorageException(new NoSuchFileException(sourceKey));\n+    }\n+\n+    boolean mustNotExist = false;\n+    for (Option option : rewriteRequest.targetOptions.keySet()) {\n+      if (option instanceof StorageRpc.Option) {\n+        // this is a bit of a hack, since we don't implement generations.\n+        if ((StorageRpc.Option) option == Option.IF_GENERATION_MATCH\n+            && ((Long) rewriteRequest.targetOptions.get(option)).longValue() == 0L) {\n+          mustNotExist = true;\n+        }\n+      }\n+    }\n+\n+    String destKey = fullname(rewriteRequest.target);\n+    if (mustNotExist && contents.containsKey(destKey)) {\n+      throw new StorageException(new FileAlreadyExistsException(destKey));\n+    }\n+\n+    stuff.put(destKey, rewriteRequest.target);\n+\n+    byte[] data = contents.get(sourceKey);\n+    contents.put(destKey, Arrays.copyOf(data, data.length));\n+    return new RewriteResponse(rewriteRequest, rewriteRequest.target, data.length, true,\n+        \"rewriteToken goes here\", data.length);\n+  }\n+\n+  @Override\n+  public RewriteResponse continueRewrite(RewriteResponse previousResponse) throws StorageException {\n+    throw new NotImplementedException();\n+  }\n+\n+  private String fullname(StorageObject so) {\n+    return (so.getBucket() + \"/\" + so.getName()).replaceAll(\"//\", \"/\");\n+  }\n+}","path":"gcloud-java-storage/src/main/java/com/google/gcloud/storage/testing/FakeStorageRpc.java","position":249,"original_position":249,"commit_id":"a407b302a0ed652bd9367ce4e9a5408865f62ad9","original_commit_id":"a407b302a0ed652bd9367ce4e9a5408865f62ad9","user":{"login":"jart","id":49262,"avatar_url":"https://avatars.githubusercontent.com/u/49262?v=3","gravatar_id":"","url":"https://api.github.com/users/jart","html_url":"https://github.com/jart","followers_url":"https://api.github.com/users/jart/followers","following_url":"https://api.github.com/users/jart/following{/other_user}","gists_url":"https://api.github.com/users/jart/gists{/gist_id}","starred_url":"https://api.github.com/users/jart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jart/subscriptions","organizations_url":"https://api.github.com/users/jart/orgs","repos_url":"https://api.github.com/users/jart/repos","events_url":"https://api.github.com/users/jart/events{/privacy}","received_events_url":"https://api.github.com/users/jart/received_events","type":"User","site_admin":false},"body":"Newlines at ends of files.","created_at":"2016-02-18T04:22:05Z","updated_at":"2016-02-18T04:22:05Z","html_url":"https://github.com/GoogleCloudPlatform/gcloud-java/pull/649#discussion_r53270085","pull_request_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/pulls/649","_links":{"self":{"href":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/pulls/comments/53270085"},"html":{"href":"https://github.com/GoogleCloudPlatform/gcloud-java/pull/649#discussion_r53270085"},"pull_request":{"href":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/pulls/649"}}},"pull_request":{"url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/pulls/649","id":59711313,"html_url":"https://github.com/GoogleCloudPlatform/gcloud-java/pull/649","diff_url":"https://github.com/GoogleCloudPlatform/gcloud-java/pull/649.diff","patch_url":"https://github.com/GoogleCloudPlatform/gcloud-java/pull/649.patch","issue_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/issues/649","number":649,"state":"open","locked":false,"title":"FakeStorageRPC and nio using gcloud-storage","user":{"login":"jean-philippe-martin","id":10458949,"avatar_url":"https://avatars.githubusercontent.com/u/10458949?v=3","gravatar_id":"","url":"https://api.github.com/users/jean-philippe-martin","html_url":"https://github.com/jean-philippe-martin","followers_url":"https://api.github.com/users/jean-philippe-martin/followers","following_url":"https://api.github.com/users/jean-philippe-martin/following{/other_user}","gists_url":"https://api.github.com/users/jean-philippe-martin/gists{/gist_id}","starred_url":"https://api.github.com/users/jean-philippe-martin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jean-philippe-martin/subscriptions","organizations_url":"https://api.github.com/users/jean-philippe-martin/orgs","repos_url":"https://api.github.com/users/jean-philippe-martin/repos","events_url":"https://api.github.com/users/jean-philippe-martin/events{/privacy}","received_events_url":"https://api.github.com/users/jean-philippe-martin/received_events","type":"User","site_admin":false},"body":" * Java NIO Filesystem support for gcs:// ported from AppEngine to GCloud API\r\n * wrote FakeStorageRPC so we can run unit tests\r\n * unit tests pass","created_at":"2016-02-17T21:25:52Z","updated_at":"2016-02-18T04:22:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8546fea45c086de3880bcb52b01652adb7aaacf4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/pulls/649/commits","review_comments_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/pulls/649/comments","review_comment_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/pulls/comments{/number}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/issues/649/comments","statuses_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/statuses/a407b302a0ed652bd9367ce4e9a5408865f62ad9","head":{"label":"jean-philippe-martin:gcs-nio","ref":"gcs-nio","sha":"a407b302a0ed652bd9367ce4e9a5408865f62ad9","user":{"login":"jean-philippe-martin","id":10458949,"avatar_url":"https://avatars.githubusercontent.com/u/10458949?v=3","gravatar_id":"","url":"https://api.github.com/users/jean-philippe-martin","html_url":"https://github.com/jean-philippe-martin","followers_url":"https://api.github.com/users/jean-philippe-martin/followers","following_url":"https://api.github.com/users/jean-philippe-martin/following{/other_user}","gists_url":"https://api.github.com/users/jean-philippe-martin/gists{/gist_id}","starred_url":"https://api.github.com/users/jean-philippe-martin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jean-philippe-martin/subscriptions","organizations_url":"https://api.github.com/users/jean-philippe-martin/orgs","repos_url":"https://api.github.com/users/jean-philippe-martin/repos","events_url":"https://api.github.com/users/jean-philippe-martin/events{/privacy}","received_events_url":"https://api.github.com/users/jean-philippe-martin/received_events","type":"User","site_admin":false},"repo":{"id":50390684,"name":"gcloud-java","full_name":"jean-philippe-martin/gcloud-java","owner":{"login":"jean-philippe-martin","id":10458949,"avatar_url":"https://avatars.githubusercontent.com/u/10458949?v=3","gravatar_id":"","url":"https://api.github.com/users/jean-philippe-martin","html_url":"https://github.com/jean-philippe-martin","followers_url":"https://api.github.com/users/jean-philippe-martin/followers","following_url":"https://api.github.com/users/jean-philippe-martin/following{/other_user}","gists_url":"https://api.github.com/users/jean-philippe-martin/gists{/gist_id}","starred_url":"https://api.github.com/users/jean-philippe-martin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jean-philippe-martin/subscriptions","organizations_url":"https://api.github.com/users/jean-philippe-martin/orgs","repos_url":"https://api.github.com/users/jean-philippe-martin/repos","events_url":"https://api.github.com/users/jean-philippe-martin/events{/privacy}","received_events_url":"https://api.github.com/users/jean-philippe-martin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jean-philippe-martin/gcloud-java","description":"Google Cloud Client Library for Java","fork":true,"url":"https://api.github.com/repos/jean-philippe-martin/gcloud-java","forks_url":"https://api.github.com/repos/jean-philippe-martin/gcloud-java/forks","keys_url":"https://api.github.com/repos/jean-philippe-martin/gcloud-java/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jean-philippe-martin/gcloud-java/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jean-philippe-martin/gcloud-java/teams","hooks_url":"https://api.github.com/repos/jean-philippe-martin/gcloud-java/hooks","issue_events_url":"https://api.github.com/repos/jean-philippe-martin/gcloud-java/issues/events{/number}","events_url":"https://api.github.com/repos/jean-philippe-martin/gcloud-java/events","assignees_url":"https://api.github.com/repos/jean-philippe-martin/gcloud-java/assignees{/user}","branches_url":"https://api.github.com/repos/jean-philippe-martin/gcloud-java/branches{/branch}","tags_url":"https://api.github.com/repos/jean-philippe-martin/gcloud-java/tags","blobs_url":"https://api.github.com/repos/jean-philippe-martin/gcloud-java/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jean-philippe-martin/gcloud-java/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jean-philippe-martin/gcloud-java/git/refs{/sha}","trees_url":"https://api.github.com/repos/jean-philippe-martin/gcloud-java/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jean-philippe-martin/gcloud-java/statuses/{sha}","languages_url":"https://api.github.com/repos/jean-philippe-martin/gcloud-java/languages","stargazers_url":"https://api.github.com/repos/jean-philippe-martin/gcloud-java/stargazers","contributors_url":"https://api.github.com/repos/jean-philippe-martin/gcloud-java/contributors","subscribers_url":"https://api.github.com/repos/jean-philippe-martin/gcloud-java/subscribers","subscription_url":"https://api.github.com/repos/jean-philippe-martin/gcloud-java/subscription","commits_url":"https://api.github.com/repos/jean-philippe-martin/gcloud-java/commits{/sha}","git_commits_url":"https://api.github.com/repos/jean-philippe-martin/gcloud-java/git/commits{/sha}","comments_url":"https://api.github.com/repos/jean-philippe-martin/gcloud-java/comments{/number}","issue_comment_url":"https://api.github.com/repos/jean-philippe-martin/gcloud-java/issues/comments{/number}","contents_url":"https://api.github.com/repos/jean-philippe-martin/gcloud-java/contents/{+path}","compare_url":"https://api.github.com/repos/jean-philippe-martin/gcloud-java/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jean-philippe-martin/gcloud-java/merges","archive_url":"https://api.github.com/repos/jean-philippe-martin/gcloud-java/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jean-philippe-martin/gcloud-java/downloads","issues_url":"https://api.github.com/repos/jean-philippe-martin/gcloud-java/issues{/number}","pulls_url":"https://api.github.com/repos/jean-philippe-martin/gcloud-java/pulls{/number}","milestones_url":"https://api.github.com/repos/jean-philippe-martin/gcloud-java/milestones{/number}","notifications_url":"https://api.github.com/repos/jean-philippe-martin/gcloud-java/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jean-philippe-martin/gcloud-java/labels{/name}","releases_url":"https://api.github.com/repos/jean-philippe-martin/gcloud-java/releases{/id}","deployments_url":"https://api.github.com/repos/jean-philippe-martin/gcloud-java/deployments","created_at":"2016-01-26T00:17:47Z","updated_at":"2016-01-26T00:17:49Z","pushed_at":"2016-02-18T00:46:51Z","git_url":"git://github.com/jean-philippe-martin/gcloud-java.git","ssh_url":"git@github.com:jean-philippe-martin/gcloud-java.git","clone_url":"https://github.com/jean-philippe-martin/gcloud-java.git","svn_url":"https://github.com/jean-philippe-martin/gcloud-java","homepage":"http://googlecloudplatform.github.io/gcloud-java/","size":25528,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"GoogleCloudPlatform:gcs-nio","ref":"gcs-nio","sha":"2e2b450f2d84f9eaa308894775102ead9cb5e48c","user":{"login":"GoogleCloudPlatform","id":2810941,"avatar_url":"https://avatars.githubusercontent.com/u/2810941?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCloudPlatform","html_url":"https://github.com/GoogleCloudPlatform","followers_url":"https://api.github.com/users/GoogleCloudPlatform/followers","following_url":"https://api.github.com/users/GoogleCloudPlatform/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCloudPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCloudPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCloudPlatform/subscriptions","organizations_url":"https://api.github.com/users/GoogleCloudPlatform/orgs","repos_url":"https://api.github.com/users/GoogleCloudPlatform/repos","events_url":"https://api.github.com/users/GoogleCloudPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCloudPlatform/received_events","type":"Organization","site_admin":false},"repo":{"id":26181278,"name":"gcloud-java","full_name":"GoogleCloudPlatform/gcloud-java","owner":{"login":"GoogleCloudPlatform","id":2810941,"avatar_url":"https://avatars.githubusercontent.com/u/2810941?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCloudPlatform","html_url":"https://github.com/GoogleCloudPlatform","followers_url":"https://api.github.com/users/GoogleCloudPlatform/followers","following_url":"https://api.github.com/users/GoogleCloudPlatform/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCloudPlatform/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCloudPlatform/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCloudPlatform/subscriptions","organizations_url":"https://api.github.com/users/GoogleCloudPlatform/orgs","repos_url":"https://api.github.com/users/GoogleCloudPlatform/repos","events_url":"https://api.github.com/users/GoogleCloudPlatform/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCloudPlatform/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/GoogleCloudPlatform/gcloud-java","description":"Google Cloud Client Library for Java","fork":false,"url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java","forks_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/forks","keys_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/teams","hooks_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/hooks","issue_events_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/issues/events{/number}","events_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/events","assignees_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/assignees{/user}","branches_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/branches{/branch}","tags_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/tags","blobs_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/git/refs{/sha}","trees_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/statuses/{sha}","languages_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/languages","stargazers_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/stargazers","contributors_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/contributors","subscribers_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/subscribers","subscription_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/subscription","commits_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/commits{/sha}","git_commits_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/git/commits{/sha}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/comments{/number}","issue_comment_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/issues/comments{/number}","contents_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/contents/{+path}","compare_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/merges","archive_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/downloads","issues_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/issues{/number}","pulls_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/pulls{/number}","milestones_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/milestones{/number}","notifications_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/labels{/name}","releases_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/releases{/id}","deployments_url":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/deployments","created_at":"2014-11-04T17:57:16Z","updated_at":"2016-02-16T08:56:20Z","pushed_at":"2016-02-18T02:30:04Z","git_url":"git://github.com/GoogleCloudPlatform/gcloud-java.git","ssh_url":"git@github.com:GoogleCloudPlatform/gcloud-java.git","clone_url":"https://github.com/GoogleCloudPlatform/gcloud-java.git","svn_url":"https://github.com/GoogleCloudPlatform/gcloud-java","homepage":"http://googlecloudplatform.github.io/gcloud-java/","size":213383,"stargazers_count":64,"watchers_count":64,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":34,"mirror_url":null,"open_issues_count":112,"forks":34,"open_issues":112,"watchers":64,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/pulls/649"},"html":{"href":"https://github.com/GoogleCloudPlatform/gcloud-java/pull/649"},"issue":{"href":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/issues/649"},"comments":{"href":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/issues/649/comments"},"review_comments":{"href":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/pulls/649/comments"},"review_comment":{"href":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/pulls/649/commits"},"statuses":{"href":"https://api.github.com/repos/GoogleCloudPlatform/gcloud-java/statuses/a407b302a0ed652bd9367ce4e9a5408865f62ad9"}}}}