MCPcopy Create free account
hub / github.com/CheckPointSW/Karta / rankConsts

Method rankConsts

src/function_context.py:283–286  ·  view source on GitHub ↗

Rank all of the consts of our context - should be done only once on init.

(self)

Source from the content-addressed store, hash-verified

281
282 # Overridden base function
283 def rankConsts(self):
284 """Rank all of the consts of our context - should be done only once on init."""
285 for num_const in self.consts:
286 self._const_ranks[num_const] = rankConst(num_const, None)
287
288 # Overridden base function
289 def declareMatch(self, match):

Callers 4

preprocessMethod · 0.95
preprocessMethod · 0.45
deserializeMethod · 0.45
preprocessMethod · 0.45

Calls 1

rankConstFunction · 0.85

Tested by

no test coverage detected