03ef391a07e08eefce7299f3a934b49505c5be16,examples/pdbbind/pdbbind_datasets.py,,featurize_pdbbind,#Any#Any#Any#,70

Before Change


  for ind, pdb_code in enumerate(ids):
    print("Processing complex %d, %s" % (ind, str(pdb_code)))
    pdb_subdir = os.path.join(pdbbind_dir, pdb_code)
    if not os.path.exists(pdb_subdir):
      print("%s is missing!" % pdb_subdir)
      missing_pdbs.append(pdb_subdir)
      continue
    computed_feature = compute_pdbbind_features(featurizer, pdb_subdir,
                                                pdb_code)
    if feature_len is None:
      feature_len = len(computed_feature)
    if len(computed_feature) != feature_len:
      print("Featurization failed for %s!" % pdb_code)
      continue
    y_inds.append(ind)
    features.append(computed_feature)
  time2 = time.time()
  print("TIMING: PDBBind Featurization took %0.3f s" % (time2 - time1))

After Change


      continue
    if feature_len is None:
      feature_len = len(result[1])
    if len(result[1]) != feature_len:
      continue
    y_inds.append(result[0])
    features.append(result[1])
  time2 = time.time()
  print("TIMING: PDBBind Featurization took %0.3f s" % (time2 - time1))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: deepchem/deepchem
Commit Name: 03ef391a07e08eefce7299f3a934b49505c5be16
Time: 2017-03-06
Author: lilleswing@gmail.com
File Name: examples/pdbbind/pdbbind_datasets.py
Class Name:
Method Name: featurize_pdbbind


Project Name: openml/openml-python
Commit Name: b99ce669d19504c9c090b394317ff223019f53d0
Time: 2017-05-23
Author: feurerm@informatik.uni-freiburg.de
File Name: openml/flows/functions.py
Class Name:
Method Name: assert_flows_equal


Project Name: samuelclay/NewsBlur
Commit Name: 9ffa63ec2b1d80812e6a242e36fa856d70952f4e
Time: 2016-11-16
Author: samuel@ofbrooklyn.com
File Name: apps/notifications/models.py
Class Name: MUserFeedNotification
Method Name: push_feed_notifications