code: def print_hits(results):
      " Simple utility function to print results of a search query. "
      print_search_stats(results)
      for hit in results['hits']['hits']:
          # get created date for a repo and fallback to authored_date for a commit
          created_at = parse_date(hit['_source'].get('created_at', hit['_source']['authored_date']))
          print('/%s/%s/%s (%s): %s' % (
                  hit['_index'], hit['_type'], hit['_id'],
                  created_at.strftime('%Y-%m-%d'),
                  hit['_source']['description'].split('\n')[0]))
  
      print('=' * 80)
      print(f print_hits(results):
      " Simple utility function to print results of a search query. "
      print_search_stats(results)
      for hit in results['hits']['hits']:
          # get created date for a repo and fallback to authored_date for a commit
          created_at = parse_date(hit['_source'].get('created_at', hit['_source']['authored_date']))
          print('/%s/%s/%s (%s): %s' % (
                  hit['_index'], hit['_type'], hit['_id'],
                  created_at.strftime('%Y-%m-%d'),
                  hit['_source']['description'].split('\n')[0]))
  
      print('=' * 80)
      print()
docs: Simple utility function to print results of a search query.