f7d35c59de44cda5dad4cab3aabc098633b9374e,scipy/integrate/setup.py,,configuration,#Any#Any#,7

Before Change


    from numpy.distutils.system_info import get_info
    config = Configuration("integrate", parent_package, top_path)

    blas_opt = get_info("blas_opt",notfound_action=2)
    lapack_opt = get_info("lapack_opt",notfound_action=2)

    mach_src = [join("mach","*.f")]
    quadpack_src = [join("quadpack","*.f")]
    odepack_src = [join("odepack","*.f")]
    dop_src = [join("dop","*.f")]
    quadpack_test_src = [join("tests","_test_multivariate.c")]

    config.add_library("mach", sources=mach_src,
                       config_fc={"noopt":(__file__,1)})
    config.add_library("quadpack", sources=quadpack_src)
    config.add_library("odepack", sources=odepack_src)
    config.add_library("dop", sources=dop_src)

    // Extensions
    // quadpack:
    config.add_extension("_quadpack",
                         sources=["_quadpackmodule.c"],
                         libraries=(["quadpack", "mach"] +
                                    lapack_opt["libraries"]),
                         depends=(["quadpack.h","__quadpack.h"]
                                  + quadpack_src + mach_src))

    // odepack
    libs = ["odepack","mach"]

    // Remove libraries key from blas_opt
    if "libraries" in blas_opt:    // key doesn"t exist on OS X ...
        libs.extend(blas_opt["libraries"])
    libs.extend(lapack_opt["libraries"])
    newblas = {}
    for key in blas_opt:
        if key == "libraries":

After Change


    lapack_opt = dict(get_info("lapack_opt",notfound_action=2))
    // Pop off the libraries list so it can be combined with
    // additional required libraries
    lapack_libs = lapack_opt.pop("libraries", [])

    mach_src = [join("mach","*.f")]
    quadpack_src = [join("quadpack","*.f")]
    odepack_src = [join("odepack","*.f")]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: scipy/scipy
Commit Name: f7d35c59de44cda5dad4cab3aabc098633b9374e
Time: 2014-09-09
Author: cjk34@cam.ac.uk
File Name: scipy/integrate/setup.py
Class Name:
Method Name: configuration


Project Name: scipy/scipy
Commit Name: 551c0158dc482066ef9a566a4a6cdb58796b39ce
Time: 2006-11-07
Author: robert.kern@gmail.com
File Name: Lib/sandbox/odr/setup.py
Class Name:
Method Name: configuration


Project Name: KaiyangZhou/deep-person-reid
Commit Name: 9aa1aa24c0eaafb95f3a0a580de9df38e803e039
Time: 2018-08-16
Author: k.zhou@qmul.ac.uk
File Name: torchreid/samplers.py
Class Name: RandomIdentitySampler
Method Name: __iter__