

def get_client():
    'Creates Pub/Sub client and returns it.'
    credentials = GoogleCredentials.get_application_default()
    credentials = credentials.create_scoped(PUBSUB_SCOPES)
    http = httplib2.Http()
    credentials.authorize(credentials)
    return discovery.build('pubsub', 'v1beta2', http=http)

dataset/ETHPy150Open GoogleCloudPlatform/reliable-task-scheduling-compute-engine-sample/gce/cron_executor.py get_client/VarMisuse@40/67 `http`->`credentials`