c1f7c876399b3b5859d50175c3c349b237c3e714,src/biotite/structure/residues.py,,spread_residue_wise,#Any#Any#,179
Before Change
output_data = np.zeros(array_length, dtype=input_data.dtype)
while i < array_length:
output_data[i] = input_data[j]
if i < array_length-1 and array.res_id[i+1] != array.res_id[i] :
j += 1
i += 1
return output_data
After Change
"c" "c" "c" "c" "c" "c" "c" "c" "c" "c" "c" "c" "c" "c" "c" "c" "c" "c"
"c" "c" "c" "c" "c" "c" "c" "c" "c" "c" "c" "c" "c" "c" "c" "c"]
starts = get_residue_starts(array)
output_data = np.zeros(array.array_length(), dtype=input_data.dtype)
for i in range(len(starts) -1):
output_data[starts[i]:starts[i+1]] = input_data[i]
output_data[starts[-1]:] = input_data[-1]
return output_data
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: biotite-dev/biotite
Commit Name: c1f7c876399b3b5859d50175c3c349b237c3e714
Time: 2018-03-23
Author: patrick.kunzm@gmail.com
File Name: src/biotite/structure/residues.py
Class Name:
Method Name: spread_residue_wise
Project Name: biotite-dev/biotite
Commit Name: c1f7c876399b3b5859d50175c3c349b237c3e714
Time: 2018-03-23
Author: patrick.kunzm@gmail.com
File Name: src/biotite/structure/residues.py
Class Name:
Method Name: apply_residue_wise
Project Name: biotite-dev/biotite
Commit Name: c1f7c876399b3b5859d50175c3c349b237c3e714
Time: 2018-03-23
Author: patrick.kunzm@gmail.com
File Name: src/biotite/structure/residues.py
Class Name:
Method Name: get_residue_count