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

Method coverage

src/licensedcode/match.py:481–486  ·  view source on GitHub ↗

Return the coverage of this match to the matched rule as a rounded float between 0 and 100.

(self)

Source from the content-addressed store, hash-verified

479 return self.len() / self.rule.length
480
481 def coverage(self):
482 """
483 Return the coverage of this match to the matched rule as a rounded float
484 between 0 and 100.
485 """
486 return round(self._icoverage() * 100, 2)
487
488 def qmagnitude(self):
489 """

Callers 15

representationMethod · 0.95
is_smallMethod · 0.95
to_dictMethod · 0.95
get_matchFunction · 0.45
is_good_licenseFunction · 0.45
is_known_license_introFunction · 0.45
rule_existsFunction · 0.45
filter_contained_matchesFunction · 0.45
split_weak_matchesFunction · 0.45

Calls 2

_icoverageMethod · 0.95
roundFunction · 0.85