75dfae84e40d62124b3622da07f06ff1cc26d496,python/ray/serve/backend_state.py,BackendState,_completed_goals,#BackendState#,608

Before Change



    def _completed_goals(self) -> List[GoalId]:
        completed_goals = []
        all_tags = set(self._replicas.keys()).union(
            set(self._backend_metadata.keys()))

        for backend_tag in all_tags:
            desired_num_replicas = self._target_replicas.get(backend_tag)
            state_dict = self._replicas.get(backend_tag, {})

After Change


            target_count = self._target_replicas.get(backend_tag, 0)

            // If we have pending ops, the current goal is *not* ready.
            if (self._replicas[backend_tag].count(states=[
                    ReplicaState.SHOULD_START,
                    ReplicaState.STARTING,
                    ReplicaState.SHOULD_STOP,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: ray-project/ray
Commit Name: 75dfae84e40d62124b3622da07f06ff1cc26d496
Time: 2021-03-19
Author: ed.nmi.oakes@gmail.com
File Name: python/ray/serve/backend_state.py
Class Name: BackendState
Method Name: _completed_goals


Project Name: hyperopt/hyperopt
Commit Name: 9f34a4079d65d65e680e338a67c0817a6a3c8fda
Time: 2011-10-31
Author: james.bergstra@gmail.com
File Name: hyperopt/gdist.py
Class Name: Union
Method Name: perform


Project Name: brian-team/brian2
Commit Name: a51dc5c2cb7fb273dec323750990b9f2beb392a0
Time: 2015-03-31
Author: marcel.stimberg@inserm.fr
File Name: brian2/tests/test_synapses.py
Class Name:
Method Name: check_permutation_code