414cd20602e663f52a98fc12ecb45ab38f74f6a9,chaospy/distributions/operators/trunkation.py,Trunc,_lower,#Trunc#Any#Any#Any#,60

Before Change




    def _lower(self, left, right, cache):
        left = evaluation.get_forward_cache(left, cache)
        right = evaluation.get_forward_cache(right, cache)
        if isinstance(left, Dist):
            left = evaluation.evaluate_lower(left, cache=cache)
        if isinstance(right, Dist):
            right = evaluation.evaluate_lower(right, cache=cache)
        return numpy.max([left, right], axis=0)

    def _upper(self, left, right, cache):
        left = evaluation.get_forward_cache(left, cache)
        right = evaluation.get_forward_cache(right, cache)

After Change


            [0.6]
        
        del cache // not in use
        del right
        if isinstance(left, Dist):
            left = evaluation.evaluate_lower(left)
        return left
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: jonathf/chaospy
Commit Name: 414cd20602e663f52a98fc12ecb45ab38f74f6a9
Time: 2020-02-10
Author: jonathf@gmail.com
File Name: chaospy/distributions/operators/trunkation.py
Class Name: Trunc
Method Name: _lower


Project Name: nipy/dipy
Commit Name: ad567a1b6694efecf5b52c013b7f507ca57d3df3
Time: 2016-02-02
Author: mrbago@gmail.com
File Name: dipy/reconst/dti.py
Class Name:
Method Name: tensor_prediction


Project Name: jonathf/chaospy
Commit Name: 414cd20602e663f52a98fc12ecb45ab38f74f6a9
Time: 2020-02-10
Author: jonathf@gmail.com
File Name: chaospy/distributions/operators/trunkation.py
Class Name: Trunc
Method Name: _upper