parameters: (method)
return_statement: return predicate
docstring: Predicate to detect duplicated entries.
  
      Unique hash method can be use to detect duplicates. Entries are
      represented as dictionaries, which has no default hash method.
      This implementation uses a set datatype to store the unique hash values.
  
      This method returns a method which can detect the duplicate values.
docstring_summary: Predicate to detect duplicated entries.
docstring_tokens: Predicate to detect duplicated entries .
function: def duplicate_check(method):
      """ Predicate to detect duplicated entries.
  
      Unique hash method can be use to detect duplicates. Entries are
      represented as dictionaries, which has no default hash method.
      This implementation uses a set datatype to store the unique hash values.
  
      This method returns a method which can detect the duplicate values. """
  
      def predicate(entry):
          entry_hash = predicate.unique(entry)
          if entry_hash not in predicate.state:
              predicate.state.add(entry_hash)
              return False
          return True
  
      predicate.unique = method
      predicate.state = set()
      return predicate
function_tokens: def duplicate_check ( method ) : def predicate ( entry ) : entry_hash = predicate . unique ( entry ) if entry_hash not in predicate . state : predicate . state . add ( entry_hash ) return False return True predicate . unique = method predicate . state = set ( ) return predicate