a25472c657d6e3338c396d4261c30a060d608274,python/ray/serve/tests/test_metric.py,,test_client,#,29

Before Change


            default_labels={"default": "label"},
        )
    }
    assert exporter.batches == [("counter", {
        "a": "1",
        "b": "2"
    }, 1), ("counter", {
        "a": "1",
        "b": "3"
    }, 42), ("measure", {}, 2)]


async def test_in_memory_exporter(serve_instance):
    exporter = MetricExporterActor.remote(InMemoryExporter)

After Change


        default_labels={"default": "label"},
    ) in exporter.metadata.values()

    metric_values = [item.value for item in exporter.batches]
    assert set(metric_values) == {1, 42, 2}

    metric_labels = [
        frozenset(item.labels.items()) for item in exporter.batches
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: ray-project/ray
Commit Name: a25472c657d6e3338c396d4261c30a060d608274
Time: 2020-07-02
Author: xmo@berkeley.edu
File Name: python/ray/serve/tests/test_metric.py
Class Name:
Method Name: test_client


Project Name: microsoft/nni
Commit Name: 5461fe7792ce43c3a7009a602c086842fe9fae64
Time: 2018-12-20
Author: 871886504@qq.com
File Name: tools/nni_annotation/search_space_generator.py
Class Name: SearchSpaceGenerator
Method Name: visit_Call


Project Name: google/deepvariant
Commit Name: 7804a2fc6e24b3ecb9365e5459fb16ab6048ef8f
Time: 2018-08-28
Author: no-reply@google.com
File Name: third_party/nucleus/io/fasta_test.py
Class Name: InMemoryRefReaderTests
Method Name: test_iterate