d68d2f5d0cc7a5520081ef2eb67db816c2bf9550,dit/npdist.py,Distribution,has_outcome,#Distribution#Any#Any#,882
Before Change
// Make sure each symbol exists in its corresponding alphabet.
z = False
for symbol, alphabet in zip(outcome, self.alphabet):
if symbol not in alphabet:
break
else:
z = True
else:
// The outcome must be valid and have positive probability.
try:
z = self[outcome] > self.ops.zero
After Change
// whether it represents a null probability.
return True
else:
idx = self._outcomes_index.get(outcome, None)
if idx is None:
// Outcome is not represented in pmf and thus, represents
// a null probability.
return False
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 5
Instances Project Name: dit/dit
Commit Name: d68d2f5d0cc7a5520081ef2eb67db816c2bf9550
Time: 2013-10-06
Author: chebee7i@gmail.com
File Name: dit/npdist.py
Class Name: Distribution
Method Name: has_outcome
Project Name: dmnfarrell/pandastable
Commit Name: b8c1fd912f5ac4a6ab659d1f0c0612bd3c136e37
Time: 2015-06-29
Author: farrell.damien@gmail.com
File Name: pandastable/rename.py
Class Name: BatchRenameApp
Method Name: dopreview
Project Name: pantsbuild/pants
Commit Name: bf9599809214cbc3082eb7f39c0ad3155822a2c5
Time: 2014-02-12
Author: benjy@foursquare.com
File Name: src/python/twitter/pants/tasks/jvm_compile/scala/zinc_analysis.py
Class Name: ZincAnalysis
Method Name: split
Project Name: okfn-brasil/serenata-de-amor
Commit Name: 86d4c5df21db07ab75e7eac9ed36d2799b4bf440
Time: 2017-11-19
Author: cuducos@users.noreply.github.com
File Name: research/src/fetch_campaign_donations.py
Class Name: Donation
Method Name: data