6a9b9a282e8698f7a8c5d66c0e42851bd0c53d2b,tests/grads_utils.py,ComplexGradsUtils,transform_bases,#ComplexGradsUtils#,104

Before Change


        return psi_dict

    def transform_bases(self, bases_data):
        bases = []
        for i in range(len(bases_data)):
            tmp = ""
            for j in range(len(bases_data[i])):
                if bases_data[i][j] != " ":
                    tmp += bases_data[i][j]
            bases.append(tmp)
        return bases

    def algorithmic_gradKL(self, target, space, all_bases, **kwargs):
        grad_KL = [

After Change


        return psi_dict

    def transform_bases(self, bases_data):
        bases_strs = ["".join(b for b in basis if b != " ") for basis in bases_data]
        return bases_strs

    def algorithmic_gradKL(self, target, space, all_bases, **kwargs):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: PIQuIL/QuCumber
Commit Name: 6a9b9a282e8698f7a8c5d66c0e42851bd0c53d2b
Time: 2019-12-23
Author: emerali@users.noreply.github.com
File Name: tests/grads_utils.py
Class Name: ComplexGradsUtils
Method Name: transform_bases


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


Project Name: ricsinaruto/Seq2seqChatbots
Commit Name: 3b9042c743facfbd1e641784f21e29a95db2aac2
Time: 2018-09-20
Author: purgai.patrik@gmail.com
File Name: t2t_csaky/scripts/remove.py
Class Name:
Method Name: main