{"action":"created","comment":{"url":"https://api.github.com/repos/dswarm/dswarm-es-fields-stats/pulls/comments/87580307","pull_request_review_id":8188465,"id":87580307,"diff_hunk":"@@ -0,0 +1,177 @@\n+#!/usr/bin/env amm\n+\n+import $ivy.`org.slf4j:slf4j-nop:1.7.21`\n+import $ivy.`com.sksamuel.elastic4s::elastic4s-core:2.4.0`\n+\n+import java.util\n+\n+import ammonite.ops._\n+\n+import com.sksamuel.elastic4s.ElasticDsl._\n+import com.sksamuel.elastic4s._\n+\n+import scala.collection.JavaConverters._\n+\n+  val usage =\n+    \"\"\"esfstats - elasticsearch fields statistics\n+\n+esfstats is a Scala program wrapped in a shell script that runs with Ammonite (http://www.lihaoyi.com/Ammonite/#ScalaScripts). It extracts some statistics re. field coverage in the documents.\n+\n+    Usage: esfstats\n+        -host   hostname or IP of the elasticsearch instance\n+        -port   port of the native Elasticsearch transport protocol API\n+        -index  index name\n+        -type   document type\n+        -help   print this help\n+    \"\"\"\n+\n+  type OptionMap = Map[Symbol, String]\n+  type Query = String => QueryDefinition\n+\n+  def nextOption(map: OptionMap, list: List[String]): OptionMap = {\n+\n+    list match {\n+      case Nil => map\n+      case \"-host\" :: value :: tail =>\n+        nextOption(map ++ Map('host -> value.toString), tail)\n+      case \"-port\" :: value :: tail =>\n+        nextOption(map ++ Map('port -> value.toString), tail)\n+      case \"-index\" :: value :: tail =>\n+        nextOption(map ++ Map('index -> value.toString), tail)\n+      case \"-type\" :: value :: tail =>\n+        nextOption(map ++ Map('type -> value.toString), tail)\n+      case \"-help\" :: tail =>\n+        println(usage)\n+        sys.exit(1)\n+      case option :: tail =>\n+        println(\"Unknown option \" + option)\n+        map\n+    }\n+  }\n+\n+  def getFields(index: String, documentType: String, client: ElasticClient): Set[String] = {\n+\n+    val mappings: AnyRef = client.execute {\n+\n+      getMapping(index / documentType)\n+    }.await\n+      .mappings(index)(documentType)\n+      .sourceAsMap()\n+      .get(\"properties\")\n+\n+    mappings match {\n+      case map: util.Map[String, util.Map[String, String]] => map.keySet().asScala.toSet\n+      case _ => Set[String]()\n+    }\n+  }\n+\n+  def executeTotalHitsQuery(index: String, documentType: String, client: ElasticClient)(queryDefinition: QueryDefinition): Long = {\n+\n+    client.execute {\n+\n+      search in index / documentType query queryDefinition size 0\n+    }.await\n+      .totalHits\n+  }\n+\n+  def executeQueryOnFields(index: String, documentType: String, client: ElasticClient)(fields: Set[String])(totalHitsQuery: Query): Map[String, Long] = {\n+\n+    fields.map(field => {\n+\n+      val queryResult = executeTotalHitsQuery(index, documentType, client)(totalHitsQuery(field))\n+\n+      (field, queryResult)\n+    }).toMap\n+  }\n+\n+  def getFieldsExistsTotalHits(index: String, documentType: String, client: ElasticClient)(fields: Set[String]): Map[String, Long] = {\n+\n+    def createFieldExistsTotalHits(field: String): QueryDefinition = {\n+\n+      existsQuery(field)\n+    }\n+\n+    executeQueryOnFields(index, documentType, client)(fields)(createFieldExistsTotalHits)\n+  }\n+\n+  def getFieldsNotExistsTotalHits(index: String, documentType: String, client: ElasticClient)(fields: Set[String]): Map[String, Long] = {\n+\n+\n+    def createFieldNotExistsQuery(field: String): QueryDefinition = {\n+\n+      bool(must(not(existsQuery(field))))\n+    }\n+\n+    executeQueryOnFields(index, documentType, client)(fields)(createFieldNotExistsQuery)\n+  }\n+\n+  def printFieldStats(fieldCounts: Map[String, (Long, Long)]): Unit = {\n+    \n+    val fieldNameHeader = \"field name\"\n+    val fieldExistsCountHeader = \"field exists in (number of documents)\"\n+    val fieldNotExistsCountHeader = \"field not exists in (number of documents)\"\n+    val dash = '-'\n+    val firstColumnDashed = dash.toString * 31\n+    val secondColumnDashed = dash.toString * 39\n+    val thirdColumnDashed = dash.toString * 42\n+\n+    println(f\"$fieldNameHeader%-30s | $fieldExistsCountHeader%-37s | $fieldNotExistsCountHeader%-41s\")\n+    println(f\"$firstColumnDashed|$secondColumnDashed|$thirdColumnDashed\")\n+    println(fieldCounts.map(entry => {\n+\n+      val fieldName = entry._1\n+      val fieldExistsCount = entry._2._1\n+      val fieldNotExistsCount = entry._2._2\n+","path":"esfstats","position":125,"original_position":125,"commit_id":"d2662523a1a0e5f405e7afaee66edb9ef323e79a","original_commit_id":"d2662523a1a0e5f405e7afaee66edb9ef323e79a","user":{"login":"zazi","id":281172,"avatar_url":"https://avatars.githubusercontent.com/u/281172?v=3","gravatar_id":"","url":"https://api.github.com/users/zazi","html_url":"https://github.com/zazi","followers_url":"https://api.github.com/users/zazi/followers","following_url":"https://api.github.com/users/zazi/following{/other_user}","gists_url":"https://api.github.com/users/zazi/gists{/gist_id}","starred_url":"https://api.github.com/users/zazi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zazi/subscriptions","organizations_url":"https://api.github.com/users/zazi/orgs","repos_url":"https://api.github.com/users/zazi/repos","events_url":"https://api.github.com/users/zazi/events{/privacy}","received_events_url":"https://api.github.com/users/zazi/received_events","type":"User","site_admin":false},"body":"oh yeah (yet another poor man's scala impl from me ;) )","created_at":"2016-11-11T12:20:02Z","updated_at":"2016-11-11T12:20:02Z","html_url":"https://github.com/dswarm/dswarm-es-fields-stats/pull/1#discussion_r87580307","pull_request_url":"https://api.github.com/repos/dswarm/dswarm-es-fields-stats/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/dswarm/dswarm-es-fields-stats/pulls/comments/87580307"},"html":{"href":"https://github.com/dswarm/dswarm-es-fields-stats/pull/1#discussion_r87580307"},"pull_request":{"href":"https://api.github.com/repos/dswarm/dswarm-es-fields-stats/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/dswarm/dswarm-es-fields-stats/pulls/1","id":93310157,"html_url":"https://github.com/dswarm/dswarm-es-fields-stats/pull/1","diff_url":"https://github.com/dswarm/dswarm-es-fields-stats/pull/1.diff","patch_url":"https://github.com/dswarm/dswarm-es-fields-stats/pull/1.patch","issue_url":"https://api.github.com/repos/dswarm/dswarm-es-fields-stats/issues/1","number":1,"state":"closed","locked":false,"title":"init elasticsearch fields statistics script","user":{"login":"zazi","id":281172,"avatar_url":"https://avatars.githubusercontent.com/u/281172?v=3","gravatar_id":"","url":"https://api.github.com/users/zazi","html_url":"https://github.com/zazi","followers_url":"https://api.github.com/users/zazi/followers","following_url":"https://api.github.com/users/zazi/following{/other_user}","gists_url":"https://api.github.com/users/zazi/gists{/gist_id}","starred_url":"https://api.github.com/users/zazi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zazi/subscriptions","organizations_url":"https://api.github.com/users/zazi/orgs","repos_url":"https://api.github.com/users/zazi/repos","events_url":"https://api.github.com/users/zazi/events{/privacy}","received_events_url":"https://api.github.com/users/zazi/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-11-11T10:27:38Z","updated_at":"2016-11-11T12:20:02Z","closed_at":"2016-11-11T10:28:24Z","merged_at":"2016-11-11T10:28:24Z","merge_commit_sha":"d3be7c142b606f64f6b0f3398afef7a4b2910e48","assignee":{"login":"jnauber","id":50443,"avatar_url":"https://avatars.githubusercontent.com/u/50443?v=3","gravatar_id":"","url":"https://api.github.com/users/jnauber","html_url":"https://github.com/jnauber","followers_url":"https://api.github.com/users/jnauber/followers","following_url":"https://api.github.com/users/jnauber/following{/other_user}","gists_url":"https://api.github.com/users/jnauber/gists{/gist_id}","starred_url":"https://api.github.com/users/jnauber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jnauber/subscriptions","organizations_url":"https://api.github.com/users/jnauber/orgs","repos_url":"https://api.github.com/users/jnauber/repos","events_url":"https://api.github.com/users/jnauber/events{/privacy}","received_events_url":"https://api.github.com/users/jnauber/received_events","type":"User","site_admin":false},"assignees":[{"login":"jnauber","id":50443,"avatar_url":"https://avatars.githubusercontent.com/u/50443?v=3","gravatar_id":"","url":"https://api.github.com/users/jnauber","html_url":"https://github.com/jnauber","followers_url":"https://api.github.com/users/jnauber/followers","following_url":"https://api.github.com/users/jnauber/following{/other_user}","gists_url":"https://api.github.com/users/jnauber/gists{/gist_id}","starred_url":"https://api.github.com/users/jnauber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jnauber/subscriptions","organizations_url":"https://api.github.com/users/jnauber/orgs","repos_url":"https://api.github.com/users/jnauber/repos","events_url":"https://api.github.com/users/jnauber/events{/privacy}","received_events_url":"https://api.github.com/users/jnauber/received_events","type":"User","site_admin":false},{"login":"fniederl","id":9192087,"avatar_url":"https://avatars.githubusercontent.com/u/9192087?v=3","gravatar_id":"","url":"https://api.github.com/users/fniederl","html_url":"https://github.com/fniederl","followers_url":"https://api.github.com/users/fniederl/followers","following_url":"https://api.github.com/users/fniederl/following{/other_user}","gists_url":"https://api.github.com/users/fniederl/gists{/gist_id}","starred_url":"https://api.github.com/users/fniederl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fniederl/subscriptions","organizations_url":"https://api.github.com/users/fniederl/orgs","repos_url":"https://api.github.com/users/fniederl/repos","events_url":"https://api.github.com/users/fniederl/events{/privacy}","received_events_url":"https://api.github.com/users/fniederl/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/dswarm/dswarm-es-fields-stats/pulls/1/commits","review_comments_url":"https://api.github.com/repos/dswarm/dswarm-es-fields-stats/pulls/1/comments","review_comment_url":"https://api.github.com/repos/dswarm/dswarm-es-fields-stats/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dswarm/dswarm-es-fields-stats/issues/1/comments","statuses_url":"https://api.github.com/repos/dswarm/dswarm-es-fields-stats/statuses/d2662523a1a0e5f405e7afaee66edb9ef323e79a","head":{"label":"zazi:master","ref":"master","sha":"d2662523a1a0e5f405e7afaee66edb9ef323e79a","user":{"login":"zazi","id":281172,"avatar_url":"https://avatars.githubusercontent.com/u/281172?v=3","gravatar_id":"","url":"https://api.github.com/users/zazi","html_url":"https://github.com/zazi","followers_url":"https://api.github.com/users/zazi/followers","following_url":"https://api.github.com/users/zazi/following{/other_user}","gists_url":"https://api.github.com/users/zazi/gists{/gist_id}","starred_url":"https://api.github.com/users/zazi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zazi/subscriptions","organizations_url":"https://api.github.com/users/zazi/orgs","repos_url":"https://api.github.com/users/zazi/repos","events_url":"https://api.github.com/users/zazi/events{/privacy}","received_events_url":"https://api.github.com/users/zazi/received_events","type":"User","site_admin":false},"repo":{"id":73461718,"name":"dswarm-es-fields-stats","full_name":"zazi/dswarm-es-fields-stats","owner":{"login":"zazi","id":281172,"avatar_url":"https://avatars.githubusercontent.com/u/281172?v=3","gravatar_id":"","url":"https://api.github.com/users/zazi","html_url":"https://github.com/zazi","followers_url":"https://api.github.com/users/zazi/followers","following_url":"https://api.github.com/users/zazi/following{/other_user}","gists_url":"https://api.github.com/users/zazi/gists{/gist_id}","starred_url":"https://api.github.com/users/zazi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zazi/subscriptions","organizations_url":"https://api.github.com/users/zazi/orgs","repos_url":"https://api.github.com/users/zazi/repos","events_url":"https://api.github.com/users/zazi/events{/privacy}","received_events_url":"https://api.github.com/users/zazi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zazi/dswarm-es-fields-stats","description":"esfstats - elasticsearch fields statistics","fork":true,"url":"https://api.github.com/repos/zazi/dswarm-es-fields-stats","forks_url":"https://api.github.com/repos/zazi/dswarm-es-fields-stats/forks","keys_url":"https://api.github.com/repos/zazi/dswarm-es-fields-stats/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zazi/dswarm-es-fields-stats/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zazi/dswarm-es-fields-stats/teams","hooks_url":"https://api.github.com/repos/zazi/dswarm-es-fields-stats/hooks","issue_events_url":"https://api.github.com/repos/zazi/dswarm-es-fields-stats/issues/events{/number}","events_url":"https://api.github.com/repos/zazi/dswarm-es-fields-stats/events","assignees_url":"https://api.github.com/repos/zazi/dswarm-es-fields-stats/assignees{/user}","branches_url":"https://api.github.com/repos/zazi/dswarm-es-fields-stats/branches{/branch}","tags_url":"https://api.github.com/repos/zazi/dswarm-es-fields-stats/tags","blobs_url":"https://api.github.com/repos/zazi/dswarm-es-fields-stats/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zazi/dswarm-es-fields-stats/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zazi/dswarm-es-fields-stats/git/refs{/sha}","trees_url":"https://api.github.com/repos/zazi/dswarm-es-fields-stats/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zazi/dswarm-es-fields-stats/statuses/{sha}","languages_url":"https://api.github.com/repos/zazi/dswarm-es-fields-stats/languages","stargazers_url":"https://api.github.com/repos/zazi/dswarm-es-fields-stats/stargazers","contributors_url":"https://api.github.com/repos/zazi/dswarm-es-fields-stats/contributors","subscribers_url":"https://api.github.com/repos/zazi/dswarm-es-fields-stats/subscribers","subscription_url":"https://api.github.com/repos/zazi/dswarm-es-fields-stats/subscription","commits_url":"https://api.github.com/repos/zazi/dswarm-es-fields-stats/commits{/sha}","git_commits_url":"https://api.github.com/repos/zazi/dswarm-es-fields-stats/git/commits{/sha}","comments_url":"https://api.github.com/repos/zazi/dswarm-es-fields-stats/comments{/number}","issue_comment_url":"https://api.github.com/repos/zazi/dswarm-es-fields-stats/issues/comments{/number}","contents_url":"https://api.github.com/repos/zazi/dswarm-es-fields-stats/contents/{+path}","compare_url":"https://api.github.com/repos/zazi/dswarm-es-fields-stats/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zazi/dswarm-es-fields-stats/merges","archive_url":"https://api.github.com/repos/zazi/dswarm-es-fields-stats/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zazi/dswarm-es-fields-stats/downloads","issues_url":"https://api.github.com/repos/zazi/dswarm-es-fields-stats/issues{/number}","pulls_url":"https://api.github.com/repos/zazi/dswarm-es-fields-stats/pulls{/number}","milestones_url":"https://api.github.com/repos/zazi/dswarm-es-fields-stats/milestones{/number}","notifications_url":"https://api.github.com/repos/zazi/dswarm-es-fields-stats/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zazi/dswarm-es-fields-stats/labels{/name}","releases_url":"https://api.github.com/repos/zazi/dswarm-es-fields-stats/releases{/id}","deployments_url":"https://api.github.com/repos/zazi/dswarm-es-fields-stats/deployments","created_at":"2016-11-11T08:57:22Z","updated_at":"2016-11-11T08:52:14Z","pushed_at":"2016-11-11T10:23:42Z","git_url":"git://github.com/zazi/dswarm-es-fields-stats.git","ssh_url":"git@github.com:zazi/dswarm-es-fields-stats.git","clone_url":"https://github.com/zazi/dswarm-es-fields-stats.git","svn_url":"https://github.com/zazi/dswarm-es-fields-stats","homepage":null,"size":7,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"dswarm:master","ref":"master","sha":"60b873424398dd36fc73c9d0f5b6f7d30a1f206c","user":{"login":"dswarm","id":9085679,"avatar_url":"https://avatars.githubusercontent.com/u/9085679?v=3","gravatar_id":"","url":"https://api.github.com/users/dswarm","html_url":"https://github.com/dswarm","followers_url":"https://api.github.com/users/dswarm/followers","following_url":"https://api.github.com/users/dswarm/following{/other_user}","gists_url":"https://api.github.com/users/dswarm/gists{/gist_id}","starred_url":"https://api.github.com/users/dswarm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dswarm/subscriptions","organizations_url":"https://api.github.com/users/dswarm/orgs","repos_url":"https://api.github.com/users/dswarm/repos","events_url":"https://api.github.com/users/dswarm/events{/privacy}","received_events_url":"https://api.github.com/users/dswarm/received_events","type":"Organization","site_admin":false},"repo":{"id":73461355,"name":"dswarm-es-fields-stats","full_name":"dswarm/dswarm-es-fields-stats","owner":{"login":"dswarm","id":9085679,"avatar_url":"https://avatars.githubusercontent.com/u/9085679?v=3","gravatar_id":"","url":"https://api.github.com/users/dswarm","html_url":"https://github.com/dswarm","followers_url":"https://api.github.com/users/dswarm/followers","following_url":"https://api.github.com/users/dswarm/following{/other_user}","gists_url":"https://api.github.com/users/dswarm/gists{/gist_id}","starred_url":"https://api.github.com/users/dswarm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dswarm/subscriptions","organizations_url":"https://api.github.com/users/dswarm/orgs","repos_url":"https://api.github.com/users/dswarm/repos","events_url":"https://api.github.com/users/dswarm/events{/privacy}","received_events_url":"https://api.github.com/users/dswarm/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dswarm/dswarm-es-fields-stats","description":"esfstats - elasticsearch fields statistics","fork":false,"url":"https://api.github.com/repos/dswarm/dswarm-es-fields-stats","forks_url":"https://api.github.com/repos/dswarm/dswarm-es-fields-stats/forks","keys_url":"https://api.github.com/repos/dswarm/dswarm-es-fields-stats/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dswarm/dswarm-es-fields-stats/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dswarm/dswarm-es-fields-stats/teams","hooks_url":"https://api.github.com/repos/dswarm/dswarm-es-fields-stats/hooks","issue_events_url":"https://api.github.com/repos/dswarm/dswarm-es-fields-stats/issues/events{/number}","events_url":"https://api.github.com/repos/dswarm/dswarm-es-fields-stats/events","assignees_url":"https://api.github.com/repos/dswarm/dswarm-es-fields-stats/assignees{/user}","branches_url":"https://api.github.com/repos/dswarm/dswarm-es-fields-stats/branches{/branch}","tags_url":"https://api.github.com/repos/dswarm/dswarm-es-fields-stats/tags","blobs_url":"https://api.github.com/repos/dswarm/dswarm-es-fields-stats/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dswarm/dswarm-es-fields-stats/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dswarm/dswarm-es-fields-stats/git/refs{/sha}","trees_url":"https://api.github.com/repos/dswarm/dswarm-es-fields-stats/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dswarm/dswarm-es-fields-stats/statuses/{sha}","languages_url":"https://api.github.com/repos/dswarm/dswarm-es-fields-stats/languages","stargazers_url":"https://api.github.com/repos/dswarm/dswarm-es-fields-stats/stargazers","contributors_url":"https://api.github.com/repos/dswarm/dswarm-es-fields-stats/contributors","subscribers_url":"https://api.github.com/repos/dswarm/dswarm-es-fields-stats/subscribers","subscription_url":"https://api.github.com/repos/dswarm/dswarm-es-fields-stats/subscription","commits_url":"https://api.github.com/repos/dswarm/dswarm-es-fields-stats/commits{/sha}","git_commits_url":"https://api.github.com/repos/dswarm/dswarm-es-fields-stats/git/commits{/sha}","comments_url":"https://api.github.com/repos/dswarm/dswarm-es-fields-stats/comments{/number}","issue_comment_url":"https://api.github.com/repos/dswarm/dswarm-es-fields-stats/issues/comments{/number}","contents_url":"https://api.github.com/repos/dswarm/dswarm-es-fields-stats/contents/{+path}","compare_url":"https://api.github.com/repos/dswarm/dswarm-es-fields-stats/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dswarm/dswarm-es-fields-stats/merges","archive_url":"https://api.github.com/repos/dswarm/dswarm-es-fields-stats/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dswarm/dswarm-es-fields-stats/downloads","issues_url":"https://api.github.com/repos/dswarm/dswarm-es-fields-stats/issues{/number}","pulls_url":"https://api.github.com/repos/dswarm/dswarm-es-fields-stats/pulls{/number}","milestones_url":"https://api.github.com/repos/dswarm/dswarm-es-fields-stats/milestones{/number}","notifications_url":"https://api.github.com/repos/dswarm/dswarm-es-fields-stats/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dswarm/dswarm-es-fields-stats/labels{/name}","releases_url":"https://api.github.com/repos/dswarm/dswarm-es-fields-stats/releases{/id}","deployments_url":"https://api.github.com/repos/dswarm/dswarm-es-fields-stats/deployments","created_at":"2016-11-11T08:52:14Z","updated_at":"2016-11-11T09:06:10Z","pushed_at":"2016-11-11T10:28:25Z","git_url":"git://github.com/dswarm/dswarm-es-fields-stats.git","ssh_url":"git@github.com:dswarm/dswarm-es-fields-stats.git","clone_url":"https://github.com/dswarm/dswarm-es-fields-stats.git","svn_url":"https://github.com/dswarm/dswarm-es-fields-stats","homepage":null,"size":8,"stargazers_count":1,"watchers_count":1,"language":null,"has_issues":true,"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":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dswarm/dswarm-es-fields-stats/pulls/1"},"html":{"href":"https://github.com/dswarm/dswarm-es-fields-stats/pull/1"},"issue":{"href":"https://api.github.com/repos/dswarm/dswarm-es-fields-stats/issues/1"},"comments":{"href":"https://api.github.com/repos/dswarm/dswarm-es-fields-stats/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/dswarm/dswarm-es-fields-stats/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/dswarm/dswarm-es-fields-stats/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dswarm/dswarm-es-fields-stats/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/dswarm/dswarm-es-fields-stats/statuses/d2662523a1a0e5f405e7afaee66edb9ef323e79a"}}}}
{"actor":{"display_login":"zazi"}}