{"action":"created","comment":{"url":"https://api.github.com/repos/caskdata/hydrator-plugins/pulls/comments/48792490","id":48792490,"diff_hunk":"@@ -0,0 +1,381 @@\n+/*\n+ * Copyright © 2016 Cask Data, Inc.\n+ *\n+ * Licensed under the Apache License, Version 2.0 (the \"License\"); you may not\n+ * use this file except in compliance with the License. You may obtain a copy of\n+ * 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, WITHOUT\n+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the\n+ * License for the specific language governing permissions and limitations under\n+ * the License.\n+ */\n+\n+package co.cask.hydrator.plugin.transform;\n+\n+import co.cask.cdap.api.annotation.Description;\n+import co.cask.cdap.api.annotation.Name;\n+import co.cask.cdap.api.annotation.Plugin;\n+import co.cask.cdap.api.data.format.StructuredRecord;\n+import co.cask.cdap.api.data.schema.Schema;\n+import co.cask.cdap.api.plugin.PluginConfig;\n+import co.cask.cdap.etl.api.Emitter;\n+import co.cask.cdap.etl.api.InvalidEntry;\n+import co.cask.cdap.etl.api.LookupConfig;\n+import co.cask.cdap.etl.api.LookupProvider;\n+import co.cask.cdap.etl.api.PipelineConfigurer;\n+import co.cask.cdap.etl.api.StageMetrics;\n+import co.cask.cdap.etl.api.Transform;\n+import co.cask.cdap.etl.api.TransformContext;\n+import co.cask.hydrator.plugin.ScriptConstants;\n+import co.cask.hydrator.plugin.common.StructuredRecordSerializer;\n+import com.google.common.base.Preconditions;\n+import com.google.common.collect.Lists;\n+import com.google.common.collect.Maps;\n+import com.google.gson.Gson;\n+import com.google.gson.GsonBuilder;\n+import com.google.gson.JsonSyntaxException;\n+import org.slf4j.Logger;\n+import org.slf4j.LoggerFactory;\n+\n+import java.io.IOException;\n+import java.lang.reflect.InvocationTargetException;\n+import java.lang.reflect.Method;\n+import java.util.List;\n+import java.util.Map;\n+import javax.annotation.Nullable;\n+import javax.script.Invocable;\n+import javax.script.ScriptEngine;\n+import javax.script.ScriptEngineManager;\n+import javax.script.ScriptException;\n+\n+/**\n+ * Transforms records using custom javascript provided by the config.\n+ */\n+@Plugin(type = \"transform\")\n+@Name(\"JavaScript\")\n+@Description(\"Executes user-provided Javascript that transforms one record into another.\")\n+public class JavaScriptTransform extends Transform<StructuredRecord, StructuredRecord> {\n+  private static final Gson GSON = new GsonBuilder()\n+    .registerTypeAdapter(StructuredRecord.class, new StructuredRecordSerializer())\n+    .create();\n+  private static final String FUNCTION_NAME = \"dont_name_your_function_this\";\n+  private static final String VARIABLE_NAME = \"dont_name_your_variable_this\";\n+  private static final String EMITTER_NAME = \"dont_name_your_variable2_this\";\n+  private static final String CONTEXT_NAME = \"dont_name_your_context_this\";\n+  private ScriptEngine engine;\n+  private Invocable invocable;\n+  private Schema schema;\n+  private final Config config;\n+  private StageMetrics metrics;\n+  private Logger logger;\n+\n+  @Nullable\n+  private Method somValuesMethod;\n+\n+  /**\n+   * Configuration for the script transform.\n+   */\n+  public static class Config extends PluginConfig {\n+    @Description(\"Javascript defining how to transform one record into another. The script must implement a function \" +\n+      \"called 'transform', which takes as input a JSON object (representing the input record) \" +\n+      \"emitter object, which can be used to emit records and error messages\" +\n+      \"and a context object (which contains CDAP metrics and logger)\" +\n+      \"For example:\\n\" +\n+      \"'function transform(input, context) {\\n\" +\n+      \"  if(input.count < 0) {\\n\" +\n+      \"    context.getMetrics().count(\\\"negative.count\\\", 1);\\n\" +\n+      \"    context.getLogger().debug(\\\"Received record with negative count\\\");\\n\" +\n+      \"  }\\n\" +\n+      \"  input.count = input.count * 1024;\\n\" +\n+      \"emitter.emit(input); }'\\n\" +\n+      \"will scale the 'count' field by 1024.\")\n+    private final String script;\n+\n+    @Description(\"The schema of output objects. If no schema is given, it is assumed that the output schema is \" +\n+      \"the same as the input schema.\")\n+    @Nullable\n+    private final String schema;\n+\n+    @Description(\"Lookup tables to use during transform. Currently supports KeyValueTable.\")\n+    @Nullable\n+    private final String lookup;\n+\n+    public Config(String script, String schema, LookupConfig lookup) {\n+      this.script = script;\n+      this.schema = schema;\n+      this.lookup = GSON.toJson(lookup);\n+    }\n+  }\n+\n+  // for unit tests, otherwise config is injected by plugin framework.\n+  public JavaScriptTransform(Config config) {\n+    this.config = config;\n+  }\n+\n+  @Override\n+  public void configurePipeline(PipelineConfigurer pipelineConfigurer) throws IllegalArgumentException {\n+    super.configurePipeline(pipelineConfigurer);\n+    // try evaluating the script to fail application creation if the script is invalid\n+    init(null);\n+\n+    // init intializes schema if present in the config\n+    Schema outputSchema = (schema == null) ? pipelineConfigurer.getStageConfigurer().getInputSchema() : schema;\n+    pipelineConfigurer.getStageConfigurer().setOutputSchema(outputSchema);\n+    // TODO: CDAP-4169 verify existence of configured lookup tables\n+  }\n+\n+  @Override\n+  public void initialize(TransformContext context) throws Exception {\n+    super.initialize(context);\n+    metrics = context.getMetrics();\n+    logger = LoggerFactory.getLogger(ScriptTransform.class.getName() + \" - Stage:\" + context.getStageName());\n+\n+    // for Nashorn (Java 8+) support -- get method to convert ScriptObjectMirror to List\n+    try {\n+      Class<?> somClass = Class.forName(\"jdk.nashorn.api.scripting.ScriptObjectMirror\");\n+      somValuesMethod = somClass.getMethod(\"values\");\n+    } catch (NoSuchMethodException e) {\n+      throw new RuntimeException(\n+        \"Failed to get method ScriptObjectMirror#values() for converting ScriptObjectMirror to List. \" +\n+          \"Please check your version of Nashorn is supported.\", e);\n+    } catch (ClassNotFoundException e) {\n+      // Ignore -- we don't have Nashorn, so no need to handle Nashorn\n+    }\n+\n+    init(context);\n+  }\n+\n+  @Override\n+  public void transform(StructuredRecord input, Emitter<StructuredRecord> emitter) {\n+    try {\n+      engine.eval(String.format(\"var %s = %s;\", VARIABLE_NAME, GSON.toJson(input)));\n+      Emitter<Map> jsEmitter = new JSEmitter(emitter, schema == null ? input.getSchema() : schema);\n+      engine.put(EMITTER_NAME, jsEmitter);\n+      invocable.invokeFunction(FUNCTION_NAME);\n+    } catch (Exception e) {\n+      throw new IllegalArgumentException(\"Could not transform input: \" + e.getMessage(), e);\n+    }\n+  }\n+\n+  /**\n+   * Emitter to be used from within Javascript code\n+   */\n+  public final class JSEmitter implements Emitter<Map> {\n+\n+    private final Emitter<StructuredRecord> emitter;\n+    private final Schema schema;\n+\n+    public JSEmitter(Emitter<StructuredRecord> emitter, Schema schema) {\n+      this.emitter = emitter;\n+      this.schema = schema;\n+    }\n+\n+    public void emit() {\n+      System.out.println(\"Testing emit without params\");\n+    }\n+\n+    @Override\n+    public void emit(Map value) {\n+      emitter.emit(decode(value));\n+    }\n+\n+    @Override\n+    public void emitError(InvalidEntry<Map> invalidEntry) {\n+      emitter.emitError(new InvalidEntry<>(invalidEntry.getErrorCode(), invalidEntry.getErrorMsg(),\n+                                           decode(invalidEntry.getInvalidRecord())));\n+    }\n+\n+    public void emitError(Map invalidEntry) {\n+      emitter.emitError(getErrorObject(invalidEntry, decode((Map) invalidEntry.get(\"invalidRecord\"))));\n+    }\n+\n+    private StructuredRecord decode(Map nativeObject) {\n+      return decodeRecord(nativeObject, schema);\n+    }\n+  }\n+\n+  private InvalidEntry<StructuredRecord> getErrorObject(Map result, StructuredRecord input) {\n+    Preconditions.checkState(result.containsKey(\"errorCode\"));\n+\n+    Object errorCode = result.get(\"errorCode\");\n+    Preconditions.checkState(errorCode instanceof Number,\n+                             \"errorCode entry in resultMap is not a valid number. \" +\n+                               \"please check your script to make sure error-code is a number\");\n+    int errorCodeInt;","path":"core-plugins/src/main/java/co/cask/hydrator/plugin/transform/JavaScriptTransform.java","position":208,"original_position":208,"commit_id":"2e9089ae45ab354e213ed5c72cc3361721d9c439","original_commit_id":"2e9089ae45ab354e213ed5c72cc3361721d9c439","user":{"login":"gsps1","id":1328150,"avatar_url":"https://avatars.githubusercontent.com/u/1328150?v=3","gravatar_id":"","url":"https://api.github.com/users/gsps1","html_url":"https://github.com/gsps1","followers_url":"https://api.github.com/users/gsps1/followers","following_url":"https://api.github.com/users/gsps1/following{/other_user}","gists_url":"https://api.github.com/users/gsps1/gists{/gist_id}","starred_url":"https://api.github.com/users/gsps1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gsps1/subscriptions","organizations_url":"https://api.github.com/users/gsps1/orgs","repos_url":"https://api.github.com/users/gsps1/repos","events_url":"https://api.github.com/users/gsps1/events{/privacy}","received_events_url":"https://api.github.com/users/gsps1/received_events","type":"User","site_admin":false},"body":"javascript when it returns the error-code its type is double, so we can't directly cast it to int, that would fail, that's why we are having this additional step. ","created_at":"2016-01-04T22:45:42Z","updated_at":"2016-01-04T22:45:42Z","html_url":"https://github.com/caskdata/hydrator-plugins/pull/86#discussion_r48792490","pull_request_url":"https://api.github.com/repos/caskdata/hydrator-plugins/pulls/86","_links":{"self":{"href":"https://api.github.com/repos/caskdata/hydrator-plugins/pulls/comments/48792490"},"html":{"href":"https://github.com/caskdata/hydrator-plugins/pull/86#discussion_r48792490"},"pull_request":{"href":"https://api.github.com/repos/caskdata/hydrator-plugins/pulls/86"}}},"pull_request":{"url":"https://api.github.com/repos/caskdata/hydrator-plugins/pulls/86","id":55031504,"html_url":"https://github.com/caskdata/hydrator-plugins/pull/86","diff_url":"https://github.com/caskdata/hydrator-plugins/pull/86.diff","patch_url":"https://github.com/caskdata/hydrator-plugins/pull/86.patch","issue_url":"https://api.github.com/repos/caskdata/hydrator-plugins/issues/86","number":86,"state":"open","locked":false,"title":"CDAP-4128 create a new JavascriptTransform with emitter","user":{"login":"gsps1","id":1328150,"avatar_url":"https://avatars.githubusercontent.com/u/1328150?v=3","gravatar_id":"","url":"https://api.github.com/users/gsps1","html_url":"https://github.com/gsps1","followers_url":"https://api.github.com/users/gsps1/followers","following_url":"https://api.github.com/users/gsps1/following{/other_user}","gists_url":"https://api.github.com/users/gsps1/gists{/gist_id}","starred_url":"https://api.github.com/users/gsps1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gsps1/subscriptions","organizations_url":"https://api.github.com/users/gsps1/orgs","repos_url":"https://api.github.com/users/gsps1/repos","events_url":"https://api.github.com/users/gsps1/events{/privacy}","received_events_url":"https://api.github.com/users/gsps1/received_events","type":"User","site_admin":false},"body":"JIRA : https://issues.cask.co/browse/CDAP-4128\r\n\r\nCopied ScriptTransform into JavaScriptTranform with an additional Emitter parameter for the transform.\r\n\r\nAdded Deprecated tag in ScriptTransform and copied/added test case for JavaScriptTrasnform.\r\n\r\n","created_at":"2016-01-04T22:33:06Z","updated_at":"2016-01-04T22:45:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ad7d9084baef3a2a5686ae5354344dfae38efd29","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/caskdata/hydrator-plugins/pulls/86/commits","review_comments_url":"https://api.github.com/repos/caskdata/hydrator-plugins/pulls/86/comments","review_comment_url":"https://api.github.com/repos/caskdata/hydrator-plugins/pulls/comments{/number}","comments_url":"https://api.github.com/repos/caskdata/hydrator-plugins/issues/86/comments","statuses_url":"https://api.github.com/repos/caskdata/hydrator-plugins/statuses/2e9089ae45ab354e213ed5c72cc3361721d9c439","head":{"label":"caskdata:feature/CDAP-4128-javascript-transform-with-emitter","ref":"feature/CDAP-4128-javascript-transform-with-emitter","sha":"2e9089ae45ab354e213ed5c72cc3361721d9c439","user":{"login":"caskdata","id":8123023,"avatar_url":"https://avatars.githubusercontent.com/u/8123023?v=3","gravatar_id":"","url":"https://api.github.com/users/caskdata","html_url":"https://github.com/caskdata","followers_url":"https://api.github.com/users/caskdata/followers","following_url":"https://api.github.com/users/caskdata/following{/other_user}","gists_url":"https://api.github.com/users/caskdata/gists{/gist_id}","starred_url":"https://api.github.com/users/caskdata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caskdata/subscriptions","organizations_url":"https://api.github.com/users/caskdata/orgs","repos_url":"https://api.github.com/users/caskdata/repos","events_url":"https://api.github.com/users/caskdata/events{/privacy}","received_events_url":"https://api.github.com/users/caskdata/received_events","type":"Organization","site_admin":false},"repo":{"id":39922362,"name":"hydrator-plugins","full_name":"caskdata/hydrator-plugins","owner":{"login":"caskdata","id":8123023,"avatar_url":"https://avatars.githubusercontent.com/u/8123023?v=3","gravatar_id":"","url":"https://api.github.com/users/caskdata","html_url":"https://github.com/caskdata","followers_url":"https://api.github.com/users/caskdata/followers","following_url":"https://api.github.com/users/caskdata/following{/other_user}","gists_url":"https://api.github.com/users/caskdata/gists{/gist_id}","starred_url":"https://api.github.com/users/caskdata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caskdata/subscriptions","organizations_url":"https://api.github.com/users/caskdata/orgs","repos_url":"https://api.github.com/users/caskdata/repos","events_url":"https://api.github.com/users/caskdata/events{/privacy}","received_events_url":"https://api.github.com/users/caskdata/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/caskdata/hydrator-plugins","description":"Cask Hydrator Plugins Repository","fork":false,"url":"https://api.github.com/repos/caskdata/hydrator-plugins","forks_url":"https://api.github.com/repos/caskdata/hydrator-plugins/forks","keys_url":"https://api.github.com/repos/caskdata/hydrator-plugins/keys{/key_id}","collaborators_url":"https://api.github.com/repos/caskdata/hydrator-plugins/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/caskdata/hydrator-plugins/teams","hooks_url":"https://api.github.com/repos/caskdata/hydrator-plugins/hooks","issue_events_url":"https://api.github.com/repos/caskdata/hydrator-plugins/issues/events{/number}","events_url":"https://api.github.com/repos/caskdata/hydrator-plugins/events","assignees_url":"https://api.github.com/repos/caskdata/hydrator-plugins/assignees{/user}","branches_url":"https://api.github.com/repos/caskdata/hydrator-plugins/branches{/branch}","tags_url":"https://api.github.com/repos/caskdata/hydrator-plugins/tags","blobs_url":"https://api.github.com/repos/caskdata/hydrator-plugins/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/caskdata/hydrator-plugins/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/caskdata/hydrator-plugins/git/refs{/sha}","trees_url":"https://api.github.com/repos/caskdata/hydrator-plugins/git/trees{/sha}","statuses_url":"https://api.github.com/repos/caskdata/hydrator-plugins/statuses/{sha}","languages_url":"https://api.github.com/repos/caskdata/hydrator-plugins/languages","stargazers_url":"https://api.github.com/repos/caskdata/hydrator-plugins/stargazers","contributors_url":"https://api.github.com/repos/caskdata/hydrator-plugins/contributors","subscribers_url":"https://api.github.com/repos/caskdata/hydrator-plugins/subscribers","subscription_url":"https://api.github.com/repos/caskdata/hydrator-plugins/subscription","commits_url":"https://api.github.com/repos/caskdata/hydrator-plugins/commits{/sha}","git_commits_url":"https://api.github.com/repos/caskdata/hydrator-plugins/git/commits{/sha}","comments_url":"https://api.github.com/repos/caskdata/hydrator-plugins/comments{/number}","issue_comment_url":"https://api.github.com/repos/caskdata/hydrator-plugins/issues/comments{/number}","contents_url":"https://api.github.com/repos/caskdata/hydrator-plugins/contents/{+path}","compare_url":"https://api.github.com/repos/caskdata/hydrator-plugins/compare/{base}...{head}","merges_url":"https://api.github.com/repos/caskdata/hydrator-plugins/merges","archive_url":"https://api.github.com/repos/caskdata/hydrator-plugins/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/caskdata/hydrator-plugins/downloads","issues_url":"https://api.github.com/repos/caskdata/hydrator-plugins/issues{/number}","pulls_url":"https://api.github.com/repos/caskdata/hydrator-plugins/pulls{/number}","milestones_url":"https://api.github.com/repos/caskdata/hydrator-plugins/milestones{/number}","notifications_url":"https://api.github.com/repos/caskdata/hydrator-plugins/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/caskdata/hydrator-plugins/labels{/name}","releases_url":"https://api.github.com/repos/caskdata/hydrator-plugins/releases{/id}","created_at":"2015-07-30T00:14:48Z","updated_at":"2015-12-10T08:07:29Z","pushed_at":"2016-01-04T22:33:07Z","git_url":"git://github.com/caskdata/hydrator-plugins.git","ssh_url":"git@github.com:caskdata/hydrator-plugins.git","clone_url":"https://github.com/caskdata/hydrator-plugins.git","svn_url":"https://github.com/caskdata/hydrator-plugins","homepage":"","size":1063,"stargazers_count":6,"watchers_count":6,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":6,"default_branch":"develop"}},"base":{"label":"caskdata:develop","ref":"develop","sha":"7ff2995a63f316ec972df1d3aefe0186d886ce87","user":{"login":"caskdata","id":8123023,"avatar_url":"https://avatars.githubusercontent.com/u/8123023?v=3","gravatar_id":"","url":"https://api.github.com/users/caskdata","html_url":"https://github.com/caskdata","followers_url":"https://api.github.com/users/caskdata/followers","following_url":"https://api.github.com/users/caskdata/following{/other_user}","gists_url":"https://api.github.com/users/caskdata/gists{/gist_id}","starred_url":"https://api.github.com/users/caskdata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caskdata/subscriptions","organizations_url":"https://api.github.com/users/caskdata/orgs","repos_url":"https://api.github.com/users/caskdata/repos","events_url":"https://api.github.com/users/caskdata/events{/privacy}","received_events_url":"https://api.github.com/users/caskdata/received_events","type":"Organization","site_admin":false},"repo":{"id":39922362,"name":"hydrator-plugins","full_name":"caskdata/hydrator-plugins","owner":{"login":"caskdata","id":8123023,"avatar_url":"https://avatars.githubusercontent.com/u/8123023?v=3","gravatar_id":"","url":"https://api.github.com/users/caskdata","html_url":"https://github.com/caskdata","followers_url":"https://api.github.com/users/caskdata/followers","following_url":"https://api.github.com/users/caskdata/following{/other_user}","gists_url":"https://api.github.com/users/caskdata/gists{/gist_id}","starred_url":"https://api.github.com/users/caskdata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caskdata/subscriptions","organizations_url":"https://api.github.com/users/caskdata/orgs","repos_url":"https://api.github.com/users/caskdata/repos","events_url":"https://api.github.com/users/caskdata/events{/privacy}","received_events_url":"https://api.github.com/users/caskdata/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/caskdata/hydrator-plugins","description":"Cask Hydrator Plugins Repository","fork":false,"url":"https://api.github.com/repos/caskdata/hydrator-plugins","forks_url":"https://api.github.com/repos/caskdata/hydrator-plugins/forks","keys_url":"https://api.github.com/repos/caskdata/hydrator-plugins/keys{/key_id}","collaborators_url":"https://api.github.com/repos/caskdata/hydrator-plugins/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/caskdata/hydrator-plugins/teams","hooks_url":"https://api.github.com/repos/caskdata/hydrator-plugins/hooks","issue_events_url":"https://api.github.com/repos/caskdata/hydrator-plugins/issues/events{/number}","events_url":"https://api.github.com/repos/caskdata/hydrator-plugins/events","assignees_url":"https://api.github.com/repos/caskdata/hydrator-plugins/assignees{/user}","branches_url":"https://api.github.com/repos/caskdata/hydrator-plugins/branches{/branch}","tags_url":"https://api.github.com/repos/caskdata/hydrator-plugins/tags","blobs_url":"https://api.github.com/repos/caskdata/hydrator-plugins/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/caskdata/hydrator-plugins/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/caskdata/hydrator-plugins/git/refs{/sha}","trees_url":"https://api.github.com/repos/caskdata/hydrator-plugins/git/trees{/sha}","statuses_url":"https://api.github.com/repos/caskdata/hydrator-plugins/statuses/{sha}","languages_url":"https://api.github.com/repos/caskdata/hydrator-plugins/languages","stargazers_url":"https://api.github.com/repos/caskdata/hydrator-plugins/stargazers","contributors_url":"https://api.github.com/repos/caskdata/hydrator-plugins/contributors","subscribers_url":"https://api.github.com/repos/caskdata/hydrator-plugins/subscribers","subscription_url":"https://api.github.com/repos/caskdata/hydrator-plugins/subscription","commits_url":"https://api.github.com/repos/caskdata/hydrator-plugins/commits{/sha}","git_commits_url":"https://api.github.com/repos/caskdata/hydrator-plugins/git/commits{/sha}","comments_url":"https://api.github.com/repos/caskdata/hydrator-plugins/comments{/number}","issue_comment_url":"https://api.github.com/repos/caskdata/hydrator-plugins/issues/comments{/number}","contents_url":"https://api.github.com/repos/caskdata/hydrator-plugins/contents/{+path}","compare_url":"https://api.github.com/repos/caskdata/hydrator-plugins/compare/{base}...{head}","merges_url":"https://api.github.com/repos/caskdata/hydrator-plugins/merges","archive_url":"https://api.github.com/repos/caskdata/hydrator-plugins/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/caskdata/hydrator-plugins/downloads","issues_url":"https://api.github.com/repos/caskdata/hydrator-plugins/issues{/number}","pulls_url":"https://api.github.com/repos/caskdata/hydrator-plugins/pulls{/number}","milestones_url":"https://api.github.com/repos/caskdata/hydrator-plugins/milestones{/number}","notifications_url":"https://api.github.com/repos/caskdata/hydrator-plugins/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/caskdata/hydrator-plugins/labels{/name}","releases_url":"https://api.github.com/repos/caskdata/hydrator-plugins/releases{/id}","created_at":"2015-07-30T00:14:48Z","updated_at":"2015-12-10T08:07:29Z","pushed_at":"2016-01-04T22:33:07Z","git_url":"git://github.com/caskdata/hydrator-plugins.git","ssh_url":"git@github.com:caskdata/hydrator-plugins.git","clone_url":"https://github.com/caskdata/hydrator-plugins.git","svn_url":"https://github.com/caskdata/hydrator-plugins","homepage":"","size":1063,"stargazers_count":6,"watchers_count":6,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":6,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/caskdata/hydrator-plugins/pulls/86"},"html":{"href":"https://github.com/caskdata/hydrator-plugins/pull/86"},"issue":{"href":"https://api.github.com/repos/caskdata/hydrator-plugins/issues/86"},"comments":{"href":"https://api.github.com/repos/caskdata/hydrator-plugins/issues/86/comments"},"review_comments":{"href":"https://api.github.com/repos/caskdata/hydrator-plugins/pulls/86/comments"},"review_comment":{"href":"https://api.github.com/repos/caskdata/hydrator-plugins/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/caskdata/hydrator-plugins/pulls/86/commits"},"statuses":{"href":"https://api.github.com/repos/caskdata/hydrator-plugins/statuses/2e9089ae45ab354e213ed5c72cc3361721d9c439"}}}}