d4498d719f830e816aa383fa7d5b9c86f7f04a49,skbio/math/stats/evolve/hommola.py,,hommola_cospeciation,#Any#Any#Any#Any#,29

Before Change


    // Generate lists of host and symbiont edges, such that the index
    // of the lists represents an edge connecting the host to the parasite.
    s = 0
    while s < m:
        for i in range(interaction.shape[0]):
            for j in range(interaction.shape[1]):
                if interaction[i, j] == 1:
                    hosts[s] = j
                    pars[s] = i
                    s += 1

    // get a vector of pairwise distances for each interaction edge
    x = _get_dist(hosts, host_dist, range(interaction.shape[1]))
    y = _get_dist(pars, par_dist, range(interaction.shape[0]))

    // calculate the observed correlation coefficient for this host/symbionts

After Change


    // Generate lists of host and symbiont edges, such that the index
    // of the lists represents an edge connecting the host to the parasite.

    pars, hosts = np.nonzero(interaction)

    // print(hosts2, pars2)
    // get a vector of pairwise distances for each interaction edge
    x = _get_dist(hosts, host_dist, range(interaction.shape[1]))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: biocore/scikit-bio
Commit Name: d4498d719f830e816aa383fa7d5b9c86f7f04a49
Time: 2014-07-30
Author: jsanders@oeb.harvard.edu
File Name: skbio/math/stats/evolve/hommola.py
Class Name:
Method Name: hommola_cospeciation


Project Name: facebookresearch/fastMRI
Commit Name: bb103fc1eea74f2e900e127e7ce3514bacfc6aa8
Time: 2020-10-28
Author: matt.muckley@gmail.com
File Name: fastmri/models/varnet.py
Class Name: SensitivityModel
Method Name: forward


Project Name: ultralytics/yolov3
Commit Name: 2df8d7e9f6fd3a3e0233029bf39d4db66807a229
Time: 2019-03-15
Author: glenn.jocher@ultralytics.com
File Name: utils/utils.py
Class Name:
Method Name: non_max_suppression