original_docstring: Maps inputs not in the allowable set to the last element.
docstring: Maps inputs not in the allowable set to the last element.
docstring_tokens: Maps inputs not in the allowable set to the last element .
code: def one_of_k_encoding_unk(x, allowable_set):
      """Maps inputs not in the allowable set to the last element."""
      if x not in allowable_set:
          x = allowable_set[-1]
      return list(map(lambda s: x == s, allowable_set))
code_tokens: def one_of_k_encoding_unk ( x , allowable_set ) : if x not in allowable_set : x = allowable_set [ - 1 ] return list ( map ( lambda s : x == s , allowable_set ) )
short_docstring: Maps inputs not in the allowable set to the last element.
short_docstring_tokens: Maps inputs not in the allowable set to the last element .
comment: """Maps inputs not in the allowable set to the last element."""