a7d4e37d040f57d0d715c61a20198bef57839f7a,scipy/optimize/_basinhopping.py,,basinhopping,#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#,326
Before Change
// set up accept tests
if accept_test is not None:
if not isinstance(accept_test, collections.Callable) :
raise TypeError("accept_test must be callable")
accept_tests = [accept_test]
else:
After Change
// set up accept tests
accept_tests = []
if accept_test is not None:
if not callable(accept_test) :
raise TypeError("accept_test must be callable")
accept_tests = [accept_test]
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances Project Name: scipy/scipy
Commit Name: a7d4e37d040f57d0d715c61a20198bef57839f7a
Time: 2018-07-01
Author: andyfaff@gmail.com
File Name: scipy/optimize/_basinhopping.py
Class Name:
Method Name: basinhopping
Project Name: scipy/scipy
Commit Name: c1cbb7de4f42c499a5a4c6ddc13f4959045f4c45
Time: 2013-01-05
Author: pav@iki.fi
File Name: scipy/optimize/_minimize.py
Class Name:
Method Name: minimize
Project Name: scipy/scipy
Commit Name: c1cbb7de4f42c499a5a4c6ddc13f4959045f4c45
Time: 2013-01-05
Author: pav@iki.fi
File Name: scipy/optimize/_root.py
Class Name:
Method Name: root