c1f7c876399b3b5859d50175c3c349b237c3e714,src/biotite/structure/residues.py,,get_residues,#Any#,247

Before Change


    ids[0] = array.res_id[0]
    names[0] = array.res_name[0]
    i = 1
    for j in range(len(array.res_id)):
        if array.res_id[j] != ids[i-1]:
            ids[i] = array.res_id[j]
            names[i] = array.res_name[j]
            i += 1
    // Trim to correct size
    return ids[:i], names[:i]

def get_residue_count(array):
    

After Change


        ["ASN" "LEU" "TYR" "ILE" "GLN" "TRP" "LEU" "LYS" "ASP" "GLY" "GLY" "PRO"
         "SER" "SER" "GLY" "ARG" "PRO" "PRO" "PRO" "SER"]
    
    starts = get_residue_starts(array)
    return array.res_id[starts], array.res_name[starts]

def get_residue_count(array):
    
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

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: get_residues


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


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