2877abcbc7ac4be1a1d38551e2a52b143cfd63c6,scipy/stats/_binned_statistic.py,,_bin_numbers,#Any#Any#Any#Any#,680

Before Change


    for i in xrange(Ndim):
        // Find the rounding precision
        try:
            decimal = int(-np.log10(dedges[i].min())) + 6
        except exceptions:
            raise ValueError("The smallest edge difference is numerically 0.")
        // Find which points are on the rightmost edge.
        on_edge = np.where(np.around(sample[:, i], decimal) ==

After Change


    for i in xrange(Ndim):
        // Find the rounding precision
        dedges_min = dedges[i].min()
        if dedges_min == 0:
            raise ValueError("The smallest edge difference is numerically 0.")
        decimal = int(-np.log10(dedges_min)) + 6
        // Find which points are on the rightmost edge.
        on_edge = np.where(np.around(sample[:, i], decimal) ==
                           np.around(edges[i][-1], decimal))[0]
        // Shift these points one bin to the left.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: scipy/scipy
Commit Name: 2877abcbc7ac4be1a1d38551e2a52b143cfd63c6
Time: 2019-10-30
Author: egouden@users.noreply.github.com
File Name: scipy/stats/_binned_statistic.py
Class Name:
Method Name: _bin_numbers


Project Name: hls-fpga-machine-learning/hls4ml
Commit Name: 6d27701311a5d0f013cf608dc5947e2fd0813882
Time: 2020-05-04
Author: sioni.summers10@imperial.ac.uk
File Name: hls4ml/model/hls_model.py
Class Name: WeightVariable
Method Name: update_precision


Project Name: interactiveaudiolab/nussl
Commit Name: 67416766b03c0e93f864fcb58509b14aefd93e41
Time: 2019-06-20
Author: prem@u.northwestern.edu
File Name: nussl/separation/clustering/clustering_separation_base.py
Class Name: ClusteringSeparationBase
Method Name: plot