a171f7bc963df2c31f422c39214552a8fdc9b7c4,plasma/models/targets.py,,,#,12
Before Change
import warnings
// TODO(KGF): temporarily suppress numpy>=1.17.0 warning with TF<2.0.0
// ~6x tensorflow/python/framework/dtypes.py:529: FutureWarning ...
warnings.filterwarnings("ignore", category=FutureWarning)
import keras.backend as K // noqa
from keras.losses import hinge // noqa
warnings.resetwarnings()
After Change
import warnings
// TODO(KGF): temporarily suppress numpy>=1.17.0 warning with TF<2.0.0
// ~6x tensorflow/python/framework/dtypes.py:529: FutureWarning ...
with warnings.catch_warnings(record=True) as w:
warnings.filterwarnings("ignore",
category=FutureWarning,
message=r"passing \(type, 1\) or "1type" as a synonym of type is deprecated", // noqa
module="tensorflow")
import keras.backend as K // noqa
from keras.losses import hinge // noqa
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: PPPLDeepLearning/plasma-python
Commit Name: a171f7bc963df2c31f422c39214552a8fdc9b7c4
Time: 2019-10-30
Author: kfelker@princeton.edu
File Name: plasma/models/targets.py
Class Name:
Method Name:
Project Name: Qiskit/qiskit-aqua
Commit Name: 6bd4c10e3ceac82f3e4b218061666429ff5308fb
Time: 2020-10-15
Author: jules.gacon@googlemail.com
File Name: test/aqua/test_amplitude_estimation_circuitfactory.py
Class Name: TestProblemSetting
Method Name: setUp
Project Name: biolab/orange3
Commit Name: 7884e2cfcffb2bfffa848e4019e225470941a9d5
Time: 2019-01-17
Author: janez.demsar@fri.uni-lj.si
File Name: Orange/statistics/util.py
Class Name:
Method Name: _nan_min_max