443ad869cbd8c174ee75833eae0c0b1c12b1f602,nussl/__init__.py,ImportErrorClass,__init__,#ImportErrorClass#Any#,20
Before Change
class ImportErrorClass(object):
def __init__(self, lib):
raise ImportError("Cannot import {} because {} is not installed".format(self.__name__, lib))
from .core.constants import *
from .core.audio_signal import AudioSignal
from .core import utils, stft_utils, datasets
After Change
class ImportErrorClass(object):
def __init__(self, lib):
msg = "Cannot import {} because {} is not installed".format(type(self).__name__, lib)
raise ImportError(msg)
from .core.constants import *
from .core.audio_signal import AudioSignal
from .core import utils, stft_utils, datasets
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances Project Name: interactiveaudiolab/nussl
Commit Name: 443ad869cbd8c174ee75833eae0c0b1c12b1f602
Time: 2018-04-01
Author: ethanmanilow@gmail.com
File Name: nussl/__init__.py
Class Name: ImportErrorClass
Method Name: __init__
Project Name: matplotlib/matplotlib
Commit Name: c535a7cc882b287c620733c9be03a6960322fc21
Time: 2018-01-09
Author: anntzer.lee@gmail.com
File Name: lib/matplotlib/backends/backend_cairo.py
Class Name:
Method Name:
Project Name: tensorflow/datasets
Commit Name: a2fe67c415a7af740fd7ec810b79c9fa80f29516
Time: 2020-09-21
Author: epot@google.com
File Name: tensorflow_datasets/core/tf_compat.py
Class Name:
Method Name: ensure_tf_install