7c4b8c0d3d7d14c362892e44a1d256732d13a258,src/sdk/pynni/nni/hyperopt_tuner/hyperopt_tuner.py,HyperoptTuner,miscs_update_idxs_vals,#HyperoptTuner#Any#Any#Any#Any#Any#,389

Before Change


        misc_by_id = {m["tid"]: m for m in miscs}
        for m in miscs:
            m["idxs"] = dict([(key, []) for key in idxs])
            m["vals"] = dict([(key, []) for key in idxs])

        for key in idxs:
            assert len(idxs[key]) == len(vals[key])
            for tid, val in zip(idxs[key], vals[key]):

After Change



        misc_by_id = {m["tid"]: m for m in miscs}
        for m in miscs:
            m["idxs"] = {key: [] for key in idxs}
            m["vals"] = {key: [] for key in idxs}

        for key in idxs:
            assert len(idxs[key]) == len(vals[key])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: microsoft/nni
Commit Name: 7c4b8c0d3d7d14c362892e44a1d256732d13a258
Time: 2019-10-29
Author: 40699903+liuzhe-lz@users.noreply.github.com
File Name: src/sdk/pynni/nni/hyperopt_tuner/hyperopt_tuner.py
Class Name: HyperoptTuner
Method Name: miscs_update_idxs_vals


Project Name: tensorpack/tensorpack
Commit Name: 552c2b3b51c83fc27bdf6df691f1d707e40865f9
Time: 2020-01-09
Author: ppwwyyxx@users.noreply.github.com
File Name: tests/benchmark-serializer.py
Class Name:
Method Name: fake_json_data


Project Name: tensorpack/tensorpack
Commit Name: 552c2b3b51c83fc27bdf6df691f1d707e40865f9
Time: 2020-01-09
Author: ppwwyyxx@users.noreply.github.com
File Name: tensorpack/graph_builder/distributed.py
Class Name: DistributedReplicatedBuilder
Method Name: _get_initial_sync_op