33c3a8101efe1cb66599831c03a6b960248a8718,openml/datasets/functions.py,,check_datasets_active,#,168
Before Change
dataset_list_idx = 0
for did in dids:
// TODO replace with a more efficient while loop!
for idx in range(dataset_list_idx, len(dataset_list) ):
if did == dataset_list[idx]["did"]:
active["did"] = bool(dataset_list[idx]["status"])
dataset_list_idx = idx
After Change
if did == int(dataset["did"]):
active[did] = dataset["status"] == "active"
for did in dids:
if did not in active:
raise ValueError("Could not find dataset %d in OpenML dataset list."
% did)
return active
def get_datasets(dids):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
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: check_datasets_active
Project Name: biocore/scikit-bio
Commit Name: daf661c3edd949f8ac2cd70e4a725d9a055cc0c3
Time: 2016-06-27
Author: mcdonadt@colorado.edu
File Name: skbio/tree/_tree.py
Class Name: TreeNode
Method Name: shear
Project Name: snorkel-team/snorkel
Commit Name: 21678f424e8a7b0734e2dcc31d0a2ee2e10af097
Time: 2016-09-04
Author: ajratner@gmail.com
File Name: snorkel/annotations.py
Class Name: AnnotationManager
Method Name: load