fefe628658fbbca925a35d0fc741b77acee35bad,brian2/codegen/generators/GSL_generator.py,,valid_gsl_dir,#,26
Before Change
if not isdir(val):
raise PreferenceError(("Illegal value for GSL directory: %s, "
"has to be existing directory"%(val)))
if not exists(val+"gsl/gsl_odeiv2.h") or not exists(val+"gsl/gsl_errno.h") \
or not exists(val+"gsl/gsl_matrix.h"):
raise PreferenceError(("Illegal value for GSL directory: %s, "
"has to contain gsl_odeiv2.h, gsl_errno.h "
"and gsl_matrix.h"%(val)))
return True
prefs.register_preferences(
"GSL",
After Change
if not os.path.isdir(val):
raise PreferenceError(("Illegal value for GSL directory: %s, "
"has to be existing directory" % (val)))
if any(not os.path.isfile(os.path.join(val, "gsl", filename) )
for filename in ["gsl_odeiv2.h", "gsl_errno.h", "gsl_matrix.h"]):
raise PreferenceError(("Illegal value for GSL directory: %s, "
"has to contain gsl_odeiv2.h, gsl_errno.h "
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: brian-team/brian2
Commit Name: fefe628658fbbca925a35d0fc741b77acee35bad
Time: 2017-10-03
Author: marcel.stimberg@inserm.fr
File Name: brian2/codegen/generators/GSL_generator.py
Class Name:
Method Name: valid_gsl_dir
Project Name: zsdonghao/text-to-image
Commit Name: bd97dee4fc635d8aa8707c4fbac39e569e9f148d
Time: 2017-01-18
Author: i.mochaz@gmail.com
File Name: tensorlayer/files.py
Class Name:
Method Name: load_cifar10_dataset
Project Name: kubeflow/kubeflow
Commit Name: 99c94d88c96c2b0a45bbbef4c8a126fa018ce513
Time: 2018-10-11
Author: 37601826+kunmingg@users.noreply.github.com
File Name: bootstrap/build.py
Class Name:
Method Name: main