1e7ede5f3494e58e54fecd292c8c640ff2cc4720,ilastik/config.py,,init_ilastik_config,#Any#,85
Before Change
if userConfig is None:
userConfig = os.path.expanduser(CONFIG_PATH)
if os.path.exists(userConfig):
cfg.read(userConfig)
init_ilastik_config()
After Change
def init_ilastik_config(path: Union[None, str, bytes, os.PathLike] = None) -> None:
if path is None:
_init(_get_default_config_path())
elif os.path.isfile(path) :
_init(path)
else:
raise RuntimeError(f"ilastik config file {path} does not exist or is not a file")
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: ilastik/ilastik
Commit Name: 1e7ede5f3494e58e54fecd292c8c640ff2cc4720
Time: 2020-10-08
Author: emilmelnikov@gmail.com
File Name: ilastik/config.py
Class Name:
Method Name: init_ilastik_config
Project Name: pantsbuild/pants
Commit Name: 272e8e62d42aefa3d2547ae9108858ffb7c2d172
Time: 2017-05-25
Author: stuhood@twitter.com
File Name: src/python/pants/backend/jvm/tasks/bundle_create.py
Class Name: BundleCreate
Method Name: bundle
Project Name: chartbeat-labs/textacy
Commit Name: 8b8c1049208c3db5a53c81347269705146b26eb0
Time: 2017-06-01
Author: burton@chartbeat.com
File Name: textacy/datasets/wikipedia.py
Class Name: Wikipedia
Method Name: filename