d7c95a4a9065cbad73901b4c1de087837e260316,python/ray/serve/api.py,Client,get_handle,#Client#Any#Any#,352

Before Change



        try:
            router_chosen = next(
                filter(lambda r: get_node_id_for_actor(r) == current_node_id,
                       routers))
        except StopIteration:
            logger.warning(
                f"When getting a handle for {endpoint_name}, Serve can"t find "
                "a router on the same node. Serve will use a random router.")
            router_chosen = random.choice(routers)

        return RayServeHandle(
            router_chosen,
            endpoint_name,
        )


def start(detached: bool = False,
          http_host: str = DEFAULT_HTTP_HOST,

After Change


            raise KeyError(f"Endpoint "{endpoint_name}" does not exist.")

        if endpoint_name not in self._handle_cache:
            handle = RayServeHandle(self._controller, endpoint_name, sync=True)
            self._handle_cache[endpoint_name] = handle
        return self._handle_cache[endpoint_name]


def start(detached: bool = False,
          http_host: str = DEFAULT_HTTP_HOST,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: ray-project/ray
Commit Name: d7c95a4a9065cbad73901b4c1de087837e260316
Time: 2020-11-17
Author: simon.mo@hey.com
File Name: python/ray/serve/api.py
Class Name: Client
Method Name: get_handle


Project Name: deepmipt/DeepPavlov
Commit Name: 53b94b71bd12bcf5d31b0f7cbc2cc95edacb08e1
Time: 2018-03-25
Author: mary.vikhreva@gmail.com
File Name: deeppavlov/models/tokenizers/spacy_tokenizer.py
Class Name: StreamSpacyTokenizer
Method Name: _filter


Project Name: keras-team/keras
Commit Name: 1629f7f35becfd4d4350ff5b366998609414f830
Time: 2015-04-15
Author: francois.chollet@gmail.com
File Name: keras/preprocessing/text.py
Class Name:
Method Name: text_to_word_sequence


Project Name: keras-team/autokeras
Commit Name: 21994919156aac15558f77555538346fb702bcbc
Time: 2018-11-26
Author: jhfjhfj1@gmail.com
File Name: autokeras/nn/graph.py
Class Name: Graph
Method Name: _get_pooling_layers