e626254b74ecb6dc71396c1b35237b53a5e35163,oddt/datasets.py,pdbbind,__init__,#pdbbind#Any#Any#Any#Any#Any#,22

Before Change


                if isfile(csv_file):
                    self._set_ids[pdbind_set] = []
                    self._set_act[pdbind_set] = []
                    for row in csv.reader(_csv_file_filter(csv_file), delimiter=" "):
                        pdbid = row[0]
                        f = join(self.home, self.id, "%s_pocket.pdb" % self.id)
                        if not isfile(f):
                            continue
                        self._set_ids[pdbind_set].append(pdbid)
                        self._set_act[pdbind_set].append(float(row[3]))
                    self.sets[pdbind_set] = dict(zip(self._set_ids[pdbind_set],
                                                     self._set_act[pdbind_set]))
            if len(self.sets) == 0:
                raise Exception("There is no PDBbind set availabe")

After Change


                                              "release_year",
                                              "act"],
                                       comment="//")
                    self._set_ids[pdbind_set] = data["pdbid"].tolist()
                    self._set_act[pdbind_set] = data["act"].tolist()
                    self.sets[pdbind_set] = dict(zip(self._set_ids[pdbind_set],
                                                     self._set_act[pdbind_set]))
            if len(self.sets) == 0:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: oddt/oddt
Commit Name: e626254b74ecb6dc71396c1b35237b53a5e35163
Time: 2017-08-23
Author: maciek@wojcikowski.pl
File Name: oddt/datasets.py
Class Name: pdbbind
Method Name: __init__


Project Name: kwgoodman/numerox
Commit Name: d9444f0c2966113ed8dcd075e64e32645e9ec21d
Time: 2017-11-04
Author: kwgoodman@gmail.com
File Name: numerox/prediction.py
Class Name: Prediction
Method Name: performance


Project Name: EducationalTestingService/skll
Commit Name: ca10c185d94470054d693f19e7691523dbe3ec55
Time: 2019-03-05
Author: jbiggs@ets.org
File Name: skll/data/readers.py
Class Name: NDJReader
Method Name: _sub_read