45d37a23e03981ff3df9b547eaab5a6a2f04f5ad,prody/proteins/starfile.py,,parseImagesFromSTAR,#Any#,284

Before Change


            if foundImageField:
                dataBlocks.append(dataBlock)

        indices = np.random.rand(len(dataBlocks),maxLoops,maxRows,3)
        for i, dataBlock in enumerate(dataBlocks):
            for j, loop in enumerate(dataBlock):
                for k in range(loop.numRows):
                    indices[i,j,k] = np.array([i,j,k])

After Change


                if loop.numRows > maxRows:
                    maxRows = loop.numRows

        indices = np.zeros((len(loops),maxRows,2),dtype=int)
        for j, loop in enumerate(dataBlock):
            for k in range(loop.numRows):
                indices[j,k] = np.array([j,k])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 4

Instances


Project Name: prody/ProDy
Commit Name: 45d37a23e03981ff3df9b547eaab5a6a2f04f5ad
Time: 2018-09-25
Author: jamesmkrieger@gmail.com
File Name: prody/proteins/starfile.py
Class Name:
Method Name: parseImagesFromSTAR


Project Name: deepchem/deepchem
Commit Name: 8b823d99473ff952519559b9ff3c55569e70c80d
Time: 2020-06-12
Author: bharath@Bharaths-MBP.zyxel.com
File Name: deepchem/dock/tests/test_pose_scoring.py
Class Name: TestPoseScoring
Method Name: test_vina_hbond


Project Name: deepchem/deepchem
Commit Name: 8b823d99473ff952519559b9ff3c55569e70c80d
Time: 2020-06-12
Author: bharath@Bharaths-MBP.zyxel.com
File Name: deepchem/dock/tests/test_pose_scoring.py
Class Name: TestPoseScoring
Method Name: test_vina_hydrophobic


Project Name: deepchem/deepchem
Commit Name: e74a5d43d931a182023566f1640bb8ec09a655c2
Time: 2016-04-29
Author: bharath.ramsundar@gmail.com
File Name: deepchem/models/test/test_overfit.py
Class Name: TestOverfitAPI
Method Name: test_tf_regression_overfit


Project Name: modAL-python/modAL
Commit Name: 73df2ae8fdcdb9a96b39de97b912018d4ba5c75b
Time: 2018-04-25
Author: cosmic-cortex@users.noreply.github.com
File Name: tests/core_tests.py
Class Name: TestUncertainties
Method Name: test_margin_sampling