a66a9216d2d3fd193782640b4e9eb4f50f4b3697,opt_einsum.py,,_path_optimal,#Any#Any#Any#Any#,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()

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
            new_cost += cost
            new_pos = positions + [tuple(range(len(remaining)))]
            memory_limited.append((new_cost, new_pos, []))
                     
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

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: J535D165/recordlinkage
Commit Name: f7a88a2d7e1c37bfba5e6f7dd72b8a75ae9fa50a
Time: 2018-02-25
Author: jonathandebruinhome@gmail.com
File Name: recordlinkage/base.py
Class Name: BaseCompare
Method Name: _compute


Project Name: ChrisCummins/clgen
Commit Name: f2ba4312cb70551d4a55e6e0b2e14828fdacab1c
Time: 2020-01-25
Author: chrisc.101@gmail.com
File Name: labm8/py/bazelutil.py
Class Name: Workspace
Method Name: GetDependentFiles