original_docstring: Connect to CNN search API, do the search then return the result.
docstring: Connect to CNN search API, do the search then return the result.
docstring_tokens: Connect to CNN search API do the search then return the result .
code: def cnn():
      """Connect to CNN search API, do the search then return the result."""
      url = ('https://search.api.cnn.io/content?'
             'q=covid+coronavirus&size=25&from=0&type=article')
      json_data = requests.get(url).json()
      data = json_data['result']
      return render_template('flask/cnn.html', data=data)
code_tokens: def cnn ( ) : url = ( 'https://search.api.cnn.io/content?' 'q=covid+coronavirus&size=25&from=0&type=article' ) json_data = requests . get ( url ) . json ( ) data = json_data [ 'result' ] return render_template ( 'flask/cnn.html' , data = data )
short_docstring: Connect to CNN search API, do the search then return the result.
short_docstring_tokens: Connect to CNN search API do the search then return the result .
comment: """Connect to CNN search API, do the search then return the result."""