<commit_before># -*- coding: utf-8 -*-
from __future__ import print_function

import json
import requests
import sys

from functools import wraps
from collections import namedtuple
from contextlib import contextmanager
from abc import abstractmethod, ABCMeta


try:
    from urllib.request import urlopen, Request, quote
    from urllib.parse import urlencode
except ImportError:
    from urllib2 import urlopen, Request, quote
    from urllib import urlencode

__all__ = (
    'AbstractBaseAPIClient',
    'GoogleBookAPIClient',
    'Book',
    'main',
)

class AbstractBaseAPIClient:
    """<commit_msg>no need to import requests<commit_after># -*- coding: utf-8 -*-
from __future__ import print_function

import json
import sys

from functools import wraps
from collections import namedtuple
from contextlib import contextmanager
from abc import abstractmethod, ABCMeta


try:
    from urllib.request import urlopen, Request, quote
    from urllib.parse import urlencode
except ImportError:
    from urllib2 import urlopen, Request, quote
    from urllib import urlencode

__all__ = (
    'AbstractBaseAPIClient',
    'GoogleBookAPIClient',
    'Book',
    'main',
)

class AbstractBaseAPIClient:
    """
{'fraction_non_alphanumeric': 0.06628003314001657, 'fraction_numerical': 0.0033140016570008283, 'mean_word_length': 4.229437229437229, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '7080917', 'n_tokens_mistral': 344, 'n_tokens_neox': 353, 'n_words': 122}