8c17debc9dc6552da8c317c0c852b55f03c80c61,slm_lab/spec/spec_util.py,,resolve_aeb,#Any#,141

Before Change


    body_num = _.get(spec, "body.num")

    if ae_product == "outer":
        aeb_coor_list = list(itertools.product(
            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)))

After Change


            aeb_list.extend(sub_aeb_list)
    else:  // custom AEB, body_num is a aeb_list
        aeb_list = [tuple(aeb) for aeb in body_num]
    aeb_list.sort()
    assert is_aeb_compact(
        aeb_list), "Failed check: for a, e, uniq count == len (shape), and for each a,e hash, b uniq count == b len (shape)"
    return aeb_list
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

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: nipy/dipy
Commit Name: 61714567a844ab36f14385061b60ae1a08def1b5
Time: 2015-11-08
Author: garyfallidis@gmail.com
File Name: dipy/reconst/dsi.py
Class Name:
Method Name: create_qtable


Project Name: scipy/scipy
Commit Name: fc8c9693b2505b48b1e3dc7c2e477e757d42e549
Time: 2015-04-11
Author: pav@iki.fi
File Name: scipy/sparse/linalg/_onenormest.py
Class Name:
Method Name: _algorithm_2_2