cdd9e21ff93f1e0fbb3018ea9edcaefe0f38620d,tests/syft/lib/tenseal/tenseal_ckksvector_test.py,,test_tenseal_ckksvector_isub,#Any#Any#,168

Before Change


    // rsub
    result_enc_ptr = v2 - enc_v1_ptr

    result = result_enc_ptr.decrypt().get()
    _almost_equal(result, [v2 - v1 for v1, v2 in zip(v1, v2)])


@pytest.mark.vendor(lib="tenseal")

After Change


    // isub
    result_enc_ptr = enc_v1_ptr - v2

    result = decrypt(context, result_enc_ptr)
    _almost_equal(result, expected)

    // rsub
    result_enc_ptr = v2 - enc_v1_ptr

    result = decrypt(context, result_enc_ptr)
    _almost_equal(result, [v2 - v1 for v1, v2 in zip(v1, v2)])


@pytest.mark.vendor(lib="tenseal")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 16

Non-data size: 4

Instances


Project Name: OpenMined/PySyft
Commit Name: cdd9e21ff93f1e0fbb3018ea9edcaefe0f38620d
Time: 2021-02-02
Author: bogdan.cebere@gmail.com
File Name: tests/syft/lib/tenseal/tenseal_ckksvector_test.py
Class Name:
Method Name: test_tenseal_ckksvector_isub


Project Name: OpenMined/PySyft
Commit Name: cdd9e21ff93f1e0fbb3018ea9edcaefe0f38620d
Time: 2021-02-02
Author: bogdan.cebere@gmail.com
File Name: tests/syft/lib/tenseal/tenseal_bfvvector_test.py
Class Name:
Method Name: test_tenseal_bfvvector_iadd


Project Name: OpenMined/PySyft
Commit Name: cdd9e21ff93f1e0fbb3018ea9edcaefe0f38620d
Time: 2021-02-02
Author: bogdan.cebere@gmail.com
File Name: tests/syft/lib/tenseal/tenseal_ckksvector_test.py
Class Name:
Method Name: ptest_tenseal_ckksvector_imul


Project Name: OpenMined/PySyft
Commit Name: cdd9e21ff93f1e0fbb3018ea9edcaefe0f38620d
Time: 2021-02-02
Author: bogdan.cebere@gmail.com
File Name: tests/syft/lib/tenseal/tenseal_ckksvector_test.py
Class Name:
Method Name: test_tenseal_ckksvector_isub


Project Name: OpenMined/PySyft
Commit Name: cdd9e21ff93f1e0fbb3018ea9edcaefe0f38620d
Time: 2021-02-02
Author: bogdan.cebere@gmail.com
File Name: tests/syft/lib/tenseal/tenseal_bfvvector_test.py
Class Name:
Method Name: test_tenseal_bfvvector_mul


Project Name: OpenMined/PySyft
Commit Name: cdd9e21ff93f1e0fbb3018ea9edcaefe0f38620d
Time: 2021-02-02
Author: bogdan.cebere@gmail.com
File Name: tests/syft/lib/tenseal/tenseal_ckkstensor_test.py
Class Name:
Method Name: test_tenseal_ckkstensor_mul


Project Name: OpenMined/PySyft
Commit Name: cdd9e21ff93f1e0fbb3018ea9edcaefe0f38620d
Time: 2021-02-02
Author: bogdan.cebere@gmail.com
File Name: tests/syft/lib/tenseal/tenseal_ckkstensor_test.py
Class Name:
Method Name: test_tenseal_ckkstensor_add


Project Name: OpenMined/PySyft
Commit Name: cdd9e21ff93f1e0fbb3018ea9edcaefe0f38620d
Time: 2021-02-02
Author: bogdan.cebere@gmail.com
File Name: tests/syft/lib/tenseal/tenseal_bfvvector_test.py
Class Name:
Method Name: test_tenseal_bfvvector_add


Project Name: OpenMined/PySyft
Commit Name: cdd9e21ff93f1e0fbb3018ea9edcaefe0f38620d
Time: 2021-02-02
Author: bogdan.cebere@gmail.com
File Name: tests/syft/lib/tenseal/tenseal_bfvvector_test.py
Class Name:
Method Name: test_tenseal_bfvvector_sub


Project Name: OpenMined/PySyft
Commit Name: cdd9e21ff93f1e0fbb3018ea9edcaefe0f38620d
Time: 2021-02-02
Author: bogdan.cebere@gmail.com
File Name: tests/syft/lib/tenseal/tenseal_bfvvector_test.py
Class Name:
Method Name: test_tenseal_bfvvector_imul


Project Name: OpenMined/PySyft
Commit Name: cdd9e21ff93f1e0fbb3018ea9edcaefe0f38620d
Time: 2021-02-02
Author: bogdan.cebere@gmail.com
File Name: tests/syft/lib/tenseal/tenseal_ckksvector_test.py
Class Name:
Method Name: test_tenseal_ckksvector_matmul


Project Name: OpenMined/PySyft
Commit Name: cdd9e21ff93f1e0fbb3018ea9edcaefe0f38620d
Time: 2021-02-02
Author: bogdan.cebere@gmail.com
File Name: tests/syft/lib/tenseal/tenseal_ckksvector_test.py
Class Name:
Method Name: test_tenseal_ckksvector_mul


Project Name: OpenMined/PySyft
Commit Name: cdd9e21ff93f1e0fbb3018ea9edcaefe0f38620d
Time: 2021-02-02
Author: bogdan.cebere@gmail.com
File Name: tests/syft/lib/tenseal/tenseal_ckksvector_test.py
Class Name:
Method Name: test_tenseal_ckksvector_sub


Project Name: OpenMined/PySyft
Commit Name: cdd9e21ff93f1e0fbb3018ea9edcaefe0f38620d
Time: 2021-02-02
Author: bogdan.cebere@gmail.com
File Name: tests/syft/lib/tenseal/tenseal_ckkstensor_test.py
Class Name:
Method Name: test_tenseal_ckkstensor_sub


Project Name: OpenMined/PySyft
Commit Name: cdd9e21ff93f1e0fbb3018ea9edcaefe0f38620d
Time: 2021-02-02
Author: bogdan.cebere@gmail.com
File Name: tests/syft/lib/tenseal/tenseal_ckksvector_test.py
Class Name:
Method Name: test_tenseal_ckksvector_add


Project Name: OpenMined/PySyft
Commit Name: cdd9e21ff93f1e0fbb3018ea9edcaefe0f38620d
Time: 2021-02-02
Author: bogdan.cebere@gmail.com
File Name: tests/syft/lib/tenseal/tenseal_ckkstensor_test.py
Class Name:
Method Name: test_tenseal_ckkstensor_iadd


Project Name: OpenMined/PySyft
Commit Name: cdd9e21ff93f1e0fbb3018ea9edcaefe0f38620d
Time: 2021-02-02
Author: bogdan.cebere@gmail.com
File Name: tests/syft/lib/tenseal/tenseal_ckksvector_test.py
Class Name:
Method Name: test_tenseal_ckksvector_iadd