5d661491dbc620830f068456fcefcd71f51b16dc,src/biotite/structure/basepairs.py,,_check_dssr_criteria,#Any#Any#Any#,542

Before Change


                // return `1`
                return 1

            if (distance(potential_basepair[bond[0]].coord, 
                potential_basepair[bond[2]].coord) < hbonds) \
                or (hbonds == -1):
                // If the distance is smaller than previously found use
                // as output value

After Change


        potential_basepair = transformed_bases[0] + transformed_bases[1]

        // Get the number of hydrogen bonds
        bonds = len(hbond(
            potential_basepair,
            np.ones_like(potential_basepair, dtype=bool), 
            np.ones_like(potential_basepair, dtype=bool)
        ))

        if bonds > 0:
            return bonds
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: biotite-dev/biotite
Commit Name: 5d661491dbc620830f068456fcefcd71f51b16dc
Time: 2020-05-27
Author: tom.mueller@beachouse.de
File Name: src/biotite/structure/basepairs.py
Class Name:
Method Name: _check_dssr_criteria


Project Name: scikit-optimize/scikit-optimize
Commit Name: 662b9d8c8aaa05634abed0d288061be291673157
Time: 2017-04-05
Author: betatim@gmail.com
File Name: skopt/optimizer/dummy.py
Class Name:
Method Name: dummy_minimize


Project Name: mathics/Mathics
Commit Name: 8ba762547a9ef06b790c207c2ba13b238ad24128
Time: 2016-08-22
Author: Bernhard.Liebl@gmx.org
File Name: mathics/algorithm/clusters.py
Class Name: _Cluster
Method Name: within