86f4e384b066cecf50dec65c8dfa48aaddfbb17d,scipy/optimize/_minimize.py,,minimize,#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#,42

Before Change


                warn("Only "trust-constr" method accept %s "
                     "options for "jac". Using "2-point" instead." % jac)
            jac = None
        elif not callable(jac):
            if bool(jac):
                fun = MemoizeJac(fun)
                jac = fun.derivative

After Change


        // fun returns func and grad
        fun = MemoizeJac(fun)
        jac = fun.derivative
    elif (jac in FD_METHODS and
          meth in ["trust-constr", "bfgs", "cg", "l-bfgs-b", "tnc"]):
        // finite differences
        pass
    elif meth in ["trust-constr"]:
        // default jac calculation for this method
        jac = "2-point"
    elif jac is None or bool(jac) is False:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: scipy/scipy
Commit Name: 86f4e384b066cecf50dec65c8dfa48aaddfbb17d
Time: 2019-08-31
Author: andyfaff@gmail.com
File Name: scipy/optimize/_minimize.py
Class Name:
Method Name: minimize


Project Name: ericmjl/pyjanitor
Commit Name: 37fa83c94202591364a5a9bc28df781a994e7c4d
Time: 2021-02-03
Author: samueloranyeli@gmail.com
File Name: janitor/utils.py
Class Name:
Method Name: _data_checks_pivot_wider


Project Name: matthewwithanm/django-imagekit
Commit Name: b0b466618f669f87ecfe66b9dd655415ba88ed83
Time: 2012-10-17
Author: m@tthewwithanm.com
File Name: imagekit/templatetags/imagekit_tags.py
Class Name: SpecNode
Method Name: render


Project Name: eth-cscs/reframe
Commit Name: d093821282aefd1185216307634111b7ce59a127
Time: 2017-06-26
Author: karakasis@cscs.ch
File Name: reframe/frontend/loader.py
Class Name: RegressionCheckLoader
Method Name: load_from_module