fba856cbbe5a634656361d8abc86630e6e9f9dfe,stellargraph/data/converter.py,NodeAttributeSpecification,add_all_attributes,#NodeAttributeSpecification#Any#Any#Any#Any#,131

Before Change


        attrs = all_attrs.difference(set(ignored_attributes))

        // Don"t use node type as attribute:
        attrs.discard(graph._node_type_attr)

        // Set found attributes with converter
        self.add_attribute_list(node_type, attrs, converter, **conv_args)

After Change


            raise TypeError("Graph must be a StellarGraph or StellarDigraph object")

        // Go through graph to find node attributes
        attrs = set()
        for node in graph.nodes_of_type(node_type):
            attrs |= graph.node_attributes(node)

        // Remove any ignored attributes
        attrs = attrs.difference(set(ignored_attributes))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: stellargraph/stellargraph
Commit Name: fba856cbbe5a634656361d8abc86630e6e9f9dfe
Time: 2019-12-12
Author: 52440942+geoffj-d61@users.noreply.github.com
File Name: stellargraph/data/converter.py
Class Name: NodeAttributeSpecification
Method Name: add_all_attributes


Project Name: mathics/Mathics
Commit Name: 5a8afe8256c9586a9dff05e4c16b69d53f5857ae
Time: 2016-08-08
Author: 16sn6uv@gmail.com
File Name: mathics/builtin/inout.py
Class Name: On
Method Name: apply


Project Name: pantsbuild/pants
Commit Name: 531454c1da4888a540967ef09818ceec48bf4509
Time: 2020-01-16
Author: ericarellano@me.com
File Name: src/python/pants/backend/project_info/rules/dependencies.py
Class Name:
Method Name: dependencies