41e4848935c2d7dee09b7db666854d7489fa7d6c,nussl/repet.py,Repet,run,#Repet#,70
Before Change
self.repeating_period = self._calculate_repeating_period()
// separate the mixture background by masking
bkgd = np.zeros_like(self.audio_signal.audio_data)
for i in range(self.audio_signal.num_channels):
repeating_mask = self._compute_repeating_mask(self.magnitude_spectrogram[:, :, i])
repeating_mask[1:self.high_pass_cutoff, :] = 1 // high-pass filter the foreground
After Change
stft_with_mask = repeating_mask * self.stft[:, :, i]
background_stft.append(stft_with_mask)
background_stft = np.array(background_stft).transpose((1, 2, 0))
self.background = AudioSignal(stft=background_stft, sample_rate=self.audio_signal.sample_rate)
self.background.istft(self.stft_params.window_length, self.stft_params.hop_length,
self.stft_params.window_type, overwrite=True,
use_librosa=self.use_librosa_stft)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 4
Instances Project Name: interactiveaudiolab/nussl
Commit Name: 41e4848935c2d7dee09b7db666854d7489fa7d6c
Time: 2017-01-27
Author: ethanmanilow@gmail.com
File Name: nussl/repet.py
Class Name: Repet
Method Name: run
Project Name: CellProfiler/CellProfiler
Commit Name: 3df28dc6f0bb0704febd6bd1467bb728f4fbe771
Time: 2020-08-13
Author: beth.cimini@gmail.com
File Name: cellprofiler/modules/measuretexture.py
Class Name: MeasureTexture
Method Name: run_one
Project Name: tensorflow/tpu
Commit Name: fd0bb23d44c50cd8c4a2fe75726484b973cb0235
Time: 2019-10-17
Author: pengchong@google.com
File Name: models/official/detection/utils/box_utils.py
Class Name:
Method Name: bbox_overlap
Project Name: drckf/paysage
Commit Name: 41bd741fef07076d854bb164b5df764e9fcc6a2a
Time: 2017-04-17
Author: geminatea@gmail.com
File Name: paysage/models/tap_machine.py
Class Name: TAP_rbm
Method Name: gradient