7029fcc6ff92856d43119a56b9d3367ae0fd7b55,container_registry/container_analysis/samples_test.py,TestContainerAnalysisSamples,test_pubsub,#TestContainerAnalysisSamples#,130
Before Change
samples.create_occurrence_subscription(subscription_id, PROJECT_ID)
tries = 0
success = False
while not success and tries < TRY_LIMIT:
print(tries)
tries += 1
receiver = samples.MessageReceiver()
client.subscribe(subscription_name, receiver.pubsub_callback)
// test adding 3 more occurrences
total_created = 3
for _ in range(total_created):
occ = samples.create_occurrence(self.image_url,
self.note_id,
PROJECT_ID,
PROJECT_ID)
sleep(SLEEP_TIME)
samples.delete_occurrence(basename(occ.name), PROJECT_ID)
sleep(SLEEP_TIME)
print("done. msg_count = {}".format(receiver.msg_count))
success = receiver.msg_count == total_created
assert receiver.msg_count == total_created
// clean up
client.delete_subscription(subscription_name)
After Change
except AlreadyExists:
pass
subscription_id = "container-analysis-test-{}".format(uuid.uuid4())
subscription_name = client.subscription_path(PROJECT_ID,
subscription_id)
samples.create_occurrence_subscription(subscription_id, PROJECT_ID)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 2
Instances
Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: 7029fcc6ff92856d43119a56b9d3367ae0fd7b55
Time: 2020-04-21
Author: tmatsuo@google.com
File Name: container_registry/container_analysis/samples_test.py
Class Name: TestContainerAnalysisSamples
Method Name: test_pubsub
Project Name: shibing624/pycorrector
Commit Name: b9b28080281ff6bbf613620559709f762fd3ef0b
Time: 2018-05-17
Author: 507153809@qq.com
File Name: pycorrector/rnn_lm/infer.py
Class Name:
Method Name: ppl
Project Name: automl/auto-sklearn
Commit Name: 68b022cb9d24eb4e9b8341887e8ff1c9f9fda405
Time: 2020-12-11
Author: 44504424+franchuterivera@users.noreply.github.com
File Name: test/test_pipeline/test_classification.py
Class Name: SimpleClassificationPipelineTest
Method Name: test_fit_instantiates_component
Project Name: yahoo/TensorFlowOnSpark
Commit Name: 981e4266d4ea816b08a762193bd52f40cd1a3242
Time: 2019-08-07
Author: leewyang@verizonmedia.com
File Name: examples/mnist/keras/mnist_inference.py
Class Name:
Method Name: inference