52ae438ada955209e14c9c86ba56e3c81347930e,skbio/math/stats/distance/_mantel.py,,mantel,#Any#Any#Any#Any#Any#,16
Before Change
r = corr_func(x.permute(), y_flat)[0]
if alternative == "twosided":
if abs(r) >= abs(orig_stat):
better += 1
else:
if ((alternative == "greater" and r >= orig_stat) or
(alternative == "less" and r <= orig_stat)):
better += 1
After Change
count_better = (np.absolute(permuted_stats) >=
np.absolute(orig_stat)).sum()
elif alternative == "greater":
count_better = (permuted_stats >= orig_stat).sum()
else:
count_better = (permuted_stats <= orig_stat).sum()
p_value = (count_better + 1) / (permutations + 1)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances Project Name: biocore/scikit-bio
Commit Name: 52ae438ada955209e14c9c86ba56e3c81347930e
Time: 2014-06-09
Author: jai.rideout@gmail.com
File Name: skbio/math/stats/distance/_mantel.py
Class Name:
Method Name: mantel
Project Name: idaholab/raven
Commit Name: 3cee81f6d6f9637d21aad32d360844f6ce7a90c4
Time: 2017-06-21
Author: paul.talbot@inl.gov
File Name: framework/Optimizers/GradientBasedOptimizer.py
Class Name: GradientBasedOptimizer
Method Name: _removeRedundantTraj
Project Name: NVIDIA/sentiment-discovery
Commit Name: 81658f79c135ce6e04d89a0055d7090d5efea80e
Time: 2018-08-10
Author: raulp@dbcluster.nvidia.com
File Name: fp16/loss_scaler.py
Class Name: DynamicLossScaler
Method Name: _has_inf_or_nan