8e3239f05f48b10b63332662fc3f80e9fff1220d,hyperopt/vectorize.py,,idxs_map,#Any#Any#,34

Before Change


    rval = []
    for ii in idxs:
        try:
            args_nn = [vals_j[list(idxs_j).index(ii)] for (idxs_j, vals_j) in args]
        except:
            ERR("args_nn %s" % cmd)
            ERR("ii %s" % ii)

After Change



    kwargs_imap = {}
    for kw, (idxs_j, vals_j) in kwargs.items():
        if idxs_j:
            kwargs_imap[kw] = dict(zip(idxs_j, vals_j))
        else:
            kwargs_imap[kw] = {}

    f = scope._impls[cmd]
    rval = []
    for ii in idxs:
        try:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: hyperopt/hyperopt
Commit Name: 8e3239f05f48b10b63332662fc3f80e9fff1220d
Time: 2012-03-01
Author: james.bergstra@gmail.com
File Name: hyperopt/vectorize.py
Class Name:
Method Name: idxs_map


Project Name: RaRe-Technologies/gensim
Commit Name: 19a2292b8b21da8fd83e5f8129debb4b9ab4c14f
Time: 2014-07-01
Author: radimrehurek@seznam.cz
File Name: gensim/corpora/dictionary.py
Class Name: Dictionary
Method Name: from_corpus


Project Name: analysiscenter/batchflow
Commit Name: 11c6bf1dbd051d087519ff771b39dac600c0d96d
Time: 2019-07-29
Author: 7520522+a-arefina@users.noreply.github.com
File Name: batchflow/models/tf/encoder_decoder.py
Class Name: EncoderDecoder
Method Name: head