7cb327a5de4ad5669fdc998ee96ac2bdcff3e7be,brian2/core/functions.py,,timestep,#,546

Before Change


        int_steps = np.asarray(elapsed_steps, dtype=int)
        if any(are_inf):
            int_steps[are_inf & (elapsed_steps < 0)] = _iinfo.min
            int_steps[are_inf & (elapsed_steps > 0)] = _iinfo.max
        return int_steps

After Change


    else:
        int_steps = np.asarray(elapsed_steps, dtype=int)
        are_inf, = np.nonzero(np.isinf(elapsed_steps))
        int_steps[are_inf] = np.where(elapsed_steps[are_inf] > 0,
                                      _infinity_int, -_infinity_int)
        return int_steps


DEFAULT_FUNCTIONS = {
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 4

Instances


Project Name: brian-team/brian2
Commit Name: 7cb327a5de4ad5669fdc998ee96ac2bdcff3e7be
Time: 2018-05-29
Author: marcel.stimberg@inserm.fr
File Name: brian2/core/functions.py
Class Name:
Method Name: timestep


Project Name: mahyarnajibi/SNIPER
Commit Name: ce9e61f795ab62c0d1b0823444483235a02040f7
Time: 2018-05-08
Author: mahyarnajibi@gmail.com
File Name: lib/metric.py
Class Name: VisMetric
Method Name: update


Project Name: snorkel-team/snorkel
Commit Name: 0514d4b6de97d652e6cd99c7b557018890a6ec99
Time: 2017-06-26
Author: ajratner@gmail.com
File Name: snorkel/learning/disc_learning.py
Class Name: TFNoiseAwareModel
Method Name: train


Project Name: librosa/librosa
Commit Name: 489a80fcb2cb9506afdf0a9620bfae103e160245
Time: 2019-11-06
Author: kogito@hotmail.fr
File Name: librosa/feature/inverse.py
Class Name:
Method Name: mfcc_to_mel