81ce5ee9a1590e7b4154e72dca54c33ad27b6d89,opt_einsum/contract.py,ContractExpression,__init__,#ContractExpression#Any#Any#Any#,525

Before Change



        // perform as much of the contraction as possible if constants supplied
        if constants_dict:
            tmp_const_ops = [constants_dict.get(i, None) for i in range(self.num_args)]
            new_ops, new_contraction_list = self(*tmp_const_ops, parse_constants=True)
            self.contraction = format_const_einsum_str(contraction, constants_dict.keys())
            self.num_args -= len(constants_dict)
            self.contraction_list = new_contraction_list

After Change


        self.contraction_list = contraction_list
        self.einsum_kwargs = einsum_kwargs

        self._full_num_args = contraction.count(",") + 1
        self.num_args = self._full_num_args - len(constants_dict)

        self.contraction = format_const_einsum_str(contraction, constants_dict.keys())
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: dgasmith/opt_einsum
Commit Name: 81ce5ee9a1590e7b4154e72dca54c33ad27b6d89
Time: 2018-07-21
Author: john.gray.14@ucl.ac.uk
File Name: opt_einsum/contract.py
Class Name: ContractExpression
Method Name: __init__


Project Name: MTG/freesound
Commit Name: 0f7bacc26eec44c9f00f5d7666c1f87f0e051ce2
Time: 2017-11-10
Author: andres.ferraro@upf.edu
File Name: search/management/commands/post_dirty_sounds_to_solr.py
Class Name: Command
Method Name: handle


Project Name: ray-project/ray
Commit Name: 63594c537064d5cc47179169df6e6e6defa613d6
Time: 2021-03-25
Author: ed.nmi.oakes@gmail.com
File Name: python/ray/serve/backend_state.py
Class Name: BackendState
Method Name: _scale_backend_replicas