23f7a6de9a581d18a1fb87582f50b6efb72e7683,elfi/executor.py,Executor,get_execution_order,#Any#Any#,84

Before Change



        for output_node in G.graph["outputs"]:
            if dep_graph.has_node(output_node):
                nodes.update([output_node])
                nodes.update(nx.ancestors(dep_graph, output_node))

        return [n for n in order if n in nodes]

After Change


        // Get the cache dict if it exists
        cache = G.graph.get("_executor_cache", {})

        output_nodes = G.graph["outputs"]
        // Filter those output nodes who have an operation to run
        needed = tuple(sorted(node for node in output_nodes if "operation" in G.node[node]))

        if needed not in cache:
            // Resolve the nodes that need to be executed in the graph
            nodes_to_execute = set(needed)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: elfi-dev/elfi
Commit Name: 23f7a6de9a581d18a1fb87582f50b6efb72e7683
Time: 2017-09-08
Author: jarno.lintusaari@aalto.fi
File Name: elfi/executor.py
Class Name: Executor
Method Name: get_execution_order


Project Name: PyMVPA/PyMVPA
Commit Name: b4e4ff40916c75563f39b2487d32af32a6f69302
Time: 2019-05-28
Author: debian@onerussian.com
File Name: mvpa2/datasets/eventrelated.py
Class Name:
Method Name: get_contrasts


Project Name: analysiscenter/batchflow
Commit Name: 5930f1d5fd6d259db43e895ffccc4917344451d6
Time: 2017-12-04
Author: rhudor@gmail.com
File Name: dataset/pipeline.py
Class Name: Pipeline
Method Name: _exec_args