comefrom: <doocs>0953.Verifying an Alien Dictionary_1.py
code: 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
masked: def sample_funcname ( var_0 : List [ str ] , var_1 : str ) -> bool :
      var_4 = { var_2 : var_3 for var_3 , var_2 in enumerate ( var_1 ) }
      for var_3 in range ( 20 ) :
          var_5 = - 1
          var_6 = True
          for var_7 in var_0 :
              var_8 = - 1 if var_3 >= len ( var_7 ) else var_4 [ var_7 [ var_3 ] ]
              if var_5 > var_8 :
                  return False
              if var_5 == var_8 :
                  var_6 = False
              var_5 = var_8
          if var_6 :
              return True
      return True
  