<commit_before>import requests

from hvac import exceptions

class Client(object):
    def __init__(self, url='http://localhost:8200', token=None, cert=None,
                 verify=True):
        self._session = requests.Session()
        self._session.cert = cert
        self._session.verify = verify

        self._url = url

        if token:
            self.auth_token(token)

    def read(self, path):
        """
        GET /<path><commit_msg>Tolerate falsey URL in constructor<commit_after>import requests

from hvac import exceptions

class Client(object):
    def __init__(self, url=None, token=None, cert=None, verify=True):
        if not url:
            url = 'http://localhost:8200'

        self._url = url

        self._session = requests.Session()
        self._session.cert = cert
        self._session.verify = verify

        if token:
            self.auth_token(token)

    def read(self, path):
        """
        GET /<path>
{'fraction_non_alphanumeric': 0.1069182389937107, 'fraction_numerical': 0.008385744234800839, 'mean_word_length': 2.1727574750830563, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6916950', 'n_tokens_mistral': 279, 'n_tokens_neox': 265, 'n_words': 68}