092717cb4af439c4e0d7fd6faeeb0d67b9d7623d,syft/frameworks/torch/he/fv/context.py,Context,__init__,#Context#Any#,26
Before Change
def __init__(self, params):
// Validation of params provided for the encryption scheme.
self.validate(params)
self.param = params
self.rns_tool = RNSTool(params)
After Change
self.context_data_map = {}
self.context_data_map[self.key_param_id] = ContextData(params)
if len(params.coeff_modulus) > 1:
self.first_param_id = self.create_next_context_data(self.key_param_id)
else:
self.first_param_id = self.key_param_id
self.last_param_id = self.first_param_id
prev_parms_id = self.first_param_id
while len(self.context_data_map[prev_parms_id].param.coeff_modulus) > 1:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: OpenMined/PySyft
Commit Name: 092717cb4af439c4e0d7fd6faeeb0d67b9d7623d
Time: 2020-08-10
Author: ravikantsingh2308@gmail.com
File Name: syft/frameworks/torch/he/fv/context.py
Class Name: Context
Method Name: __init__
Project Name: Qiskit/qiskit-aqua
Commit Name: 7dbf6335c0fe5ee075645ada966861d1346c21c5
Time: 2020-01-04
Author: manoel@us.ibm.com
File Name: qiskit/chemistry/components/initial_states/hartree_fock.py
Class Name: HartreeFock
Method Name: __init__
Project Name: Qiskit/qiskit-aqua
Commit Name: 7dbf6335c0fe5ee075645ada966861d1346c21c5
Time: 2020-01-04
Author: manoel@us.ibm.com
File Name: qiskit/chemistry/components/variational_forms/uccsd.py
Class Name: UCCSD
Method Name: __init__