b558d6e423f8ba97141f0c865c54e11b6a40b65e,deepchem/feat/tests/test_molgan_featurizer.py,TestMolganFeaturizer,test_featurizer_smiles,#TestMolganFeaturizer#,8

Before Change


    // test defeaturization
    mols = featurizer.defeaturize(data)
    valid_mols = list(filter(lambda x: isinstance(x, Chem.rdchem.Mol), mols))
    invalid_mols = list(
        filter(lambda x: not isinstance(x, Chem.rdchem.Mol), mols))
    assert len(valid_mols) == len(valid_mols)
    assert len(invalid_mols) == len(invalid_graph)

    def test_featurizer_rdkit(self):

After Change


        "C1COC2NCCC2C1", "C1=NCc2ccccc21"
    ]

    invalid_smiles = ["axa", "xyz", "inv"]

    featurizer = MolGanFeaturizer()
    valid_data = featurizer.featurize(smiles)
    invalid_data = featurizer.featurize(invalid_smiles)

    // test featurization
    valid_graphs = list(
        filter(lambda x: isinstance(x, GraphMatrix), valid_data))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: deepchem/deepchem
Commit Name: b558d6e423f8ba97141f0c865c54e11b6a40b65e
Time: 2021-01-29
Author: m.grabski@sygnaturediscovery.com
File Name: deepchem/feat/tests/test_molgan_featurizer.py
Class Name: TestMolganFeaturizer
Method Name: test_featurizer_smiles


Project Name: pytorch/audio
Commit Name: 9bd633e3f92f4bbfb6bc2eb46f407018703ef75e
Time: 2019-06-18
Author: jamarshon@fb.com
File Name: test/test_dataloader.py
Class Name: TORCHAUDIODS
Method Name: __init__


Project Name: pyinstaller/pyinstaller
Commit Name: fe0911772f297b4b40b84af22f57de374aae13fd
Time: 2020-05-14
Author: bjones@ece.msstate.edu
File Name: PyInstaller/hooks/hook-lensfunpy.py
Class Name:
Method Name: