9c90d0a3c85e6ce7b81df471c8e150d025058832,rdkit_fixer.py,,PreparePDBMol,#,131

Before Change


    // HACK: remove not-visited bonds
    if visited_bonds:  // probably we dont want to delete all
        new_mol = Chem.RWMol(new_mol)
        all_bonds = set(range(new_mol.GetNumBonds()))
        visited_bonds = set(visited_bonds)
        for bid in sorted(all_bonds.difference(visited_bonds), reverse=True):
            bond = new_mol.GetBondWithIdx(bid)
            a1 = bond.GetBeginAtom()

After Change


        visited_bonds = set(visited_bonds)
        for a1_ix, a2_ix in product(range(new_mol.GetNumAtoms()), repeat=2):
            bond = new_mol.GetBondBetweenAtoms(a1_ix, a2_ix)
            if bond is None or (a1_ix, a2_ix) in visited_bonds or (a1_ix, a2_ix) in visited_bonds:
                continue
            a1 = new_mol.GetAtomWithIdx(a1_ix)
            a2 = new_mol.GetAtomWithIdx(a2_ix)
            a1_num = a1.GetPDBResidueInfo().GetResidueNumber()
            a2_num = a2.GetPDBResidueInfo().GetResidueNumber()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: oddt/oddt
Commit Name: 9c90d0a3c85e6ce7b81df471c8e150d025058832
Time: 2018-05-17
Author: maciek@wojcikowski.pl
File Name: rdkit_fixer.py
Class Name:
Method Name: PreparePDBMol


Project Name: pgmpy/pgmpy
Commit Name: 5a53f60e5143ab6f416437dadddd2f1df133a247
Time: 2015-04-07
Author: abinash.panda.ece10@itbhu.ac.in
File Name: pgmpy/models/JunctionTree.py
Class Name: JunctionTree
Method Name: add_edge


Project Name: mlpack/benchmarks
Commit Name: bfbc7582aa9e6a3e1fde6679663232f1f3f1d1fa
Time: 2019-04-24
Author: rukman.sai2@gmail.com
File Name: methods/shogun/lda.py
Class Name: SHOGUN_LDA
Method Name: __init__