original_docstring: Helper method send HTTP POST requests to Elasticsearch.
docstring: Helper method send HTTP POST requests to Elasticsearch.
docstring_tokens: Helper method send HTTP POST requests to Elasticsearch .
code: def post_json(url, data):
      """Helper method send HTTP POST requests to Elasticsearch."""
  
      return requests.post(
          url,
          data=json.dumps(data),
          headers={'Content-Type': 'application/json'},
      )
code_tokens: def post_json ( url , data ) : return requests . post ( url , data = json . dumps ( data ) , headers = { 'Content-Type' : 'application/json' } , )
short_docstring: Helper method send HTTP POST requests to Elasticsearch.
short_docstring_tokens: Helper method send HTTP POST requests to Elasticsearch .
comment: """Helper method send HTTP POST requests to Elasticsearch."""