ae6ced7fdebc0e80cbd1d844402960f4e61ad0ba,src/syft/core/node/common/action/get_or_set_property_action.py,GetOrSetPropertyAction,execute_action,#GetOrSetPropertyAction#Any#Any#,63
Before Change
method = node.lib_ast.query(self.path).object_ref
resolved_self = node.store.get_object(key=self._self.id_at_location)
result_read_permissions = resolved_self.read_permissions
tags = resolved_self.tags.copy()
resolved_args = []
for arg in self.args:
r_arg = node.store[arg.id_at_location]
After Change
resolved_args.append(r_arg.data)
resolved_kwargs = {}
tag_kwargs = {}
for arg_name, arg in self.kwargs.items():
r_arg = node.store[arg.id_at_location]
result_read_permissions = self.intersect_keys(
result_read_permissions, r_arg.read_permissions
)
tag_kwargs[arg_name] = r_arg
resolved_kwargs[arg_name] = r_arg.data
if not inspect.isdatadescriptor(method):
raise ValueError(f"{method} not an actual property!")
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: OpenMined/PySyft
Commit Name: ae6ced7fdebc0e80cbd1d844402960f4e61ad0ba
Time: 2021-02-12
Author: xvtongye1986@163.com
File Name: src/syft/core/node/common/action/get_or_set_property_action.py
Class Name: GetOrSetPropertyAction
Method Name: execute_action
Project Name: ray-project/ray
Commit Name: b796de41049aa3b3696a6b7242799284c3f0c641
Time: 2021-01-20
Author: ed.nmi.oakes@gmail.com
File Name: python/ray/util/metrics.py
Class Name: Metric
Method Name: record
Project Name: OpenMined/PySyft
Commit Name: ae6ced7fdebc0e80cbd1d844402960f4e61ad0ba
Time: 2021-02-12
Author: xvtongye1986@163.com
File Name: src/syft/core/node/common/action/run_class_method_action.py
Class Name: RunClassMethodAction
Method Name: execute_action