{"action":"created","comment":{"url":"https://api.github.com/repos/caskdata/cdap/pulls/comments/32789684","id":32789684,"diff_hunk":"@@ -0,0 +1,271 @@\n+/*\n+ * Copyright © 2015 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.cdap.template.etl.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.common.Bytes;\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.KeyValue;\n+import co.cask.cdap.api.dataset.lib.KeyValueTable;\n+import co.cask.cdap.api.templates.plugins.PluginConfig;\n+import co.cask.cdap.template.etl.api.Emitter;\n+import co.cask.cdap.template.etl.api.PipelineConfigurer;\n+import co.cask.cdap.template.etl.api.batch.BatchSource;\n+import co.cask.cdap.template.etl.api.batch.BatchSourceContext;\n+import org.apache.hadoop.conf.Configuration;\n+import org.apache.hadoop.conf.Configured;\n+import org.apache.hadoop.fs.Path;\n+import org.apache.hadoop.fs.PathFilter;\n+import org.apache.hadoop.io.LongWritable;\n+import org.apache.hadoop.io.Text;\n+import org.apache.hadoop.mapreduce.Job;\n+import org.apache.hadoop.mapreduce.lib.input.FileInputFormat;\n+import org.slf4j.Logger;\n+import org.slf4j.LoggerFactory;\n+\n+import java.text.ParseException;\n+import java.text.SimpleDateFormat;\n+import java.util.Calendar;\n+import java.util.Date;\n+import java.util.concurrent.TimeUnit;\n+import java.util.regex.Matcher;\n+import java.util.regex.Pattern;\n+import javax.annotation.Nullable;\n+\n+/**\n+ * A {@link BatchSource} to use S3 as a Source.\n+ */\n+@SuppressWarnings(\"unused\")\n+@Plugin(type = \"source\")\n+@Name(\"S3\")\n+@Description(\"Batch source for S3\")\n+public class S3BatchSource extends BatchSource<LongWritable, Text, StructuredRecord> {\n+\n+  private static KeyValueTable table;\n+  private static Date prevMinute;\n+  private static String currentTime;\n+\n+  private static final String REGEX_DESCRIPTION = \"Regex to filter out filenames in the path. \" +\n+    \"To use the TimeFilter, input \\\"timefilter\\\". The TimeFilter assumes that we \" +\n+    \"are reading in files with the S3 log naming convention of YYYY-MM-DD-HH-mm-SS-Tag. The TimeFilter \" +\n+    \"reads in files from the previous hour if the timeTable field is left blank. So if it's currently \" +\n+    \"2015-06-16-15, (June 16th 2015, 3pm), it will read in files that contain 2015-06-16-14 in the filename. \" +\n+    \"If the field timeTable is present, then it will read files in that haven't been read yet.\";\n+  private static final String NAME_DESCRIPTION = \"Name of the S3 source.\";\n+  private static final String ACCESS_ID_DESCRIPTION = \"AccessID of the S3 source.\";\n+  private static final String ACCESS_KEY_DESCRIPTION = \"AccessKey of the S3 source.\";\n+  private static final String PATH_DESCRIPTION = \"Path to file(s) to be read. If a directory is specified,\" +\n+    \" terminate the path name with a \\'/\\'\";\n+  private static final String TABLE_DESCRIPTION = \"Name of the Table that keeps track of the last time files\" +\n+    \" were read in.\";\n+\n+\n+  //length of 'YYYY-MM-dd-HH-mm\"\n+  private static final int DATE_LENGTH = 16;\n+  private static final Logger LOG = LoggerFactory.getLogger(S3BatchSource.class);\n+  private S3BatchConfig config;\n+\n+  private static final Schema DEFAULT_SCHEMA = Schema.recordOf(\n+    \"event\",\n+    Schema.Field.of(\"ts\", Schema.of(Schema.Type.LONG)),\n+   Schema.Field.of(\"body\", Schema.of(Schema.Type.STRING))\n+  );\n+\n+  public S3BatchSource (S3BatchConfig config) {\n+    this.config = config;\n+  }\n+\n+  @Override\n+  public void configurePipeline(PipelineConfigurer pipelineConfigurer) {\n+    //will create the table if it doesn't exist already\n+    if (config.timeTable != null) {\n+      pipelineConfigurer.createDataset(config.timeTable, KeyValueTable.class, DatasetProperties.EMPTY);\n+    }\n+  }\n+\n+  @Override\n+  public void prepareRun(BatchSourceContext context) throws Exception {\n+    //calculate date one minute ago, rounded down to the nearest minute\n+    prevMinute = new Date();\n+    prevMinute.setTime(System.currentTimeMillis() - TimeUnit.MINUTES.toMillis(1));\n+    Calendar cal = Calendar.getInstance();\n+    cal.setTime(prevMinute);\n+    cal.set(Calendar.SECOND, 0);\n+    cal.set(Calendar.MILLISECOND, 0);\n+    prevMinute = cal.getTime();\n+    currentTime = new SimpleDateFormat(\"yyyy-MM-dd-HH-mm\").format(prevMinute);\n+\n+    Job job = context.getHadoopJob();\n+    job.getConfiguration().set(\"fs.s3n.awsAccessKeyId\", config.accessID);\n+    job.getConfiguration().set(\"fs.s3n.awsSecretAccessKey\", config.accessKey);\n+    if (config.fileRegex != null) {\n+      job.getConfiguration().set(\"input.path.regex\", config.fileRegex);\n+    }\n+    job.getConfiguration().set(\"input.path.name\", config.path);\n+    if (config.timeTable != null) {\n+      table = context.getDataset(config.timeTable);\n+    }\n+\n+    FileInputFormat.setInputPathFilter(job, S3Filter.class);\n+    FileInputFormat.addInputPath(job, new Path(config.path));\n+  }\n+\n+  @Override\n+  public void transform(KeyValue<LongWritable, Text> input, Emitter<StructuredRecord> emitter) throws Exception {\n+    StructuredRecord output = StructuredRecord.builder(DEFAULT_SCHEMA)\n+      .set(\"ts\", System.currentTimeMillis())\n+      .set(\"body\", input.getValue().toString())\n+      .build();\n+    emitter.emit(output);\n+  }\n+\n+  @Override\n+  public void onRunFinish(boolean succeeded, BatchSourceContext context) {\n+    if (succeeded && table != null && config.fileRegex != null && config.fileRegex.equals(\"timefilter\")) {\n+      table.write(\"lastTimeRead\", currentTime);\n+    }\n+  }\n+\n+  /**\n+   * Filter class to filter out filenames in the input path.\n+   */\n+  public static class S3Filter extends Configured implements PathFilter {\n+    private boolean useTimeFilter;\n+    private Pattern regex;\n+    private String pathName;\n+\n+    @Override\n+    public boolean accept(Path path) {\n+      String filename = path.toString();\n+      System.out.println(\"attempt :\" + filename);\n+      //InputPathFilter will first check the directory if a directory is given\n+      if (filename.equals(pathName) || filename.equals(pathName + \"/\")) {\n+        return true;\n+      }\n+\n+      if (useTimeFilter) {\n+        //use stateful time filter\n+        if (table != null) {\n+          String lastRead = Bytes.toString(table.read(\"lastTimeRead\"));\n+          SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd-HH-mm\");\n+          Date dateLastRead;\n+          try {\n+            dateLastRead = sdf.parse(lastRead);\n+          } catch (Exception e) {\n+            dateLastRead = new Date();\n+            dateLastRead.setTime(0);\n+          }\n+\n+          Date fileDate;\n+          try {\n+            System.out.println(\"FILENAME puppies: \" + path.toString());\n+            System.out.println(\"PATHNAME :\" + pathName);\n+            fileDate = sdf.parse(path.getName().substring(0, DATE_LENGTH));\n+          } catch (ParseException pe) {\n+            //this should never happen\n+            LOG.warn(\"Couldn't parse file: \" + path.getName());\n+            fileDate = prevMinute;\n+          }\n+\n+          if (fileDate.compareTo(dateLastRead) > 0 && fileDate.compareTo(prevMinute) <= 0) {\n+            return true;\n+          }\n+          return false;\n+        } else {\n+          //use hourly time filter\n+          Date prevHour = new Date();\n+          prevHour.setTime(System.currentTimeMillis() - TimeUnit.HOURS.toMillis(1));\n+          String currentTime = new SimpleDateFormat(\"yyyy-MM-dd-HH\").format(prevHour);\n+\n+          if (filename.contains(currentTime)) {","path":"cdap-app-templates/cdap-etl/cdap-etl-lib/src/main/java/co/cask/cdap/template/etl/batch/source/S3BatchSource.java","position":198,"original_position":198,"commit_id":"a52e5f1b0620fd049be911f62e966f92520cb7f9","original_commit_id":"a52e5f1b0620fd049be911f62e966f92520cb7f9","user":{"login":"anwar6953","id":2440977,"avatar_url":"https://avatars.githubusercontent.com/u/2440977?v=3","gravatar_id":"","url":"https://api.github.com/users/anwar6953","html_url":"https://github.com/anwar6953","followers_url":"https://api.github.com/users/anwar6953/followers","following_url":"https://api.github.com/users/anwar6953/following{/other_user}","gists_url":"https://api.github.com/users/anwar6953/gists{/gist_id}","starred_url":"https://api.github.com/users/anwar6953/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anwar6953/subscriptions","organizations_url":"https://api.github.com/users/anwar6953/orgs","repos_url":"https://api.github.com/users/anwar6953/repos","events_url":"https://api.github.com/users/anwar6953/events{/privacy}","received_events_url":"https://api.github.com/users/anwar6953/received_events","type":"User","site_admin":false},"body":"replace this line and following t3 lines with the following? :\r\n```java\r\nreturn filename.contains(currentTime)\r\n```","created_at":"2015-06-18T23:29:27Z","updated_at":"2015-06-18T23:29:27Z","html_url":"https://github.com/caskdata/cdap/pull/2997#discussion_r32789684","pull_request_url":"https://api.github.com/repos/caskdata/cdap/pulls/2997","_links":{"self":{"href":"https://api.github.com/repos/caskdata/cdap/pulls/comments/32789684"},"html":{"href":"https://github.com/caskdata/cdap/pull/2997#discussion_r32789684"},"pull_request":{"href":"https://api.github.com/repos/caskdata/cdap/pulls/2997"}}},"pull_request":{"url":"https://api.github.com/repos/caskdata/cdap/pulls/2997","id":38063352,"html_url":"https://github.com/caskdata/cdap/pull/2997","diff_url":"https://github.com/caskdata/cdap/pull/2997.diff","patch_url":"https://github.com/caskdata/cdap/pull/2997.patch","issue_url":"https://api.github.com/repos/caskdata/cdap/issues/2997","number":2997,"state":"open","locked":false,"title":"[CDAP-2739] Include S3 as a batch source for ETL","user":{"login":"jayfjin","id":8236506,"avatar_url":"https://avatars.githubusercontent.com/u/8236506?v=3","gravatar_id":"","url":"https://api.github.com/users/jayfjin","html_url":"https://github.com/jayfjin","followers_url":"https://api.github.com/users/jayfjin/followers","following_url":"https://api.github.com/users/jayfjin/following{/other_user}","gists_url":"https://api.github.com/users/jayfjin/gists{/gist_id}","starred_url":"https://api.github.com/users/jayfjin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jayfjin/subscriptions","organizations_url":"https://api.github.com/users/jayfjin/orgs","repos_url":"https://api.github.com/users/jayfjin/repos","events_url":"https://api.github.com/users/jayfjin/events{/privacy}","received_events_url":"https://api.github.com/users/jayfjin/received_events","type":"User","site_admin":false},"body":"Build - http://builds.cask.co/browse/CDAP-DUT2023-4\r\nJIRA - https://issues.cask.co/browse/CDAP-2739\r\n\r\nPR to include S3 as a batch source for ETL. Has already been tested with the UI and works with statefulness. ","created_at":"2015-06-18T23:17:04Z","updated_at":"2015-06-18T23:29:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0db510dcb485b7fc510318c52eed5187ad79f6d8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/caskdata/cdap/pulls/2997/commits","review_comments_url":"https://api.github.com/repos/caskdata/cdap/pulls/2997/comments","review_comment_url":"https://api.github.com/repos/caskdata/cdap/pulls/comments{/number}","comments_url":"https://api.github.com/repos/caskdata/cdap/issues/2997/comments","statuses_url":"https://api.github.com/repos/caskdata/cdap/statuses/a52e5f1b0620fd049be911f62e966f92520cb7f9","head":{"label":"caskdata:feature/S3-batch-source","ref":"feature/S3-batch-source","sha":"a52e5f1b0620fd049be911f62e966f92520cb7f9","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":22542759,"name":"cdap","full_name":"caskdata/cdap","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/cdap","description":"Cask Data Application Platform (CDAP)","fork":false,"url":"https://api.github.com/repos/caskdata/cdap","forks_url":"https://api.github.com/repos/caskdata/cdap/forks","keys_url":"https://api.github.com/repos/caskdata/cdap/keys{/key_id}","collaborators_url":"https://api.github.com/repos/caskdata/cdap/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/caskdata/cdap/teams","hooks_url":"https://api.github.com/repos/caskdata/cdap/hooks","issue_events_url":"https://api.github.com/repos/caskdata/cdap/issues/events{/number}","events_url":"https://api.github.com/repos/caskdata/cdap/events","assignees_url":"https://api.github.com/repos/caskdata/cdap/assignees{/user}","branches_url":"https://api.github.com/repos/caskdata/cdap/branches{/branch}","tags_url":"https://api.github.com/repos/caskdata/cdap/tags","blobs_url":"https://api.github.com/repos/caskdata/cdap/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/caskdata/cdap/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/caskdata/cdap/git/refs{/sha}","trees_url":"https://api.github.com/repos/caskdata/cdap/git/trees{/sha}","statuses_url":"https://api.github.com/repos/caskdata/cdap/statuses/{sha}","languages_url":"https://api.github.com/repos/caskdata/cdap/languages","stargazers_url":"https://api.github.com/repos/caskdata/cdap/stargazers","contributors_url":"https://api.github.com/repos/caskdata/cdap/contributors","subscribers_url":"https://api.github.com/repos/caskdata/cdap/subscribers","subscription_url":"https://api.github.com/repos/caskdata/cdap/subscription","commits_url":"https://api.github.com/repos/caskdata/cdap/commits{/sha}","git_commits_url":"https://api.github.com/repos/caskdata/cdap/git/commits{/sha}","comments_url":"https://api.github.com/repos/caskdata/cdap/comments{/number}","issue_comment_url":"https://api.github.com/repos/caskdata/cdap/issues/comments{/number}","contents_url":"https://api.github.com/repos/caskdata/cdap/contents/{+path}","compare_url":"https://api.github.com/repos/caskdata/cdap/compare/{base}...{head}","merges_url":"https://api.github.com/repos/caskdata/cdap/merges","archive_url":"https://api.github.com/repos/caskdata/cdap/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/caskdata/cdap/downloads","issues_url":"https://api.github.com/repos/caskdata/cdap/issues{/number}","pulls_url":"https://api.github.com/repos/caskdata/cdap/pulls{/number}","milestones_url":"https://api.github.com/repos/caskdata/cdap/milestones{/number}","notifications_url":"https://api.github.com/repos/caskdata/cdap/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/caskdata/cdap/labels{/name}","releases_url":"https://api.github.com/repos/caskdata/cdap/releases{/id}","created_at":"2014-08-02T09:00:10Z","updated_at":"2015-06-15T22:57:56Z","pushed_at":"2015-06-18T23:24:24Z","git_url":"git://github.com/caskdata/cdap.git","ssh_url":"git@github.com:caskdata/cdap.git","clone_url":"https://github.com/caskdata/cdap.git","svn_url":"https://github.com/caskdata/cdap","homepage":"http://cdap.io","size":827920,"stargazers_count":52,"watchers_count":52,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":17,"mirror_url":null,"open_issues_count":23,"forks":17,"open_issues":23,"watchers":52,"default_branch":"develop"}},"base":{"label":"caskdata:develop","ref":"develop","sha":"3031c6bede718b619ad0a55d43128389416cada5","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":22542759,"name":"cdap","full_name":"caskdata/cdap","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/cdap","description":"Cask Data Application Platform (CDAP)","fork":false,"url":"https://api.github.com/repos/caskdata/cdap","forks_url":"https://api.github.com/repos/caskdata/cdap/forks","keys_url":"https://api.github.com/repos/caskdata/cdap/keys{/key_id}","collaborators_url":"https://api.github.com/repos/caskdata/cdap/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/caskdata/cdap/teams","hooks_url":"https://api.github.com/repos/caskdata/cdap/hooks","issue_events_url":"https://api.github.com/repos/caskdata/cdap/issues/events{/number}","events_url":"https://api.github.com/repos/caskdata/cdap/events","assignees_url":"https://api.github.com/repos/caskdata/cdap/assignees{/user}","branches_url":"https://api.github.com/repos/caskdata/cdap/branches{/branch}","tags_url":"https://api.github.com/repos/caskdata/cdap/tags","blobs_url":"https://api.github.com/repos/caskdata/cdap/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/caskdata/cdap/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/caskdata/cdap/git/refs{/sha}","trees_url":"https://api.github.com/repos/caskdata/cdap/git/trees{/sha}","statuses_url":"https://api.github.com/repos/caskdata/cdap/statuses/{sha}","languages_url":"https://api.github.com/repos/caskdata/cdap/languages","stargazers_url":"https://api.github.com/repos/caskdata/cdap/stargazers","contributors_url":"https://api.github.com/repos/caskdata/cdap/contributors","subscribers_url":"https://api.github.com/repos/caskdata/cdap/subscribers","subscription_url":"https://api.github.com/repos/caskdata/cdap/subscription","commits_url":"https://api.github.com/repos/caskdata/cdap/commits{/sha}","git_commits_url":"https://api.github.com/repos/caskdata/cdap/git/commits{/sha}","comments_url":"https://api.github.com/repos/caskdata/cdap/comments{/number}","issue_comment_url":"https://api.github.com/repos/caskdata/cdap/issues/comments{/number}","contents_url":"https://api.github.com/repos/caskdata/cdap/contents/{+path}","compare_url":"https://api.github.com/repos/caskdata/cdap/compare/{base}...{head}","merges_url":"https://api.github.com/repos/caskdata/cdap/merges","archive_url":"https://api.github.com/repos/caskdata/cdap/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/caskdata/cdap/downloads","issues_url":"https://api.github.com/repos/caskdata/cdap/issues{/number}","pulls_url":"https://api.github.com/repos/caskdata/cdap/pulls{/number}","milestones_url":"https://api.github.com/repos/caskdata/cdap/milestones{/number}","notifications_url":"https://api.github.com/repos/caskdata/cdap/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/caskdata/cdap/labels{/name}","releases_url":"https://api.github.com/repos/caskdata/cdap/releases{/id}","created_at":"2014-08-02T09:00:10Z","updated_at":"2015-06-15T22:57:56Z","pushed_at":"2015-06-18T23:24:24Z","git_url":"git://github.com/caskdata/cdap.git","ssh_url":"git@github.com:caskdata/cdap.git","clone_url":"https://github.com/caskdata/cdap.git","svn_url":"https://github.com/caskdata/cdap","homepage":"http://cdap.io","size":827920,"stargazers_count":52,"watchers_count":52,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":17,"mirror_url":null,"open_issues_count":23,"forks":17,"open_issues":23,"watchers":52,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/caskdata/cdap/pulls/2997"},"html":{"href":"https://github.com/caskdata/cdap/pull/2997"},"issue":{"href":"https://api.github.com/repos/caskdata/cdap/issues/2997"},"comments":{"href":"https://api.github.com/repos/caskdata/cdap/issues/2997/comments"},"review_comments":{"href":"https://api.github.com/repos/caskdata/cdap/pulls/2997/comments"},"review_comment":{"href":"https://api.github.com/repos/caskdata/cdap/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/caskdata/cdap/pulls/2997/commits"},"statuses":{"href":"https://api.github.com/repos/caskdata/cdap/statuses/a52e5f1b0620fd049be911f62e966f92520cb7f9"}}}}