cba76d5cf38125d9dc221dbe0681a7710d5d06d3,batchflow/batch.py,Batch,apply_parallel,#Batch#Any#,471
Before Change
kwargs = {**self.apply_defaults, **kwargs}
src, dst = [kwargs.pop(name, None) for name in ("src", "dst")]
if isinstance(src, list) and (dst is None or isinstance(dst, list) and len(src) == len(dst)):
if dst is None:
After Change
p = P(R("binomial", 1, p)).get(batch=self)
src = kwargs.pop("src", None)
dst = kwargs.pop("dst", None)
if isinstance(src, list) and not (dst is None or isinstance(dst, list) and len(src) == len(dst)):
raise ValueError("src and dst must have equal length")
if isinstance(src, list) and (dst is None or isinstance(dst, list) and len(src) == len(dst)):
if dst is None:
dst = src
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 5
Instances Project Name: analysiscenter/batchflow
Commit Name: cba76d5cf38125d9dc221dbe0681a7710d5d06d3
Time: 2020-12-01
Author: rhudor@gmail.com
File Name: batchflow/batch.py
Class Name: Batch
Method Name: apply_parallel
Project Name: Qiskit/qiskit-aqua
Commit Name: a847ada6fe88252f25a710f3221b07edd7331304
Time: 2019-01-06
Author: chenrich@us.ibm.com
File Name: qiskit_aqua/_aqua.py
Class Name:
Method Name: run_algorithm
Project Name: bokeh/bokeh
Commit Name: ac47ce4d0ea99d090aa4ccfe51133ae6e32ee344
Time: 2015-08-29
Author: nroth@dealnews.com
File Name: bokeh/charts/_attributes.py
Class Name: ColorAttr
Method Name: __init__
Project Name: PyMVPA/PyMVPA
Commit Name: bf14dfdc905c0a32d0d0cb385510a3888802bb7f
Time: 2009-05-27
Author: debian@onerussian.com
File Name: mvpa/clfs/glmnet.py
Class Name: GLMNET_R
Method Name: __init__
Project Name: home-assistant/home-assistant
Commit Name: ada2fb4ec0b0565ccb0c5fccdbbd884f90a21ebd
Time: 2016-02-13
Author: paulus@paulusschoutsen.nl
File Name: homeassistant/core.py
Class Name: StateMachine
Method Name: remove