146f5ddd1ac881fbebdeff83c0be0322bf7e1d74,dit/math/sigmaalgebra.py,,is_sigma_algebra__brute,#Any#Any#,161
Before Change
Its time complexity is O( len(F)**2 ).
if X is None:
X = set([])
for cet in F:
X.update(cet)
X = frozenset(X)
for subset1 in F:
if X.difference(subset1) not in F:
After Change
// This works because its not necessary to test countable unions if the
// base set X is finite. One need only consider pairwise unions.
if X is None:
X = frozenset().union(*F)
else:
X = frozenset(X)
for subset1 in F:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: dit/dit
Commit Name: 146f5ddd1ac881fbebdeff83c0be0322bf7e1d74
Time: 2013-09-27
Author: chebee7i@gmail.com
File Name: dit/math/sigmaalgebra.py
Class Name:
Method Name: is_sigma_algebra__brute
Project Name: PyThaiNLP/pythainlp
Commit Name: 362eb2d4028bb6427ccc9cf317c5b225282a51fb
Time: 2020-07-22
Author: wannaphong@yahoo.com
File Name: pythainlp/corpus/common.py
Class Name:
Method Name: provinces
Project Name: Featuretools/featuretools
Commit Name: c583ff130f7c37ad2e4077e82d7d61bf0d2ef6cf
Time: 2019-07-25
Author: chrisstadler@gmail.com
File Name: featuretools/tests/synthesis/test_deep_feature_synthesis.py
Class Name:
Method Name: test_commutative