6a9b9a282e8698f7a8c5d66c0e42851bd0c53d2b,tests/grads_utils.py,ComplexGradsUtils,transform_bases,#ComplexGradsUtils#,104
Before Change
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):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 12
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: lingpy/lingpy
Commit Name: 6630157b77a1dea1bb33ab9645aa9ae3f9b50111
Time: 2013-07-25
Author: bambooforest@gmail.com
File Name: lingpy/basic/spreadsheet.py
Class Name: Spreadsheet
Method Name: pprint
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: coala/coala-bears
Commit Name: bfd61fb7a0c4456ce812a227f3b1962b2c727879
Time: 2016-09-03
Author: abdealikothari@gmail.com
File Name: bears/general/KeywordBear.py
Class Name: KeywordBear
Method Name: run