{"action":"created","comment":{"url":"https://api.github.com/repos/caskdata/hydrator-plugins/pulls/comments/70025183","id":70025183,"diff_hunk":"@@ -0,0 +1,457 @@\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.batch.source;\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.batch.Input;\n+import co.cask.cdap.api.data.format.StructuredRecord;\n+import co.cask.cdap.api.data.schema.Schema;\n+import co.cask.cdap.api.dataset.DatasetProperties;\n+import co.cask.cdap.api.dataset.lib.CloseableIterator;\n+import co.cask.cdap.api.dataset.lib.KeyValue;\n+import co.cask.cdap.api.dataset.lib.KeyValueTable;\n+import co.cask.cdap.api.dataset.table.Table;\n+import co.cask.cdap.etl.api.Emitter;\n+import co.cask.cdap.etl.api.PipelineConfigurer;\n+import co.cask.cdap.etl.api.batch.BatchRuntimeContext;\n+import co.cask.cdap.etl.api.batch.BatchSource;\n+import co.cask.cdap.etl.api.batch.BatchSourceContext;\n+import co.cask.hydrator.common.ReferencePluginConfig;\n+import co.cask.hydrator.common.SourceInputFormatProvider;\n+import co.cask.hydrator.common.batch.JobUtils;\n+import co.cask.hydrator.plugin.common.Properties;\n+import com.google.common.base.Charsets;\n+import com.google.common.base.Strings;\n+import com.google.common.collect.Lists;\n+import com.google.common.reflect.TypeToken;\n+import com.google.gson.Gson;\n+import org.apache.commons.collections.CollectionUtils;\n+import org.apache.hadoop.fs.Path;\n+import org.apache.hadoop.io.LongWritable;\n+import org.apache.hadoop.mapreduce.Job;\n+\n+import java.io.IOException;\n+import java.lang.reflect.Type;\n+import java.net.URI;\n+import java.util.ArrayList;\n+import java.util.Arrays;\n+import java.util.HashMap;\n+import java.util.List;\n+import java.util.Map;\n+import java.util.concurrent.ExecutionException;\n+import javax.annotation.Nullable;\n+\n+/**\n+ *Reads excel file(s) rows and convert them to structure records.\n+ */\n+@Plugin(type = BatchSource.PLUGIN_TYPE)\n+@Name(\"ExcelInputReader\")\n+@Description(\"Batch Source to read one or more excel files and convert rows to structure records using \" +\n+  \"input columns, column-mapping and field-type mapping.\")\n+public class ExcelInputReader extends BatchSource<LongWritable, Object, StructuredRecord> {\n+\n+  public static final String KEY = \"key\";\n+  public static final String FILE = \"file\";\n+  public static final String SHEET = \"sheet\";\n+  public static final String RECORD = \"record\";\n+  public static final String EXIT_ON_ERROR = \"Exit on error\";\n+  public static final String WRITE_ERROR_DATASET = \"Write to error dataset\";\n+  public static final String NULL = \"NULL\";\n+  public static final String END = \"END\";\n+  private static final Gson GSON = new Gson();\n+  private static final Type ARRAYLIST_PREPROCESSED_FILES = new TypeToken<ArrayList<String>>() {\n+  }.getType();\n+  private final ExcelInputReaderConfig excelInputreaderConfig;\n+  private Schema outputSchema;\n+  private Map<String, String> columnMapping = new HashMap<>();\n+  private Map<String, String> outputSchemaMapping = new HashMap<>();\n+  private List<String> inputColumns;\n+  private Map<String, String> outputFieldsMapping = new HashMap<>();\n+  private BatchRuntimeContext batchRuntimeContext;\n+  private Map<String, Integer> filePrevRowNumMap = new HashMap<>();\n+\n+\n+  public ExcelInputReader(ExcelInputReaderConfig excelReaderConfig) {\n+    this.excelInputreaderConfig = excelReaderConfig;\n+  }\n+\n+  private Schema errorRecordSchema =\n+    Schema.recordOf(\"schema\",\n+                    Schema.Field.of(KEY, Schema.of(Schema.Type.STRING)),\n+                    Schema.Field.of(FILE, Schema.of(Schema.Type.STRING)),\n+                    Schema.Field.of(SHEET, Schema.of(Schema.Type.STRING)),\n+                    Schema.Field.of(RECORD, Schema.of(Schema.Type.STRING)));\n+\n+  @Override\n+  public void initialize(BatchRuntimeContext context) throws Exception {\n+    batchRuntimeContext = context;\n+    init();\n+  }\n+\n+  /**\n+   * Initialize and set maps from input config object\n+   */\n+  private void init() {\n+    if (!Strings.isNullOrEmpty(excelInputreaderConfig.columnList)) {\n+      String[] columnsList = excelInputreaderConfig.columnList.split(\",\");\n+      inputColumns = Arrays.asList(columnsList);\n+    }\n+\n+    if (!Strings.isNullOrEmpty(excelInputreaderConfig.columnMapping)) {\n+      String[] mappings = excelInputreaderConfig.columnMapping.split(\",\");\n+      for (String map : mappings) {\n+        String[] columns = map.split(\":\");\n+        if (CollectionUtils.isNotEmpty(inputColumns) && !inputColumns.contains(columns[0])) {\n+          throw new IllegalArgumentException(\"Column name: \" + columns[0] + \" in 'Column-Label Mapping' does not \" +\n+                                               \"match the columns in the 'Column To Be Extracted' input text box. \" +\n+                                               \"It has to be one of the columns in 'Column To Be Extracted' \" +\n+                                               \"input text box.\");\n+        }\n+        columnMapping.put(columns[0], columns[1]);\n+      }\n+    }\n+\n+    if (!Strings.isNullOrEmpty(excelInputreaderConfig.outputSchema)) {\n+      String[] schemaList = excelInputreaderConfig.outputSchema.split(\",\");\n+      for (String schema : schemaList) {\n+        String[] columns = schema.split(\":\");\n+        if (CollectionUtils.isNotEmpty(inputColumns) && !inputColumns.contains(columns[0])) {\n+          throw new IllegalArgumentException(\"Column name: \" + columns[0] + \" in 'Field Name Schema Type Mapping'\" +\n+                                               \" does not match the columns in the 'Column To Be Extracted' input \" +\n+                                               \"text box. It has to be one of the columns in \" +\n+                                               \"'Column To Be Extracted' input text box.\");\n+        }\n+        outputSchemaMapping.put(columns[0], columns[1]);\n+      }\n+    }\n+  }\n+\n+  @Override\n+  public void transform(KeyValue<LongWritable, Object> input, Emitter<StructuredRecord> emitter) throws Exception {\n+\n+    getOutputSchema();\n+    StructuredRecord.Builder builder = StructuredRecord.builder(outputSchema);\n+    String inputValue = input.getValue().toString();\n+\n+    String[] excelRecords = inputValue.split(\"\\t\");\n+\n+    String fileName = excelRecords[1];\n+    String sheetName = excelRecords[2];\n+    String ifEndRow = excelRecords[3];\n+\n+    int prevRowNum = Integer.parseInt(excelRecords[0]);\n+\n+    if (filePrevRowNumMap.containsKey(fileName)) {\n+      if (prevRowNum - filePrevRowNumMap.get(fileName) > 1 &&\n+        excelInputreaderConfig.terminateIfEmptyRow.equalsIgnoreCase(\"true\")) {\n+        throw new ExecutionException(\"Encountered empty row while reading Excel file :\" + fileName +\n+                                       \" . Terminating processing\", new Throwable());\n+      }\n+    }\n+\n+    filePrevRowNumMap.put(fileName, prevRowNum);\n+\n+    Map<String, String> excelColumnValueMap = new HashMap<>();\n+\n+    for (String columns : excelRecords) {\n+      String[] columnValueArray = columns.split(\"\\r\");\n+      if (columnValueArray.length > 1) {\n+        String columnName = columnValueArray[0];\n+        String columnValue = columnValueArray[1];\n+\n+        if (columnMapping.containsKey(columnName)) {\n+          excelColumnValueMap.put(columnMapping.get(columnName), columnValue);\n+        } else {\n+          excelColumnValueMap.put(columnName, columnValue);\n+        }\n+      }\n+    }\n+\n+    try {\n+      for (Schema.Field field : outputSchema.getFields()) {\n+        String fieldName = field.getName();\n+        if (excelColumnValueMap.containsKey(fieldName)) {\n+          builder.convertAndSet(fieldName, excelColumnValueMap.get(fieldName));\n+        } else {\n+          builder.set(fieldName, NULL);\n+        }\n+      }\n+\n+      builder.set(FILE, new Path(fileName).getName());\n+      builder.set(SHEET, sheetName);\n+\n+      if (ifEndRow.equalsIgnoreCase(END)) {\n+        trackProcessedFiles(fileName);\n+      }\n+\n+      emitter.emit(builder.build());\n+    } catch (Exception e) {\n+      switch (excelInputreaderConfig.ifErrorRecord) {\n+        case EXIT_ON_ERROR:\n+          throw new IllegalStateException(\"Terminating processing on error : \" + e.getMessage());\n+        case WRITE_ERROR_DATASET:\n+          StructuredRecord.Builder errorRecordBuilder = StructuredRecord.builder(errorRecordSchema);\n+          errorRecordBuilder.set(KEY, fileName + \"_\" + sheetName + \"_\" + excelRecords[0]);\n+          errorRecordBuilder.set(FILE, fileName);\n+          errorRecordBuilder.set(SHEET, sheetName);\n+          errorRecordBuilder.set(RECORD, inputValue);\n+          writeErrorRecordToDataset(errorRecordBuilder.build());\n+          break;\n+        default:\n+          //ignore on error\n+          break;\n+      }\n+\n+    }\n+\n+  }\n+\n+  /**\n+   * Writes proceesed file name to memory table.\n+   * @param fileName\n+   */\n+  private void trackProcessedFiles(String fileName) {\n+    KeyValueTable processedFileMemoryTable = batchRuntimeContext.getDataset(excelInputreaderConfig.memoryTableName);\n+    processedFileMemoryTable.write(fileName, String.valueOf(System.currentTimeMillis()));\n+  }\n+\n+  /**\n+   * Writes error record to error dataset.\n+   * @param errorRecord in the form of {@link StructuredRecord}\n+   * throws {@link IOException}\n+   */\n+  private void writeErrorRecordToDataset(StructuredRecord errorRecord) throws IOException {","path":"core-plugins/src/main/java/co/cask/hydrator/plugin/batch/source/ExcelInputReader.java","position":239,"original_position":239,"commit_id":"c891af4bb7920ed69f5d45494d41e16fc464061a","original_commit_id":"c891af4bb7920ed69f5d45494d41e16fc464061a","user":{"login":"nitinmotgi","id":1365919,"avatar_url":"https://avatars.githubusercontent.com/u/1365919?v=3","gravatar_id":"","url":"https://api.github.com/users/nitinmotgi","html_url":"https://github.com/nitinmotgi","followers_url":"https://api.github.com/users/nitinmotgi/followers","following_url":"https://api.github.com/users/nitinmotgi/following{/other_user}","gists_url":"https://api.github.com/users/nitinmotgi/gists{/gist_id}","starred_url":"https://api.github.com/users/nitinmotgi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nitinmotgi/subscriptions","organizations_url":"https://api.github.com/users/nitinmotgi/orgs","repos_url":"https://api.github.com/users/nitinmotgi/repos","events_url":"https://api.github.com/users/nitinmotgi/events{/privacy}","received_events_url":"https://api.github.com/users/nitinmotgi/received_events","type":"User","site_admin":false},"body":"It's same with this. ","created_at":"2016-07-08T04:54:05Z","updated_at":"2016-07-08T04:54:05Z","html_url":"https://github.com/caskdata/hydrator-plugins/pull/304#discussion_r70025183","pull_request_url":"https://api.github.com/repos/caskdata/hydrator-plugins/pulls/304","_links":{"self":{"href":"https://api.github.com/repos/caskdata/hydrator-plugins/pulls/comments/70025183"},"html":{"href":"https://github.com/caskdata/hydrator-plugins/pull/304#discussion_r70025183"},"pull_request":{"href":"https://api.github.com/repos/caskdata/hydrator-plugins/pulls/304"}}},"pull_request":{"url":"https://api.github.com/repos/caskdata/hydrator-plugins/pulls/304","id":76460509,"html_url":"https://github.com/caskdata/hydrator-plugins/pull/304","diff_url":"https://github.com/caskdata/hydrator-plugins/pull/304.diff","patch_url":"https://github.com/caskdata/hydrator-plugins/pull/304.patch","issue_url":"https://api.github.com/repos/caskdata/hydrator-plugins/issues/304","number":304,"state":"open","locked":false,"title":"CDAP-6176, Excel Input Reader implementation","user":{"login":"romy-khetan","id":3714394,"avatar_url":"https://avatars.githubusercontent.com/u/3714394?v=3","gravatar_id":"","url":"https://api.github.com/users/romy-khetan","html_url":"https://github.com/romy-khetan","followers_url":"https://api.github.com/users/romy-khetan/followers","following_url":"https://api.github.com/users/romy-khetan/following{/other_user}","gists_url":"https://api.github.com/users/romy-khetan/gists{/gist_id}","starred_url":"https://api.github.com/users/romy-khetan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/romy-khetan/subscriptions","organizations_url":"https://api.github.com/users/romy-khetan/orgs","repos_url":"https://api.github.com/users/romy-khetan/repos","events_url":"https://api.github.com/users/romy-khetan/events{/privacy}","received_events_url":"https://api.github.com/users/romy-khetan/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-07-06T16:20:45Z","updated_at":"2016-07-08T04:54:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9c439ab97564d64b1d011e522257fedd435f6f84","assignee":{"login":"nitinmotgi","id":1365919,"avatar_url":"https://avatars.githubusercontent.com/u/1365919?v=3","gravatar_id":"","url":"https://api.github.com/users/nitinmotgi","html_url":"https://github.com/nitinmotgi","followers_url":"https://api.github.com/users/nitinmotgi/followers","following_url":"https://api.github.com/users/nitinmotgi/following{/other_user}","gists_url":"https://api.github.com/users/nitinmotgi/gists{/gist_id}","starred_url":"https://api.github.com/users/nitinmotgi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nitinmotgi/subscriptions","organizations_url":"https://api.github.com/users/nitinmotgi/orgs","repos_url":"https://api.github.com/users/nitinmotgi/repos","events_url":"https://api.github.com/users/nitinmotgi/events{/privacy}","received_events_url":"https://api.github.com/users/nitinmotgi/received_events","type":"User","site_admin":false},"assignees":[{"login":"nitinmotgi","id":1365919,"avatar_url":"https://avatars.githubusercontent.com/u/1365919?v=3","gravatar_id":"","url":"https://api.github.com/users/nitinmotgi","html_url":"https://github.com/nitinmotgi","followers_url":"https://api.github.com/users/nitinmotgi/followers","following_url":"https://api.github.com/users/nitinmotgi/following{/other_user}","gists_url":"https://api.github.com/users/nitinmotgi/gists{/gist_id}","starred_url":"https://api.github.com/users/nitinmotgi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nitinmotgi/subscriptions","organizations_url":"https://api.github.com/users/nitinmotgi/orgs","repos_url":"https://api.github.com/users/nitinmotgi/repos","events_url":"https://api.github.com/users/nitinmotgi/events{/privacy}","received_events_url":"https://api.github.com/users/nitinmotgi/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/caskdata/hydrator-plugins/pulls/304/commits","review_comments_url":"https://api.github.com/repos/caskdata/hydrator-plugins/pulls/304/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/304/comments","statuses_url":"https://api.github.com/repos/caskdata/hydrator-plugins/statuses/c891af4bb7920ed69f5d45494d41e16fc464061a","head":{"label":"romy-khetan:feature/excel-plugin","ref":"feature/excel-plugin","sha":"c891af4bb7920ed69f5d45494d41e16fc464061a","user":{"login":"romy-khetan","id":3714394,"avatar_url":"https://avatars.githubusercontent.com/u/3714394?v=3","gravatar_id":"","url":"https://api.github.com/users/romy-khetan","html_url":"https://github.com/romy-khetan","followers_url":"https://api.github.com/users/romy-khetan/followers","following_url":"https://api.github.com/users/romy-khetan/following{/other_user}","gists_url":"https://api.github.com/users/romy-khetan/gists{/gist_id}","starred_url":"https://api.github.com/users/romy-khetan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/romy-khetan/subscriptions","organizations_url":"https://api.github.com/users/romy-khetan/orgs","repos_url":"https://api.github.com/users/romy-khetan/repos","events_url":"https://api.github.com/users/romy-khetan/events{/privacy}","received_events_url":"https://api.github.com/users/romy-khetan/received_events","type":"User","site_admin":false},"repo":{"id":57360824,"name":"hydrator-plugins","full_name":"romy-khetan/hydrator-plugins","owner":{"login":"romy-khetan","id":3714394,"avatar_url":"https://avatars.githubusercontent.com/u/3714394?v=3","gravatar_id":"","url":"https://api.github.com/users/romy-khetan","html_url":"https://github.com/romy-khetan","followers_url":"https://api.github.com/users/romy-khetan/followers","following_url":"https://api.github.com/users/romy-khetan/following{/other_user}","gists_url":"https://api.github.com/users/romy-khetan/gists{/gist_id}","starred_url":"https://api.github.com/users/romy-khetan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/romy-khetan/subscriptions","organizations_url":"https://api.github.com/users/romy-khetan/orgs","repos_url":"https://api.github.com/users/romy-khetan/repos","events_url":"https://api.github.com/users/romy-khetan/events{/privacy}","received_events_url":"https://api.github.com/users/romy-khetan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/romy-khetan/hydrator-plugins","description":"Cask Hydrator Plugins Repository","fork":true,"url":"https://api.github.com/repos/romy-khetan/hydrator-plugins","forks_url":"https://api.github.com/repos/romy-khetan/hydrator-plugins/forks","keys_url":"https://api.github.com/repos/romy-khetan/hydrator-plugins/keys{/key_id}","collaborators_url":"https://api.github.com/repos/romy-khetan/hydrator-plugins/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/romy-khetan/hydrator-plugins/teams","hooks_url":"https://api.github.com/repos/romy-khetan/hydrator-plugins/hooks","issue_events_url":"https://api.github.com/repos/romy-khetan/hydrator-plugins/issues/events{/number}","events_url":"https://api.github.com/repos/romy-khetan/hydrator-plugins/events","assignees_url":"https://api.github.com/repos/romy-khetan/hydrator-plugins/assignees{/user}","branches_url":"https://api.github.com/repos/romy-khetan/hydrator-plugins/branches{/branch}","tags_url":"https://api.github.com/repos/romy-khetan/hydrator-plugins/tags","blobs_url":"https://api.github.com/repos/romy-khetan/hydrator-plugins/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/romy-khetan/hydrator-plugins/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/romy-khetan/hydrator-plugins/git/refs{/sha}","trees_url":"https://api.github.com/repos/romy-khetan/hydrator-plugins/git/trees{/sha}","statuses_url":"https://api.github.com/repos/romy-khetan/hydrator-plugins/statuses/{sha}","languages_url":"https://api.github.com/repos/romy-khetan/hydrator-plugins/languages","stargazers_url":"https://api.github.com/repos/romy-khetan/hydrator-plugins/stargazers","contributors_url":"https://api.github.com/repos/romy-khetan/hydrator-plugins/contributors","subscribers_url":"https://api.github.com/repos/romy-khetan/hydrator-plugins/subscribers","subscription_url":"https://api.github.com/repos/romy-khetan/hydrator-plugins/subscription","commits_url":"https://api.github.com/repos/romy-khetan/hydrator-plugins/commits{/sha}","git_commits_url":"https://api.github.com/repos/romy-khetan/hydrator-plugins/git/commits{/sha}","comments_url":"https://api.github.com/repos/romy-khetan/hydrator-plugins/comments{/number}","issue_comment_url":"https://api.github.com/repos/romy-khetan/hydrator-plugins/issues/comments{/number}","contents_url":"https://api.github.com/repos/romy-khetan/hydrator-plugins/contents/{+path}","compare_url":"https://api.github.com/repos/romy-khetan/hydrator-plugins/compare/{base}...{head}","merges_url":"https://api.github.com/repos/romy-khetan/hydrator-plugins/merges","archive_url":"https://api.github.com/repos/romy-khetan/hydrator-plugins/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/romy-khetan/hydrator-plugins/downloads","issues_url":"https://api.github.com/repos/romy-khetan/hydrator-plugins/issues{/number}","pulls_url":"https://api.github.com/repos/romy-khetan/hydrator-plugins/pulls{/number}","milestones_url":"https://api.github.com/repos/romy-khetan/hydrator-plugins/milestones{/number}","notifications_url":"https://api.github.com/repos/romy-khetan/hydrator-plugins/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/romy-khetan/hydrator-plugins/labels{/name}","releases_url":"https://api.github.com/repos/romy-khetan/hydrator-plugins/releases{/id}","deployments_url":"https://api.github.com/repos/romy-khetan/hydrator-plugins/deployments","created_at":"2016-04-29T06:37:39Z","updated_at":"2016-04-29T06:37:42Z","pushed_at":"2016-07-06T16:19:40Z","git_url":"git://github.com/romy-khetan/hydrator-plugins.git","ssh_url":"git@github.com:romy-khetan/hydrator-plugins.git","clone_url":"https://github.com/romy-khetan/hydrator-plugins.git","svn_url":"https://github.com/romy-khetan/hydrator-plugins","homepage":"","size":2761,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"caskdata:develop","ref":"develop","sha":"5fc4c6d41fe778622f78f4b47110a73b6f52b580","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}","deployments_url":"https://api.github.com/repos/caskdata/hydrator-plugins/deployments","created_at":"2015-07-30T00:14:48Z","updated_at":"2016-07-04T15:58:46Z","pushed_at":"2016-07-06T20:02:24Z","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":3114,"stargazers_count":18,"watchers_count":18,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":13,"mirror_url":null,"open_issues_count":8,"forks":13,"open_issues":8,"watchers":18,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/caskdata/hydrator-plugins/pulls/304"},"html":{"href":"https://github.com/caskdata/hydrator-plugins/pull/304"},"issue":{"href":"https://api.github.com/repos/caskdata/hydrator-plugins/issues/304"},"comments":{"href":"https://api.github.com/repos/caskdata/hydrator-plugins/issues/304/comments"},"review_comments":{"href":"https://api.github.com/repos/caskdata/hydrator-plugins/pulls/304/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/304/commits"},"statuses":{"href":"https://api.github.com/repos/caskdata/hydrator-plugins/statuses/c891af4bb7920ed69f5d45494d41e16fc464061a"}}}}
{"actor":{"display_login":"nitinmotgi"}}