8c17debc9dc6552da8c317c0c852b55f03c80c61,slm_lab/spec/spec_util.py,,resolve_aeb,#Any#,141
Before Change
range(agent_num), range(env_num), range(body_num)))
elif ae_product == "inner":
ae_coor_itr = zip(range(agent_num), range(env_num))
aeb_coor_list = list(itertools.product(
ae_coor_itr, range(body_num)))
aeb_coor_list = [(a, e, b) for ((a, e), b) in aeb_coor_list]
else: // custom AEB, body_num is a coor_list
aeb_coor_list = [tuple(aeb) for aeb in sorted(body_num)]
assert is_aeb_compact(
After Change
body_num = _.get(spec, "body.num")
body_num_list = body_num if _.is_list(body_num) else [body_num] * env_num
aeb_list = []
if ae_product == "outer":
for e in range(env_num):
sub_aeb_list = list(itertools.product(
range(agent_num), [e], range(body_num_list[e])))
aeb_list.extend(sub_aeb_list)
elif ae_product == "inner":
for a, e in zip(range(agent_num), range(env_num)):
sub_aeb_list = list(
itertools.product([a], [e], range(body_num_list[e])))
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 8
Instances Project Name: kengz/SLM-Lab
Commit Name: 8c17debc9dc6552da8c317c0c852b55f03c80c61
Time: 2017-12-24
Author: kengzwl@gmail.com
File Name: slm_lab/spec/spec_util.py
Class Name:
Method Name: resolve_aeb
Project Name: ray-project/ray
Commit Name: da296bf8c5f9a1264508ce12ac015a7d656ae516
Time: 2020-04-19
Author: ed.nmi.oakes@gmail.com
File Name: python/ray/serve/tests/test_api.py
Class Name:
Method Name: test_killing_replicas
Project Name: ray-project/ray
Commit Name: da296bf8c5f9a1264508ce12ac015a7d656ae516
Time: 2020-04-19
Author: ed.nmi.oakes@gmail.com
File Name: python/ray/serve/tests/test_api.py
Class Name:
Method Name: test_not_killing_replicas