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
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

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: tensorflow/models
Commit Name: 777107312382e292dadba091de1d2a64998c23b5
Time: 2019-09-30
Author: hongkuny@google.com
File Name: official/modeling/tf_utils.py
Class Name:
Method Name: get_activation


Project Name: deepmipt/DeepPavlov
Commit Name: 8e0dea3d8fa8efecc9b3eaff721f997e08e74e57
Time: 2018-02-25
Author: yoptar@gmail.com
File Name: deeppavlov/core/commands/train.py
Class Name:
Method Name: train_model_from_config