@staticmethod
    def _create_scoped_credentials(credentials, scope):
        if credentials:
            try:
                if credentials.create_scoped_required():
                    credentials = credentials.create_scoped(scope)
            except AttributeError:
                pass
        return credentials
Very basic tokenizer: split the sentence into a list of tokens + lower().
dataset/ETHPy150Open GoogleCloudPlatform/gcloud-python/gcloud/connection.py/Connection._create_scoped_credentials--crossover with--dataset/ETHPy150Open tokestermw/tensorflow-shakespeare/tensorshake/prepare_corpus.py/_tokenizer