e01dc00651cb36ee62d3cb9c97d82a4892e1f001,nussl/audio_signal.py,AudioSignal,__add__,#AudioSignal#Any#,863
Before Change
def __add__(self, other):
self._verify_audio(other, "add")
if self.signal_length > other.signal_length:
combined = np.copy(self.audio_data)
combined[:, :other.signal_length] += other.audio_data
else:
combined = np.copy(other.audio_data)
combined[:, :self.signal_length] += self.audio_data
return AudioSignal(audio_data_array=combined)
def __sub__(self, other):
self._verify_audio(other, "subtract")
After Change
////////////////////////////////////////////////////////////////////////////////////////////////////
def __add__(self, other):
return self.add(other)
def __sub__(self, other):
return self.subtract(other)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: interactiveaudiolab/nussl
Commit Name: e01dc00651cb36ee62d3cb9c97d82a4892e1f001
Time: 2017-02-09
Author: ethanmanilow@gmail.com
File Name: nussl/audio_signal.py
Class Name: AudioSignal
Method Name: __add__
Project Name: interactiveaudiolab/nussl
Commit Name: 9d9ef625dccb7ba0ed3295f18d90de9d6dd59469
Time: 2017-04-04
Author: ethanmanilow@gmail.com
File Name: nussl/audio_signal.py
Class Name: AudioSignal
Method Name: __add__
Project Name: andresriancho/w3af
Commit Name: 93181da752075e7c89620a897153d4cec3c8e722
Time: 2018-06-25
Author: andres.riancho@gmail.com
File Name: w3af/core/data/url/handlers/keepalive/connection_manager.py
Class Name: ConnectionManager
Method Name: get_all