original_docstring: Concatenate noise batches, then chop to correct size
docstring: Concatenate noise batches, then chop to correct size
docstring_tokens: Concatenate noise batches then chop to correct size
code: def _load_noise_batch_of_size(self, batch_size):
          """Concatenate noise batches, then chop to correct size"""
  
          noise_batch, noise_lens = self._load_noise_batch()
  
          # Expand
          while len(noise_batch) < batch_size:
              added_noise, added_lens = self._load_noise_batch()
              noise_batch, noise_lens = AddNoise._concat_batch(
                  noise_batch, noise_lens, added_noise, added_lens
              )
  
          # Contract
          if len(noise_batch) > batch_size:
              noise_batch = noise_batch[:batch_size]
              noise_lens = noise_lens[:batch_size]
  
          return noise_batch, noise_lens
code_tokens: def _load_noise_batch_of_size ( self , batch_size ) : noise_batch , noise_lens = self . _load_noise_batch ( ) while len ( noise_batch ) < batch_size : added_noise , added_lens = self . _load_noise_batch ( ) noise_batch , noise_lens = AddNoise . _concat_batch ( noise_batch , noise_lens , added_noise , added_lens ) if len ( noise_batch ) > batch_size : noise_batch = noise_batch [ : batch_size ] noise_lens = noise_lens [ : batch_size ] return noise_batch , noise_lens
short_docstring: Concatenate noise batches, then chop to correct size
short_docstring_tokens: Concatenate noise batches then chop to correct size
comment: """Concatenate noise batches, then chop to correct size"""$SEP$# Expand$SEP$# Contract