fefe628658fbbca925a35d0fc741b77acee35bad,brian2/codegen/generators/GSL_generator.py,,valid_gsl_dir,#Any#,26
Before Change
if not isinstance(val, (str, unicode)):
raise PreferenceError(("Illegal value for GSL directory: %s, "
"has to be str"%(str(val))))
if not val[-1] == "/":
val += "/"
if not isdir(val):
raise PreferenceError(("Illegal value for GSL directory: %s, "
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 "
"and gsl_matrix.h" % (val)))
return True
prefs.register_preferences(
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 6
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: daniel-kukiela/nmt-chatbot
Commit Name: 2cdd0be062a5653cb27bc441ded773e15102b1a9
Time: 2019-09-18
Author: daniel@kukiela.pl
File Name: setup/prepare_data.py
Class Name:
Method Name: prepare
Project Name: deepgram/kur
Commit Name: a89d7dd73bf376f74264512e2a22d8b55b103853
Time: 2017-04-10
Author: ajsyp@syptech.net
File Name: kur/loggers/binary_logger.py
Class Name: BinaryLogger
Method Name: enumerate_statistics
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: NifTK/NiftyNet
Commit Name: f3411bb824254b62f249772b530f74728dcd5c30
Time: 2018-05-03
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/io/image_sets_partitioner.py
Class Name: ImageSetsPartitioner
Method Name: grep_files_by_data_section
Project Name: vatlab/SoS
Commit Name: a1af2977c50399f58726182cd9481a6770c115ac
Time: 2017-03-30
Author: ben.bog@gmail.com
File Name: sos/sos_task.py
Class Name:
Method Name: check_task