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

Before Change


    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: 6

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: cornellius-gp/gpytorch
Commit Name: 9b664bd7cd8dbb9657626166ba61887ed06774d7
Time: 2017-09-13
Author: gpleiss@gmail.com
File Name: gpytorch/utils/toeplitz.py
Class Name:
Method Name: index_coef_to_sparse


Project Name: data61/python-paillier
Commit Name: 92857ccbfb8db827ce3c15e6fa86b3eba94d7cac
Time: 2017-06-14
Author: giorgio.patrini@anu.edu.au
File Name: examples/paillier_logistic_regression.py
Class Name: PaillierClassifier
Method Name: encrypted_predict