86698c801848975de9a21fb17093e045b6271ea3,rdkit_fixer.py,,PreparePDBMol,#,94

Before Change



    if residue_whitelist is None:
        // Get templates for all residues in molecules
        unique_resname = set([atom.GetPDBResidueInfo().GetResidueName() for atom in mol.GetAtoms()])
    else:
        unique_resname = set(residue_whitelist)
    if residue_blacklist is not None:
        unique_resname = unique_resname.difference(set(residue_blacklist))

After Change


    // Deal with residue lists
    if residue_whitelist is None:
        // Get templates for all residues in molecules
        unique_resname = set(resnames)
    else:
        unique_resname = set(residue_whitelist)
    if residue_blacklist is not None:
        unique_resname = unique_resname.difference(set(residue_blacklist))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


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


Project Name: nilmtk/nilmtk
Commit Name: 82844481da6e1f3d391541d47af0c1466679f0f0
Time: 2014-07-11
Author: jack-list@xlk.org.uk
File Name: nilmtk/metergroup.py
Class Name: MeterGroup
Method Name: __getitem__


Project Name: gboeing/osmnx
Commit Name: b3aa4931848b64f28239fa334f29f69794ff5a35
Time: 2020-12-03
Author: boeing@usc.edu
File Name: osmnx/utils_graph.py
Class Name:
Method Name: count_streets_per_node