<commit_before># -*- coding: utf-8 -*-

from apiclient.discovery import build
from os import makedirs, path
from urllib.request import urlopen

import json
import shutil
import requests

class results:
  """Google Custom Search Engine (CSE) API results.
  
  Uses the `Google Custom Search Engine API <https://developers.google.com/api-client-library/python/apis/customsearch/v1>`_ 
  to search webpages and images using queries.
  <commit_msg>Update api.py<commit_after># -*- coding: utf-8 -*-

from apiclient.discovery import build
from os import makedirs, path
try:
  from urllib.request import urlopen
except ImportError:
  from urllib import urlopen

import json
import shutil
import requests

class results:
  """Google Custom Search Engine (CSE) API results.
  
  Uses the `Google Custom Search Engine API <https://developers.google.com/api-client-library/python/apis/customsearch/v1>`_ 
  to search webpages and images using queries.
  
{'fraction_non_alphanumeric': 0.0858050847457627, 'fraction_numerical': 0.00423728813559322, 'mean_word_length': 4.25, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5750078', 'n_tokens_mistral': 284, 'n_tokens_neox': 279, 'n_words': 100}