33c3a8101efe1cb66599831c03a6b960248a8718,openml/datasets/functions.py,,_get_dataset_qualities,#,373
Before Change
with open(qualities_file, "w") as fh:
fh.write(qualities_xml)
try:
qualities = xmltodict.parse(qualities_xml)["oml:data_qualities"]
except Exception as e:
// TODO useful debug
raise e
return qualities
def _create_dataset_cache_directory(did):
After Change
// Dataset qualities are subject to change and must be fetched every time
qualities_file = os.path.join(did_cache_dir, "qualities.xml")
try:
with open(qualities_file) as fh:
qualities_xml = fh.read()
except (OSError, IOError):
return_code, qualities_xml = _perform_api_call(
"data/qualities/%d" % did)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: openml/openml-python
Commit Name: 33c3a8101efe1cb66599831c03a6b960248a8718
Time: 2016-03-25
Author: feurerm@informatik.uni-freiburg.de
File Name: openml/datasets/functions.py
Class Name:
Method Name: _get_dataset_qualities
Project Name: SheffieldML/GPy
Commit Name: c6efa62e3684ef380523fcb6c02d881c55fd1e3e
Time: 2015-10-12
Author: ibinbei@gmail.com
File Name: setup.py
Class Name:
Method Name: read
Project Name: suavecode/SUAVE
Commit Name: b60c2b7edaac23593f3ea59bbe91b7b10a864ec9
Time: 2015-03-07
Author: tmomose@stanford.edu
File Name: trunk/SUAVE/Methods/Aerodynamics/AVL/write_geometry.py
Class Name:
Method Name: write_geometry