2526879b1f941c887eeb24a267b5ea010e20d5d7,PyNomaly/loop.py,LocalOutlierProbability,_standard_distance,#Any#Any#,84

Before Change


    @staticmethod
    def _standard_distance(mean_distance, sum_squared_distance):
        with np.errstate(divide="ignore", invalid="ignore"):
            st_dist = np.sqrt(np.divide(sum_squared_distance, np.fabs(mean_distance)))
        return st_dist

    @staticmethod

After Change


    @staticmethod
    def _standard_distance(cardinality, sum_squared_distance):
        with np.errstate(divide="ignore", invalid="ignore"):
            st_dist = np.array([np.sqrt(i) for i in np.divide(sum_squared_distance, cardinality)])
        return st_dist

    @staticmethod
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: vc1492a/PyNomaly
Commit Name: 2526879b1f941c887eeb24a267b5ea010e20d5d7
Time: 2017-12-17
Author: vc1492a@gmail.com
File Name: PyNomaly/loop.py
Class Name: LocalOutlierProbability
Method Name: _standard_distance


Project Name: ellisdg/3DUnetCNN
Commit Name: ab0ff941fe4f6469730a8711d40eb32fbc9eacdf
Time: 2017-11-17
Author: david.ellis@unmc.edu
File Name: unet3d/model.py
Class Name:
Method Name: compute_level_output_shape


Project Name: biocore/scikit-bio
Commit Name: fda2b46e999e90749edeae91dc0dc7f61aa29322
Time: 2015-02-22
Author: jamietmorton@gmail.com
File Name: skbio/stats/composition.py
Class Name:
Method Name: _closure


Project Name: interactiveaudiolab/nussl
Commit Name: de900acb546e0d3f9c383545465a37e2e2b0cc6c
Time: 2018-04-01
Author: ethanmanilow@gmail.com
File Name: nussl/separation/ideal_mask.py
Class Name: IdealMask
Method Name: run