MCPcopy Create free account
hub / github.com/cxcscmu/Craw4LLM / set_compare_method

Method set_compare_method

corpus_interface.py:19–23  ·  view source on GitHub ↗
(cls, key: str, order: Literal["desc", "asc"])

Source from the content-addressed store, hash-verified

17
18 @classmethod
19 def set_compare_method(cls, key: str, order: Literal["desc", "asc"]) -> None:
20 cls._compare_key = key
21 if order not in ["desc", "asc"]:
22 raise ValueError("Order must be either 'desc' (descending) or 'asc' (ascending)")
23 cls._order = order
24
25 @classmethod
26 def get_compare_key(cls) -> str | None:

Callers 1

mainFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected