f0b9197cb921772eff9174de6c566e8b9cac72ff,tpot/export_utils.py,,expr_to_tree,#Any#,52

Before Change


            pipeline_tree.append([node.name] + primitive_args)

            // Skip past the primitive"s args
            [next(iterable) for x in range(arity)]
        else:
            pipeline_tree.append(node.value)

    return pipeline_tree

After Change


    stack = []
    for node in ind:
        stack.append((node, []))
        while len(stack[-1][1]) == stack[-1][0].arity:
            prim, args = stack.pop()
            tree = prim_to_list(prim, args)
            if len(stack) == 0:
                break   // If stack is empty, all nodes should have been seen
            stack[-1][1].append(tree)

    return tree


def generate_import_code(pipeline):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: EpistasisLab/tpot
Commit Name: f0b9197cb921772eff9174de6c566e8b9cac72ff
Time: 2016-08-19
Author: supacoofoo@gmail.com
File Name: tpot/export_utils.py
Class Name:
Method Name: expr_to_tree


Project Name: ray-project/ray
Commit Name: b2bcab711d333442c282cf64c66a9fac2c93218f
Time: 2020-12-20
Author: sven@anyscale.io
File Name: rllib/utils/sgd.py
Class Name:
Method Name: minibatches


Project Name: ultralytics/yolov3
Commit Name: e4d62de5bc12d1e411adbfe4b76f15d157d77c65
Time: 2019-02-18
Author: glenn.jocher@ultralytics.com
File Name: utils/utils.py
Class Name:
Method Name: non_max_suppression