922554c5da52e88aa4a1564bc8f087c134b77fcc,openml/tasks/functions.py,,_create_task_cache_directory,#Any#,263
Before Change
task_cache_dir = os.path.join(
config.get_cache_directory(), "tasks", str(task_id)
)
try:
os.makedirs(task_cache_dir)
except (OSError, IOError):
// TODO add debug information!
pass
return task_cache_dir
def _remove_task_cache_dir(tid_cache_dir):
After Change
task_cache_dir = os.path.join(
config.get_cache_directory(), "tasks", str(task_id)
)
if os.path.exists(task_cache_dir) and os.path.isdir(task_cache_dir):
pass
elif os.path.exists(task_cache_dir) and not os.path.isdir(task_cache_dir):
raise ValueError("Task cache dir exists but is not a directory!")
else:
os.makedirs(task_cache_dir)
return task_cache_dir
def _remove_task_cache_dir(tid_cache_dir):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 8
Instances
Project Name: openml/openml-python
Commit Name: 922554c5da52e88aa4a1564bc8f087c134b77fcc
Time: 2017-10-10
Author: feurerm@informatik.uni-freiburg.de
File Name: openml/tasks/functions.py
Class Name:
Method Name: _create_task_cache_directory
Project Name: autorope/donkeycar
Commit Name: e2b80e2afbd64a83fead539811f6b36599def9b4
Time: 2020-04-01
Author: tawnkramer@gmail.com
File Name: donkeycar/parts/dgym.py
Class Name: DonkeyGymEnv
Method Name: __init__
Project Name: openml/openml-python
Commit Name: 922554c5da52e88aa4a1564bc8f087c134b77fcc
Time: 2017-10-10
Author: feurerm@informatik.uni-freiburg.de
File Name: openml/datasets/functions.py
Class Name:
Method Name: _create_dataset_cache_directory