321a0f455524b7553a66ff229f8b4c02c40a5fda,featuretools/entityset/entityset.py,EntitySet,get_forward_entities,#EntitySet#Any#Any#,411

Before Change


                if entity_id in self.get_forward_entities(p):
                    continue

                to_add = self.get_forward_entities(p, deep=True)
                parents_deep = parents_deep.union(to_add)

            parents = parents_deep

        return set(parents)

    def get_backward_entities(self, entity_id, deep=False):

After Change


        Yields a tuple of (descendent_id, path from entity_id to descendant).
        
        for relationship in self.get_forward_relationships(entity_id):
            parent_eid = relationship.parent_entity.id
            direct_path = RelationshipPath([(True, relationship)])
            yield parent_eid, direct_path

            if deep:
                sub_entities = self.get_forward_entities(parent_eid, deep=True)
                for sub_eid, path in sub_entities:
                    yield sub_eid, direct_path + path

    def get_backward_entities(self, entity_id, deep=False):
        
        Get entities that are in a backward relationship with entity
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: Featuretools/featuretools
Commit Name: 321a0f455524b7553a66ff229f8b4c02c40a5fda
Time: 2019-06-21
Author: chrisstadler@gmail.com
File Name: featuretools/entityset/entityset.py
Class Name: EntitySet
Method Name: get_forward_entities


Project Name: Featuretools/featuretools
Commit Name: 321a0f455524b7553a66ff229f8b4c02c40a5fda
Time: 2019-06-21
Author: chrisstadler@gmail.com
File Name: featuretools/entityset/entityset.py
Class Name: EntitySet
Method Name: get_backward_entities


Project Name: brian-team/brian2
Commit Name: 46003aa14454ea427547d34d70a657e0c290128e
Time: 2014-02-28
Author: marcel.stimberg@ens.fr
File Name: brian2/stateupdaters/exact.py
Class Name: LinearStateUpdater
Method Name: __call__