09e4d48043e8bdd25e89edcf36eb4d420295b954,kmodes/kprototypes.py,,_k_prototypes_iter,#Any#Any#Any#Any#Any#Any#Any#Any#Any#,75

Before Change



        // In case of an empty cluster, reinitialize with a random point
        // from largest cluster.
        if sum(membship[old_clust, :]) == 0:
            from_clust = membship.sum(axis=1).argmax()
            choices = \
                [ii for ii, ch in enumerate(membship[from_clust, :]) if ch]
            rindx = np.random.choice(choices)

After Change



        // In case of an empty cluster, reinitialize with a random point
        // from largest cluster.
        if not membship[old_clust, :].any():
            from_clust = membship.sum(axis=1).argmax()
            choices = \
                [ii for ii, ch in enumerate(membship[from_clust, :]) if ch]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: nicodv/kmodes
Commit Name: 09e4d48043e8bdd25e89edcf36eb4d420295b954
Time: 2017-11-14
Author: njdevos@gmail.com
File Name: kmodes/kprototypes.py
Class Name:
Method Name: _k_prototypes_iter


Project Name: nicodv/kmodes
Commit Name: eb729dba27bf049569dd2bcf369c6ac5d30a10d0
Time: 2017-11-14
Author: njdevos@gmail.com
File Name: kmodes/kmodes.py
Class Name:
Method Name: _k_modes_iter


Project Name: luispedro/mahotas
Commit Name: 92bf17b228b57574038c3e1a859c98de2927e64f
Time: 2013-10-15
Author: luis@luispedro.org
File Name: mahotas/features/shape.py
Class Name:
Method Name: eccentricity


Project Name: theislab/scanpy
Commit Name: 8635c4e75bff3ca1c7821b090f3873ab1fa8fe82
Time: 2020-05-13
Author: 3968483+simonwm@users.noreply.github.com
File Name: scanpy/preprocessing/_simple.py
Class Name:
Method Name: _regress_out_chunk