Skip to content

Commit

Permalink
Update test results for apache miner #518
Browse files Browse the repository at this point in the history
Signed-off-by: Jono Yang <[email protected]>
  • Loading branch information
JonoYang committed Aug 8, 2024
1 parent 8ebd4c5 commit 3196502
Show file tree
Hide file tree
Showing 5 changed files with 97 additions and 18 deletions.
1 change: 1 addition & 0 deletions minecode/mappers/apache.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ def build_packages_from_projects(metadata, uri=None):
if license_url in APACHE_LICENSE_URL:
common_data['declared_license_expression'] = 'apache-2.0'
common_data['declared_license_expression_spdx'] = 'Apache-2.0'
common_data['license_detections'] = []

keywords = []
category = project_meta.get('category', '')
Expand Down
2 changes: 2 additions & 0 deletions minecode/tests/testfiles/apache/map-groovy_expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
"extracted_license_statement":null,
"notice_text":null,
"source_packages":[],
"is_private":false,
"is_virtual":false,
"extra_data":{},
"repository_homepage_url":null,
"repository_download_url":null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
"extracted_license_statement":null,
"notice_text":null,
"source_packages":[],
"is_private":false,
"is_virtual":false,
"extra_data":{},
"repository_homepage_url":null,
"repository_download_url":null,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@
"extracted_license_statement":null,
"notice_text":null,
"source_packages":[],
"is_private":false,
"is_virtual":false,
"extra_data":{},
"repository_homepage_url":null,
"repository_download_url":null,
Expand Down
108 changes: 90 additions & 18 deletions minecode/tests/testfiles/apache/projects_expected.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,16 @@
"extracted_license_statement":"http://usefulinc.com/doap/licenses/asl20",
"notice_text":null,
"source_packages":[],
"is_private":false,
"is_virtual":false,
"extra_data":{},
"repository_homepage_url":null,
"repository_download_url":null,
"api_data_url":null,
"package_uid":"pkg:apache/[email protected]?uuid=fixed-uid-done-for-testing-5642512d1758",
"datafile_paths":[],
"datafile_paths":[
null
],
"datasource_ids":[
"apache_json"
],
Expand Down Expand Up @@ -89,12 +93,16 @@
"extracted_license_statement":"http://usefulinc.com/doap/licenses/asl20",
"notice_text":null,
"source_packages":[],
"is_private":false,
"is_virtual":false,
"extra_data":{},
"repository_homepage_url":null,
"repository_download_url":null,
"api_data_url":null,
"package_uid":"pkg:apache/activemq?uuid=fixed-uid-done-for-testing-5642512d1758",
"datafile_paths":[],
"datafile_paths":[
null
],
"datasource_ids":[
"apache_json"
],
Expand Down Expand Up @@ -143,12 +151,16 @@
"extracted_license_statement":"http://usefulinc.com/doap/licenses/asl20",
"notice_text":null,
"source_packages":[],
"is_private":false,
"is_virtual":false,
"extra_data":{},
"repository_homepage_url":null,
"repository_download_url":null,
"api_data_url":null,
"package_uid":"pkg:apache/[email protected]?uuid=fixed-uid-done-for-testing-5642512d1758",
"datafile_paths":[],
"datafile_paths":[
null
],
"datasource_ids":[
"apache_json"
],
Expand Down Expand Up @@ -197,12 +209,16 @@
"extracted_license_statement":"http://usefulinc.com/doap/licenses/asl20",
"notice_text":null,
"source_packages":[],
"is_private":false,
"is_virtual":false,
"extra_data":{},
"repository_homepage_url":null,
"repository_download_url":null,
"api_data_url":null,
"package_uid":"pkg:apache/[email protected]?uuid=fixed-uid-done-for-testing-5642512d1758",
"datafile_paths":[],
"datafile_paths":[
null
],
"datasource_ids":[
"apache_json"
],
Expand Down Expand Up @@ -251,12 +267,16 @@
"extracted_license_statement":"http://usefulinc.com/doap/licenses/asl20",
"notice_text":null,
"source_packages":[],
"is_private":false,
"is_virtual":false,
"extra_data":{},
"repository_homepage_url":null,
"repository_download_url":null,
"api_data_url":null,
"package_uid":"pkg:apache/[email protected]?uuid=fixed-uid-done-for-testing-5642512d1758",
"datafile_paths":[],
"datafile_paths":[
null
],
"datasource_ids":[
"apache_json"
],
Expand Down Expand Up @@ -305,12 +325,16 @@
"extracted_license_statement":"http://usefulinc.com/doap/licenses/asl20",
"notice_text":null,
"source_packages":[],
"is_private":false,
"is_virtual":false,
"extra_data":{},
"repository_homepage_url":null,
"repository_download_url":null,
"api_data_url":null,
"package_uid":"pkg:apache/[email protected]?uuid=fixed-uid-done-for-testing-5642512d1758",
"datafile_paths":[],
"datafile_paths":[
null
],
"datasource_ids":[
"apache_json"
],
Expand Down Expand Up @@ -359,12 +383,16 @@
"extracted_license_statement":"http://usefulinc.com/doap/licenses/asl20",
"notice_text":null,
"source_packages":[],
"is_private":false,
"is_virtual":false,
"extra_data":{},
"repository_homepage_url":null,
"repository_download_url":null,
"api_data_url":null,
"package_uid":"pkg:apache/[email protected]?uuid=fixed-uid-done-for-testing-5642512d1758",
"datafile_paths":[],
"datafile_paths":[
null
],
"datasource_ids":[
"apache_json"
],
Expand Down Expand Up @@ -413,12 +441,16 @@
"extracted_license_statement":"http://usefulinc.com/doap/licenses/asl20",
"notice_text":null,
"source_packages":[],
"is_private":false,
"is_virtual":false,
"extra_data":{},
"repository_homepage_url":null,
"repository_download_url":null,
"api_data_url":null,
"package_uid":"pkg:apache/[email protected]?uuid=fixed-uid-done-for-testing-5642512d1758",
"datafile_paths":[],
"datafile_paths":[
null
],
"datasource_ids":[
"apache_json"
],
Expand Down Expand Up @@ -467,12 +499,16 @@
"extracted_license_statement":"http://usefulinc.com/doap/licenses/asl20",
"notice_text":null,
"source_packages":[],
"is_private":false,
"is_virtual":false,
"extra_data":{},
"repository_homepage_url":null,
"repository_download_url":null,
"api_data_url":null,
"package_uid":"pkg:apache/[email protected]?uuid=fixed-uid-done-for-testing-5642512d1758",
"datafile_paths":[],
"datafile_paths":[
null
],
"datasource_ids":[
"apache_json"
],
Expand Down Expand Up @@ -521,12 +557,16 @@
"extracted_license_statement":"http://usefulinc.com/doap/licenses/asl20",
"notice_text":null,
"source_packages":[],
"is_private":false,
"is_virtual":false,
"extra_data":{},
"repository_homepage_url":null,
"repository_download_url":null,
"api_data_url":null,
"package_uid":"pkg:apache/[email protected]?uuid=fixed-uid-done-for-testing-5642512d1758",
"datafile_paths":[],
"datafile_paths":[
null
],
"datasource_ids":[
"apache_json"
],
Expand Down Expand Up @@ -575,12 +615,16 @@
"extracted_license_statement":"http://usefulinc.com/doap/licenses/asl20",
"notice_text":null,
"source_packages":[],
"is_private":false,
"is_virtual":false,
"extra_data":{},
"repository_homepage_url":null,
"repository_download_url":null,
"api_data_url":null,
"package_uid":"pkg:apache/[email protected]?uuid=fixed-uid-done-for-testing-5642512d1758",
"datafile_paths":[],
"datafile_paths":[
null
],
"datasource_ids":[
"apache_json"
],
Expand Down Expand Up @@ -629,12 +673,16 @@
"extracted_license_statement":"http://usefulinc.com/doap/licenses/asl20",
"notice_text":null,
"source_packages":[],
"is_private":false,
"is_virtual":false,
"extra_data":{},
"repository_homepage_url":null,
"repository_download_url":null,
"api_data_url":null,
"package_uid":"pkg:apache/[email protected]?uuid=fixed-uid-done-for-testing-5642512d1758",
"datafile_paths":[],
"datafile_paths":[
null
],
"datasource_ids":[
"apache_json"
],
Expand Down Expand Up @@ -683,12 +731,16 @@
"extracted_license_statement":"http://usefulinc.com/doap/licenses/asl20",
"notice_text":null,
"source_packages":[],
"is_private":false,
"is_virtual":false,
"extra_data":{},
"repository_homepage_url":null,
"repository_download_url":null,
"api_data_url":null,
"package_uid":"pkg:apache/[email protected]?uuid=fixed-uid-done-for-testing-5642512d1758",
"datafile_paths":[],
"datafile_paths":[
null
],
"datasource_ids":[
"apache_json"
],
Expand Down Expand Up @@ -737,12 +789,16 @@
"extracted_license_statement":"http://usefulinc.com/doap/licenses/asl20",
"notice_text":null,
"source_packages":[],
"is_private":false,
"is_virtual":false,
"extra_data":{},
"repository_homepage_url":null,
"repository_download_url":null,
"api_data_url":null,
"package_uid":"pkg:apache/[email protected]?uuid=fixed-uid-done-for-testing-5642512d1758",
"datafile_paths":[],
"datafile_paths":[
null
],
"datasource_ids":[
"apache_json"
],
Expand Down Expand Up @@ -791,12 +847,16 @@
"extracted_license_statement":"http://usefulinc.com/doap/licenses/asl20",
"notice_text":null,
"source_packages":[],
"is_private":false,
"is_virtual":false,
"extra_data":{},
"repository_homepage_url":null,
"repository_download_url":null,
"api_data_url":null,
"package_uid":"pkg:apache/[email protected]?uuid=fixed-uid-done-for-testing-5642512d1758",
"datafile_paths":[],
"datafile_paths":[
null
],
"datasource_ids":[
"apache_json"
],
Expand Down Expand Up @@ -845,12 +905,16 @@
"extracted_license_statement":"http://usefulinc.com/doap/licenses/asl20",
"notice_text":null,
"source_packages":[],
"is_private":false,
"is_virtual":false,
"extra_data":{},
"repository_homepage_url":null,
"repository_download_url":null,
"api_data_url":null,
"package_uid":"pkg:apache/[email protected]?uuid=fixed-uid-done-for-testing-5642512d1758",
"datafile_paths":[],
"datafile_paths":[
null
],
"datasource_ids":[
"apache_json"
],
Expand Down Expand Up @@ -899,12 +963,16 @@
"extracted_license_statement":"http://usefulinc.com/doap/licenses/asl20",
"notice_text":null,
"source_packages":[],
"is_private":false,
"is_virtual":false,
"extra_data":{},
"repository_homepage_url":null,
"repository_download_url":null,
"api_data_url":null,
"package_uid":"pkg:apache/[email protected]?uuid=fixed-uid-done-for-testing-5642512d1758",
"datafile_paths":[],
"datafile_paths":[
null
],
"datasource_ids":[
"apache_json"
],
Expand Down Expand Up @@ -955,12 +1023,16 @@
"extracted_license_statement":"http://usefulinc.com/doap/licenses/asl20",
"notice_text":null,
"source_packages":[],
"is_private":false,
"is_virtual":false,
"extra_data":{},
"repository_homepage_url":null,
"repository_download_url":null,
"api_data_url":null,
"package_uid":"pkg:apache/[email protected]?uuid=fixed-uid-done-for-testing-5642512d1758",
"datafile_paths":[],
"datafile_paths":[
null
],
"datasource_ids":[
"apache_json"
],
Expand Down

0 comments on commit 3196502

Please sign in to comment.