2bef16cd6feb96c3977acd1b9feb2264c5f38ed3,lingpy/align/pairwise.py,,sw_align,#Any#Any#Any#Any#,553

Before Change


    

    // check whether the sequences are tuples
    if type(seqA) == str or type(seqA) == tuple:
        seqA = list(seqA)
        seqB = list(seqB)
    elif type(seqA) != list:
        raise ValueError(rcParams["input_error"].format("tuple, list, or string"))

After Change


    

    // check whether the sequences are tuples
    if type(seqA) in [str, tuple, unicode]: 
        seqA = list(seqA)
        seqB = list(seqB)
    elif type(seqA) != list:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 11

Instances


Project Name: lingpy/lingpy
Commit Name: 2bef16cd6feb96c3977acd1b9feb2264c5f38ed3
Time: 2014-12-02
Author: mattis.list@posteo.de
File Name: lingpy/align/pairwise.py
Class Name:
Method Name: sw_align


Project Name: lingpy/lingpy
Commit Name: 2bef16cd6feb96c3977acd1b9feb2264c5f38ed3
Time: 2014-12-02
Author: mattis.list@posteo.de
File Name: lingpy/align/pairwise.py
Class Name:
Method Name: we_align


Project Name: lingpy/lingpy
Commit Name: 2bef16cd6feb96c3977acd1b9feb2264c5f38ed3
Time: 2014-12-02
Author: mattis.list@posteo.de
File Name: lingpy/align/pairwise.py
Class Name:
Method Name: nw_align


Project Name: lingpy/lingpy
Commit Name: 2bef16cd6feb96c3977acd1b9feb2264c5f38ed3
Time: 2014-12-02
Author: mattis.list@posteo.de
File Name: lingpy/align/pairwise.py
Class Name:
Method Name: edit_dist