f5cfde005c81804dc81c5c93f0cdb03265620c33,tests/syft/lib/python/list/list_id_test.py,,,#,7

Before Change


// syft absolute
from syft.lib.python.list import List

t1 = th.tensor([1, 2])
t2 = th.tensor([1, 3])
t3 = th.tensor([4, 5, 6])
t4 = th.tensor([7])

After Change



sy_list = List([Int(1), Int(2), Int(3)])
other_list = List([Int(4)])
other = Int(4)
py_list = [1, 2, 3]


def test_id_contains():
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: OpenMined/PySyft
Commit Name: f5cfde005c81804dc81c5c93f0cdb03265620c33
Time: 2020-09-20
Author: tudorcebere@gmail.com
File Name: tests/syft/lib/python/list/list_id_test.py
Class Name:
Method Name:


Project Name: ray-project/ray
Commit Name: ebeee1d59a3e3365a455987bf517ad0d8eac35d5
Time: 2021-02-08
Author: cc.ash.math@gmail.com
File Name: rllib/agents/maml/maml_torch_policy.py
Class Name:
Method Name: maml_loss


Project Name: uber/pyro
Commit Name: 91f31ae7eb26298d13f86ec146c7a4ced7af744d
Time: 2020-04-21
Author: fritzo@uber.com
File Name: examples/sir_hmc.py
Class Name:
Method Name: generate_data


Project Name: rusty1s/pytorch_geometric
Commit Name: 7590f06cd0d1d3c062702fafdce61132cae97f13
Time: 2018-11-28
Author: matthias.fey@tu-dortmund.de
File Name: torch_geometric/utils/one_hot.py
Class Name:
Method Name: one_hot