9355ea209c2664ee3c2565431f50b960816ea59a,prody/proteins/pdbclusters.py,,loadPDBClusters,#Any#,22

Before Change


                PDB_CLUSTERS_UPDATE_WARNING = False
        inp = openFile(filename)
        clusters = inp.read()
        try:
            clusters = clusters.decode()
        except (UnicodeDecodeError, AttributeError):
            pass
        PDB_CLUSTERS[sqid] = clusters
        inp.close()

After Change



        clusters = []
        for cluster_str in clusters_str.split("\n"):
            cluster_str = cluster_str.strip()
            if len(cluster_str):
                cluster = [tuple(item.split("_")) for item in cluster_str.split()]
                clusters.append(cluster)

        PDB_CLUSTERS[sqid] = clusters
        inp.close()

    if sqid is None:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 5

Instances


Project Name: prody/ProDy
Commit Name: 9355ea209c2664ee3c2565431f50b960816ea59a
Time: 2019-11-19
Author: shz66@pitt.edu
File Name: prody/proteins/pdbclusters.py
Class Name:
Method Name: loadPDBClusters


Project Name: tensorflow/minigo
Commit Name: 338e1914ab7e73856d292b7b1f2885016db7e4ff
Time: 2018-05-09
Author: tom.ej.madams@gmail.com
File Name: main.py
Class Name:
Method Name: gtp


Project Name: tensorflow/tensorboard
Commit Name: aebedd6592a7e76e6e800b698832704e140ccaad
Time: 2021-03-19
Author: github@wchargin.com
File Name: tensorboard/data/server_ingester.py
Class Name: SubprocessServerDataIngester
Method Name: start


Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 0685052da871976e773c59dc732811019b90a612
Time: 2016-06-29
Author: carlos.torres@rackspace.com
File Name: perfkitbenchmarker/providers/openstack/os_disk.py
Class Name: OpenStackDisk
Method Name: _Exists