MCPcopy Index your code
hub / github.com/clips/pattern / copy

Method copy

pattern/vector/__init__.py:586–589  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

584 similarity = cosine_similarity
585
586 def copy(self):
587 d = Document(None, name=self.name, type=self.type, description=self.description)
588 dict.update(d.terms, self.terms)
589 return d
590
591 def __eq__(self, document):
592 return isinstance(document, Document) and self.id == document.id

Callers

nothing calls this directly

Calls 2

DocumentClass · 0.70
updateMethod · 0.45

Tested by

no test coverage detected