fade34bcf643d430f3dd40dc078e4a715422b510,lexos/processors/analyze/topword.py,,_z_test_,#,20

Before Change


    try:
        p = (p1 * n1 + pt * nt) / (n1 + nt)
        standard_error = sqrt(p * (1 - p) * ((1 / n1) + (1 / nt)))
        z_scores = (p1 - pt) / standard_error
        return z_scores
    except ZeroDivisionError:
        return "Insignificant"

After Change


             NOT an anomaly.
    
    assert n1 > 0, SEG_NON_POSITIVE_MESSAGE
    assert nt > 0, SEG_NON_POSITIVE_MESSAGE
    p = (p1 * n1 + pt * nt) / (n1 + nt)
    standard_error = (p * (1 - p) * ((1 / n1) + (1 / nt)))**0.5
    if standard_error == 0:
        return 0
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 3

Instances


Project Name: WheatonCS/Lexos
Commit Name: fade34bcf643d430f3dd40dc078e4a715422b510
Time: 2017-08-03
Author: weltch1997@gmail.com
File Name: lexos/processors/analyze/topword.py
Class Name:
Method Name: _z_test_


Project Name: ilastik/ilastik
Commit Name: 77820294086e9f63a002b588f8be6e3ad1de079c
Time: 2019-06-21
Author: tomaz.vieira@embl.de
File Name: ilastik/applets/dataSelection/opDataSelection.py
Class Name: DatasetInfo
Method Name: getPossibleInternalPaths


Project Name: SPFlow/SPFlow
Commit Name: a94dbd2936fdc64e921333c04e0d66d491efc706
Time: 2018-11-19
Author: claas@voelcker.net
File Name: src/spn/algorithms/stats/Moments.py
Class Name:
Method Name: Moment


Project Name: Calamari-OCR/calamari
Commit Name: 8d0d0c7a6db3904f0222cbe058388a92cf21a548
Time: 2021-02-06
Author: ChWick@users.noreply.github.com
File Name: calamari_ocr/ocr/dataset/imageprocessors/scale_to_height_processor.py
Class Name: ScaleToHeightProcessor
Method Name: scale_to_h


Project Name: arogozhnikov/einops
Commit Name: 29389772364178f76ccf565917870639cad283bb
Time: 2018-09-27
Author: iamfullofspam@gmail.com
File Name: einops.py
Class Name:
Method Name: get_axes_names