bd80dea0c69bd2d7b86426b26b4b68e494c1bd72,src/syft/ast/enum.py,EnumAttribute,get_remote_enum_attribute,#EnumAttribute#,41

Before Change


            raise ValueError("MAKE PROPER SCHEMA - Can"t get enum 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


        

        if self.path_and_name is None:
            traceback_and_raise(
                ValueError(
                    "Can"t get enum attribute, path_and_name to solve it "
                    "has not been set."
                )
            )

        if self.client is None:
            traceback_and_raise(
                ValueError(
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/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/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/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/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/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/enum.py
Class Name: EnumAttribute
Method Name: solve_get_enum_attribute


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__