bd80dea0c69bd2d7b86426b26b4b68e494c1bd72,src/syft/ast/static_attr.py,StaticAttribute,get_remote_value,#StaticAttribute#,38

Before Change


            raise ValueError("MAKE PROPER SCHEMA - Can"t get static_attribute")

        if self.client is None:
            raise ValueError(
                "MAKE PROPER SCHEMA - Can"t get remote value if there is no remote "
                "client"
            )

        return_tensor_type_pointer_type = self.client.lib_ast.query(
            path=self.return_type_name
        ).pointer_type

After Change



    def get_remote_value(self) -> AbstractPointer:
        if self.path_and_name is None:
            traceback_and_raise(
                ValueError("Can"t execute remote get if path is not specified.")
            )

        if self.client is None:
            if self.client is None:
                traceback_and_raise(
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 8

Non-data size: 4

Instances


Project Name: OpenMined/PySyft
Commit Name: bd80dea0c69bd2d7b86426b26b4b68e494c1bd72
Time: 2021-02-02
Author: tudorcebere@gmail.com
File Name: src/syft/ast/static_attr.py
Class Name: StaticAttribute
Method Name: get_remote_value


Project Name: OpenMined/PySyft
Commit Name: bd80dea0c69bd2d7b86426b26b4b68e494c1bd72
Time: 2021-02-02
Author: tudorcebere@gmail.com
File Name: src/syft/ast/enum.py
Class Name: EnumAttribute
Method Name: get_remote_enum_attribute


Project Name: OpenMined/PySyft
Commit Name: bd80dea0c69bd2d7b86426b26b4b68e494c1bd72
Time: 2021-02-02
Author: tudorcebere@gmail.com
File Name: src/syft/ast/module.py
Class Name: Module
Method Name: add_attr


Project Name: OpenMined/PySyft
Commit Name: bd80dea0c69bd2d7b86426b26b4b68e494c1bd72
Time: 2021-02-02
Author: tudorcebere@gmail.com
File Name: src/syft/ast/module.py
Class Name: Module
Method Name: __call__


Project Name: OpenMined/PySyft
Commit Name: bd80dea0c69bd2d7b86426b26b4b68e494c1bd72
Time: 2021-02-02
Author: tudorcebere@gmail.com
File Name: src/syft/ast/property.py
Class Name: Property
Method Name: __call__


Project Name: OpenMined/PySyft
Commit Name: bd80dea0c69bd2d7b86426b26b4b68e494c1bd72
Time: 2021-02-02
Author: tudorcebere@gmail.com
File Name: src/syft/ast/enum.py
Class Name: EnumAttribute
Method Name: __call__


Project Name: OpenMined/PySyft
Commit Name: bd80dea0c69bd2d7b86426b26b4b68e494c1bd72
Time: 2021-02-02
Author: tudorcebere@gmail.com
File Name: src/syft/ast/globals.py
Class Name: Globals
Method Name: __call__


Project Name: OpenMined/PySyft
Commit Name: bd80dea0c69bd2d7b86426b26b4b68e494c1bd72
Time: 2021-02-02
Author: tudorcebere@gmail.com
File Name: src/syft/ast/enum.py
Class Name: EnumAttribute
Method Name: solve_get_enum_attribute