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

Method markCollisionCandidates

src/function_context.py:516–524  ·  view source on GitHub ↗

Mark the potential collision (merge) candidates from other files. Args: candidates (list): list of src context candidates

(self, candidates)

Source from the content-addressed store, hash-verified

514 self.hash = digest
515
516 def markCollisionCandidates(self, candidates):
517 """Mark the potential collision (merge) candidates from other files.
518
519 Args:
520 candidates (list): list of src context candidates
521 """
522 self.collision_candidates = [] + candidates
523 # no need to count me in
524 self.collision_candidates.remove(self)
525
526 def addFollower(self, bin_ctx):
527 """Add a binary follower to our source context. He thinks we are a potential (hint) match.

Callers 1

loadAndPrepareSourceMethod · 0.80

Calls 1

removeMethod · 0.80

Tested by

no test coverage detected