6d9eb2246be4100a43dc0f19a2aed27680aaacb1,originality.py,,originality_score,#Any#Any#,42

Before Change


    return score > threshold

def originality_score(submission1, submission2):
    return ks_2samp(submission1, submission2)[0]

def is_almost_unique(submission_data, submission, db_manager, filemanager, is_exact_dupe_thresh, is_similar_thresh, max_similar_models):
    num_similar_models = 0
    is_original = True

After Change


    data_all = np.concatenate([data1, data2])
    cdf1 = np.searchsorted(data1, data_all, side="right") / (1.0*n1)
    cdf2 = np.searchsorted(data2, data_all, side="right") / (1.0*n2)
    d = np.max(np.absolute(cdf1 - cdf2))
    return d

def is_almost_unique(submission_data, submission, db_manager, filemanager, is_exact_dupe_thresh, is_similar_thresh, max_similar_models):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 2

Instances


Project Name: numerai/submission-criteria
Commit Name: 6d9eb2246be4100a43dc0f19a2aed27680aaacb1
Time: 2017-09-13
Author: phil@pcmonk.me
File Name: originality.py
Class Name:
Method Name: originality_score


Project Name: deeptools/HiCExplorer
Commit Name: e8a8edec508fcf886d5c6329ff0729b1cff845e8
Time: 2018-09-04
Author: wolffj@informatik.uni-freiburg.de
File Name: hicexplorer/utilities.py
Class Name:
Method Name: exp_obs_matrix_norm


Project Name: deeptools/HiCExplorer
Commit Name: 7f5a6dc69b98696d5d3b84c207f75600081dabd6
Time: 2018-05-25
Author: wolffj@informatik.uni-freiburg.de
File Name: hicexplorer/test/test_hicPCA.py
Class Name:
Method Name: are_files_equal_bigwig


Project Name: bsmurphy/PyKrige
Commit Name: 2638f41eaec8cde46a09da8a211baaf0c744148b
Time: 2015-02-15
Author: murphybe@gdemac.oce.orst.edu
File Name: pykrige/core.py
Class Name:
Method Name: krige