34577913e8d62f0db23231f4882263b6825fa271,pubsub/cloud-client/subscriber.py,,delete_subscription,#Any#Any#,50
Before Change
def delete_subscription(topic_name, subscription_name):
Deletes an existing Pub/Sub topic.
pubsub_client = pubsub.Client()
topic = pubsub_client.topic(topic_name)
subscription = topic.subscription(subscription_name)
subscription.delete()
print("Subscription {} deleted on topic {}.".format(
subscription.name, topic.name))
After Change
subscriber.delete_subscription(subscription_path)
print("Subscription deleted: {}".format(subscription_path))
def receive_messages(project, subscription_name):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: 34577913e8d62f0db23231f4882263b6825fa271
Time: 2017-08-28
Author: jonwayne@google.com
File Name: pubsub/cloud-client/subscriber.py
Class Name:
Method Name: delete_subscription
Project Name: HazyResearch/fonduer
Commit Name: a3400845afb88d0d9b19f7f810abbd718117f24e
Time: 2018-10-17
Author: lukehsiao@users.noreply.github.com
File Name: src/fonduer/features/featurizer.py
Class Name: Featurizer
Method Name: clear
Project Name: HazyResearch/fonduer
Commit Name: a3400845afb88d0d9b19f7f810abbd718117f24e
Time: 2018-10-17
Author: lukehsiao@users.noreply.github.com
File Name: src/fonduer/supervision/labeler.py
Class Name: Labeler
Method Name: clear