37b54afef51c7430f8fa00db2f07e3532a7408da,dit/distribution.py,BaseDistribution,zipped,#BaseDistribution#Any#,661

Before Change


            _outcomes = self.outcomes
            _pmf = self.pmf
            i, j = 0, 0
            while j < len(_pmf):
                if outcomes[i] == _outcomes[j]:
                    probs[i] = _pmf[j]
                    j += 1
                i += 1
        else:
            outcomes = self.outcomes
            probs = self.pmf

After Change


            P(atom) > 0 are yielded.

        
        modes = ["pmf", "atoms", "patoms"]
        if mode not in modes:
            raise ditException("Invalid mode.")

        if mode == "pmf":
            for x in izip(self.outcomes, self.pmf):
                yield x
        elif mode == "atoms":
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: dit/dit
Commit Name: 37b54afef51c7430f8fa00db2f07e3532a7408da
Time: 2013-10-01
Author: chebee7i@gmail.com
File Name: dit/distribution.py
Class Name: BaseDistribution
Method Name: zipped


Project Name: lmcinnes/pynndescent
Commit Name: c0a393e873fb6bbf469fc83fc563aba785c2f246
Time: 2019-09-12
Author: leland.mcinnes@gmail.com
File Name: pynndescent/pynndescent_.py
Class Name:
Method Name: initialized_nnd_search


Project Name: biocore/scikit-bio
Commit Name: daf661c3edd949f8ac2cd70e4a725d9a055cc0c3
Time: 2016-06-27
Author: mcdonadt@colorado.edu
File Name: skbio/tree/_tree.py
Class Name: TreeNode
Method Name: shear