<doocs>0953.Verifying an Alien Dictionary_1.py
def isAlienSorted( words: List[str], order: str) -> bool:
    m = {c: i for i, c in enumerate(order)}
    for i in range(20):
        prev = -1
        valid = True
        for x in words:
            curr = -1 if i >= len(x) else m[x[i]]
            if prev > curr:
                return False
            if prev == curr:
                valid = False
            prev = curr
        if valid:
            return True
    return True
def sample_funcname ( var_0 : List [ str ] , var_3 : str ) -> bool :
    var_8 = { var_5 : var_6 for var_6 , var_5 in enumerate ( var_3 ) }
    for var_6 in range ( 20 ) :
        var_12 = - 1
        var_14 = True
        for var_15 in var_0 :
            var_17 = - 1 if var_6 >= len ( var_15 ) else var_8 [ var_15 [ var_6 ] ]
            if var_12 > var_17 :
                return False
            if var_12 == var_17 :
                var_14 = False
            var_12 = var_17
        if var_14 :
            return True
    return True
