38159553bea31a492f5a4716a223c3e774086501,src/biotite/structure/basepairs.py,,_get_proximate_basepair_candidates,#Any#Any#,1041

Before Change


            )
            // If the basepair candidate is not already in the output
            // list, append to the output list
            if (
                ((partner_res_start, candidate_res_start) \
                not in basepair_candidates)
                and ((candidate_res_start, partner_res_start) \
                not in basepair_candidates)
                and not (candidate_res_start == partner_res_start)
            ):
                basepair_candidates.append(
                    (candidate_res_start, partner_res_start)
                )
    return basepair_candidates


def _filter_atom_type(atom_array, atom_names):

After Change



    // Get the residue starts for the indices of the candidate/partner
    // indices.
    basepair_candidates = np.array(basepair_candidates)
    basepair_candidates_shape = basepair_candidates.shape
    basepair_candidates = get_residue_starts_for(
        atom_array, basepair_candidates.flatten()
    ).reshape(basepair_candidates_shape)

    // Remove candidates where the N/O pairs are from the same residue
    basepair_candidates = np.delete(
        basepair_candidates, np.where(
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: biotite-dev/biotite
Commit Name: 38159553bea31a492f5a4716a223c3e774086501
Time: 2020-11-09
Author: tom.mueller@beachouse.de
File Name: src/biotite/structure/basepairs.py
Class Name:
Method Name: _get_proximate_basepair_candidates


Project Name: EducationalTestingService/skll
Commit Name: a8097ab1d694d9c9ac3c25f4bb82566d39f565bc
Time: 2013-03-01
Author: mheilman@ets.org
File Name: classifier.py
Class Name: Classifier
Method Name: train


Project Name: tyarkoni/pliers
Commit Name: 597835c0f2109ddde91c0e9befe7be6b7cc073d6
Time: 2020-03-03
Author: rbrrcc@gmail.com
File Name: pliers/extractors/text.py
Class Name: BertLMExtractor
Method Name: _mask