f9e27737834aa42092518755743a26a4785e198c,kur/providers/batch_provider.py,BatchProvider,__iter__,#BatchProvider#,85
Before Change
"unknown" if self.keys is None \
else self.keys[i],
len(queues[i]),
queues[i].shape[1:] \
if isinstance(queues[i], numpy.ndarray) \
else "unknown" ,
len(x),
x.shape[1:] \
if isinstance(x, numpy.ndarray) \
After Change
if len(queues[i]) == 0:
queues[i] = x
else:
queues[i].extend(x)
// Get the data ready.
result[i] = numpy.array(queues[i][:self.batch_size])
queues[i] = queues[i][self.batch_size:]
In pattern: SUPERPATTERN
Frequency: 6
Non-data size: 3
Instances Project Name: deepgram/kur
Commit Name: f9e27737834aa42092518755743a26a4785e198c
Time: 2017-01-31
Author: ajsyp@syptech.net
File Name: kur/providers/batch_provider.py
Class Name: BatchProvider
Method Name: __iter__
Project Name: pymanopt/pymanopt
Commit Name: 1c10f0dc589fc13e011d8ffc61f3d94c8d6adbb8
Time: 2020-02-02
Author: niklas.koep@gmail.com
File Name: pymanopt/core/problem.py
Class Name: Problem
Method Name: _flatten_arguments
Project Name: pyinstaller/pyinstaller
Commit Name: 22c60de32fd53c362ccdba52c6ee648e4ad6ae6c
Time: 2017-08-11
Author: xoviat@users.noreply.github.com
File Name: PyInstaller/depend/utils.py
Class Name:
Method Name: __recursivly_scan_code_objects_for_ctypes
Project Name: tensorflow/agents
Commit Name: 67b2ab42dd619a2b9ef961b52658ae9cc19d724e
Time: 2020-02-13
Author: bartok@google.com
File Name: tf_agents/bandits/policies/mixture_policy.py
Class Name: MixturePolicy
Method Name: _variables
Project Name: google/deepvariant
Commit Name: 2f92370cd776f6e3538dcd8914c980b2e4fbc50a
Time: 2018-01-10
Author: mdepristo@google.com
File Name: deepvariant/make_examples.py
Class Name:
Method Name: default_options
Project Name: dask/distributed
Commit Name: 1dba1622049dd957dfce138618e4ee4180222b4a
Time: 2020-07-21
Author: jakirkham@gmail.com
File Name: distributed/protocol/utils.py
Class Name:
Method Name: pack_frames