e456cc88392f8cc0587b8d79c08678dab0b36e44,oddt/toolkits/extras/rdkit.py,,MolToPDBQTBlock,#,289

Before Change


                    break  // break the outer loop as well

            if end_branch:
                if len(branch_queue) > 0:
                    pdbqt_lines.append(branch_queue.pop())
                if old_roots:
                    current_root = old_roots.pop()
                else:  // go to next disconnected fragment
                    next_frag = (frag for frag_num, frag in enumerate(frags)
                                 if frag_num not in visited_frags)[0]
                    current_root = frags[next_frag]
                    visited_frags.append(next_frag)

After Change


    mol = Chem.Mol(mol)

    // if flexible molecule contains multiple fragments write them separately
    if flexible and len(Chem.GetMolFrags(mol)) > 1:
        return "".join(MolToPDBQTBlock(frag, flexible=flexible, addHs=addHs,
                                       computeCharges=computeCharges)
                       for frag in Chem.GetMolFrags(mol, asMols=True))

    // Identify donors and acceptors for atom typing
    // Acceptors
    patt = Chem.MolFromSmarts("[$([O;H1;v2]),"
                              "$([O;H0;v2;!$(O=N-*),"
                              "$([O;-;!$(*-N=O)]),"
                              "$([o;+0])]),"
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: oddt/oddt
Commit Name: e456cc88392f8cc0587b8d79c08678dab0b36e44
Time: 2017-11-23
Author: maciek@wojcikowski.pl
File Name: oddt/toolkits/extras/rdkit.py
Class Name:
Method Name: MolToPDBQTBlock


Project Name: google/language-resources
Commit Name: edd74909eb1cef75e88e50af6fee48bb6615b7fb
Time: 2016-05-26
Author: mjansche@google.com
File Name: my/tokenize.py
Class Name:
Method Name: main


Project Name: PIQuIL/QuCumber
Commit Name: 6a9b9a282e8698f7a8c5d66c0e42851bd0c53d2b
Time: 2019-12-23
Author: emerali@users.noreply.github.com
File Name: tests/grads_utils.py
Class Name: ComplexGradsUtils
Method Name: transform_bases