Skip to content

Commit 3ad7302

Browse files
committed
Update test results
Signed-off-by: Philippe Ombredanne <[email protected]>
1 parent 28e2ef4 commit 3ad7302

File tree

6 files changed

+120
-43
lines changed

6 files changed

+120
-43
lines changed

tests/licensedcode/data/licenses_reference_reporting/license-reference-works-with-clues.expected.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1210,7 +1210,7 @@
12101210
"is_license_tag": false,
12111211
"is_license_intro": false,
12121212
"is_license_clue": false,
1213-
"is_required_phrase": false,
1213+
"is_required_phrase": true,
12141214
"skip_for_required_phrase_generation": false,
12151215
"is_continuous": false,
12161216
"is_builtin": true,
@@ -1284,7 +1284,7 @@
12841284
"ignorable_authors": [],
12851285
"ignorable_urls": [],
12861286
"ignorable_emails": [],
1287-
"text": "released under the GPL"
1287+
"text": "released {{under the GPL}}"
12881288
},
12891289
{
12901290
"license_expression": "unknown-license-reference",
@@ -1441,7 +1441,7 @@
14411441
"ignorable_authors": [],
14421442
"ignorable_urls": [],
14431443
"ignorable_emails": [],
1444-
"text": "GPL-compatible"
1444+
"text": "GPL-compatible\n"
14451445
},
14461446
{
14471447
"license_expression": "python-cwi",

tests/licensedcode/data/licenses_reference_reporting/scan-matched-text-with-reference.expected.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@
390390
"http://www.apache.org/licenses/LICENSE-2.0"
391391
],
392392
"ignorable_emails": [],
393-
"text": "Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License."
393+
"text": "{{Licensed to the Apache Software Foundation}} (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the {{Apache License, Version 2.0}} (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License."
394394
},
395395
{
396396
"license_expression": "artistic-2.0",

tests/licensedcode/data/licenses_reference_reporting/scan-with-reference.expected.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@
380380
"http://www.apache.org/licenses/LICENSE-2.0"
381381
],
382382
"ignorable_emails": [],
383-
"text": "Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License."
383+
"text": "{{Licensed to the Apache Software Foundation}} (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the {{Apache License, Version 2.0}} (the \"License\"); you may not use this file except in compliance with the License. You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License."
384384
},
385385
{
386386
"license_expression": "artistic-2.0",

tests/licensedcode/data/plugin_license/clues/woodstox.expected.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@
161161
"http://www.apache.org/licenses/"
162162
],
163163
"ignorable_emails": [],
164-
"text": "Apache License\nVersion 2.0, January 2004\nhttp://www.apache.org/licenses/"
164+
"text": "{{Apache License\nVersion 2.0}}, January 2004\nhttp://www.apache.org/licenses/"
165165
},
166166
{
167167
"license_expression": "apache-2.0",
@@ -194,7 +194,7 @@
194194
"http://www.apache.org/licenses/"
195195
],
196196
"ignorable_emails": [],
197-
"text": "This copy of is licensed under the\nApache (Software) License, version 2.0 (\"the License\").\nSee the License for details about distribution rights, and the\nspecific rights regarding derivate works.\n\nYou may obtain a copy of the License at:\n\nhttp://www.apache.org/licenses/\n\nA copy is also included in the downloadable source code package\ncontaining , in file \"AL2.0\", under the same directory\nas this file."
197+
"text": "This copy of is licensed under {{the\nApache (Software) License, version 2.0}} (\"the License\").\nSee the License for details about distribution rights, and the\nspecific rights regarding derivate works.\n\nYou may obtain a copy of the License at:\n\nhttp://www.apache.org/licenses/\n\nA copy is also included in the downloadable source code package\ncontaining , in file \"AL2.0\", under the same directory\nas this file."
198198
},
199199
{
200200
"license_expression": "unknown-license-reference",

tests/licensedcode/data/plugin_license/scan/e2fsprogs-expected.json

Lines changed: 45 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -21,32 +21,61 @@
2121
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/gpl-2.0_and_patent-disclaimer_3.RULE"
2222
}
2323
]
24+
},
25+
{
26+
"identifier": "lgpl_2_0_plus-ad844342-08bd-13b3-957e-f7440d82d6ed",
27+
"license_expression": "lgpl-2.0-plus",
28+
"license_expression_spdx": "LGPL-2.0-or-later",
29+
"detection_count": 1,
30+
"reference_matches": [
31+
{
32+
"license_expression": "lgpl-2.0-plus",
33+
"license_expression_spdx": "LGPL-2.0-or-later",
34+
"from_file": "e2fsprogs/e2fsprogs-copyright",
35+
"start_line": 19,
36+
"end_line": 19,
37+
"matcher": "2-aho",
38+
"score": 99.0,
39+
"matched_length": 2,
40+
"match_coverage": 100.0,
41+
"rule_relevance": 99,
42+
"rule_identifier": "lgpl_33.RULE",
43+
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/lgpl_33.RULE"
44+
}
45+
]
2446
}
2547
],
2648
"files": [
2749
{
2850
"path": "e2fsprogs-copyright",
2951
"type": "file",
30-
"detected_license_expression": null,
31-
"detected_license_expression_spdx": null,
32-
"license_detections": [],
33-
"license_clues": [
52+
"detected_license_expression": "lgpl-2.0-plus",
53+
"detected_license_expression_spdx": "LGPL-2.0-or-later",
54+
"license_detections": [
3455
{
3556
"license_expression": "lgpl-2.0-plus",
36-
"spdx_license_expression": "LGPL-2.0-or-later",
37-
"from_file": "e2fsprogs/e2fsprogs-copyright",
38-
"start_line": 19,
39-
"end_line": 20,
40-
"matcher": "3-seq",
41-
"score": 14.39,
42-
"matched_length": 20,
43-
"match_coverage": 14.39,
44-
"rule_relevance": 100,
45-
"rule_identifier": "lgpl-2.0-plus_65.RULE",
46-
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/lgpl-2.0-plus_65.RULE"
57+
"license_expression_spdx": "LGPL-2.0-or-later",
58+
"matches": [
59+
{
60+
"license_expression": "lgpl-2.0-plus",
61+
"spdx_license_expression": "LGPL-2.0-or-later",
62+
"from_file": "e2fsprogs/e2fsprogs-copyright",
63+
"start_line": 19,
64+
"end_line": 19,
65+
"matcher": "2-aho",
66+
"score": 99.0,
67+
"matched_length": 2,
68+
"match_coverage": 100.0,
69+
"rule_relevance": 99,
70+
"rule_identifier": "lgpl_33.RULE",
71+
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/lgpl_33.RULE"
72+
}
73+
],
74+
"identifier": "lgpl_2_0_plus-ad844342-08bd-13b3-957e-f7440d82d6ed"
4775
}
4876
],
49-
"percentage_of_license_text": 22.73,
77+
"license_clues": [],
78+
"percentage_of_license_text": 2.27,
5079
"scan_errors": []
5180
},
5281
{

tests/licensedcode/data/plugin_license/unknown_intro/scan-unknown-intro-eclipse-foundation-tycho.expected.json

Lines changed: 68 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
]
2727
},
2828
{
29-
"identifier": "apache_2_0-14c27abb-363c-4c38-b5c4-095fce7dd164",
29+
"identifier": "apache_2_0-a6e2f0c7-bc81-4ff9-2c82-cf3897de2210",
3030
"license_expression": "apache-2.0",
3131
"license_expression_spdx": "Apache-2.0",
3232
"detection_count": 2,
@@ -37,16 +37,32 @@
3737
"license_expression_spdx": "Apache-2.0",
3838
"from_file": "scan-unknown-intro-eclipse-foundation-tycho/about_1.html",
3939
"start_line": 34,
40+
"end_line": 34,
41+
"matcher": "2-aho",
42+
"score": 90.0,
43+
"matched_length": 6,
44+
"match_coverage": 100.0,
45+
"rule_relevance": 90,
46+
"rule_identifier": "apache-2.0_required_phrase_29.RULE",
47+
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/apache-2.0_required_phrase_29.RULE",
48+
"matched_text": "<p>The plug-in includes SureFire JUnit Runner ${surefire-version} developed by the Apache Software Foundation. Therefore:</p>",
49+
"matched_text_diagnostics": "developed by the Apache Software Foundation."
50+
},
51+
{
52+
"license_expression": "apache-2.0",
53+
"license_expression_spdx": "Apache-2.0",
54+
"from_file": "scan-unknown-intro-eclipse-foundation-tycho/about_1.html",
55+
"start_line": 37,
4056
"end_line": 37,
4157
"matcher": "2-aho",
4258
"score": 95.0,
43-
"matched_length": 25,
59+
"matched_length": 14,
4460
"match_coverage": 100.0,
4561
"rule_relevance": 95,
46-
"rule_identifier": "apache-2.0_1203.RULE",
47-
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/apache-2.0_1203.RULE",
48-
"matched_text": "<p>The plug-in includes SureFire JUnit Runner ${surefire-version} developed by the Apache Software Foundation. Therefore:</p>\n\n<blockquote>\nThis product includes software developed by the Apache Software Foundation (<a href=\"http://www.apache.org/\">http://www.apache.org/</a>).",
49-
"matched_text_diagnostics": "developed by the Apache Software Foundation. Therefore:</p>\n\n<blockquote>\nThis product includes software developed by the Apache Software Foundation (<a href=\"http://www.apache.org/\">http://www.apache.org/</"
62+
"rule_identifier": "apache_no-version_1.RULE",
63+
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/apache_no-version_1.RULE",
64+
"matched_text": "This product includes software developed by the Apache Software Foundation (<a href=\"http://www.apache.org/\">http://www.apache.org/</a>).",
65+
"matched_text_diagnostics": "This product includes software developed by the Apache Software Foundation (<a href=\"http://www.apache.org/\">"
5066
}
5167
]
5268
},
@@ -307,20 +323,36 @@
307323
"spdx_license_expression": "Apache-2.0",
308324
"from_file": "scan-unknown-intro-eclipse-foundation-tycho/about_1.html",
309325
"start_line": 34,
326+
"end_line": 34,
327+
"matcher": "2-aho",
328+
"score": 90.0,
329+
"matched_length": 6,
330+
"match_coverage": 100.0,
331+
"rule_relevance": 90,
332+
"rule_identifier": "apache-2.0_required_phrase_29.RULE",
333+
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/apache-2.0_required_phrase_29.RULE",
334+
"matched_text": "<p>The plug-in includes SureFire JUnit Runner ${surefire-version} developed by the Apache Software Foundation. Therefore:</p>",
335+
"matched_text_diagnostics": "developed by the Apache Software Foundation."
336+
},
337+
{
338+
"license_expression": "apache-2.0",
339+
"spdx_license_expression": "Apache-2.0",
340+
"from_file": "scan-unknown-intro-eclipse-foundation-tycho/about_1.html",
341+
"start_line": 37,
310342
"end_line": 37,
311343
"matcher": "2-aho",
312344
"score": 95.0,
313-
"matched_length": 25,
345+
"matched_length": 14,
314346
"match_coverage": 100.0,
315347
"rule_relevance": 95,
316-
"rule_identifier": "apache-2.0_1203.RULE",
317-
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/apache-2.0_1203.RULE",
318-
"matched_text": "<p>The plug-in includes SureFire JUnit Runner ${surefire-version} developed by the Apache Software Foundation. Therefore:</p>\n\n<blockquote>\nThis product includes software developed by the Apache Software Foundation (<a href=\"http://www.apache.org/\">http://www.apache.org/</a>).",
319-
"matched_text_diagnostics": "developed by the Apache Software Foundation. Therefore:</p>\n\n<blockquote>\nThis product includes software developed by the Apache Software Foundation (<a href=\"http://www.apache.org/\">http://www.apache.org/</"
348+
"rule_identifier": "apache_no-version_1.RULE",
349+
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/apache_no-version_1.RULE",
350+
"matched_text": "This product includes software developed by the Apache Software Foundation (<a href=\"http://www.apache.org/\">http://www.apache.org/</a>).",
351+
"matched_text_diagnostics": "This product includes software developed by the Apache Software Foundation (<a href=\"http://www.apache.org/\">"
320352
}
321353
],
322354
"detection_log": [],
323-
"identifier": "apache_2_0-14c27abb-363c-4c38-b5c4-095fce7dd164"
355+
"identifier": "apache_2_0-a6e2f0c7-bc81-4ff9-2c82-cf3897de2210"
324356
},
325357
{
326358
"license_expression": "apache-2.0",
@@ -348,7 +380,7 @@
348380
}
349381
],
350382
"license_clues": [],
351-
"percentage_of_license_text": 61.74,
383+
"percentage_of_license_text": 60.56,
352384
"scan_errors": []
353385
},
354386
{
@@ -390,20 +422,36 @@
390422
"spdx_license_expression": "Apache-2.0",
391423
"from_file": "scan-unknown-intro-eclipse-foundation-tycho/about_2.html",
392424
"start_line": 34,
425+
"end_line": 34,
426+
"matcher": "2-aho",
427+
"score": 90.0,
428+
"matched_length": 6,
429+
"match_coverage": 100.0,
430+
"rule_relevance": 90,
431+
"rule_identifier": "apache-2.0_required_phrase_29.RULE",
432+
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/apache-2.0_required_phrase_29.RULE",
433+
"matched_text": "<p>The plug-in includes Surefire Shared Java 5 Provider Base ${surefire-version} developed by the Apache Software Foundation. Therefore:</p>",
434+
"matched_text_diagnostics": "developed by the Apache Software Foundation."
435+
},
436+
{
437+
"license_expression": "apache-2.0",
438+
"spdx_license_expression": "Apache-2.0",
439+
"from_file": "scan-unknown-intro-eclipse-foundation-tycho/about_2.html",
440+
"start_line": 37,
393441
"end_line": 37,
394442
"matcher": "2-aho",
395443
"score": 95.0,
396-
"matched_length": 25,
444+
"matched_length": 14,
397445
"match_coverage": 100.0,
398446
"rule_relevance": 95,
399-
"rule_identifier": "apache-2.0_1203.RULE",
400-
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/apache-2.0_1203.RULE",
401-
"matched_text": "<p>The plug-in includes Surefire Shared Java 5 Provider Base ${surefire-version} developed by the Apache Software Foundation. Therefore:</p>\n\n<blockquote>\nThis product includes software developed by the Apache Software Foundation (<a href=\"http://www.apache.org/\">http://www.apache.org/</a>).",
402-
"matched_text_diagnostics": "developed by the Apache Software Foundation. Therefore:</p>\n\n<blockquote>\nThis product includes software developed by the Apache Software Foundation (<a href=\"http://www.apache.org/\">http://www.apache.org/</"
447+
"rule_identifier": "apache_no-version_1.RULE",
448+
"rule_url": "https://github.com/nexB/scancode-toolkit/tree/develop/src/licensedcode/data/rules/apache_no-version_1.RULE",
449+
"matched_text": "This product includes software developed by the Apache Software Foundation (<a href=\"http://www.apache.org/\">http://www.apache.org/</a>).",
450+
"matched_text_diagnostics": "This product includes software developed by the Apache Software Foundation (<a href=\"http://www.apache.org/\">"
403451
}
404452
],
405453
"detection_log": [],
406-
"identifier": "apache_2_0-14c27abb-363c-4c38-b5c4-095fce7dd164"
454+
"identifier": "apache_2_0-a6e2f0c7-bc81-4ff9-2c82-cf3897de2210"
407455
},
408456
{
409457
"license_expression": "apache-2.0",
@@ -527,7 +575,7 @@
527575
}
528576
],
529577
"license_clues": [],
530-
"percentage_of_license_text": 52.59,
578+
"percentage_of_license_text": 52.03,
531579
"scan_errors": []
532580
},
533581
{

0 commit comments

Comments
 (0)