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])

l1 = List([t1, t2])
l2 = List([t3, t4])

python_l1 = [t1, t2]
python_l2 = [t3, t4]


def test_id_add() -> None:

After Change

from syft.lib.python.list import List
from syft.lib.python.int import Int

sy_list = List([Int(1), Int(2), Int(3)])
other_list = List([Int(4)])
other = Int(4)
py_list = [1, 2, 3]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

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: microsoft/nni
Commit Name: 6c1fe5c811f82c571af94f787b4721f3a1cc7ca4
Time: 2019-11-25
Author: scottyugochang@gmail.com
File Name: src/sdk/pynni/nni/nas/pytorch/darts/mutator.py
Class Name: DartsMutator
Method Name: sample_final


Project Name: OpenNMT/OpenNMT-py
Commit Name: ceda7ee4c7659a3fc19cfb7cba53533edbb98a4a
Time: 2020-09-02
Author: pltrdy@gmail.com
File Name: onmt/tests/test_beam_search.py
Class Name: TestBeamSearch
Method Name: test_advance_with_all_repeats_gets_blocked