223487d7ebf04716f0c0bc0e30af3367c49d0d7a,qiskit/aqua/operators/list_ops/summed_op.py,SummedOp,equals,#SummedOp#Any#,200
Before Change
[op * other_reduced.coeff for op in other_reduced.oplist]) // type: ignore
// compare independent of order
return set(self_reduced) == set(other_reduced)
After Change
[op * other_reduced.coeff for op in other_reduced.oplist]) // type: ignore
// compare independent of order
return all(any(i == j for j in other_reduced) for i in self_reduced)
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 9
Instances
Project Name: Qiskit/qiskit-aqua
Commit Name: 223487d7ebf04716f0c0bc0e30af3367c49d0d7a
Time: 2020-11-06
Author: 31178928+t-imamichi@users.noreply.github.com
File Name: qiskit/aqua/operators/list_ops/summed_op.py
Class Name: SummedOp
Method Name: equals
Project Name: Qiskit/qiskit-aqua
Commit Name: 223487d7ebf04716f0c0bc0e30af3367c49d0d7a
Time: 2020-11-06
Author: 31178928+t-imamichi@users.noreply.github.com
File Name: qiskit/aqua/operators/list_ops/summed_op.py
Class Name: SummedOp
Method Name: equals
Project Name: pfnet/optuna
Commit Name: 358c6d5cec99f8c67c0c0ca165d07f3e766fd5d5
Time: 2019-11-05
Author: hiroyuki.vincent.yamazaki@gmail.com
File Name: optuna/structs.py
Class Name: FrozenTrial
Method Name: __eq__
Project Name: pantsbuild/pants
Commit Name: 1ba173b6a2d2f7d19d6181156f923d4004d19d4a
Time: 2020-03-15
Author: stuhood@gmail.com
File Name: src/python/pants/util/ordered_set.py
Class Name: _AbstractOrderedSet
Method Name: __eq__
Project Name: pgmpy/pgmpy
Commit Name: 55c78bab20f32d44f899868d326bdce336a5f4d1
Time: 2015-12-16
Author: yashuseth2503@gmail.com
File Name: pgmpy/independencies/Independencies.py
Class Name: IndependenceAssertion
Method Name: __eq__
Project Name: tensorflow/cleverhans
Commit Name: ea3ad134bf82f53416af6ba6c7c64f74015e7730
Time: 2017-11-10
Author: fartash.faghri@gmail.com
File Name: examples/multigpu_advtrain/trainer_multigpu.py
Class Name: TrainerMultiGPU
Method Name: is_finished