-
-
Notifications
You must be signed in to change notification settings - Fork 625
Improve score by supporting extra_phrase for extra words in rules
#4424
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
25849d2
5b8f750
d2cda35
cf105b6
8f72be0
f9e03be
cd13c54
b1aea0c
54d1279
818b17a
4d7e648
e99f5f4
b4a2181
f13abde
f971e84
796b0a4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,12 +1,12 @@ | ||
| { | ||
| "license_detections": [ | ||
| { | ||
| "identifier": "bsd_new-fbfc5955-0c63-4c98-2ce9-08e1e1796f50", | ||
| "identifier": "bsd_new-f3efb258-e9c3-604d-9bbd-147fe74af22e", | ||
| "license_expression": "bsd-new", | ||
| "license_expression_spdx": "BSD-3-Clause", | ||
| "detection_count": 1, | ||
| "detection_log": [ | ||
| "extra-words" | ||
| "extra-words-permitted-in-rule" | ||
| ], | ||
| "reference_matches": [ | ||
| { | ||
|
|
@@ -16,7 +16,7 @@ | |
| "start_line": 4, | ||
| "end_line": 27, | ||
| "matcher": "2-aho", | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This seems to work for The score sees to be unchanged there: https://github.com/alok1304/scancode-toolkit/blob/extra_words/tests/licensedcode/data/plugin_license/extra-words/scan-extra-words-3-seq-license.expected.json#L49
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In |
||
| "score": 99.53, | ||
| "score": 100, | ||
| "matched_length": 210, | ||
| "match_coverage": 100.0, | ||
| "rule_relevance": 100, | ||
|
|
@@ -46,7 +46,7 @@ | |
| "start_line": 4, | ||
| "end_line": 27, | ||
| "matcher": "2-aho", | ||
| "score": 99.53, | ||
| "score": 100, | ||
| "matched_length": 210, | ||
| "match_coverage": 100.0, | ||
| "rule_relevance": 100, | ||
|
|
@@ -57,9 +57,9 @@ | |
| } | ||
| ], | ||
| "detection_log": [ | ||
| "extra-words" | ||
| "extra-words-permitted-in-rule" | ||
| ], | ||
| "identifier": "bsd_new-fbfc5955-0c63-4c98-2ce9-08e1e1796f50" | ||
| "identifier": "bsd_new-f3efb258-e9c3-604d-9bbd-147fe74af22e" | ||
| } | ||
| ], | ||
| "license_clues": [], | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.