a66a9216d2d3fd193782640b4e9eb4f50f4b3697,opt_einsum.py,,_path_optimal,#,67

Before Change


        current = new

    // If we have not found anything return single einsum contraction
    if len(new) == 0:
        return [tuple(range(len(input_sets)))]

    new.sort()
    path = new[0][1]
    return path

After Change


            cost, positions, remaining = curr

            // The memory limited case
            idx_contract = set("").union(*remaining)
            new_cost = _compute_size_by_dict(idx_contract, idx_dict)
            if len(idx_contract - output_set) > 0:
                new_cost *= 2
            new_cost *= len(remaining) - 1
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: dgasmith/opt_einsum
Commit Name: a66a9216d2d3fd193782640b4e9eb4f50f4b3697
Time: 2015-05-13
Author: malorian@me.com
File Name: opt_einsum.py
Class Name:
Method Name: _path_optimal


Project Name: gboeing/osmnx
Commit Name: d7b2db3c5262c82c44958afc2500efe0838f0884
Time: 2020-12-02
Author: boeing@usc.edu
File Name: osmnx/utils_graph.py
Class Name:
Method Name: _update_edge_keys


Project Name: ilastik/ilastik
Commit Name: 8861dfa21d1cfd487b7a6eb7508885f084f58e6c
Time: 2019-07-10
Author: tomaz.vieira@embl.de
File Name: ilastik/applets/dataSelection/datasetInfoEditorWidget.py
Class Name: DatasetInfoEditorWidget
Method Name: __init__