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

Function is_low_quality_matches

src/licensedcode/detection.py:1275–1286  ·  view source on GitHub ↗

Return True if the license_matches are not part of a correct license detection and are mere license clues.

(license_matches)

Source from the content-addressed store, hash-verified

1273
1274
1275def is_low_quality_matches(license_matches):
1276 """
1277 Return True if the license_matches are not part of a correct
1278 license detection and are mere license clues.
1279 """
1280 return not is_correct_detection(license_matches) and (
1281 is_match_coverage_less_than_threshold(
1282 license_matches=license_matches,
1283 threshold=CLUES_MATCH_COVERAGE_THR,
1284 any_matches=False,
1285 )
1286 )
1287
1288
1289def has_unknown_intro_before_detection(license_matches):

Callers 1

analyze_detectionFunction · 0.85

Calls 2

is_correct_detectionFunction · 0.85

Tested by

no test coverage detected