MCPcopy Create free account
hub / github.com/aboutcode-org/scancode-toolkit / subtract

Method subtract

src/licensedcode/query.py:328–334  ·  view source on GitHub ↗

Subtract the qspan matched positions from the query matchable positions.

(self, qspan)

Source from the content-addressed store, hash-verified

326 yield qr, spdx_text
327
328 def subtract(self, qspan):
329 """
330 Subtract the qspan matched positions from the query matchable positions.
331 """
332 if qspan:
333 self.high_matchables.difference_update(qspan)
334 self.low_matchables.difference_update(qspan)
335
336 @property
337 def matchables(self):

Callers 4

get_spdx_id_matchesMethod · 0.45
match_queryMethod · 0.45
subtractMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected