ef7707947b85d141e955e844ec1800df9eddb5c2,scipy/linalg/blas.py,,find_best_blas_type,#Any#Any#,236

Before Change


            prefer_fortran = True

    prefix = _type_conv.get(dtype.char, "d")
    if dtype.char == "G":
        // complex256 -> complex128 (i.e., C long double -> C double)
        dtype = _np.dtype("D")
    elif dtype.char not in "fdFD":
        dtype = _np.dtype("d")

    return prefix, dtype, prefer_fortran


def _get_funcs(names, arrays, dtype,

After Change


        chars = [arr.dtype.char for arr in arrays]
        scores = [_type_score.get(x, 5) for x in chars]
        max_score = max(scores)
        ind_max_score = scores.index(max_score)
        // safe upcasting for mix of float64 and complex64 --> prefix "z"
        if max_score == 3 and (2 in scores):
            max_score = 4
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: scipy/scipy
Commit Name: ef7707947b85d141e955e844ec1800df9eddb5c2
Time: 2018-12-26
Author: ilhanpolat@gmail.com
File Name: scipy/linalg/blas.py
Class Name:
Method Name: find_best_blas_type


Project Name: facebookresearch/ParlAI
Commit Name: 52270e7558d522c5a43ef898f7512f402db63e26
Time: 2017-07-08
Author: willfeng@fb.com
File Name: parlai/mturk/core/agents.py
Class Name: MTurkAgent
Method Name: observe


Project Name: HazyResearch/fonduer
Commit Name: 0de3c091c75e36ffb4c12a2048110df37cafb644
Time: 2018-09-20
Author: lwhsiao@stanford.edu
File Name: src/fonduer/candidates/mentions.py
Class Name: Ngrams
Method Name: apply