cf38c49c6260e2a7af3c1f752088532f0d76ab6d,torch_geometric/nn/conv/message_passing.py,MessagePassing,__init__,#MessagePassing#Any#Any#Any#,53

Before Change


        self.__message_signature__ = inspect.signature(self.message)
        // skip self, out
        self.__update_signature__ = inspect.signature(self.update)
        if set(update_special_args) - set(
            self.__update_signature__.parameters
        ):
            raise TypeError(
                "Incomplete signature of update: {} are "
                "missing required arguments".format(
                    (
                        set(update_special_args)
                        - set(self.__update_signature__.parameters)
                    )
                )
            )
        self.__aggregate_signature__ = inspect.signature(self.aggregate)
        if set(aggregate_special_args) - set(
            self.__aggregate_signature__.parameters
        ):
            raise TypeError(
                "Incomplete signature of aggregate: {} are "
                "missing required arguments".format(
                    set(aggregate_special_args)
                    - set(self.__aggregate_signature__.parameters)
                )
            )

    def propagate(self, edge_index, size=None, **kwargs):
        rThe initial call to start propagating messages.

        Args:

After Change


        self.__aggr_sign__ = MappingProxyType(self.__aggr_sign__)

        self.__update_sign__ = inspect.signature(self.update).parameters
        self.__update_sign__ = OrderedDict(self.__update_sign__)
        self.__update_sign__.popitem(last=False)
        self.__update_sign__ = MappingProxyType(self.__update_sign__)

        msg_args = set(self.__msg_sign__.keys()) - msg_special_args
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: rusty1s/pytorch_geometric
Commit Name: cf38c49c6260e2a7af3c1f752088532f0d76ab6d
Time: 2020-01-05
Author: matthias.fey@tu-dortmund.de
File Name: torch_geometric/nn/conv/message_passing.py
Class Name: MessagePassing
Method Name: __init__


Project Name: biolab/orange3
Commit Name: 1349a412f5b3912b0e90afb17ccb90745c50a430
Time: 2015-12-04
Author: janez.demsar@fri.uni-lj.si
File Name: Orange/canvas/report/__init__.py
Class Name:
Method Name: describe_data_brief


Project Name: biolab/orange3
Commit Name: 34d4608fcd3df6f5c02e6a56afda51fd9d00be0b
Time: 2015-10-30
Author: janez.demsar@fri.uni-lj.si
File Name: Orange/canvas/report/__init__.py
Class Name:
Method Name: describe_data_brief