6a9b9a282e8698f7a8c5d66c0e42851bd0c53d2b,qucumber/utils/data.py,,load_data_DM,#,66
Before Change
data.append(np.loadtxt(tr_bases_path, dtype=str))
if bases_path is not None:
bases_data = np.loadtxt(bases_path, dtype=str)
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)
data.append(bases)
return data
After Change
data.append(np.loadtxt(tr_bases_path, dtype=str))
if bases_path is not None:
data.append(np.loadtxt(bases_path, dtype=str))
return data
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: PIQuIL/QuCumber
Commit Name: 6a9b9a282e8698f7a8c5d66c0e42851bd0c53d2b
Time: 2019-12-23
Author: emerali@users.noreply.github.com
File Name: qucumber/utils/data.py
Class Name:
Method Name: load_data_DM
Project Name: PIQuIL/QuCumber
Commit Name: 6a9b9a282e8698f7a8c5d66c0e42851bd0c53d2b
Time: 2019-12-23
Author: emerali@users.noreply.github.com
File Name: qucumber/utils/data.py
Class Name:
Method Name: load_data
Project Name: recipy/recipy
Commit Name: 0c6da430326da115149983bc9ac52df76f0e2c3f
Time: 2016-10-28
Author: michaelj@epcc.ed.ac.uk
File Name: integration_test/packages/run_numpy.py
Class Name: NumpySample
Method Name: loadtxt