a9224bd99e92d5fbddb9b720e6073cf0ff259f03,anvio/structureops.py,PDBDatabase,get_structure,#PDBDatabase#Any#Any#,1401

Before Change



            if path:
                with open(path, "rb") as f:
                    output_queue.put((pdb_id, f.read()))
            else:
                // The structure could not be downloaded. Interesting :\
                self.run.warning("%s, chain %s was not downloaded :\\" % (pdb_id[:4], pdb_id[-1]))

After Change


        while True:
            pdb_id = available_index_queue.get(True)

            structure = {}
            structure["id"] = pdb_id
            structure["pdb_content"] = self.download_and_return_pdb_content(pdb_id)
            structure["failed"] = False if structure["pdb_content"] else True
            structure["cluster_info"] = self.get_cluster_info(pdb_id)

            output_queue.put(structure)

        // Never reaches here because process is killed by main thread
        return
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: merenlab/anvio
Commit Name: a9224bd99e92d5fbddb9b720e6073cf0ff259f03
Time: 2020-03-24
Author: kiefl.evan@gmail.com
File Name: anvio/structureops.py
Class Name: PDBDatabase
Method Name: get_structure


Project Name: uuazed/numerapi
Commit Name: 80e4f15860b6b002f2dd3f420eaeff63e202eb2f
Time: 2017-11-18
Author: wolfgang@steitz.me
File Name: numerapi/numerapi.py
Class Name: NumerAPI
Method Name: upload_predictions


Project Name: tensorflow/benchmarks
Commit Name: 2d074b5ddfbfbc486506384993bb5b269903e144
Time: 2018-10-02
Author: laigd@google.com
File Name: scripts/tf_cnn_benchmarks/benchmark_cnn.py
Class Name: BenchmarkCNN
Method Name: _build_input_processing