178b1bc846ab4546c809771ae5fc2484790fd702,rdkit_fixer.py,,IsResidueConnected,#,879

Before Change



    while len(to_check) > 0:
        aid = to_check.pop()
        if aid in visited_atoms:
            continue

        visited_atoms.add(aid)
        atom = mol.GetAtomWithIdx(aid)

        for atom2 in atom.GetNeighbors():

After Change


    residues = set()
    for aid in atom_ids:
        info = mol.GetAtomWithIdx(aid).GetPDBResidueInfo()
        residue = (info.GetResidueNumber(), info.GetResidueName().strip(),
                   info.GetChainId())
        residues.add(residue)
    if len(residues) > 1:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: oddt/oddt
Commit Name: 178b1bc846ab4546c809771ae5fc2484790fd702
Time: 2018-05-17
Author: martasd@ibb.waw.pl
File Name: rdkit_fixer.py
Class Name:
Method Name: IsResidueConnected


Project Name: eriklindernoren/PyTorch-YOLOv3
Commit Name: 569f8c42734ceb44eedf2c9e7753cfc2d593ac81
Time: 2018-05-27
Author: eriklindernoren@gmail.com
File Name: utils/parse_config.py
Class Name:
Method Name: parse_model_config


Project Name: hachmannlab/chemml
Commit Name: 30bce6638a5840e6a67f0d996c6c51b809cd5c0c
Time: 2019-03-05
Author: mojtabah@buffalo.edu
File Name: chemml/chem/molecule.py
Class Name: Molecule
Method Name: to_smiles


Project Name: open-mmlab/mmdetection
Commit Name: 2d2e5c6f42b6f4b8ab4f68985b1fd7823e3be505
Time: 2021-01-13
Author: 35596075+congee524@users.noreply.github.com
File Name: docs/stat.py
Class Name:
Method Name: