diff --git a/src/deltacode/__init__.py b/src/deltacode/__init__.py index 02291c9c..a8503410 100644 --- a/src/deltacode/__init__.py +++ b/src/deltacode/__init__.py @@ -60,7 +60,7 @@ def __init__(self, new_path, old_path, options): # Sort deltas by score, descending, i.e., high > low. self.deltas.sort(key=lambda Delta: Delta.score, reverse=True) - def align_scan(self): + def align_scans(self): """ Seek to align the paths of a pair of files (File objects) in the pair of incoming scans so that the attributes and other characteristics of @@ -77,26 +77,26 @@ def align_scan(self): def determine_delta(self): """ - Given new and old scans, return an list of Delta objects that can be - sorted by their attributes, e.g., by Delta.score. Return None if no - File objects can be loaded from either scan. + Add to a list of Delta objects that can be sorted by their attributes, + e.g., by Delta.score. Return None if no File objects can be loaded + from either scan. """ # align scan and create our index - self.align_scan() + self.align_scans() new_index = self.new.index_files() old_index = self.old.index_files() # gathering counts to ensure no files lost or missing from our 'deltas' set - new_files_visited = 0 - old_files_visited = 0 + new_visited, old_visited = 0, 0 # perform the deltas for path, new_files in new_index.items(): for new_file in new_files: - new_files_visited += 1 if new_file.type != 'file': continue + + new_visited += 1 try: delta_old_files = old_index[path] @@ -119,23 +119,28 @@ def determine_delta(self): # now time to find the added. for path, old_files in old_index.items(): for old_file in old_files: - old_files_visited += 1 - if old_file.type != 'file': continue + + old_visited += 1 try: - # This file already classified as 'modified' or 'unmodified' so do nothing + # This file already classified so do nothing new_index[path] except KeyError: self.deltas.append(Delta(None, old_file, 'removed')) continue # make sure everything is accounted for - if new_files_visited != self.new.files_count: - self.errors.append("Deltacode Error: Number of visited files({}) does not match total_files({}) in the new scan".format(new_files_visited, self.new.files_count)) - if old_files_visited != self.old.files_count: - self.errors.append("Deltacode Error: Number of visited files({}) does not match total_files({}) in the old scan".format(old_files_visited, self.old.files_count)) + if new_visited != self.new.files_count: + self.errors.append( + 'DeltaCode Warning: new_visited({}) != new_total({}). Assuming old scancode format.'.format(new_visited, self.new.files_count) + ) + + if old_visited != self.old.files_count: + self.errors.append( + 'DeltaCode Warning: old_visited({}) != old_total({}). Assuming old scancode format.'.format(old_visited, self.old.files_count) + ) def determine_moved(self): """ diff --git a/src/deltacode/models.py b/src/deltacode/models.py index c96c8014..f5c9ecae 100644 --- a/src/deltacode/models.py +++ b/src/deltacode/models.py @@ -126,13 +126,7 @@ def load_files(self, path): with open(path) as jsonf: scan = jsonf.read() - files = [File(f) for f in json.loads(scan).get('files')] - - # make sure we have same number of File objects as in the scan. - if len(files) != self.files_count: - self.errors.append('Scan Error: The number of files calculated with \'len(files)\' does not equal the ScanCode \'files_count\' value for the scan with path = ' + path + '.') - - return files + return [File(f) for f in json.loads(scan).get('files')] def index_files(self, index_key='path'): """ diff --git a/tests/data/cli/1_file_moved.json b/tests/data/cli/1_file_moved.json deleted file mode 100644 index 3a824cc6..00000000 --- a/tests/data/cli/1_file_moved.json +++ /dev/null @@ -1,69 +0,0 @@ -{ - "deltacode_version": "0.0.1.beta", - "deltacode_stats": { - "added": 0, - "modified": 0, - "moved": 1, - "removed": 0, - "unmodified": 7 - }, - "deltas": [ - { - "category": "moved", - "path": "b/a4.py", - "old_path": "a/a4.py", - "name": "a4.py", - "type": "file", - "size": 200 - }, - { - "category": "unmodified", - "path": "a/a3.py", - "name": "a3.py", - "type": "file", - "size": 200 - }, - { - "category": "unmodified", - "path": "b/b4.py", - "name": "b4.py", - "type": "file", - "size": 200 - }, - { - "category": "unmodified", - "path": "a/a2.py", - "name": "a2.py", - "type": "file", - "size": 200 - }, - { - "category": "unmodified", - "path": "b/b2.py", - "name": "b2.py", - "type": "file", - "size": 200 - }, - { - "category": "unmodified", - "path": "b/b1.py", - "name": "b1.py", - "type": "file", - "size": 200 - }, - { - "category": "unmodified", - "path": "b/b3.py", - "name": "b3.py", - "type": "file", - "size": 200 - }, - { - "category": "unmodified", - "path": "a/a1.py", - "name": "a1.py", - "type": "file", - "size": 200 - } - ] -} diff --git a/tests/data/cli/scan_1_file_moved_new.json b/tests/data/cli/scan_1_file_moved_new.json index e049cb79..f54ad9db 100644 --- a/tests/data/cli/scan_1_file_moved_new.json +++ b/tests/data/cli/scan_1_file_moved_new.json @@ -9,7 +9,7 @@ "--license-score": 0, "--format": "json-pp" }, - "files_count": 10, + "files_count": 8, "files": [ { "path": "1_file_moved_new/a", diff --git a/tests/data/cli/scan_1_file_moved_old.json b/tests/data/cli/scan_1_file_moved_old.json index 251c4d27..0d9a81ed 100644 --- a/tests/data/cli/scan_1_file_moved_old.json +++ b/tests/data/cli/scan_1_file_moved_old.json @@ -9,7 +9,7 @@ "--license-score": 0, "--format": "json-pp" }, - "files_count": 10, + "files_count": 8, "files": [ { "path": "1_file_moved_old/a", diff --git a/tests/data/deltacode/delta-len-error-new.json b/tests/data/deltacode/delta-len-error-new.json index 30c0094f..9e41c1d0 100644 --- a/tests/data/deltacode/delta-len-error-new.json +++ b/tests/data/deltacode/delta-len-error-new.json @@ -1,24 +1,54 @@ { "scancode_notice": "Generated with ScanCode and provided on an \"AS IS\" BASIS, WITHOUT WARRANTIES\nOR CONDITIONS OF ANY KIND, either express or implied. No content created from\nScanCode should be considered or used as legal advice. Consult an Attorney\nfor any legal advice.\nScanCode is a free software code scanning tool from nexB Inc. and others.\nVisit https://github.com/nexB/scancode-toolkit/ for support and download.", - "scancode_version": "2.2.1.post14.e66db963", + "scancode_version": "2.2.1.post259.4c5233dcb", "scancode_options": { + "input": "samples/", + "--copyright": true, "--info": true, - "--license-score": 0, - "--format": "json-pp" + "--json-pp": "/Users/sesser/Desktop/samples.json", + "--license": true, + "--package": true, + "--processes": "3" }, - "files_count": 43, + "files_count": 33, "files": [ + { + "path": "samples", + "type": "directory", + "name": "samples", + "base_name": "samples", + "extension": "", + "size": 0, + "date": null, + "sha1": null, + "md5": null, + "mime_type": null, + "file_type": null, + "programming_language": null, + "is_binary": false, + "is_text": false, + "is_archive": false, + "is_media": false, + "is_source": false, + "is_script": false, + "licenses": [], + "copyrights": [], + "packages": [], + "files_count": 33, + "dirs_count": 10, + "size_count": 1161083, + "scan_errors": [] + }, { "path": "samples/README", "type": "file", "name": "README", "base_name": "README", "extension": "", - "date": "2017-10-19", "size": 236, + "date": "2018-02-09", "sha1": "2e07e32c52d607204fad196052d70e3d18fb8636", "md5": "effc6856ef85a9250fb1a470792b3f38", - "files_count": null, "mime_type": "text/plain", "file_type": "ASCII text", "programming_language": null, @@ -28,6 +58,12 @@ "is_media": false, "is_source": false, "is_script": false, + "licenses": [], + "copyrights": [], + "packages": [], + "files_count": 0, + "dirs_count": 0, + "size_count": 0, "scan_errors": [] }, { @@ -36,11 +72,10 @@ "name": "screenshot.png", "base_name": "screenshot", "extension": ".png", - "date": "2017-10-19", "size": 622754, + "date": "2018-02-09", "sha1": "01ff4b1de0bc6c75c9cca6e46c80c1802d6976d4", "md5": "b6ef5a90777147423c98b42a6a25e57a", - "files_count": null, "mime_type": "image/png", "file_type": "PNG image data, 2880 x 1666, 8-bit/color RGB, non-interlaced", "programming_language": null, @@ -50,19 +85,24 @@ "is_media": true, "is_source": false, "is_script": false, + "licenses": [], + "copyrights": [], + "packages": [], + "files_count": 0, + "dirs_count": 0, + "size_count": 0, "scan_errors": [] }, { - "path": "samples/zlib", + "path": "samples/arch", "type": "directory", - "name": "zlib", - "base_name": "zlib", + "name": "arch", + "base_name": "arch", "extension": "", + "size": 0, "date": null, - "size": 268762, "sha1": null, "md5": null, - "files_count": 16, "mime_type": null, "file_type": null, "programming_language": null, @@ -72,41 +112,96 @@ "is_media": false, "is_source": false, "is_script": false, + "licenses": [], + "copyrights": [], + "packages": [], + "files_count": 1, + "dirs_count": 0, + "size_count": 28103, "scan_errors": [] }, { - "path": "samples/JGroups", - "type": "directory", - "name": "JGroups", - "base_name": "JGroups", - "extension": "", - "date": null, - "size": 241228, - "sha1": null, - "md5": null, - "files_count": 14, - "mime_type": null, - "file_type": null, + "path": "samples/arch/zlib.tar.gz", + "type": "file", + "name": "zlib.tar.gz", + "base_name": "zlib", + "extension": ".tar.gz", + "size": 28103, + "date": "2018-02-09", + "sha1": "576f0ccfe534d7f5ff5d6400078d3c6586de3abd", + "md5": "20b2370751abfc08bb3556c1d8114b5a", + "mime_type": "application/x-gzip", + "file_type": "gzip compressed data, last modified: Wed Jul 15 09:08:19 2015, from Unix", "programming_language": null, - "is_binary": false, + "is_binary": true, "is_text": false, - "is_archive": false, + "is_archive": true, "is_media": false, "is_source": false, "is_script": false, + "licenses": [], + "copyrights": [], + "packages": [ + { + "type": "plain tarball", + "name": null, + "version": null, + "primary_language": null, + "packaging": "archive", + "summary": null, + "description": null, + "payload_type": null, + "size": null, + "release_date": null, + "authors": [], + "maintainers": [], + "contributors": [], + "owners": [], + "packagers": [], + "distributors": [], + "vendors": [], + "keywords": [], + "keywords_doc_url": null, + "metafile_locations": [], + "metafile_urls": [], + "homepage_url": null, + "notes": null, + "download_urls": [], + "download_sha1": null, + "download_sha256": null, + "download_md5": null, + "bug_tracking_url": null, + "support_contacts": [], + "code_view_url": null, + "vcs_tool": null, + "vcs_repository": null, + "vcs_revision": null, + "copyright_top_level": null, + "copyrights": [], + "asserted_licenses": [], + "legal_file_locations": [], + "license_expression": null, + "license_texts": [], + "notice_texts": [], + "dependencies": {}, + "related_packages": [] + } + ], + "files_count": 0, + "dirs_count": 0, + "size_count": 0, "scan_errors": [] }, { - "path": "samples/arch", + "path": "samples/JGroups", "type": "directory", - "name": "arch", - "base_name": "arch", + "name": "JGroups", + "base_name": "JGroups", "extension": "", + "size": 0, "date": null, - "size": 28103, "sha1": null, "md5": null, - "files_count": 1, "mime_type": null, "file_type": null, "programming_language": null, @@ -116,195 +211,503 @@ "is_media": false, "is_source": false, "is_script": false, + "licenses": [], + "copyrights": [], + "packages": [], + "files_count": 14, + "dirs_count": 2, + "size_count": 241228, "scan_errors": [] }, { - "path": "samples/zlib/deflate.c", + "path": "samples/JGroups/EULA", "type": "file", - "name": "deflate.c", - "base_name": "deflate", - "extension": ".c", - "date": "2017-10-19", - "size": 71476, - "sha1": "7b4ace6d698c5dbbfb9a8f047f63228ca54d2e77", - "md5": "cd7826278ce9d9d9ed5abdefef50c3e2", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text", - "programming_language": "C", + "name": "EULA", + "base_name": "EULA", + "extension": "", + "size": 8156, + "date": "2018-02-09", + "sha1": "eb232aa0424eca9c4136904e6143b72aaa9cf4de", + "md5": "0be0aceb8296727efff0ac0bf8e6bdb3", + "mime_type": "text/plain", + "file_type": "ASCII text", + "programming_language": "JavaScript+Lasso", "is_binary": false, "is_text": true, "is_archive": false, "is_media": false, "is_source": true, "is_script": false, + "licenses": [ + { + "key": "jboss-eula", + "score": 100.0, + "short_name": "JBoss EULA", + "category": "Proprietary Free", + "owner": "JBoss Community", + "homepage_url": "", + "text_url": "http://repository.jboss.org/licenses/jbossorg-eula.txt", + "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:jboss-eula", + "spdx_license_key": "", + "spdx_url": "", + "start_line": 3, + "end_line": 108, + "matched_rule": { + "identifier": "jboss-eula.LICENSE", + "license_choice": false, + "licenses": [ + "jboss-eula" + ] + } + } + ], + "copyrights": [ + { + "statements": [ + "Copyright 2006 Red Hat, Inc." + ], + "holders": [ + "Red Hat, Inc." + ], + "authors": [], + "start_line": 104, + "end_line": 104 + } + ], + "packages": [], + "files_count": 0, + "dirs_count": 0, + "size_count": 0, "scan_errors": [] }, { - "path": "samples/zlib/zlib.h", + "path": "samples/JGroups/LICENSE", "type": "file", - "name": "zlib.h", - "base_name": "zlib", - "extension": ".h", - "date": "2017-10-19", - "size": 87883, - "sha1": "400d35465f179a4acacb5fe749e6ce20a0bbdb84", - "md5": "64d8a5180bd54ff5452886e4cbb21e14", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text", - "programming_language": "C", + "name": "LICENSE", + "base_name": "LICENSE", + "extension": "", + "size": 26430, + "date": "2018-02-09", + "sha1": "e60c2e780886f95df9c9ee36992b8edabec00bcc", + "md5": "7fbc338309ac38fefcd64b04bb903e34", + "mime_type": "text/plain", + "file_type": "ASCII text", + "programming_language": null, "is_binary": false, "is_text": true, "is_archive": false, "is_media": false, - "is_source": true, + "is_source": false, "is_script": false, + "licenses": [ + { + "key": "lgpl-2.1-plus", + "score": 100.0, + "short_name": "LGPL 2.1 or later", + "category": "Copyleft Limited", + "owner": "Free Software Foundation (FSF)", + "homepage_url": "http://www.gnu.org/licenses/old-licenses/lgpl-2.1-standalone.html", + "text_url": "http://www.gnu.org/licenses/old-licenses/lgpl-2.1-standalone.html", + "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:lgpl-2.1-plus", + "spdx_license_key": "LGPL-2.1+", + "spdx_url": "https://spdx.org/licenses/LGPL-2.1", + "start_line": 1, + "end_line": 502, + "matched_rule": { + "identifier": "lgpl-2.1-plus_2.RULE", + "license_choice": false, + "licenses": [ + "lgpl-2.1-plus" + ] + } + } + ], + "copyrights": [ + { + "statements": [ + "Copyright (c) 1991, 1999 Free Software Foundation, Inc." + ], + "holders": [ + "Free Software Foundation, Inc." + ], + "authors": [], + "start_line": 4, + "end_line": 7 + }, + { + "statements": [ + "copyrighted by the Free Software Foundation" + ], + "holders": [ + "the Free Software Foundation" + ], + "authors": [], + "start_line": 427, + "end_line": 433 + }, + { + "statements": [], + "holders": [], + "authors": [ + "James Random Hacker." + ], + "start_line": 496, + "end_line": 497 + } + ], + "packages": [], + "files_count": 0, + "dirs_count": 0, + "size_count": 0, "scan_errors": [] }, { - "path": "samples/zlib/zutil.c", - "type": "file", - "name": "zutil.c", - "base_name": "zutil", - "extension": ".c", - "date": "2017-10-19", - "size": 7414, - "sha1": "e1af709bff21ae0d4331119a7fc4c19f82932043", - "md5": "fff257bc1656eb60fc585a7dc35f963d", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text", - "programming_language": "C", + "path": "samples/JGroups/licenses", + "type": "directory", + "name": "licenses", + "base_name": "licenses", + "extension": "", + "size": 0, + "date": null, + "sha1": null, + "md5": null, + "mime_type": null, + "file_type": null, + "programming_language": null, "is_binary": false, - "is_text": true, + "is_text": false, "is_archive": false, "is_media": false, - "is_source": true, + "is_source": false, "is_script": false, + "licenses": [], + "copyrights": [], + "packages": [], + "files_count": 5, + "dirs_count": 0, + "size_count": 54552, "scan_errors": [] }, { - "path": "samples/zlib/adler32.c", + "path": "samples/JGroups/licenses/apache-1.1.txt", "type": "file", - "name": "adler32.c", - "base_name": "adler32", - "extension": ".c", - "date": "2017-10-19", - "size": 4968, - "sha1": "0cff4808476ce0b5f6f0ebbc69ee2ab2a0eebe43", - "md5": "ae3bbb54820e1d49fb90cbba222e973f", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text", - "programming_language": "C", + "name": "apache-1.1.txt", + "base_name": "apache-1.1", + "extension": ".txt", + "size": 2885, + "date": "2018-02-09", + "sha1": "6b5608d35c3e304532af43db8bbfc5947bef46a6", + "md5": "276982197c941f4cbf3d218546e17ae2", + "mime_type": "text/plain", + "file_type": "ASCII text, with CRLF line terminators", + "programming_language": null, "is_binary": false, "is_text": true, "is_archive": false, "is_media": false, - "is_source": true, + "is_source": false, "is_script": false, + "licenses": [ + { + "key": "apache-1.1", + "score": 100.0, + "short_name": "Apache 1.1", + "category": "Permissive", + "owner": "Apache Software Foundation", + "homepage_url": "http://www.apache.org/licenses/", + "text_url": "http://apache.org/licenses/LICENSE-1.1", + "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:apache-1.1", + "spdx_license_key": "Apache-1.1", + "spdx_url": "https://spdx.org/licenses/Apache-1.1", + "start_line": 2, + "end_line": 56, + "matched_rule": { + "identifier": "apache-1.1.SPDX.RULE", + "license_choice": false, + "licenses": [ + "apache-1.1" + ] + } + } + ], + "copyrights": [ + { + "statements": [ + "Copyright (c) 2000 The Apache Software Foundation." + ], + "holders": [ + "The Apache Software Foundation." + ], + "authors": [], + "start_line": 4, + "end_line": 5 + }, + { + "statements": [], + "holders": [], + "authors": [ + "the Apache Software Foundation" + ], + "start_line": 20, + "end_line": 23 + } + ], + "packages": [], + "files_count": 0, + "dirs_count": 0, + "size_count": 0, "scan_errors": [] }, { - "path": "samples/zlib/zutil.h", + "path": "samples/JGroups/licenses/apache-2.0.txt", "type": "file", - "name": "zutil.h", - "base_name": "zutil", - "extension": ".h", - "date": "2017-10-19", - "size": 6766, - "sha1": "b909d27ef9ce51639f76b7ea6b62721e7d1b6bf7", - "md5": "04fcfbb961591c9452c4d0fd1525ffdf", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text", - "programming_language": "C", + "name": "apache-2.0.txt", + "base_name": "apache-2.0", + "extension": ".txt", + "size": 11560, + "date": "2018-02-09", + "sha1": "47b573e3824cd5e02a1a3ae99e2735b49e0256e4", + "md5": "d273d63619c9aeaf15cdaf76422c4f87", + "mime_type": "text/plain", + "file_type": "ASCII text, with CRLF line terminators", + "programming_language": null, "is_binary": false, "is_text": true, "is_archive": false, "is_media": false, - "is_source": true, + "is_source": false, "is_script": false, + "licenses": [ + { + "key": "apache-2.0", + "score": 100.0, + "short_name": "Apache 2.0", + "category": "Permissive", + "owner": "Apache Software Foundation", + "homepage_url": "http://www.apache.org/licenses/", + "text_url": "http://www.apache.org/licenses/LICENSE-2.0", + "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:apache-2.0", + "spdx_license_key": "Apache-2.0", + "spdx_url": "https://spdx.org/licenses/Apache-2.0", + "start_line": 2, + "end_line": 202, + "matched_rule": { + "identifier": "apache-2.0_easyeclipse.RULE", + "license_choice": false, + "licenses": [ + "apache-2.0" + ] + } + } + ], + "copyrights": [], + "packages": [], + "files_count": 0, + "dirs_count": 0, + "size_count": 0, "scan_errors": [] }, { - "path": "samples/zlib/deflate.h", + "path": "samples/JGroups/licenses/bouncycastle.txt", "type": "file", - "name": "deflate.h", - "base_name": "deflate", - "extension": ".h", - "date": "2017-10-19", - "size": 12774, - "sha1": "29ed3b8ca3927576e5889dea5880ca0052942c7d", - "md5": "7ceae74a13201f14c91623116af169c3", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text", - "programming_language": "C", + "name": "bouncycastle.txt", + "base_name": "bouncycastle", + "extension": ".txt", + "size": 1186, + "date": "2018-02-09", + "sha1": "74facb0e9a734479f9cd893b5be3fe1bf651b760", + "md5": "9fffd8de865a5705969f62b128381f85", + "mime_type": "text/plain", + "file_type": "ASCII text", + "programming_language": null, "is_binary": false, "is_text": true, "is_archive": false, "is_media": false, - "is_source": true, + "is_source": false, "is_script": false, + "licenses": [ + { + "key": "mit", + "score": 100.0, + "short_name": "MIT License", + "category": "Permissive", + "owner": "MIT", + "homepage_url": "http://opensource.org/licenses/mit-license.php", + "text_url": "http://opensource.org/licenses/mit-license.php", + "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:mit", + "spdx_license_key": "MIT", + "spdx_url": "https://spdx.org/licenses/MIT", + "start_line": 7, + "end_line": 18, + "matched_rule": { + "identifier": "mit.LICENSE", + "license_choice": false, + "licenses": [ + "mit" + ] + } + } + ], + "copyrights": [ + { + "statements": [ + "Copyright (c) 2000 - 2006 The Legion Of The Bouncy Castle (http://www.bouncycastle.org)" + ], + "holders": [ + "Legion Of The Bouncy Castle (http://www.bouncycastle.org)" + ], + "authors": [], + "start_line": 5, + "end_line": 5 + } + ], + "packages": [], + "files_count": 0, + "dirs_count": 0, + "size_count": 0, "scan_errors": [] }, { - "path": "samples/zlib/infback9", - "type": "directory", - "name": "infback9", - "base_name": "infback9", - "extension": "", - "date": null, - "size": 23223, - "sha1": null, - "md5": null, - "files_count": 2, - "mime_type": null, - "file_type": null, + "path": "samples/JGroups/licenses/cpl-1.0.txt", + "type": "file", + "name": "cpl-1.0.txt", + "base_name": "cpl-1.0", + "extension": ".txt", + "size": 11987, + "date": "2018-02-09", + "sha1": "681cf776bcd79752543d42490ec7ed22a29fd888", + "md5": "9a6d2c9ae73d59eb3dd38e3909750d14", + "mime_type": "text/plain", + "file_type": "ASCII text, with CRLF line terminators", "programming_language": null, "is_binary": false, - "is_text": false, + "is_text": true, "is_archive": false, "is_media": false, "is_source": false, "is_script": false, + "licenses": [ + { + "key": "cpl-1.0", + "score": 99.94, + "short_name": "CPL 1.0", + "category": "Copyleft Limited", + "owner": "IBM", + "homepage_url": "http://www.eclipse.org/legal/cpl-v10.html", + "text_url": "http://www.eclipse.org/legal/cpl-v10.html", + "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:cpl-1.0", + "spdx_license_key": "CPL-1.0", + "spdx_url": "https://spdx.org/licenses/CPL-1.0", + "start_line": 1, + "end_line": 212, + "matched_rule": { + "identifier": "cpl-1.0.SPDX.RULE", + "license_choice": false, + "licenses": [ + "cpl-1.0" + ] + } + } + ], + "copyrights": [], + "packages": [], + "files_count": 0, + "dirs_count": 0, + "size_count": 0, "scan_errors": [] }, { - "path": "samples/zlib/ada", - "type": "directory", - "name": "ada", - "base_name": "ada", - "extension": "", - "date": null, - "size": 13594, - "sha1": null, - "md5": null, - "files_count": 1, - "mime_type": null, - "file_type": null, + "path": "samples/JGroups/licenses/lgpl.txt", + "type": "file", + "name": "lgpl.txt", + "base_name": "lgpl", + "extension": ".txt", + "size": 26934, + "date": "2018-02-09", + "sha1": "8f1a637d2e2ed1bdb9eb01a7dccb5c12cc0557e1", + "md5": "f14599a2f089f6ff8c97e2baa4e3d575", + "mime_type": "text/plain", + "file_type": "ASCII text, with CRLF line terminators", "programming_language": null, "is_binary": false, - "is_text": false, + "is_text": true, "is_archive": false, "is_media": false, "is_source": false, "is_script": false, + "licenses": [ + { + "key": "lgpl-2.1-plus", + "score": 100.0, + "short_name": "LGPL 2.1 or later", + "category": "Copyleft Limited", + "owner": "Free Software Foundation (FSF)", + "homepage_url": "http://www.gnu.org/licenses/old-licenses/lgpl-2.1-standalone.html", + "text_url": "http://www.gnu.org/licenses/old-licenses/lgpl-2.1-standalone.html", + "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:lgpl-2.1-plus", + "spdx_license_key": "LGPL-2.1+", + "spdx_url": "https://spdx.org/licenses/LGPL-2.1", + "start_line": 1, + "end_line": 502, + "matched_rule": { + "identifier": "lgpl-2.1-plus_2.RULE", + "license_choice": false, + "licenses": [ + "lgpl-2.1-plus" + ] + } + } + ], + "copyrights": [ + { + "statements": [ + "Copyright (c) 1991, 1999 Free Software Foundation, Inc." + ], + "holders": [ + "Free Software Foundation, Inc." + ], + "authors": [], + "start_line": 4, + "end_line": 7 + }, + { + "statements": [ + "copyrighted by the Free Software Foundation" + ], + "holders": [ + "the Free Software Foundation" + ], + "authors": [], + "start_line": 427, + "end_line": 433 + }, + { + "statements": [], + "holders": [], + "authors": [ + "James Random Hacker." + ], + "start_line": 496, + "end_line": 497 + } + ], + "packages": [], + "files_count": 0, + "dirs_count": 0, + "size_count": 0, "scan_errors": [] }, { - "path": "samples/zlib/gcc_gvmat64", + "path": "samples/JGroups/src", "type": "directory", - "name": "gcc_gvmat64", - "base_name": "gcc_gvmat64", + "name": "src", + "base_name": "src", "extension": "", + "size": 0, "date": null, - "size": 16413, "sha1": null, "md5": null, - "files_count": 1, "mime_type": null, "file_type": null, "programming_language": null, @@ -314,241 +717,549 @@ "is_media": false, "is_source": false, "is_script": false, + "licenses": [], + "copyrights": [], + "packages": [], + "files_count": 7, + "dirs_count": 0, + "size_count": 152090, "scan_errors": [] }, { - "path": "samples/zlib/dotzlib", - "type": "directory", - "name": "dotzlib", - "base_name": "dotzlib", - "extension": "", - "date": null, - "size": 14257, - "sha1": null, - "md5": null, - "files_count": 4, - "mime_type": null, - "file_type": null, - "programming_language": null, - "is_binary": false, - "is_text": false, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/zlib/iostream2", - "type": "directory", - "name": "iostream2", - "base_name": "iostream2", - "extension": "", - "date": null, - "size": 9994, - "sha1": null, - "md5": null, - "files_count": 2, - "mime_type": null, - "file_type": null, - "programming_language": null, + "path": "samples/JGroups/src/FixedMembershipToken.java", + "type": "file", + "name": "FixedMembershipToken.java", + "base_name": "FixedMembershipToken", + "extension": ".java", + "size": 5144, + "date": "2018-02-09", + "sha1": "5901f73dcc78155a1a2c7b5663a3a11fba400b19", + "md5": "aca9640ec8beee21b098bcf8ecc91442", + "mime_type": "text/plain", + "file_type": "ASCII text", + "programming_language": "Java", "is_binary": false, - "is_text": false, + "is_text": true, "is_archive": false, "is_media": false, - "is_source": false, + "is_source": true, "is_script": false, + "licenses": [ + { + "key": "lgpl-2.1-plus", + "score": 100.0, + "short_name": "LGPL 2.1 or later", + "category": "Copyleft Limited", + "owner": "Free Software Foundation (FSF)", + "homepage_url": "http://www.gnu.org/licenses/old-licenses/lgpl-2.1-standalone.html", + "text_url": "http://www.gnu.org/licenses/old-licenses/lgpl-2.1-standalone.html", + "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:lgpl-2.1-plus", + "spdx_license_key": "LGPL-2.1+", + "spdx_url": "https://spdx.org/licenses/LGPL-2.1", + "start_line": 7, + "end_line": 20, + "matched_rule": { + "identifier": "lgpl-2.1-plus_59.RULE", + "license_choice": false, + "licenses": [ + "lgpl-2.1-plus" + ] + } + } + ], + "copyrights": [ + { + "statements": [ + "Copyright 2005, JBoss Inc." + ], + "holders": [ + "JBoss Inc." + ], + "authors": [], + "start_line": 2, + "end_line": 5 + }, + { + "statements": [], + "holders": [], + "authors": [ + "Chris Mills (millsy@jboss.com)" + ], + "start_line": 51, + "end_line": 51 + } + ], + "packages": [], + "files_count": 0, + "dirs_count": 0, + "size_count": 0, "scan_errors": [] }, { - "path": "samples/zlib/infback9/infback9.c", + "path": "samples/JGroups/src/GuardedBy.java", "type": "file", - "name": "infback9.c", - "base_name": "infback9", - "extension": ".c", - "date": "2017-10-19", - "size": 21629, - "sha1": "17fb362c03755b12f2dda5b12a68cf38162674bd", - "md5": "23ff5edec0817da303cb1294c1e4205c", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text", - "programming_language": "C", + "name": "GuardedBy.java", + "base_name": "GuardedBy", + "extension": ".java", + "size": 813, + "date": "2018-02-09", + "sha1": "981d67087e65e9a44957c026d4b10817cf77d966", + "md5": "c5064400f759d3e81771005051d17dc1", + "mime_type": "text/plain", + "file_type": "ASCII text", + "programming_language": "Java", "is_binary": false, "is_text": true, "is_archive": false, "is_media": false, "is_source": true, "is_script": false, + "licenses": [ + { + "key": "cc-by-2.5", + "score": 70.0, + "short_name": "CC-BY-2.5", + "category": "Permissive", + "owner": "Creative Commons", + "homepage_url": "http://creativecommons.org/licenses/by/2.5/", + "text_url": "http://creativecommons.org/licenses/by/2.5/legalcode", + "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:cc-by-2.5", + "spdx_license_key": "CC-BY-2.5", + "spdx_url": "https://spdx.org/licenses/CC-BY-2.5", + "start_line": 10, + "end_line": 11, + "matched_rule": { + "identifier": "cc-by-2.5_4.RULE", + "license_choice": false, + "licenses": [ + "cc-by-2.5" + ] + } + } + ], + "copyrights": [ + { + "statements": [ + "Copyright (c) 2005 Brian Goetz and Tim Peierls" + ], + "holders": [ + "Brian Goetz and Tim Peierls" + ], + "authors": [], + "start_line": 9, + "end_line": 12 + }, + { + "statements": [], + "holders": [], + "authors": [ + "Bela Ban" + ], + "start_line": 14, + "end_line": 17 + } + ], + "packages": [], + "files_count": 0, + "dirs_count": 0, + "size_count": 0, "scan_errors": [] }, { - "path": "samples/zlib/infback9/infback9.h", + "path": "samples/JGroups/src/ImmutableReference.java", "type": "file", - "name": "infback9.h", - "base_name": "infback9", - "extension": ".h", - "date": "2017-10-19", - "size": 1594, - "sha1": "d0486a32b558dcaceded5f0746fad62e680a4734", - "md5": "52b1ed99960d3ed7ed60cd20295e64a8", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text", - "programming_language": "C", + "name": "ImmutableReference.java", + "base_name": "ImmutableReference", + "extension": ".java", + "size": 1838, + "date": "2018-02-09", + "sha1": "30f56b876d5576d9869e2c5c509b08db57110592", + "md5": "48ca3c72fb9a65c771a321222f118b88", + "mime_type": "text/plain", + "file_type": "ASCII text", + "programming_language": "Java", "is_binary": false, "is_text": true, "is_archive": false, "is_media": false, "is_source": true, "is_script": false, + "licenses": [ + { + "key": "lgpl-2.1-plus", + "score": 100.0, + "short_name": "LGPL 2.1 or later", + "category": "Copyleft Limited", + "owner": "Free Software Foundation (FSF)", + "homepage_url": "http://www.gnu.org/licenses/old-licenses/lgpl-2.1-standalone.html", + "text_url": "http://www.gnu.org/licenses/old-licenses/lgpl-2.1-standalone.html", + "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:lgpl-2.1-plus", + "spdx_license_key": "LGPL-2.1+", + "spdx_url": "https://spdx.org/licenses/LGPL-2.1", + "start_line": 7, + "end_line": 20, + "matched_rule": { + "identifier": "lgpl-2.1-plus_59.RULE", + "license_choice": false, + "licenses": [ + "lgpl-2.1-plus" + ] + } + } + ], + "copyrights": [ + { + "statements": [ + "Copyright 2010, Red Hat, Inc." + ], + "holders": [ + "Red Hat, Inc." + ], + "authors": [], + "start_line": 2, + "end_line": 5 + }, + { + "statements": [], + "holders": [], + "authors": [ + "Brian Stansberry" + ], + "start_line": 29, + "end_line": 29 + } + ], + "packages": [], + "files_count": 0, + "dirs_count": 0, + "size_count": 0, "scan_errors": [] }, { - "path": "samples/zlib/ada/zlib.ads", + "path": "samples/JGroups/src/RATE_LIMITER.java", "type": "file", - "name": "zlib.ads", - "base_name": "zlib", - "extension": ".ads", - "date": "2017-10-19", - "size": 13594, - "sha1": "0245a91806d804bf9f0907a3a001a141e9adb61b", - "md5": "71de2670f2e588b51c62e7f6a9046399", - "files_count": null, + "name": "RATE_LIMITER.java", + "base_name": "RATE_LIMITER", + "extension": ".java", + "size": 3692, + "date": "2018-02-09", + "sha1": "a8087e5d50da3273536ebda9b87b77aa4ff55deb", + "md5": "4626bdbc48871b55513e1a12991c61a8", "mime_type": "text/plain", "file_type": "ASCII text", - "programming_language": "Ada", + "programming_language": "Java", "is_binary": false, "is_text": true, "is_archive": false, "is_media": false, "is_source": true, "is_script": false, + "licenses": [], + "copyrights": [ + { + "statements": [], + "holders": [], + "authors": [ + "Bela Ban" + ], + "start_line": 14, + "end_line": 17 + } + ], + "packages": [], + "files_count": 0, + "dirs_count": 0, + "size_count": 0, "scan_errors": [] }, { - "path": "samples/zlib/gcc_gvmat64/gvmat64.S", + "path": "samples/JGroups/src/RouterStub.java", "type": "file", - "name": "gvmat64.S", - "base_name": "gvmat64", - "extension": ".S", - "date": "2017-10-19", - "size": 16413, - "sha1": "742603cba1af98a1432cc02efb019b1a5760adf2", - "md5": "5e772d7302475e5473d0c4c57b9861e8", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text, with CRLF line terminators", - "programming_language": "GAS", + "name": "RouterStub.java", + "base_name": "RouterStub", + "extension": ".java", + "size": 9913, + "date": "2018-02-09", + "sha1": "c1f6818f8ee7bddcc9f444bc94c099729d716d52", + "md5": "eecfe23494acbcd8088c93bc1e83c7f2", + "mime_type": "text/plain", + "file_type": "ASCII text", + "programming_language": "Java", "is_binary": false, "is_text": true, "is_archive": false, "is_media": false, "is_source": true, "is_script": false, + "licenses": [], + "copyrights": [ + { + "statements": [], + "holders": [], + "authors": [ + "Bela Ban" + ], + "start_line": 22, + "end_line": 24 + } + ], + "packages": [], + "files_count": 0, + "dirs_count": 0, + "size_count": 0, "scan_errors": [] }, { - "path": "samples/zlib/dotzlib/readme.txt", + "path": "samples/JGroups/src/RouterStubManager.java", "type": "file", - "name": "readme.txt", - "base_name": "readme", - "extension": ".txt", - "date": "2017-10-19", - "size": 2358, - "sha1": "b1229b826f0096808628474538cea8fec2922a9b", - "md5": "1f20f3168ee63d90de033edac2ce383c", - "files_count": null, + "name": "RouterStubManager.java", + "base_name": "RouterStubManager", + "extension": ".java", + "size": 8162, + "date": "2018-02-09", + "sha1": "eb419dc94cfe11ca318a3e743a7f9f080e70c751", + "md5": "20bee9631b7c82a45c250e095352aec7", "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", - "programming_language": null, + "file_type": "ASCII text", + "programming_language": "Java", "is_binary": false, "is_text": true, "is_archive": false, "is_media": false, - "is_source": false, + "is_source": true, "is_script": false, + "licenses": [ + { + "key": "lgpl-2.1-plus", + "score": 100.0, + "short_name": "LGPL 2.1 or later", + "category": "Copyleft Limited", + "owner": "Free Software Foundation (FSF)", + "homepage_url": "http://www.gnu.org/licenses/old-licenses/lgpl-2.1-standalone.html", + "text_url": "http://www.gnu.org/licenses/old-licenses/lgpl-2.1-standalone.html", + "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:lgpl-2.1-plus", + "spdx_license_key": "LGPL-2.1+", + "spdx_url": "https://spdx.org/licenses/LGPL-2.1", + "start_line": 7, + "end_line": 20, + "matched_rule": { + "identifier": "lgpl-2.1-plus_59.RULE", + "license_choice": false, + "licenses": [ + "lgpl-2.1-plus" + ] + } + } + ], + "copyrights": [ + { + "statements": [ + "Copyright 2009, Red Hat Middleware LLC" + ], + "holders": [ + "Red Hat Middleware LLC" + ], + "authors": [], + "start_line": 2, + "end_line": 5 + } + ], + "packages": [], + "files_count": 0, + "dirs_count": 0, + "size_count": 0, "scan_errors": [] }, { - "path": "samples/zlib/dotzlib/AssemblyInfo.cs", + "path": "samples/JGroups/src/S3_PING.java", "type": "file", - "name": "AssemblyInfo.cs", - "base_name": "AssemblyInfo", - "extension": ".cs", - "date": "2017-10-19", - "size": 2500, - "sha1": "9f1db1177b2e9a014f72bb3cd80be17133e06d16", - "md5": "23d0d7c18846fc31655b6aa89b7c8038", - "files_count": null, + "name": "S3_PING.java", + "base_name": "S3_PING", + "extension": ".java", + "size": 122528, + "date": "2018-02-09", + "sha1": "08dba9986f69719970ead3592dc565465164df0d", + "md5": "83d8324f37d0e3f120bc89865cf0bd39", "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", - "programming_language": "C#", + "file_type": "ASCII text", + "programming_language": "Java", "is_binary": false, "is_text": true, "is_archive": false, "is_media": false, "is_source": true, "is_script": false, + "licenses": [ + { + "key": "public-domain", + "score": 10.0, + "short_name": "Public Domain", + "category": "Public Domain", + "owner": "Unspecified", + "homepage_url": "http://www.linfo.org/publicdomain.html", + "text_url": "", + "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:public-domain", + "spdx_license_key": "", + "spdx_url": "", + "start_line": 1649, + "end_line": 1649, + "matched_rule": { + "identifier": "public-domain.LICENSE", + "license_choice": false, + "licenses": [ + "public-domain" + ] + } + }, + { + "key": "public-domain", + "score": 10.0, + "short_name": "Public Domain", + "category": "Public Domain", + "owner": "Unspecified", + "homepage_url": "http://www.linfo.org/publicdomain.html", + "text_url": "", + "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:public-domain", + "spdx_license_key": "", + "spdx_url": "", + "start_line": 1692, + "end_line": 1692, + "matched_rule": { + "identifier": "public-domain.LICENSE", + "license_choice": false, + "licenses": [ + "public-domain" + ] + } + } + ], + "copyrights": [ + { + "statements": [], + "holders": [], + "authors": [ + "Bela Ban" + ], + "start_line": 35, + "end_line": 38 + }, + { + "statements": [], + "holders": [], + "authors": [ + "Robert Harder", + "rob@iharder.net" + ], + "start_line": 1697, + "end_line": 1700 + } + ], + "packages": [], + "files_count": 0, + "dirs_count": 0, + "size_count": 0, "scan_errors": [] }, { - "path": "samples/zlib/dotzlib/LICENSE_1_0.txt", - "type": "file", - "name": "LICENSE_1_0.txt", - "base_name": "LICENSE_1_0", - "extension": ".txt", - "date": "2017-10-19", - "size": 1359, - "sha1": "892b34f7865d90a6f949f50d95e49625a10bc7f0", - "md5": "81543b22c36f10d20ac9712f8d80ef8d", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", + "path": "samples/zlib", + "type": "directory", + "name": "zlib", + "base_name": "zlib", + "extension": "", + "size": 0, + "date": null, + "sha1": null, + "md5": null, + "mime_type": null, + "file_type": null, "programming_language": null, "is_binary": false, - "is_text": true, + "is_text": false, "is_archive": false, "is_media": false, "is_source": false, "is_script": false, + "licenses": [], + "copyrights": [], + "packages": [], + "files_count": 16, + "dirs_count": 5, + "size_count": 268762, "scan_errors": [] }, { - "path": "samples/zlib/dotzlib/ChecksumImpl.cs", + "path": "samples/zlib/adler32.c", "type": "file", - "name": "ChecksumImpl.cs", - "base_name": "ChecksumImpl", - "extension": ".cs", - "date": "2017-10-19", - "size": 8040, - "sha1": "3807a0e24a57b92ea301559cab7307b8eab52c51", - "md5": "d01b3cb2e75da9b15f05b92b42f6bd33", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ISO-8859 text, with CRLF line terminators", - "programming_language": "C#", + "name": "adler32.c", + "base_name": "adler32", + "extension": ".c", + "size": 4968, + "date": "2018-02-09", + "sha1": "0cff4808476ce0b5f6f0ebbc69ee2ab2a0eebe43", + "md5": "ae3bbb54820e1d49fb90cbba222e973f", + "mime_type": "text/x-c", + "file_type": "C source, ASCII text", + "programming_language": "C", "is_binary": false, "is_text": true, "is_archive": false, "is_media": false, "is_source": true, "is_script": false, + "licenses": [ + { + "key": "zlib", + "score": 60.0, + "short_name": "ZLIB License", + "category": "Permissive", + "owner": "zlib", + "homepage_url": "http://www.zlib.net/", + "text_url": "http://www.gzip.org/zlib/zlib_license.html", + "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:zlib", + "spdx_license_key": "Zlib", + "spdx_url": "https://spdx.org/licenses/Zlib", + "start_line": 3, + "end_line": 3, + "matched_rule": { + "identifier": "zlib_5.RULE", + "license_choice": false, + "licenses": [ + "zlib" + ] + } + } + ], + "copyrights": [ + { + "statements": [ + "Copyright (c) 1995-2011 Mark Adler" + ], + "holders": [ + "Mark Adler" + ], + "authors": [], + "start_line": 1, + "end_line": 3 + } + ], + "packages": [], + "files_count": 0, + "dirs_count": 0, + "size_count": 0, "scan_errors": [] }, { - "path": "samples/zlib/iostream2/zstream.h", + "path": "samples/zlib/deflate.c", "type": "file", - "name": "zstream.h", - "base_name": "zstream", - "extension": ".h", - "date": "2017-10-19", - "size": 9283, - "sha1": "fca4540d490fff36bb90fd801cf9cd8fc695bb17", - "md5": "a980b61c1e8be68d5cdb1236ba6b43e7", - "files_count": null, - "mime_type": "text/x-c++", - "file_type": "C++ source, ASCII text", + "name": "deflate.c", + "base_name": "deflate", + "extension": ".c", + "size": 71476, + "date": "2018-02-09", + "sha1": "7b4ace6d698c5dbbfb9a8f047f63228ca54d2e77", + "md5": "cd7826278ce9d9d9ed5abdefef50c3e2", + "mime_type": "text/x-c", + "file_type": "C source, ASCII text", "programming_language": "C", "is_binary": false, "is_text": true, @@ -556,85 +1267,343 @@ "is_media": false, "is_source": true, "is_script": false, + "licenses": [ + { + "key": "zlib", + "score": 60.0, + "short_name": "ZLIB License", + "category": "Permissive", + "owner": "zlib", + "homepage_url": "http://www.zlib.net/", + "text_url": "http://www.gzip.org/zlib/zlib_license.html", + "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:zlib", + "spdx_license_key": "Zlib", + "spdx_url": "https://spdx.org/licenses/Zlib", + "start_line": 3, + "end_line": 3, + "matched_rule": { + "identifier": "zlib_5.RULE", + "license_choice": false, + "licenses": [ + "zlib" + ] + } + } + ], + "copyrights": [ + { + "statements": [ + "Copyright (c) 1995-2013 Jean-loup Gailly and Mark Adler" + ], + "holders": [ + "Jean-loup Gailly and Mark Adler" + ], + "authors": [], + "start_line": 1, + "end_line": 3 + }, + { + "statements": [], + "holders": [], + "authors": [ + "Leonid Broukhis. Thanks" + ], + "start_line": 33, + "end_line": 35 + }, + { + "statements": [ + "Copyright 1995-2013 Jean-loup Gailly and Mark Adler" + ], + "holders": [ + "Jean-loup Gailly and Mark Adler" + ], + "authors": [], + "start_line": 54, + "end_line": 55 + } + ], + "packages": [], + "files_count": 0, + "dirs_count": 0, + "size_count": 0, "scan_errors": [] }, { - "path": "samples/zlib/iostream2/zstream_test.cpp", + "path": "samples/zlib/deflate.h", "type": "file", - "name": "zstream_test.cpp", - "base_name": "zstream_test", - "extension": ".cpp", - "date": "2017-10-19", - "size": 711, - "sha1": "e18a6d55cbbd8b832f8d795530553467e5c74fcf", - "md5": "d32476bde4e6d5f889092fdff6f8cdb0", - "files_count": null, + "name": "deflate.h", + "base_name": "deflate", + "extension": ".h", + "size": 12774, + "date": "2018-02-09", + "sha1": "29ed3b8ca3927576e5889dea5880ca0052942c7d", + "md5": "7ceae74a13201f14c91623116af169c3", "mime_type": "text/x-c", "file_type": "C source, ASCII text", - "programming_language": "C++", + "programming_language": "C", "is_binary": false, "is_text": true, "is_archive": false, "is_media": false, "is_source": true, "is_script": false, + "licenses": [ + { + "key": "zlib", + "score": 60.0, + "short_name": "ZLIB License", + "category": "Permissive", + "owner": "zlib", + "homepage_url": "http://www.zlib.net/", + "text_url": "http://www.gzip.org/zlib/zlib_license.html", + "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:zlib", + "spdx_license_key": "Zlib", + "spdx_url": "https://spdx.org/licenses/Zlib", + "start_line": 3, + "end_line": 3, + "matched_rule": { + "identifier": "zlib_5.RULE", + "license_choice": false, + "licenses": [ + "zlib" + ] + } + }, + { + "key": "zlib", + "score": 100.0, + "short_name": "ZLIB License", + "category": "Permissive", + "owner": "zlib", + "homepage_url": "http://www.zlib.net/", + "text_url": "http://www.gzip.org/zlib/zlib_license.html", + "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:zlib", + "spdx_license_key": "Zlib", + "spdx_url": "https://spdx.org/licenses/Zlib", + "start_line": 93, + "end_line": 94, + "matched_rule": { + "identifier": "zlib_21.RULE", + "license_choice": false, + "licenses": [ + "zlib" + ] + } + } + ], + "copyrights": [ + { + "statements": [ + "Copyright (c) 1995-2012 Jean-loup Gailly" + ], + "holders": [ + "Jean-loup Gailly" + ], + "authors": [], + "start_line": 1, + "end_line": 3 + } + ], + "packages": [], + "files_count": 0, + "dirs_count": 0, + "size_count": 0, "scan_errors": [] }, { - "path": "samples/JGroups/EULA", + "path": "samples/zlib/zlib.h", "type": "file", - "name": "EULA", - "base_name": "EULA", - "extension": "", - "date": "2017-10-19", - "size": 8156, - "sha1": "eb232aa0424eca9c4136904e6143b72aaa9cf4de", - "md5": "0be0aceb8296727efff0ac0bf8e6bdb3", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": "JavaScript+Lasso", + "name": "zlib.h", + "base_name": "zlib", + "extension": ".h", + "size": 87883, + "date": "2018-02-09", + "sha1": "400d35465f179a4acacb5fe749e6ce20a0bbdb84", + "md5": "64d8a5180bd54ff5452886e4cbb21e14", + "mime_type": "text/x-c", + "file_type": "C source, ASCII text", + "programming_language": "C", "is_binary": false, "is_text": true, "is_archive": false, "is_media": false, "is_source": true, "is_script": false, + "licenses": [ + { + "key": "zlib", + "score": 100.0, + "short_name": "ZLIB License", + "category": "Permissive", + "owner": "zlib", + "homepage_url": "http://www.zlib.net/", + "text_url": "http://www.gzip.org/zlib/zlib_license.html", + "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:zlib", + "spdx_license_key": "Zlib", + "spdx_url": "https://spdx.org/licenses/Zlib", + "start_line": 6, + "end_line": 23, + "matched_rule": { + "identifier": "zlib_17.RULE", + "license_choice": false, + "licenses": [ + "zlib" + ] + } + } + ], + "copyrights": [ + { + "statements": [ + "Copyright (c) 1995-2013 Jean-loup Gailly and Mark Adler" + ], + "holders": [ + "Jean-loup Gailly and Mark Adler" + ], + "authors": [], + "start_line": 4, + "end_line": 4 + } + ], + "packages": [], + "files_count": 0, + "dirs_count": 0, + "size_count": 0, "scan_errors": [] }, { - "path": "samples/JGroups/LICENSE", + "path": "samples/zlib/zutil.c", "type": "file", - "name": "LICENSE", - "base_name": "LICENSE", - "extension": "", - "date": "2017-10-19", - "size": 26430, - "sha1": "e60c2e780886f95df9c9ee36992b8edabec00bcc", - "md5": "7fbc338309ac38fefcd64b04bb903e34", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": null, + "name": "zutil.c", + "base_name": "zutil", + "extension": ".c", + "size": 7414, + "date": "2018-02-09", + "sha1": "e1af709bff21ae0d4331119a7fc4c19f82932043", + "md5": "fff257bc1656eb60fc585a7dc35f963d", + "mime_type": "text/x-c", + "file_type": "C source, ASCII text", + "programming_language": "C", "is_binary": false, "is_text": true, "is_archive": false, "is_media": false, - "is_source": false, + "is_source": true, "is_script": false, + "licenses": [ + { + "key": "zlib", + "score": 60.0, + "short_name": "ZLIB License", + "category": "Permissive", + "owner": "zlib", + "homepage_url": "http://www.zlib.net/", + "text_url": "http://www.gzip.org/zlib/zlib_license.html", + "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:zlib", + "spdx_license_key": "Zlib", + "spdx_url": "https://spdx.org/licenses/Zlib", + "start_line": 3, + "end_line": 3, + "matched_rule": { + "identifier": "zlib_5.RULE", + "license_choice": false, + "licenses": [ + "zlib" + ] + } + } + ], + "copyrights": [ + { + "statements": [ + "Copyright (c) 1995-2005, 2010, 2011, 2012 Jean-loup Gailly." + ], + "holders": [ + "Jean-loup Gailly." + ], + "authors": [], + "start_line": 1, + "end_line": 3 + } + ], + "packages": [], + "files_count": 0, + "dirs_count": 0, + "size_count": 0, "scan_errors": [] }, { - "path": "samples/JGroups/licenses", + "path": "samples/zlib/zutil.h", + "type": "file", + "name": "zutil.h", + "base_name": "zutil", + "extension": ".h", + "size": 6766, + "date": "2018-02-09", + "sha1": "b909d27ef9ce51639f76b7ea6b62721e7d1b6bf7", + "md5": "04fcfbb961591c9452c4d0fd1525ffdf", + "mime_type": "text/x-c", + "file_type": "C source, ASCII text", + "programming_language": "C", + "is_binary": false, + "is_text": true, + "is_archive": false, + "is_media": false, + "is_source": true, + "is_script": false, + "licenses": [ + { + "key": "zlib", + "score": 60.0, + "short_name": "ZLIB License", + "category": "Permissive", + "owner": "zlib", + "homepage_url": "http://www.zlib.net/", + "text_url": "http://www.gzip.org/zlib/zlib_license.html", + "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:zlib", + "spdx_license_key": "Zlib", + "spdx_url": "https://spdx.org/licenses/Zlib", + "start_line": 3, + "end_line": 3, + "matched_rule": { + "identifier": "zlib_5.RULE", + "license_choice": false, + "licenses": [ + "zlib" + ] + } + } + ], + "copyrights": [ + { + "statements": [ + "Copyright (c) 1995-2013 Jean-loup Gailly." + ], + "holders": [ + "Jean-loup Gailly." + ], + "authors": [], + "start_line": 1, + "end_line": 3 + } + ], + "packages": [], + "files_count": 0, + "dirs_count": 0, + "size_count": 0, + "scan_errors": [] + }, + { + "path": "samples/zlib/ada", "type": "directory", - "name": "licenses", - "base_name": "licenses", + "name": "ada", + "base_name": "ada", "extension": "", + "size": 0, "date": null, - "size": 54552, "sha1": null, "md5": null, - "files_count": 5, "mime_type": null, "file_type": null, "programming_language": null, @@ -644,19 +1613,85 @@ "is_media": false, "is_source": false, "is_script": false, + "licenses": [], + "copyrights": [], + "packages": [], + "files_count": 1, + "dirs_count": 0, + "size_count": 13594, "scan_errors": [] }, { - "path": "samples/JGroups/src", + "path": "samples/zlib/ada/zlib.ads", + "type": "file", + "name": "zlib.ads", + "base_name": "zlib", + "extension": ".ads", + "size": 13594, + "date": "2018-02-09", + "sha1": "0245a91806d804bf9f0907a3a001a141e9adb61b", + "md5": "71de2670f2e588b51c62e7f6a9046399", + "mime_type": "text/plain", + "file_type": "ASCII text", + "programming_language": "Ada", + "is_binary": false, + "is_text": true, + "is_archive": false, + "is_media": false, + "is_source": true, + "is_script": false, + "licenses": [ + { + "key": "gpl-2.0-plus-ada", + "score": 100.0, + "short_name": "GPL 2.0 or later with Ada exception", + "category": "Copyleft Limited", + "owner": "Dmitriy Anisimkov", + "homepage_url": "", + "text_url": "", + "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:gpl-2.0-plus-ada", + "spdx_license_key": "", + "spdx_url": "", + "start_line": 6, + "end_line": 25, + "matched_rule": { + "identifier": "gpl-2.0-plus-ada.LICENSE", + "license_choice": false, + "licenses": [ + "gpl-2.0-plus-ada" + ] + } + } + ], + "copyrights": [ + { + "statements": [ + "Copyright (c) 2002-2004 Dmitriy Anisimkov" + ], + "holders": [ + "Dmitriy Anisimkov" + ], + "authors": [], + "start_line": 4, + "end_line": 4 + } + ], + "packages": [], + "files_count": 0, + "dirs_count": 0, + "size_count": 0, + "scan_errors": [] + }, + { + "path": "samples/zlib/dotzlib", "type": "directory", - "name": "src", - "base_name": "src", + "name": "dotzlib", + "base_name": "dotzlib", "extension": "", + "size": 0, "date": null, - "size": 152090, "sha1": null, "md5": null, - "files_count": 7, "mime_type": null, "file_type": null, "programming_language": null, @@ -666,63 +1701,124 @@ "is_media": false, "is_source": false, "is_script": false, + "licenses": [], + "copyrights": [], + "packages": [], + "files_count": 4, + "dirs_count": 0, + "size_count": 14257, "scan_errors": [] }, { - "path": "samples/JGroups/licenses/apache-2.0.txt", + "path": "samples/zlib/dotzlib/AssemblyInfo.cs", "type": "file", - "name": "apache-2.0.txt", - "base_name": "apache-2.0", - "extension": ".txt", - "date": "2017-10-19", - "size": 11560, - "sha1": "47b573e3824cd5e02a1a3ae99e2735b49e0256e4", - "md5": "d273d63619c9aeaf15cdaf76422c4f87", - "files_count": null, + "name": "AssemblyInfo.cs", + "base_name": "AssemblyInfo", + "extension": ".cs", + "size": 2500, + "date": "2018-02-09", + "sha1": "9f1db1177b2e9a014f72bb3cd80be17133e06d16", + "md5": "23d0d7c18846fc31655b6aa89b7c8038", "mime_type": "text/plain", "file_type": "ASCII text, with CRLF line terminators", - "programming_language": null, + "programming_language": "C#", "is_binary": false, "is_text": true, "is_archive": false, "is_media": false, - "is_source": false, + "is_source": true, "is_script": false, + "licenses": [], + "copyrights": [ + { + "statements": [ + "(c) 2004 by Henrik Ravn" + ], + "holders": [ + "Henrik Ravn" + ], + "authors": [], + "start_line": 13, + "end_line": 16 + } + ], + "packages": [], + "files_count": 0, + "dirs_count": 0, + "size_count": 0, "scan_errors": [] }, { - "path": "samples/JGroups/licenses/bouncycastle.txt", + "path": "samples/zlib/dotzlib/ChecksumImpl.cs", "type": "file", - "name": "bouncycastle.txt", - "base_name": "bouncycastle", - "extension": ".txt", - "date": "2017-10-19", - "size": 1186, - "sha1": "74facb0e9a734479f9cd893b5be3fe1bf651b760", - "md5": "9fffd8de865a5705969f62b128381f85", - "files_count": null, + "name": "ChecksumImpl.cs", + "base_name": "ChecksumImpl", + "extension": ".cs", + "size": 8040, + "date": "2018-02-09", + "sha1": "3807a0e24a57b92ea301559cab7307b8eab52c51", + "md5": "d01b3cb2e75da9b15f05b92b42f6bd33", "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": null, + "file_type": "ISO-8859 text, with CRLF line terminators", + "programming_language": "C#", "is_binary": false, "is_text": true, "is_archive": false, "is_media": false, - "is_source": false, + "is_source": true, "is_script": false, + "licenses": [ + { + "key": "boost-1.0", + "score": 91.3, + "short_name": "Boost 1.0", + "category": "Permissive", + "owner": "Boost", + "homepage_url": "http://www.boost.org/users/license.html", + "text_url": "http://www.boost.org/LICENSE_1_0.txt", + "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:boost-1.0", + "spdx_license_key": "BSL-1.0", + "spdx_url": "https://spdx.org/licenses/BSL-1.0", + "start_line": 4, + "end_line": 5, + "matched_rule": { + "identifier": "boost-1.0_1.RULE", + "license_choice": false, + "licenses": [ + "boost-1.0" + ] + } + } + ], + "copyrights": [ + { + "statements": [ + "(c) Copyright Henrik Ravn 2004" + ], + "holders": [ + "Henrik Ravn" + ], + "authors": [], + "start_line": 2, + "end_line": 2 + } + ], + "packages": [], + "files_count": 0, + "dirs_count": 0, + "size_count": 0, "scan_errors": [] }, { - "path": "samples/JGroups/licenses/lgpl.txt", + "path": "samples/zlib/dotzlib/LICENSE_1_0.txt", "type": "file", - "name": "lgpl.txt", - "base_name": "lgpl", + "name": "LICENSE_1_0.txt", + "base_name": "LICENSE_1_0", "extension": ".txt", - "date": "2017-10-19", - "size": 26934, - "sha1": "8f1a637d2e2ed1bdb9eb01a7dccb5c12cc0557e1", - "md5": "f14599a2f089f6ff8c97e2baa4e3d575", - "files_count": null, + "size": 1359, + "date": "2018-02-09", + "sha1": "892b34f7865d90a6f949f50d95e49625a10bc7f0", + "md5": "81543b22c36f10d20ac9712f8d80ef8d", "mime_type": "text/plain", "file_type": "ASCII text, with CRLF line terminators", "programming_language": null, @@ -732,19 +1828,46 @@ "is_media": false, "is_source": false, "is_script": false, + "licenses": [ + { + "key": "boost-1.0", + "score": 100.0, + "short_name": "Boost 1.0", + "category": "Permissive", + "owner": "Boost", + "homepage_url": "http://www.boost.org/users/license.html", + "text_url": "http://www.boost.org/LICENSE_1_0.txt", + "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:boost-1.0", + "spdx_license_key": "BSL-1.0", + "spdx_url": "https://spdx.org/licenses/BSL-1.0", + "start_line": 1, + "end_line": 23, + "matched_rule": { + "identifier": "boost-1.0.LICENSE", + "license_choice": false, + "licenses": [ + "boost-1.0" + ] + } + } + ], + "copyrights": [], + "packages": [], + "files_count": 0, + "dirs_count": 0, + "size_count": 0, "scan_errors": [] }, { - "path": "samples/JGroups/licenses/cpl-1.0.txt", + "path": "samples/zlib/dotzlib/readme.txt", "type": "file", - "name": "cpl-1.0.txt", - "base_name": "cpl-1.0", + "name": "readme.txt", + "base_name": "readme", "extension": ".txt", - "date": "2017-10-19", - "size": 11987, - "sha1": "681cf776bcd79752543d42490ec7ed22a29fd888", - "md5": "9a6d2c9ae73d59eb3dd38e3909750d14", - "files_count": null, + "size": 2358, + "date": "2018-02-09", + "sha1": "b1229b826f0096808628474538cea8fec2922a9b", + "md5": "1f20f3168ee63d90de033edac2ce383c", "mime_type": "text/plain", "file_type": "ASCII text, with CRLF line terminators", "programming_language": null, @@ -754,204 +1877,408 @@ "is_media": false, "is_source": false, "is_script": false, + "licenses": [ + { + "key": "boost-1.0", + "score": 30.0, + "short_name": "Boost 1.0", + "category": "Permissive", + "owner": "Boost", + "homepage_url": "http://www.boost.org/users/license.html", + "text_url": "http://www.boost.org/LICENSE_1_0.txt", + "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:boost-1.0", + "spdx_license_key": "BSL-1.0", + "spdx_url": "https://spdx.org/licenses/BSL-1.0", + "start_line": 58, + "end_line": 58, + "matched_rule": { + "identifier": "boost-1.0.RULE", + "license_choice": false, + "licenses": [ + "boost-1.0" + ] + } + } + ], + "copyrights": [ + { + "statements": [ + "Copyright (c) Henrik Ravn 2004" + ], + "holders": [ + "Henrik Ravn" + ], + "authors": [], + "start_line": 55, + "end_line": 55 + } + ], + "packages": [], + "files_count": 0, + "dirs_count": 0, + "size_count": 0, "scan_errors": [] }, { - "path": "samples/JGroups/licenses/apache-1.1.txt", - "type": "file", - "name": "apache-1.1.txt", - "base_name": "apache-1.1", - "extension": ".txt", - "date": "2017-10-19", - "size": 2885, - "sha1": "6b5608d35c3e304532af43db8bbfc5947bef46a6", - "md5": "276982197c941f4cbf3d218546e17ae2", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", + "path": "samples/zlib/gcc_gvmat64", + "type": "directory", + "name": "gcc_gvmat64", + "base_name": "gcc_gvmat64", + "extension": "", + "size": 0, + "date": null, + "sha1": null, + "md5": null, + "mime_type": null, + "file_type": null, "programming_language": null, "is_binary": false, - "is_text": true, + "is_text": false, "is_archive": false, "is_media": false, "is_source": false, "is_script": false, + "licenses": [], + "copyrights": [], + "packages": [], + "files_count": 1, + "dirs_count": 0, + "size_count": 16413, "scan_errors": [] }, { - "path": "samples/JGroups/src/RATE_LIMITER.java", + "path": "samples/zlib/gcc_gvmat64/gvmat64.S", "type": "file", - "name": "RATE_LIMITER.java", - "base_name": "RATE_LIMITER", - "extension": ".java", - "date": "2017-10-19", - "size": 3692, - "sha1": "a8087e5d50da3273536ebda9b87b77aa4ff55deb", - "md5": "4626bdbc48871b55513e1a12991c61a8", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": "Java", + "name": "gvmat64.S", + "base_name": "gvmat64", + "extension": ".S", + "size": 16413, + "date": "2018-02-09", + "sha1": "742603cba1af98a1432cc02efb019b1a5760adf2", + "md5": "5e772d7302475e5473d0c4c57b9861e8", + "mime_type": "text/x-c", + "file_type": "C source, ASCII text, with CRLF line terminators", + "programming_language": "GAS", "is_binary": false, "is_text": true, "is_archive": false, "is_media": false, "is_source": true, "is_script": false, + "licenses": [ + { + "key": "zlib", + "score": 98.53, + "short_name": "ZLIB License", + "category": "Permissive", + "owner": "zlib", + "homepage_url": "http://www.zlib.net/", + "text_url": "http://www.gzip.org/zlib/zlib_license.html", + "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:zlib", + "spdx_license_key": "Zlib", + "spdx_url": "https://spdx.org/licenses/Zlib", + "start_line": 13, + "end_line": 31, + "matched_rule": { + "identifier": "zlib_4.RULE", + "license_choice": false, + "licenses": [ + "zlib" + ] + } + } + ], + "copyrights": [ + { + "statements": [ + "Copyright (c) 1995-2010 Jean-loup Gailly, Brian Raiter and Gilles Vollant." + ], + "holders": [ + "Jean-loup Gailly, Brian Raiter and Gilles Vollant." + ], + "authors": [], + "start_line": 9, + "end_line": 10 + }, + { + "statements": [], + "holders": [], + "authors": [ + "Gilles Vollant" + ], + "start_line": 12, + "end_line": 15 + } + ], + "packages": [], + "files_count": 0, + "dirs_count": 0, + "size_count": 0, "scan_errors": [] }, { - "path": "samples/JGroups/src/RouterStub.java", - "type": "file", - "name": "RouterStub.java", - "base_name": "RouterStub", - "extension": ".java", - "date": "2017-10-19", - "size": 9913, - "sha1": "c1f6818f8ee7bddcc9f444bc94c099729d716d52", - "md5": "eecfe23494acbcd8088c93bc1e83c7f2", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": "Java", + "path": "samples/zlib/infback9", + "type": "directory", + "name": "infback9", + "base_name": "infback9", + "extension": "", + "size": 0, + "date": null, + "sha1": null, + "md5": null, + "mime_type": null, + "file_type": null, + "programming_language": null, "is_binary": false, - "is_text": true, + "is_text": false, "is_archive": false, "is_media": false, - "is_source": true, + "is_source": false, "is_script": false, + "licenses": [], + "copyrights": [], + "packages": [], + "files_count": 2, + "dirs_count": 0, + "size_count": 23223, "scan_errors": [] }, { - "path": "samples/JGroups/src/ImmutableReference.java", + "path": "samples/zlib/infback9/infback9.c", "type": "file", - "name": "ImmutableReference.java", - "base_name": "ImmutableReference", - "extension": ".java", - "date": "2017-10-19", - "size": 1838, - "sha1": "30f56b876d5576d9869e2c5c509b08db57110592", - "md5": "48ca3c72fb9a65c771a321222f118b88", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": "Java", + "name": "infback9.c", + "base_name": "infback9", + "extension": ".c", + "size": 21629, + "date": "2018-02-09", + "sha1": "17fb362c03755b12f2dda5b12a68cf38162674bd", + "md5": "23ff5edec0817da303cb1294c1e4205c", + "mime_type": "text/x-c", + "file_type": "C source, ASCII text", + "programming_language": "C", "is_binary": false, "is_text": true, "is_archive": false, "is_media": false, "is_source": true, "is_script": false, + "licenses": [ + { + "key": "zlib", + "score": 60.0, + "short_name": "ZLIB License", + "category": "Permissive", + "owner": "zlib", + "homepage_url": "http://www.zlib.net/", + "text_url": "http://www.gzip.org/zlib/zlib_license.html", + "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:zlib", + "spdx_license_key": "Zlib", + "spdx_url": "https://spdx.org/licenses/Zlib", + "start_line": 3, + "end_line": 3, + "matched_rule": { + "identifier": "zlib_5.RULE", + "license_choice": false, + "licenses": [ + "zlib" + ] + } + } + ], + "copyrights": [ + { + "statements": [ + "Copyright (c) 1995-2008 Mark Adler" + ], + "holders": [ + "Mark Adler" + ], + "authors": [], + "start_line": 1, + "end_line": 3 + } + ], + "packages": [], + "files_count": 0, + "dirs_count": 0, + "size_count": 0, "scan_errors": [] }, { - "path": "samples/JGroups/src/FixedMembershipToken.java", + "path": "samples/zlib/infback9/infback9.h", "type": "file", - "name": "FixedMembershipToken.java", - "base_name": "FixedMembershipToken", - "extension": ".java", - "date": "2017-10-19", - "size": 5144, - "sha1": "5901f73dcc78155a1a2c7b5663a3a11fba400b19", - "md5": "aca9640ec8beee21b098bcf8ecc91442", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": "Java", + "name": "infback9.h", + "base_name": "infback9", + "extension": ".h", + "size": 1594, + "date": "2018-02-09", + "sha1": "d0486a32b558dcaceded5f0746fad62e680a4734", + "md5": "52b1ed99960d3ed7ed60cd20295e64a8", + "mime_type": "text/x-c", + "file_type": "C source, ASCII text", + "programming_language": "C", "is_binary": false, "is_text": true, "is_archive": false, "is_media": false, "is_source": true, "is_script": false, + "licenses": [ + { + "key": "zlib", + "score": 60.0, + "short_name": "ZLIB License", + "category": "Permissive", + "owner": "zlib", + "homepage_url": "http://www.zlib.net/", + "text_url": "http://www.gzip.org/zlib/zlib_license.html", + "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:zlib", + "spdx_license_key": "Zlib", + "spdx_url": "https://spdx.org/licenses/Zlib", + "start_line": 3, + "end_line": 3, + "matched_rule": { + "identifier": "zlib_5.RULE", + "license_choice": false, + "licenses": [ + "zlib" + ] + } + } + ], + "copyrights": [ + { + "statements": [ + "Copyright (c) 2003 Mark Adler" + ], + "holders": [ + "Mark Adler" + ], + "authors": [], + "start_line": 1, + "end_line": 3 + } + ], + "packages": [], + "files_count": 0, + "dirs_count": 0, + "size_count": 0, "scan_errors": [] }, { - "path": "samples/JGroups/src/RouterStubManager.java", - "type": "file", - "name": "RouterStubManager.java", - "base_name": "RouterStubManager", - "extension": ".java", - "date": "2017-10-19", - "size": 8162, - "sha1": "eb419dc94cfe11ca318a3e743a7f9f080e70c751", - "md5": "20bee9631b7c82a45c250e095352aec7", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": "Java", + "path": "samples/zlib/iostream2", + "type": "directory", + "name": "iostream2", + "base_name": "iostream2", + "extension": "", + "size": 0, + "date": null, + "sha1": null, + "md5": null, + "mime_type": null, + "file_type": null, + "programming_language": null, "is_binary": false, - "is_text": true, + "is_text": false, "is_archive": false, "is_media": false, - "is_source": true, + "is_source": false, "is_script": false, + "licenses": [], + "copyrights": [], + "packages": [], + "files_count": 2, + "dirs_count": 0, + "size_count": 9994, "scan_errors": [] }, { - "path": "samples/JGroups/src/S3_PING.java", + "path": "samples/zlib/iostream2/zstream.h", "type": "file", - "name": "S3_PING.java", - "base_name": "S3_PING", - "extension": ".java", - "date": "2017-10-19", - "size": 122528, - "sha1": "08dba9986f69719970ead3592dc565465164df0d", - "md5": "83d8324f37d0e3f120bc89865cf0bd39", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": "Java", + "name": "zstream.h", + "base_name": "zstream", + "extension": ".h", + "size": 9283, + "date": "2018-02-09", + "sha1": "fca4540d490fff36bb90fd801cf9cd8fc695bb17", + "md5": "a980b61c1e8be68d5cdb1236ba6b43e7", + "mime_type": "text/x-c++", + "file_type": "C++ source, ASCII text", + "programming_language": "C", "is_binary": false, "is_text": true, "is_archive": false, "is_media": false, "is_source": true, "is_script": false, + "licenses": [ + { + "key": "cmr-no", + "score": 100.0, + "short_name": "CMR License", + "category": "Permissive", + "owner": "CMR - Christian Michelsen Research AS", + "homepage_url": "", + "text_url": "", + "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:cmr-no", + "spdx_license_key": "", + "spdx_url": "", + "start_line": 3, + "end_line": 15, + "matched_rule": { + "identifier": "cmr-no.LICENSE", + "license_choice": false, + "licenses": [ + "cmr-no" + ] + } + } + ], + "copyrights": [ + { + "statements": [ + "Copyright (c) 1997 Christian Michelsen Research as Advanced Computing" + ], + "holders": [ + "Christian Michelsen Research", + "Advanced Computing" + ], + "authors": [], + "start_line": 3, + "end_line": 5 + } + ], + "packages": [], + "files_count": 0, + "dirs_count": 0, + "size_count": 0, "scan_errors": [] }, { - "path": "samples/JGroups/src/GuardedBy.java", + "path": "samples/zlib/iostream2/zstream_test.cpp", "type": "file", - "name": "GuardedBy.java", - "base_name": "GuardedBy", - "extension": ".java", - "date": "2017-10-19", - "size": 813, - "sha1": "981d67087e65e9a44957c026d4b10817cf77d966", - "md5": "c5064400f759d3e81771005051d17dc1", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": "Java", + "name": "zstream_test.cpp", + "base_name": "zstream_test", + "extension": ".cpp", + "size": 711, + "date": "2018-02-09", + "sha1": "e18a6d55cbbd8b832f8d795530553467e5c74fcf", + "md5": "d32476bde4e6d5f889092fdff6f8cdb0", + "mime_type": "text/x-c", + "file_type": "C source, ASCII text", + "programming_language": "C++", "is_binary": false, "is_text": true, "is_archive": false, "is_media": false, "is_source": true, "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/arch/zlib.tar.gz", - "type": "file", - "name": "zlib.tar.gz", - "base_name": "zlib", - "extension": ".tar.gz", - "date": "2017-10-19", - "size": 28103, - "sha1": "576f0ccfe534d7f5ff5d6400078d3c6586de3abd", - "md5": "20b2370751abfc08bb3556c1d8114b5a", - "files_count": null, - "mime_type": "application/x-gzip", - "file_type": "gzip compressed data, last modified: Wed Jul 15 02:08:19 2015, from Unix", - "programming_language": null, - "is_binary": true, - "is_text": false, - "is_archive": true, - "is_media": false, - "is_source": false, - "is_script": false, + "licenses": [], + "copyrights": [], + "packages": [], + "files_count": 0, + "dirs_count": 0, + "size_count": 0, "scan_errors": [] } ] diff --git a/tests/data/deltacode/delta-len-error-old.json b/tests/data/deltacode/delta-len-error-old.json index 30c0094f..9e41c1d0 100644 --- a/tests/data/deltacode/delta-len-error-old.json +++ b/tests/data/deltacode/delta-len-error-old.json @@ -1,24 +1,54 @@ { "scancode_notice": "Generated with ScanCode and provided on an \"AS IS\" BASIS, WITHOUT WARRANTIES\nOR CONDITIONS OF ANY KIND, either express or implied. No content created from\nScanCode should be considered or used as legal advice. Consult an Attorney\nfor any legal advice.\nScanCode is a free software code scanning tool from nexB Inc. and others.\nVisit https://github.com/nexB/scancode-toolkit/ for support and download.", - "scancode_version": "2.2.1.post14.e66db963", + "scancode_version": "2.2.1.post259.4c5233dcb", "scancode_options": { + "input": "samples/", + "--copyright": true, "--info": true, - "--license-score": 0, - "--format": "json-pp" + "--json-pp": "/Users/sesser/Desktop/samples.json", + "--license": true, + "--package": true, + "--processes": "3" }, - "files_count": 43, + "files_count": 33, "files": [ + { + "path": "samples", + "type": "directory", + "name": "samples", + "base_name": "samples", + "extension": "", + "size": 0, + "date": null, + "sha1": null, + "md5": null, + "mime_type": null, + "file_type": null, + "programming_language": null, + "is_binary": false, + "is_text": false, + "is_archive": false, + "is_media": false, + "is_source": false, + "is_script": false, + "licenses": [], + "copyrights": [], + "packages": [], + "files_count": 33, + "dirs_count": 10, + "size_count": 1161083, + "scan_errors": [] + }, { "path": "samples/README", "type": "file", "name": "README", "base_name": "README", "extension": "", - "date": "2017-10-19", "size": 236, + "date": "2018-02-09", "sha1": "2e07e32c52d607204fad196052d70e3d18fb8636", "md5": "effc6856ef85a9250fb1a470792b3f38", - "files_count": null, "mime_type": "text/plain", "file_type": "ASCII text", "programming_language": null, @@ -28,6 +58,12 @@ "is_media": false, "is_source": false, "is_script": false, + "licenses": [], + "copyrights": [], + "packages": [], + "files_count": 0, + "dirs_count": 0, + "size_count": 0, "scan_errors": [] }, { @@ -36,11 +72,10 @@ "name": "screenshot.png", "base_name": "screenshot", "extension": ".png", - "date": "2017-10-19", "size": 622754, + "date": "2018-02-09", "sha1": "01ff4b1de0bc6c75c9cca6e46c80c1802d6976d4", "md5": "b6ef5a90777147423c98b42a6a25e57a", - "files_count": null, "mime_type": "image/png", "file_type": "PNG image data, 2880 x 1666, 8-bit/color RGB, non-interlaced", "programming_language": null, @@ -50,19 +85,24 @@ "is_media": true, "is_source": false, "is_script": false, + "licenses": [], + "copyrights": [], + "packages": [], + "files_count": 0, + "dirs_count": 0, + "size_count": 0, "scan_errors": [] }, { - "path": "samples/zlib", + "path": "samples/arch", "type": "directory", - "name": "zlib", - "base_name": "zlib", + "name": "arch", + "base_name": "arch", "extension": "", + "size": 0, "date": null, - "size": 268762, "sha1": null, "md5": null, - "files_count": 16, "mime_type": null, "file_type": null, "programming_language": null, @@ -72,41 +112,96 @@ "is_media": false, "is_source": false, "is_script": false, + "licenses": [], + "copyrights": [], + "packages": [], + "files_count": 1, + "dirs_count": 0, + "size_count": 28103, "scan_errors": [] }, { - "path": "samples/JGroups", - "type": "directory", - "name": "JGroups", - "base_name": "JGroups", - "extension": "", - "date": null, - "size": 241228, - "sha1": null, - "md5": null, - "files_count": 14, - "mime_type": null, - "file_type": null, + "path": "samples/arch/zlib.tar.gz", + "type": "file", + "name": "zlib.tar.gz", + "base_name": "zlib", + "extension": ".tar.gz", + "size": 28103, + "date": "2018-02-09", + "sha1": "576f0ccfe534d7f5ff5d6400078d3c6586de3abd", + "md5": "20b2370751abfc08bb3556c1d8114b5a", + "mime_type": "application/x-gzip", + "file_type": "gzip compressed data, last modified: Wed Jul 15 09:08:19 2015, from Unix", "programming_language": null, - "is_binary": false, + "is_binary": true, "is_text": false, - "is_archive": false, + "is_archive": true, "is_media": false, "is_source": false, "is_script": false, + "licenses": [], + "copyrights": [], + "packages": [ + { + "type": "plain tarball", + "name": null, + "version": null, + "primary_language": null, + "packaging": "archive", + "summary": null, + "description": null, + "payload_type": null, + "size": null, + "release_date": null, + "authors": [], + "maintainers": [], + "contributors": [], + "owners": [], + "packagers": [], + "distributors": [], + "vendors": [], + "keywords": [], + "keywords_doc_url": null, + "metafile_locations": [], + "metafile_urls": [], + "homepage_url": null, + "notes": null, + "download_urls": [], + "download_sha1": null, + "download_sha256": null, + "download_md5": null, + "bug_tracking_url": null, + "support_contacts": [], + "code_view_url": null, + "vcs_tool": null, + "vcs_repository": null, + "vcs_revision": null, + "copyright_top_level": null, + "copyrights": [], + "asserted_licenses": [], + "legal_file_locations": [], + "license_expression": null, + "license_texts": [], + "notice_texts": [], + "dependencies": {}, + "related_packages": [] + } + ], + "files_count": 0, + "dirs_count": 0, + "size_count": 0, "scan_errors": [] }, { - "path": "samples/arch", + "path": "samples/JGroups", "type": "directory", - "name": "arch", - "base_name": "arch", + "name": "JGroups", + "base_name": "JGroups", "extension": "", + "size": 0, "date": null, - "size": 28103, "sha1": null, "md5": null, - "files_count": 1, "mime_type": null, "file_type": null, "programming_language": null, @@ -116,195 +211,503 @@ "is_media": false, "is_source": false, "is_script": false, + "licenses": [], + "copyrights": [], + "packages": [], + "files_count": 14, + "dirs_count": 2, + "size_count": 241228, "scan_errors": [] }, { - "path": "samples/zlib/deflate.c", + "path": "samples/JGroups/EULA", "type": "file", - "name": "deflate.c", - "base_name": "deflate", - "extension": ".c", - "date": "2017-10-19", - "size": 71476, - "sha1": "7b4ace6d698c5dbbfb9a8f047f63228ca54d2e77", - "md5": "cd7826278ce9d9d9ed5abdefef50c3e2", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text", - "programming_language": "C", + "name": "EULA", + "base_name": "EULA", + "extension": "", + "size": 8156, + "date": "2018-02-09", + "sha1": "eb232aa0424eca9c4136904e6143b72aaa9cf4de", + "md5": "0be0aceb8296727efff0ac0bf8e6bdb3", + "mime_type": "text/plain", + "file_type": "ASCII text", + "programming_language": "JavaScript+Lasso", "is_binary": false, "is_text": true, "is_archive": false, "is_media": false, "is_source": true, "is_script": false, + "licenses": [ + { + "key": "jboss-eula", + "score": 100.0, + "short_name": "JBoss EULA", + "category": "Proprietary Free", + "owner": "JBoss Community", + "homepage_url": "", + "text_url": "http://repository.jboss.org/licenses/jbossorg-eula.txt", + "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:jboss-eula", + "spdx_license_key": "", + "spdx_url": "", + "start_line": 3, + "end_line": 108, + "matched_rule": { + "identifier": "jboss-eula.LICENSE", + "license_choice": false, + "licenses": [ + "jboss-eula" + ] + } + } + ], + "copyrights": [ + { + "statements": [ + "Copyright 2006 Red Hat, Inc." + ], + "holders": [ + "Red Hat, Inc." + ], + "authors": [], + "start_line": 104, + "end_line": 104 + } + ], + "packages": [], + "files_count": 0, + "dirs_count": 0, + "size_count": 0, "scan_errors": [] }, { - "path": "samples/zlib/zlib.h", + "path": "samples/JGroups/LICENSE", "type": "file", - "name": "zlib.h", - "base_name": "zlib", - "extension": ".h", - "date": "2017-10-19", - "size": 87883, - "sha1": "400d35465f179a4acacb5fe749e6ce20a0bbdb84", - "md5": "64d8a5180bd54ff5452886e4cbb21e14", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text", - "programming_language": "C", + "name": "LICENSE", + "base_name": "LICENSE", + "extension": "", + "size": 26430, + "date": "2018-02-09", + "sha1": "e60c2e780886f95df9c9ee36992b8edabec00bcc", + "md5": "7fbc338309ac38fefcd64b04bb903e34", + "mime_type": "text/plain", + "file_type": "ASCII text", + "programming_language": null, "is_binary": false, "is_text": true, "is_archive": false, "is_media": false, - "is_source": true, + "is_source": false, "is_script": false, + "licenses": [ + { + "key": "lgpl-2.1-plus", + "score": 100.0, + "short_name": "LGPL 2.1 or later", + "category": "Copyleft Limited", + "owner": "Free Software Foundation (FSF)", + "homepage_url": "http://www.gnu.org/licenses/old-licenses/lgpl-2.1-standalone.html", + "text_url": "http://www.gnu.org/licenses/old-licenses/lgpl-2.1-standalone.html", + "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:lgpl-2.1-plus", + "spdx_license_key": "LGPL-2.1+", + "spdx_url": "https://spdx.org/licenses/LGPL-2.1", + "start_line": 1, + "end_line": 502, + "matched_rule": { + "identifier": "lgpl-2.1-plus_2.RULE", + "license_choice": false, + "licenses": [ + "lgpl-2.1-plus" + ] + } + } + ], + "copyrights": [ + { + "statements": [ + "Copyright (c) 1991, 1999 Free Software Foundation, Inc." + ], + "holders": [ + "Free Software Foundation, Inc." + ], + "authors": [], + "start_line": 4, + "end_line": 7 + }, + { + "statements": [ + "copyrighted by the Free Software Foundation" + ], + "holders": [ + "the Free Software Foundation" + ], + "authors": [], + "start_line": 427, + "end_line": 433 + }, + { + "statements": [], + "holders": [], + "authors": [ + "James Random Hacker." + ], + "start_line": 496, + "end_line": 497 + } + ], + "packages": [], + "files_count": 0, + "dirs_count": 0, + "size_count": 0, "scan_errors": [] }, { - "path": "samples/zlib/zutil.c", - "type": "file", - "name": "zutil.c", - "base_name": "zutil", - "extension": ".c", - "date": "2017-10-19", - "size": 7414, - "sha1": "e1af709bff21ae0d4331119a7fc4c19f82932043", - "md5": "fff257bc1656eb60fc585a7dc35f963d", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text", - "programming_language": "C", + "path": "samples/JGroups/licenses", + "type": "directory", + "name": "licenses", + "base_name": "licenses", + "extension": "", + "size": 0, + "date": null, + "sha1": null, + "md5": null, + "mime_type": null, + "file_type": null, + "programming_language": null, "is_binary": false, - "is_text": true, + "is_text": false, "is_archive": false, "is_media": false, - "is_source": true, + "is_source": false, "is_script": false, + "licenses": [], + "copyrights": [], + "packages": [], + "files_count": 5, + "dirs_count": 0, + "size_count": 54552, "scan_errors": [] }, { - "path": "samples/zlib/adler32.c", + "path": "samples/JGroups/licenses/apache-1.1.txt", "type": "file", - "name": "adler32.c", - "base_name": "adler32", - "extension": ".c", - "date": "2017-10-19", - "size": 4968, - "sha1": "0cff4808476ce0b5f6f0ebbc69ee2ab2a0eebe43", - "md5": "ae3bbb54820e1d49fb90cbba222e973f", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text", - "programming_language": "C", + "name": "apache-1.1.txt", + "base_name": "apache-1.1", + "extension": ".txt", + "size": 2885, + "date": "2018-02-09", + "sha1": "6b5608d35c3e304532af43db8bbfc5947bef46a6", + "md5": "276982197c941f4cbf3d218546e17ae2", + "mime_type": "text/plain", + "file_type": "ASCII text, with CRLF line terminators", + "programming_language": null, "is_binary": false, "is_text": true, "is_archive": false, "is_media": false, - "is_source": true, + "is_source": false, "is_script": false, + "licenses": [ + { + "key": "apache-1.1", + "score": 100.0, + "short_name": "Apache 1.1", + "category": "Permissive", + "owner": "Apache Software Foundation", + "homepage_url": "http://www.apache.org/licenses/", + "text_url": "http://apache.org/licenses/LICENSE-1.1", + "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:apache-1.1", + "spdx_license_key": "Apache-1.1", + "spdx_url": "https://spdx.org/licenses/Apache-1.1", + "start_line": 2, + "end_line": 56, + "matched_rule": { + "identifier": "apache-1.1.SPDX.RULE", + "license_choice": false, + "licenses": [ + "apache-1.1" + ] + } + } + ], + "copyrights": [ + { + "statements": [ + "Copyright (c) 2000 The Apache Software Foundation." + ], + "holders": [ + "The Apache Software Foundation." + ], + "authors": [], + "start_line": 4, + "end_line": 5 + }, + { + "statements": [], + "holders": [], + "authors": [ + "the Apache Software Foundation" + ], + "start_line": 20, + "end_line": 23 + } + ], + "packages": [], + "files_count": 0, + "dirs_count": 0, + "size_count": 0, "scan_errors": [] }, { - "path": "samples/zlib/zutil.h", + "path": "samples/JGroups/licenses/apache-2.0.txt", "type": "file", - "name": "zutil.h", - "base_name": "zutil", - "extension": ".h", - "date": "2017-10-19", - "size": 6766, - "sha1": "b909d27ef9ce51639f76b7ea6b62721e7d1b6bf7", - "md5": "04fcfbb961591c9452c4d0fd1525ffdf", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text", - "programming_language": "C", + "name": "apache-2.0.txt", + "base_name": "apache-2.0", + "extension": ".txt", + "size": 11560, + "date": "2018-02-09", + "sha1": "47b573e3824cd5e02a1a3ae99e2735b49e0256e4", + "md5": "d273d63619c9aeaf15cdaf76422c4f87", + "mime_type": "text/plain", + "file_type": "ASCII text, with CRLF line terminators", + "programming_language": null, "is_binary": false, "is_text": true, "is_archive": false, "is_media": false, - "is_source": true, + "is_source": false, "is_script": false, + "licenses": [ + { + "key": "apache-2.0", + "score": 100.0, + "short_name": "Apache 2.0", + "category": "Permissive", + "owner": "Apache Software Foundation", + "homepage_url": "http://www.apache.org/licenses/", + "text_url": "http://www.apache.org/licenses/LICENSE-2.0", + "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:apache-2.0", + "spdx_license_key": "Apache-2.0", + "spdx_url": "https://spdx.org/licenses/Apache-2.0", + "start_line": 2, + "end_line": 202, + "matched_rule": { + "identifier": "apache-2.0_easyeclipse.RULE", + "license_choice": false, + "licenses": [ + "apache-2.0" + ] + } + } + ], + "copyrights": [], + "packages": [], + "files_count": 0, + "dirs_count": 0, + "size_count": 0, "scan_errors": [] }, { - "path": "samples/zlib/deflate.h", + "path": "samples/JGroups/licenses/bouncycastle.txt", "type": "file", - "name": "deflate.h", - "base_name": "deflate", - "extension": ".h", - "date": "2017-10-19", - "size": 12774, - "sha1": "29ed3b8ca3927576e5889dea5880ca0052942c7d", - "md5": "7ceae74a13201f14c91623116af169c3", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text", - "programming_language": "C", + "name": "bouncycastle.txt", + "base_name": "bouncycastle", + "extension": ".txt", + "size": 1186, + "date": "2018-02-09", + "sha1": "74facb0e9a734479f9cd893b5be3fe1bf651b760", + "md5": "9fffd8de865a5705969f62b128381f85", + "mime_type": "text/plain", + "file_type": "ASCII text", + "programming_language": null, "is_binary": false, "is_text": true, "is_archive": false, "is_media": false, - "is_source": true, + "is_source": false, "is_script": false, + "licenses": [ + { + "key": "mit", + "score": 100.0, + "short_name": "MIT License", + "category": "Permissive", + "owner": "MIT", + "homepage_url": "http://opensource.org/licenses/mit-license.php", + "text_url": "http://opensource.org/licenses/mit-license.php", + "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:mit", + "spdx_license_key": "MIT", + "spdx_url": "https://spdx.org/licenses/MIT", + "start_line": 7, + "end_line": 18, + "matched_rule": { + "identifier": "mit.LICENSE", + "license_choice": false, + "licenses": [ + "mit" + ] + } + } + ], + "copyrights": [ + { + "statements": [ + "Copyright (c) 2000 - 2006 The Legion Of The Bouncy Castle (http://www.bouncycastle.org)" + ], + "holders": [ + "Legion Of The Bouncy Castle (http://www.bouncycastle.org)" + ], + "authors": [], + "start_line": 5, + "end_line": 5 + } + ], + "packages": [], + "files_count": 0, + "dirs_count": 0, + "size_count": 0, "scan_errors": [] }, { - "path": "samples/zlib/infback9", - "type": "directory", - "name": "infback9", - "base_name": "infback9", - "extension": "", - "date": null, - "size": 23223, - "sha1": null, - "md5": null, - "files_count": 2, - "mime_type": null, - "file_type": null, + "path": "samples/JGroups/licenses/cpl-1.0.txt", + "type": "file", + "name": "cpl-1.0.txt", + "base_name": "cpl-1.0", + "extension": ".txt", + "size": 11987, + "date": "2018-02-09", + "sha1": "681cf776bcd79752543d42490ec7ed22a29fd888", + "md5": "9a6d2c9ae73d59eb3dd38e3909750d14", + "mime_type": "text/plain", + "file_type": "ASCII text, with CRLF line terminators", "programming_language": null, "is_binary": false, - "is_text": false, + "is_text": true, "is_archive": false, "is_media": false, "is_source": false, "is_script": false, + "licenses": [ + { + "key": "cpl-1.0", + "score": 99.94, + "short_name": "CPL 1.0", + "category": "Copyleft Limited", + "owner": "IBM", + "homepage_url": "http://www.eclipse.org/legal/cpl-v10.html", + "text_url": "http://www.eclipse.org/legal/cpl-v10.html", + "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:cpl-1.0", + "spdx_license_key": "CPL-1.0", + "spdx_url": "https://spdx.org/licenses/CPL-1.0", + "start_line": 1, + "end_line": 212, + "matched_rule": { + "identifier": "cpl-1.0.SPDX.RULE", + "license_choice": false, + "licenses": [ + "cpl-1.0" + ] + } + } + ], + "copyrights": [], + "packages": [], + "files_count": 0, + "dirs_count": 0, + "size_count": 0, "scan_errors": [] }, { - "path": "samples/zlib/ada", - "type": "directory", - "name": "ada", - "base_name": "ada", - "extension": "", - "date": null, - "size": 13594, - "sha1": null, - "md5": null, - "files_count": 1, - "mime_type": null, - "file_type": null, + "path": "samples/JGroups/licenses/lgpl.txt", + "type": "file", + "name": "lgpl.txt", + "base_name": "lgpl", + "extension": ".txt", + "size": 26934, + "date": "2018-02-09", + "sha1": "8f1a637d2e2ed1bdb9eb01a7dccb5c12cc0557e1", + "md5": "f14599a2f089f6ff8c97e2baa4e3d575", + "mime_type": "text/plain", + "file_type": "ASCII text, with CRLF line terminators", "programming_language": null, "is_binary": false, - "is_text": false, + "is_text": true, "is_archive": false, "is_media": false, "is_source": false, "is_script": false, + "licenses": [ + { + "key": "lgpl-2.1-plus", + "score": 100.0, + "short_name": "LGPL 2.1 or later", + "category": "Copyleft Limited", + "owner": "Free Software Foundation (FSF)", + "homepage_url": "http://www.gnu.org/licenses/old-licenses/lgpl-2.1-standalone.html", + "text_url": "http://www.gnu.org/licenses/old-licenses/lgpl-2.1-standalone.html", + "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:lgpl-2.1-plus", + "spdx_license_key": "LGPL-2.1+", + "spdx_url": "https://spdx.org/licenses/LGPL-2.1", + "start_line": 1, + "end_line": 502, + "matched_rule": { + "identifier": "lgpl-2.1-plus_2.RULE", + "license_choice": false, + "licenses": [ + "lgpl-2.1-plus" + ] + } + } + ], + "copyrights": [ + { + "statements": [ + "Copyright (c) 1991, 1999 Free Software Foundation, Inc." + ], + "holders": [ + "Free Software Foundation, Inc." + ], + "authors": [], + "start_line": 4, + "end_line": 7 + }, + { + "statements": [ + "copyrighted by the Free Software Foundation" + ], + "holders": [ + "the Free Software Foundation" + ], + "authors": [], + "start_line": 427, + "end_line": 433 + }, + { + "statements": [], + "holders": [], + "authors": [ + "James Random Hacker." + ], + "start_line": 496, + "end_line": 497 + } + ], + "packages": [], + "files_count": 0, + "dirs_count": 0, + "size_count": 0, "scan_errors": [] }, { - "path": "samples/zlib/gcc_gvmat64", + "path": "samples/JGroups/src", "type": "directory", - "name": "gcc_gvmat64", - "base_name": "gcc_gvmat64", + "name": "src", + "base_name": "src", "extension": "", + "size": 0, "date": null, - "size": 16413, "sha1": null, "md5": null, - "files_count": 1, "mime_type": null, "file_type": null, "programming_language": null, @@ -314,241 +717,549 @@ "is_media": false, "is_source": false, "is_script": false, + "licenses": [], + "copyrights": [], + "packages": [], + "files_count": 7, + "dirs_count": 0, + "size_count": 152090, "scan_errors": [] }, { - "path": "samples/zlib/dotzlib", - "type": "directory", - "name": "dotzlib", - "base_name": "dotzlib", - "extension": "", - "date": null, - "size": 14257, - "sha1": null, - "md5": null, - "files_count": 4, - "mime_type": null, - "file_type": null, - "programming_language": null, - "is_binary": false, - "is_text": false, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/zlib/iostream2", - "type": "directory", - "name": "iostream2", - "base_name": "iostream2", - "extension": "", - "date": null, - "size": 9994, - "sha1": null, - "md5": null, - "files_count": 2, - "mime_type": null, - "file_type": null, - "programming_language": null, + "path": "samples/JGroups/src/FixedMembershipToken.java", + "type": "file", + "name": "FixedMembershipToken.java", + "base_name": "FixedMembershipToken", + "extension": ".java", + "size": 5144, + "date": "2018-02-09", + "sha1": "5901f73dcc78155a1a2c7b5663a3a11fba400b19", + "md5": "aca9640ec8beee21b098bcf8ecc91442", + "mime_type": "text/plain", + "file_type": "ASCII text", + "programming_language": "Java", "is_binary": false, - "is_text": false, + "is_text": true, "is_archive": false, "is_media": false, - "is_source": false, + "is_source": true, "is_script": false, + "licenses": [ + { + "key": "lgpl-2.1-plus", + "score": 100.0, + "short_name": "LGPL 2.1 or later", + "category": "Copyleft Limited", + "owner": "Free Software Foundation (FSF)", + "homepage_url": "http://www.gnu.org/licenses/old-licenses/lgpl-2.1-standalone.html", + "text_url": "http://www.gnu.org/licenses/old-licenses/lgpl-2.1-standalone.html", + "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:lgpl-2.1-plus", + "spdx_license_key": "LGPL-2.1+", + "spdx_url": "https://spdx.org/licenses/LGPL-2.1", + "start_line": 7, + "end_line": 20, + "matched_rule": { + "identifier": "lgpl-2.1-plus_59.RULE", + "license_choice": false, + "licenses": [ + "lgpl-2.1-plus" + ] + } + } + ], + "copyrights": [ + { + "statements": [ + "Copyright 2005, JBoss Inc." + ], + "holders": [ + "JBoss Inc." + ], + "authors": [], + "start_line": 2, + "end_line": 5 + }, + { + "statements": [], + "holders": [], + "authors": [ + "Chris Mills (millsy@jboss.com)" + ], + "start_line": 51, + "end_line": 51 + } + ], + "packages": [], + "files_count": 0, + "dirs_count": 0, + "size_count": 0, "scan_errors": [] }, { - "path": "samples/zlib/infback9/infback9.c", + "path": "samples/JGroups/src/GuardedBy.java", "type": "file", - "name": "infback9.c", - "base_name": "infback9", - "extension": ".c", - "date": "2017-10-19", - "size": 21629, - "sha1": "17fb362c03755b12f2dda5b12a68cf38162674bd", - "md5": "23ff5edec0817da303cb1294c1e4205c", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text", - "programming_language": "C", + "name": "GuardedBy.java", + "base_name": "GuardedBy", + "extension": ".java", + "size": 813, + "date": "2018-02-09", + "sha1": "981d67087e65e9a44957c026d4b10817cf77d966", + "md5": "c5064400f759d3e81771005051d17dc1", + "mime_type": "text/plain", + "file_type": "ASCII text", + "programming_language": "Java", "is_binary": false, "is_text": true, "is_archive": false, "is_media": false, "is_source": true, "is_script": false, + "licenses": [ + { + "key": "cc-by-2.5", + "score": 70.0, + "short_name": "CC-BY-2.5", + "category": "Permissive", + "owner": "Creative Commons", + "homepage_url": "http://creativecommons.org/licenses/by/2.5/", + "text_url": "http://creativecommons.org/licenses/by/2.5/legalcode", + "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:cc-by-2.5", + "spdx_license_key": "CC-BY-2.5", + "spdx_url": "https://spdx.org/licenses/CC-BY-2.5", + "start_line": 10, + "end_line": 11, + "matched_rule": { + "identifier": "cc-by-2.5_4.RULE", + "license_choice": false, + "licenses": [ + "cc-by-2.5" + ] + } + } + ], + "copyrights": [ + { + "statements": [ + "Copyright (c) 2005 Brian Goetz and Tim Peierls" + ], + "holders": [ + "Brian Goetz and Tim Peierls" + ], + "authors": [], + "start_line": 9, + "end_line": 12 + }, + { + "statements": [], + "holders": [], + "authors": [ + "Bela Ban" + ], + "start_line": 14, + "end_line": 17 + } + ], + "packages": [], + "files_count": 0, + "dirs_count": 0, + "size_count": 0, "scan_errors": [] }, { - "path": "samples/zlib/infback9/infback9.h", + "path": "samples/JGroups/src/ImmutableReference.java", "type": "file", - "name": "infback9.h", - "base_name": "infback9", - "extension": ".h", - "date": "2017-10-19", - "size": 1594, - "sha1": "d0486a32b558dcaceded5f0746fad62e680a4734", - "md5": "52b1ed99960d3ed7ed60cd20295e64a8", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text", - "programming_language": "C", + "name": "ImmutableReference.java", + "base_name": "ImmutableReference", + "extension": ".java", + "size": 1838, + "date": "2018-02-09", + "sha1": "30f56b876d5576d9869e2c5c509b08db57110592", + "md5": "48ca3c72fb9a65c771a321222f118b88", + "mime_type": "text/plain", + "file_type": "ASCII text", + "programming_language": "Java", "is_binary": false, "is_text": true, "is_archive": false, "is_media": false, "is_source": true, "is_script": false, + "licenses": [ + { + "key": "lgpl-2.1-plus", + "score": 100.0, + "short_name": "LGPL 2.1 or later", + "category": "Copyleft Limited", + "owner": "Free Software Foundation (FSF)", + "homepage_url": "http://www.gnu.org/licenses/old-licenses/lgpl-2.1-standalone.html", + "text_url": "http://www.gnu.org/licenses/old-licenses/lgpl-2.1-standalone.html", + "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:lgpl-2.1-plus", + "spdx_license_key": "LGPL-2.1+", + "spdx_url": "https://spdx.org/licenses/LGPL-2.1", + "start_line": 7, + "end_line": 20, + "matched_rule": { + "identifier": "lgpl-2.1-plus_59.RULE", + "license_choice": false, + "licenses": [ + "lgpl-2.1-plus" + ] + } + } + ], + "copyrights": [ + { + "statements": [ + "Copyright 2010, Red Hat, Inc." + ], + "holders": [ + "Red Hat, Inc." + ], + "authors": [], + "start_line": 2, + "end_line": 5 + }, + { + "statements": [], + "holders": [], + "authors": [ + "Brian Stansberry" + ], + "start_line": 29, + "end_line": 29 + } + ], + "packages": [], + "files_count": 0, + "dirs_count": 0, + "size_count": 0, "scan_errors": [] }, { - "path": "samples/zlib/ada/zlib.ads", + "path": "samples/JGroups/src/RATE_LIMITER.java", "type": "file", - "name": "zlib.ads", - "base_name": "zlib", - "extension": ".ads", - "date": "2017-10-19", - "size": 13594, - "sha1": "0245a91806d804bf9f0907a3a001a141e9adb61b", - "md5": "71de2670f2e588b51c62e7f6a9046399", - "files_count": null, + "name": "RATE_LIMITER.java", + "base_name": "RATE_LIMITER", + "extension": ".java", + "size": 3692, + "date": "2018-02-09", + "sha1": "a8087e5d50da3273536ebda9b87b77aa4ff55deb", + "md5": "4626bdbc48871b55513e1a12991c61a8", "mime_type": "text/plain", "file_type": "ASCII text", - "programming_language": "Ada", + "programming_language": "Java", "is_binary": false, "is_text": true, "is_archive": false, "is_media": false, "is_source": true, "is_script": false, + "licenses": [], + "copyrights": [ + { + "statements": [], + "holders": [], + "authors": [ + "Bela Ban" + ], + "start_line": 14, + "end_line": 17 + } + ], + "packages": [], + "files_count": 0, + "dirs_count": 0, + "size_count": 0, "scan_errors": [] }, { - "path": "samples/zlib/gcc_gvmat64/gvmat64.S", + "path": "samples/JGroups/src/RouterStub.java", "type": "file", - "name": "gvmat64.S", - "base_name": "gvmat64", - "extension": ".S", - "date": "2017-10-19", - "size": 16413, - "sha1": "742603cba1af98a1432cc02efb019b1a5760adf2", - "md5": "5e772d7302475e5473d0c4c57b9861e8", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text, with CRLF line terminators", - "programming_language": "GAS", + "name": "RouterStub.java", + "base_name": "RouterStub", + "extension": ".java", + "size": 9913, + "date": "2018-02-09", + "sha1": "c1f6818f8ee7bddcc9f444bc94c099729d716d52", + "md5": "eecfe23494acbcd8088c93bc1e83c7f2", + "mime_type": "text/plain", + "file_type": "ASCII text", + "programming_language": "Java", "is_binary": false, "is_text": true, "is_archive": false, "is_media": false, "is_source": true, "is_script": false, + "licenses": [], + "copyrights": [ + { + "statements": [], + "holders": [], + "authors": [ + "Bela Ban" + ], + "start_line": 22, + "end_line": 24 + } + ], + "packages": [], + "files_count": 0, + "dirs_count": 0, + "size_count": 0, "scan_errors": [] }, { - "path": "samples/zlib/dotzlib/readme.txt", + "path": "samples/JGroups/src/RouterStubManager.java", "type": "file", - "name": "readme.txt", - "base_name": "readme", - "extension": ".txt", - "date": "2017-10-19", - "size": 2358, - "sha1": "b1229b826f0096808628474538cea8fec2922a9b", - "md5": "1f20f3168ee63d90de033edac2ce383c", - "files_count": null, + "name": "RouterStubManager.java", + "base_name": "RouterStubManager", + "extension": ".java", + "size": 8162, + "date": "2018-02-09", + "sha1": "eb419dc94cfe11ca318a3e743a7f9f080e70c751", + "md5": "20bee9631b7c82a45c250e095352aec7", "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", - "programming_language": null, + "file_type": "ASCII text", + "programming_language": "Java", "is_binary": false, "is_text": true, "is_archive": false, "is_media": false, - "is_source": false, + "is_source": true, "is_script": false, + "licenses": [ + { + "key": "lgpl-2.1-plus", + "score": 100.0, + "short_name": "LGPL 2.1 or later", + "category": "Copyleft Limited", + "owner": "Free Software Foundation (FSF)", + "homepage_url": "http://www.gnu.org/licenses/old-licenses/lgpl-2.1-standalone.html", + "text_url": "http://www.gnu.org/licenses/old-licenses/lgpl-2.1-standalone.html", + "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:lgpl-2.1-plus", + "spdx_license_key": "LGPL-2.1+", + "spdx_url": "https://spdx.org/licenses/LGPL-2.1", + "start_line": 7, + "end_line": 20, + "matched_rule": { + "identifier": "lgpl-2.1-plus_59.RULE", + "license_choice": false, + "licenses": [ + "lgpl-2.1-plus" + ] + } + } + ], + "copyrights": [ + { + "statements": [ + "Copyright 2009, Red Hat Middleware LLC" + ], + "holders": [ + "Red Hat Middleware LLC" + ], + "authors": [], + "start_line": 2, + "end_line": 5 + } + ], + "packages": [], + "files_count": 0, + "dirs_count": 0, + "size_count": 0, "scan_errors": [] }, { - "path": "samples/zlib/dotzlib/AssemblyInfo.cs", + "path": "samples/JGroups/src/S3_PING.java", "type": "file", - "name": "AssemblyInfo.cs", - "base_name": "AssemblyInfo", - "extension": ".cs", - "date": "2017-10-19", - "size": 2500, - "sha1": "9f1db1177b2e9a014f72bb3cd80be17133e06d16", - "md5": "23d0d7c18846fc31655b6aa89b7c8038", - "files_count": null, + "name": "S3_PING.java", + "base_name": "S3_PING", + "extension": ".java", + "size": 122528, + "date": "2018-02-09", + "sha1": "08dba9986f69719970ead3592dc565465164df0d", + "md5": "83d8324f37d0e3f120bc89865cf0bd39", "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", - "programming_language": "C#", + "file_type": "ASCII text", + "programming_language": "Java", "is_binary": false, "is_text": true, "is_archive": false, "is_media": false, "is_source": true, "is_script": false, + "licenses": [ + { + "key": "public-domain", + "score": 10.0, + "short_name": "Public Domain", + "category": "Public Domain", + "owner": "Unspecified", + "homepage_url": "http://www.linfo.org/publicdomain.html", + "text_url": "", + "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:public-domain", + "spdx_license_key": "", + "spdx_url": "", + "start_line": 1649, + "end_line": 1649, + "matched_rule": { + "identifier": "public-domain.LICENSE", + "license_choice": false, + "licenses": [ + "public-domain" + ] + } + }, + { + "key": "public-domain", + "score": 10.0, + "short_name": "Public Domain", + "category": "Public Domain", + "owner": "Unspecified", + "homepage_url": "http://www.linfo.org/publicdomain.html", + "text_url": "", + "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:public-domain", + "spdx_license_key": "", + "spdx_url": "", + "start_line": 1692, + "end_line": 1692, + "matched_rule": { + "identifier": "public-domain.LICENSE", + "license_choice": false, + "licenses": [ + "public-domain" + ] + } + } + ], + "copyrights": [ + { + "statements": [], + "holders": [], + "authors": [ + "Bela Ban" + ], + "start_line": 35, + "end_line": 38 + }, + { + "statements": [], + "holders": [], + "authors": [ + "Robert Harder", + "rob@iharder.net" + ], + "start_line": 1697, + "end_line": 1700 + } + ], + "packages": [], + "files_count": 0, + "dirs_count": 0, + "size_count": 0, "scan_errors": [] }, { - "path": "samples/zlib/dotzlib/LICENSE_1_0.txt", - "type": "file", - "name": "LICENSE_1_0.txt", - "base_name": "LICENSE_1_0", - "extension": ".txt", - "date": "2017-10-19", - "size": 1359, - "sha1": "892b34f7865d90a6f949f50d95e49625a10bc7f0", - "md5": "81543b22c36f10d20ac9712f8d80ef8d", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", + "path": "samples/zlib", + "type": "directory", + "name": "zlib", + "base_name": "zlib", + "extension": "", + "size": 0, + "date": null, + "sha1": null, + "md5": null, + "mime_type": null, + "file_type": null, "programming_language": null, "is_binary": false, - "is_text": true, + "is_text": false, "is_archive": false, "is_media": false, "is_source": false, "is_script": false, + "licenses": [], + "copyrights": [], + "packages": [], + "files_count": 16, + "dirs_count": 5, + "size_count": 268762, "scan_errors": [] }, { - "path": "samples/zlib/dotzlib/ChecksumImpl.cs", + "path": "samples/zlib/adler32.c", "type": "file", - "name": "ChecksumImpl.cs", - "base_name": "ChecksumImpl", - "extension": ".cs", - "date": "2017-10-19", - "size": 8040, - "sha1": "3807a0e24a57b92ea301559cab7307b8eab52c51", - "md5": "d01b3cb2e75da9b15f05b92b42f6bd33", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ISO-8859 text, with CRLF line terminators", - "programming_language": "C#", + "name": "adler32.c", + "base_name": "adler32", + "extension": ".c", + "size": 4968, + "date": "2018-02-09", + "sha1": "0cff4808476ce0b5f6f0ebbc69ee2ab2a0eebe43", + "md5": "ae3bbb54820e1d49fb90cbba222e973f", + "mime_type": "text/x-c", + "file_type": "C source, ASCII text", + "programming_language": "C", "is_binary": false, "is_text": true, "is_archive": false, "is_media": false, "is_source": true, "is_script": false, + "licenses": [ + { + "key": "zlib", + "score": 60.0, + "short_name": "ZLIB License", + "category": "Permissive", + "owner": "zlib", + "homepage_url": "http://www.zlib.net/", + "text_url": "http://www.gzip.org/zlib/zlib_license.html", + "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:zlib", + "spdx_license_key": "Zlib", + "spdx_url": "https://spdx.org/licenses/Zlib", + "start_line": 3, + "end_line": 3, + "matched_rule": { + "identifier": "zlib_5.RULE", + "license_choice": false, + "licenses": [ + "zlib" + ] + } + } + ], + "copyrights": [ + { + "statements": [ + "Copyright (c) 1995-2011 Mark Adler" + ], + "holders": [ + "Mark Adler" + ], + "authors": [], + "start_line": 1, + "end_line": 3 + } + ], + "packages": [], + "files_count": 0, + "dirs_count": 0, + "size_count": 0, "scan_errors": [] }, { - "path": "samples/zlib/iostream2/zstream.h", + "path": "samples/zlib/deflate.c", "type": "file", - "name": "zstream.h", - "base_name": "zstream", - "extension": ".h", - "date": "2017-10-19", - "size": 9283, - "sha1": "fca4540d490fff36bb90fd801cf9cd8fc695bb17", - "md5": "a980b61c1e8be68d5cdb1236ba6b43e7", - "files_count": null, - "mime_type": "text/x-c++", - "file_type": "C++ source, ASCII text", + "name": "deflate.c", + "base_name": "deflate", + "extension": ".c", + "size": 71476, + "date": "2018-02-09", + "sha1": "7b4ace6d698c5dbbfb9a8f047f63228ca54d2e77", + "md5": "cd7826278ce9d9d9ed5abdefef50c3e2", + "mime_type": "text/x-c", + "file_type": "C source, ASCII text", "programming_language": "C", "is_binary": false, "is_text": true, @@ -556,85 +1267,343 @@ "is_media": false, "is_source": true, "is_script": false, + "licenses": [ + { + "key": "zlib", + "score": 60.0, + "short_name": "ZLIB License", + "category": "Permissive", + "owner": "zlib", + "homepage_url": "http://www.zlib.net/", + "text_url": "http://www.gzip.org/zlib/zlib_license.html", + "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:zlib", + "spdx_license_key": "Zlib", + "spdx_url": "https://spdx.org/licenses/Zlib", + "start_line": 3, + "end_line": 3, + "matched_rule": { + "identifier": "zlib_5.RULE", + "license_choice": false, + "licenses": [ + "zlib" + ] + } + } + ], + "copyrights": [ + { + "statements": [ + "Copyright (c) 1995-2013 Jean-loup Gailly and Mark Adler" + ], + "holders": [ + "Jean-loup Gailly and Mark Adler" + ], + "authors": [], + "start_line": 1, + "end_line": 3 + }, + { + "statements": [], + "holders": [], + "authors": [ + "Leonid Broukhis. Thanks" + ], + "start_line": 33, + "end_line": 35 + }, + { + "statements": [ + "Copyright 1995-2013 Jean-loup Gailly and Mark Adler" + ], + "holders": [ + "Jean-loup Gailly and Mark Adler" + ], + "authors": [], + "start_line": 54, + "end_line": 55 + } + ], + "packages": [], + "files_count": 0, + "dirs_count": 0, + "size_count": 0, "scan_errors": [] }, { - "path": "samples/zlib/iostream2/zstream_test.cpp", + "path": "samples/zlib/deflate.h", "type": "file", - "name": "zstream_test.cpp", - "base_name": "zstream_test", - "extension": ".cpp", - "date": "2017-10-19", - "size": 711, - "sha1": "e18a6d55cbbd8b832f8d795530553467e5c74fcf", - "md5": "d32476bde4e6d5f889092fdff6f8cdb0", - "files_count": null, + "name": "deflate.h", + "base_name": "deflate", + "extension": ".h", + "size": 12774, + "date": "2018-02-09", + "sha1": "29ed3b8ca3927576e5889dea5880ca0052942c7d", + "md5": "7ceae74a13201f14c91623116af169c3", "mime_type": "text/x-c", "file_type": "C source, ASCII text", - "programming_language": "C++", + "programming_language": "C", "is_binary": false, "is_text": true, "is_archive": false, "is_media": false, "is_source": true, "is_script": false, + "licenses": [ + { + "key": "zlib", + "score": 60.0, + "short_name": "ZLIB License", + "category": "Permissive", + "owner": "zlib", + "homepage_url": "http://www.zlib.net/", + "text_url": "http://www.gzip.org/zlib/zlib_license.html", + "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:zlib", + "spdx_license_key": "Zlib", + "spdx_url": "https://spdx.org/licenses/Zlib", + "start_line": 3, + "end_line": 3, + "matched_rule": { + "identifier": "zlib_5.RULE", + "license_choice": false, + "licenses": [ + "zlib" + ] + } + }, + { + "key": "zlib", + "score": 100.0, + "short_name": "ZLIB License", + "category": "Permissive", + "owner": "zlib", + "homepage_url": "http://www.zlib.net/", + "text_url": "http://www.gzip.org/zlib/zlib_license.html", + "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:zlib", + "spdx_license_key": "Zlib", + "spdx_url": "https://spdx.org/licenses/Zlib", + "start_line": 93, + "end_line": 94, + "matched_rule": { + "identifier": "zlib_21.RULE", + "license_choice": false, + "licenses": [ + "zlib" + ] + } + } + ], + "copyrights": [ + { + "statements": [ + "Copyright (c) 1995-2012 Jean-loup Gailly" + ], + "holders": [ + "Jean-loup Gailly" + ], + "authors": [], + "start_line": 1, + "end_line": 3 + } + ], + "packages": [], + "files_count": 0, + "dirs_count": 0, + "size_count": 0, "scan_errors": [] }, { - "path": "samples/JGroups/EULA", + "path": "samples/zlib/zlib.h", "type": "file", - "name": "EULA", - "base_name": "EULA", - "extension": "", - "date": "2017-10-19", - "size": 8156, - "sha1": "eb232aa0424eca9c4136904e6143b72aaa9cf4de", - "md5": "0be0aceb8296727efff0ac0bf8e6bdb3", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": "JavaScript+Lasso", + "name": "zlib.h", + "base_name": "zlib", + "extension": ".h", + "size": 87883, + "date": "2018-02-09", + "sha1": "400d35465f179a4acacb5fe749e6ce20a0bbdb84", + "md5": "64d8a5180bd54ff5452886e4cbb21e14", + "mime_type": "text/x-c", + "file_type": "C source, ASCII text", + "programming_language": "C", "is_binary": false, "is_text": true, "is_archive": false, "is_media": false, "is_source": true, "is_script": false, + "licenses": [ + { + "key": "zlib", + "score": 100.0, + "short_name": "ZLIB License", + "category": "Permissive", + "owner": "zlib", + "homepage_url": "http://www.zlib.net/", + "text_url": "http://www.gzip.org/zlib/zlib_license.html", + "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:zlib", + "spdx_license_key": "Zlib", + "spdx_url": "https://spdx.org/licenses/Zlib", + "start_line": 6, + "end_line": 23, + "matched_rule": { + "identifier": "zlib_17.RULE", + "license_choice": false, + "licenses": [ + "zlib" + ] + } + } + ], + "copyrights": [ + { + "statements": [ + "Copyright (c) 1995-2013 Jean-loup Gailly and Mark Adler" + ], + "holders": [ + "Jean-loup Gailly and Mark Adler" + ], + "authors": [], + "start_line": 4, + "end_line": 4 + } + ], + "packages": [], + "files_count": 0, + "dirs_count": 0, + "size_count": 0, "scan_errors": [] }, { - "path": "samples/JGroups/LICENSE", + "path": "samples/zlib/zutil.c", "type": "file", - "name": "LICENSE", - "base_name": "LICENSE", - "extension": "", - "date": "2017-10-19", - "size": 26430, - "sha1": "e60c2e780886f95df9c9ee36992b8edabec00bcc", - "md5": "7fbc338309ac38fefcd64b04bb903e34", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": null, + "name": "zutil.c", + "base_name": "zutil", + "extension": ".c", + "size": 7414, + "date": "2018-02-09", + "sha1": "e1af709bff21ae0d4331119a7fc4c19f82932043", + "md5": "fff257bc1656eb60fc585a7dc35f963d", + "mime_type": "text/x-c", + "file_type": "C source, ASCII text", + "programming_language": "C", "is_binary": false, "is_text": true, "is_archive": false, "is_media": false, - "is_source": false, + "is_source": true, "is_script": false, + "licenses": [ + { + "key": "zlib", + "score": 60.0, + "short_name": "ZLIB License", + "category": "Permissive", + "owner": "zlib", + "homepage_url": "http://www.zlib.net/", + "text_url": "http://www.gzip.org/zlib/zlib_license.html", + "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:zlib", + "spdx_license_key": "Zlib", + "spdx_url": "https://spdx.org/licenses/Zlib", + "start_line": 3, + "end_line": 3, + "matched_rule": { + "identifier": "zlib_5.RULE", + "license_choice": false, + "licenses": [ + "zlib" + ] + } + } + ], + "copyrights": [ + { + "statements": [ + "Copyright (c) 1995-2005, 2010, 2011, 2012 Jean-loup Gailly." + ], + "holders": [ + "Jean-loup Gailly." + ], + "authors": [], + "start_line": 1, + "end_line": 3 + } + ], + "packages": [], + "files_count": 0, + "dirs_count": 0, + "size_count": 0, "scan_errors": [] }, { - "path": "samples/JGroups/licenses", + "path": "samples/zlib/zutil.h", + "type": "file", + "name": "zutil.h", + "base_name": "zutil", + "extension": ".h", + "size": 6766, + "date": "2018-02-09", + "sha1": "b909d27ef9ce51639f76b7ea6b62721e7d1b6bf7", + "md5": "04fcfbb961591c9452c4d0fd1525ffdf", + "mime_type": "text/x-c", + "file_type": "C source, ASCII text", + "programming_language": "C", + "is_binary": false, + "is_text": true, + "is_archive": false, + "is_media": false, + "is_source": true, + "is_script": false, + "licenses": [ + { + "key": "zlib", + "score": 60.0, + "short_name": "ZLIB License", + "category": "Permissive", + "owner": "zlib", + "homepage_url": "http://www.zlib.net/", + "text_url": "http://www.gzip.org/zlib/zlib_license.html", + "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:zlib", + "spdx_license_key": "Zlib", + "spdx_url": "https://spdx.org/licenses/Zlib", + "start_line": 3, + "end_line": 3, + "matched_rule": { + "identifier": "zlib_5.RULE", + "license_choice": false, + "licenses": [ + "zlib" + ] + } + } + ], + "copyrights": [ + { + "statements": [ + "Copyright (c) 1995-2013 Jean-loup Gailly." + ], + "holders": [ + "Jean-loup Gailly." + ], + "authors": [], + "start_line": 1, + "end_line": 3 + } + ], + "packages": [], + "files_count": 0, + "dirs_count": 0, + "size_count": 0, + "scan_errors": [] + }, + { + "path": "samples/zlib/ada", "type": "directory", - "name": "licenses", - "base_name": "licenses", + "name": "ada", + "base_name": "ada", "extension": "", + "size": 0, "date": null, - "size": 54552, "sha1": null, "md5": null, - "files_count": 5, "mime_type": null, "file_type": null, "programming_language": null, @@ -644,19 +1613,85 @@ "is_media": false, "is_source": false, "is_script": false, + "licenses": [], + "copyrights": [], + "packages": [], + "files_count": 1, + "dirs_count": 0, + "size_count": 13594, "scan_errors": [] }, { - "path": "samples/JGroups/src", + "path": "samples/zlib/ada/zlib.ads", + "type": "file", + "name": "zlib.ads", + "base_name": "zlib", + "extension": ".ads", + "size": 13594, + "date": "2018-02-09", + "sha1": "0245a91806d804bf9f0907a3a001a141e9adb61b", + "md5": "71de2670f2e588b51c62e7f6a9046399", + "mime_type": "text/plain", + "file_type": "ASCII text", + "programming_language": "Ada", + "is_binary": false, + "is_text": true, + "is_archive": false, + "is_media": false, + "is_source": true, + "is_script": false, + "licenses": [ + { + "key": "gpl-2.0-plus-ada", + "score": 100.0, + "short_name": "GPL 2.0 or later with Ada exception", + "category": "Copyleft Limited", + "owner": "Dmitriy Anisimkov", + "homepage_url": "", + "text_url": "", + "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:gpl-2.0-plus-ada", + "spdx_license_key": "", + "spdx_url": "", + "start_line": 6, + "end_line": 25, + "matched_rule": { + "identifier": "gpl-2.0-plus-ada.LICENSE", + "license_choice": false, + "licenses": [ + "gpl-2.0-plus-ada" + ] + } + } + ], + "copyrights": [ + { + "statements": [ + "Copyright (c) 2002-2004 Dmitriy Anisimkov" + ], + "holders": [ + "Dmitriy Anisimkov" + ], + "authors": [], + "start_line": 4, + "end_line": 4 + } + ], + "packages": [], + "files_count": 0, + "dirs_count": 0, + "size_count": 0, + "scan_errors": [] + }, + { + "path": "samples/zlib/dotzlib", "type": "directory", - "name": "src", - "base_name": "src", + "name": "dotzlib", + "base_name": "dotzlib", "extension": "", + "size": 0, "date": null, - "size": 152090, "sha1": null, "md5": null, - "files_count": 7, "mime_type": null, "file_type": null, "programming_language": null, @@ -666,63 +1701,124 @@ "is_media": false, "is_source": false, "is_script": false, + "licenses": [], + "copyrights": [], + "packages": [], + "files_count": 4, + "dirs_count": 0, + "size_count": 14257, "scan_errors": [] }, { - "path": "samples/JGroups/licenses/apache-2.0.txt", + "path": "samples/zlib/dotzlib/AssemblyInfo.cs", "type": "file", - "name": "apache-2.0.txt", - "base_name": "apache-2.0", - "extension": ".txt", - "date": "2017-10-19", - "size": 11560, - "sha1": "47b573e3824cd5e02a1a3ae99e2735b49e0256e4", - "md5": "d273d63619c9aeaf15cdaf76422c4f87", - "files_count": null, + "name": "AssemblyInfo.cs", + "base_name": "AssemblyInfo", + "extension": ".cs", + "size": 2500, + "date": "2018-02-09", + "sha1": "9f1db1177b2e9a014f72bb3cd80be17133e06d16", + "md5": "23d0d7c18846fc31655b6aa89b7c8038", "mime_type": "text/plain", "file_type": "ASCII text, with CRLF line terminators", - "programming_language": null, + "programming_language": "C#", "is_binary": false, "is_text": true, "is_archive": false, "is_media": false, - "is_source": false, + "is_source": true, "is_script": false, + "licenses": [], + "copyrights": [ + { + "statements": [ + "(c) 2004 by Henrik Ravn" + ], + "holders": [ + "Henrik Ravn" + ], + "authors": [], + "start_line": 13, + "end_line": 16 + } + ], + "packages": [], + "files_count": 0, + "dirs_count": 0, + "size_count": 0, "scan_errors": [] }, { - "path": "samples/JGroups/licenses/bouncycastle.txt", + "path": "samples/zlib/dotzlib/ChecksumImpl.cs", "type": "file", - "name": "bouncycastle.txt", - "base_name": "bouncycastle", - "extension": ".txt", - "date": "2017-10-19", - "size": 1186, - "sha1": "74facb0e9a734479f9cd893b5be3fe1bf651b760", - "md5": "9fffd8de865a5705969f62b128381f85", - "files_count": null, + "name": "ChecksumImpl.cs", + "base_name": "ChecksumImpl", + "extension": ".cs", + "size": 8040, + "date": "2018-02-09", + "sha1": "3807a0e24a57b92ea301559cab7307b8eab52c51", + "md5": "d01b3cb2e75da9b15f05b92b42f6bd33", "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": null, + "file_type": "ISO-8859 text, with CRLF line terminators", + "programming_language": "C#", "is_binary": false, "is_text": true, "is_archive": false, "is_media": false, - "is_source": false, + "is_source": true, "is_script": false, + "licenses": [ + { + "key": "boost-1.0", + "score": 91.3, + "short_name": "Boost 1.0", + "category": "Permissive", + "owner": "Boost", + "homepage_url": "http://www.boost.org/users/license.html", + "text_url": "http://www.boost.org/LICENSE_1_0.txt", + "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:boost-1.0", + "spdx_license_key": "BSL-1.0", + "spdx_url": "https://spdx.org/licenses/BSL-1.0", + "start_line": 4, + "end_line": 5, + "matched_rule": { + "identifier": "boost-1.0_1.RULE", + "license_choice": false, + "licenses": [ + "boost-1.0" + ] + } + } + ], + "copyrights": [ + { + "statements": [ + "(c) Copyright Henrik Ravn 2004" + ], + "holders": [ + "Henrik Ravn" + ], + "authors": [], + "start_line": 2, + "end_line": 2 + } + ], + "packages": [], + "files_count": 0, + "dirs_count": 0, + "size_count": 0, "scan_errors": [] }, { - "path": "samples/JGroups/licenses/lgpl.txt", + "path": "samples/zlib/dotzlib/LICENSE_1_0.txt", "type": "file", - "name": "lgpl.txt", - "base_name": "lgpl", + "name": "LICENSE_1_0.txt", + "base_name": "LICENSE_1_0", "extension": ".txt", - "date": "2017-10-19", - "size": 26934, - "sha1": "8f1a637d2e2ed1bdb9eb01a7dccb5c12cc0557e1", - "md5": "f14599a2f089f6ff8c97e2baa4e3d575", - "files_count": null, + "size": 1359, + "date": "2018-02-09", + "sha1": "892b34f7865d90a6f949f50d95e49625a10bc7f0", + "md5": "81543b22c36f10d20ac9712f8d80ef8d", "mime_type": "text/plain", "file_type": "ASCII text, with CRLF line terminators", "programming_language": null, @@ -732,19 +1828,46 @@ "is_media": false, "is_source": false, "is_script": false, + "licenses": [ + { + "key": "boost-1.0", + "score": 100.0, + "short_name": "Boost 1.0", + "category": "Permissive", + "owner": "Boost", + "homepage_url": "http://www.boost.org/users/license.html", + "text_url": "http://www.boost.org/LICENSE_1_0.txt", + "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:boost-1.0", + "spdx_license_key": "BSL-1.0", + "spdx_url": "https://spdx.org/licenses/BSL-1.0", + "start_line": 1, + "end_line": 23, + "matched_rule": { + "identifier": "boost-1.0.LICENSE", + "license_choice": false, + "licenses": [ + "boost-1.0" + ] + } + } + ], + "copyrights": [], + "packages": [], + "files_count": 0, + "dirs_count": 0, + "size_count": 0, "scan_errors": [] }, { - "path": "samples/JGroups/licenses/cpl-1.0.txt", + "path": "samples/zlib/dotzlib/readme.txt", "type": "file", - "name": "cpl-1.0.txt", - "base_name": "cpl-1.0", + "name": "readme.txt", + "base_name": "readme", "extension": ".txt", - "date": "2017-10-19", - "size": 11987, - "sha1": "681cf776bcd79752543d42490ec7ed22a29fd888", - "md5": "9a6d2c9ae73d59eb3dd38e3909750d14", - "files_count": null, + "size": 2358, + "date": "2018-02-09", + "sha1": "b1229b826f0096808628474538cea8fec2922a9b", + "md5": "1f20f3168ee63d90de033edac2ce383c", "mime_type": "text/plain", "file_type": "ASCII text, with CRLF line terminators", "programming_language": null, @@ -754,204 +1877,408 @@ "is_media": false, "is_source": false, "is_script": false, + "licenses": [ + { + "key": "boost-1.0", + "score": 30.0, + "short_name": "Boost 1.0", + "category": "Permissive", + "owner": "Boost", + "homepage_url": "http://www.boost.org/users/license.html", + "text_url": "http://www.boost.org/LICENSE_1_0.txt", + "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:boost-1.0", + "spdx_license_key": "BSL-1.0", + "spdx_url": "https://spdx.org/licenses/BSL-1.0", + "start_line": 58, + "end_line": 58, + "matched_rule": { + "identifier": "boost-1.0.RULE", + "license_choice": false, + "licenses": [ + "boost-1.0" + ] + } + } + ], + "copyrights": [ + { + "statements": [ + "Copyright (c) Henrik Ravn 2004" + ], + "holders": [ + "Henrik Ravn" + ], + "authors": [], + "start_line": 55, + "end_line": 55 + } + ], + "packages": [], + "files_count": 0, + "dirs_count": 0, + "size_count": 0, "scan_errors": [] }, { - "path": "samples/JGroups/licenses/apache-1.1.txt", - "type": "file", - "name": "apache-1.1.txt", - "base_name": "apache-1.1", - "extension": ".txt", - "date": "2017-10-19", - "size": 2885, - "sha1": "6b5608d35c3e304532af43db8bbfc5947bef46a6", - "md5": "276982197c941f4cbf3d218546e17ae2", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", + "path": "samples/zlib/gcc_gvmat64", + "type": "directory", + "name": "gcc_gvmat64", + "base_name": "gcc_gvmat64", + "extension": "", + "size": 0, + "date": null, + "sha1": null, + "md5": null, + "mime_type": null, + "file_type": null, "programming_language": null, "is_binary": false, - "is_text": true, + "is_text": false, "is_archive": false, "is_media": false, "is_source": false, "is_script": false, + "licenses": [], + "copyrights": [], + "packages": [], + "files_count": 1, + "dirs_count": 0, + "size_count": 16413, "scan_errors": [] }, { - "path": "samples/JGroups/src/RATE_LIMITER.java", + "path": "samples/zlib/gcc_gvmat64/gvmat64.S", "type": "file", - "name": "RATE_LIMITER.java", - "base_name": "RATE_LIMITER", - "extension": ".java", - "date": "2017-10-19", - "size": 3692, - "sha1": "a8087e5d50da3273536ebda9b87b77aa4ff55deb", - "md5": "4626bdbc48871b55513e1a12991c61a8", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": "Java", + "name": "gvmat64.S", + "base_name": "gvmat64", + "extension": ".S", + "size": 16413, + "date": "2018-02-09", + "sha1": "742603cba1af98a1432cc02efb019b1a5760adf2", + "md5": "5e772d7302475e5473d0c4c57b9861e8", + "mime_type": "text/x-c", + "file_type": "C source, ASCII text, with CRLF line terminators", + "programming_language": "GAS", "is_binary": false, "is_text": true, "is_archive": false, "is_media": false, "is_source": true, "is_script": false, + "licenses": [ + { + "key": "zlib", + "score": 98.53, + "short_name": "ZLIB License", + "category": "Permissive", + "owner": "zlib", + "homepage_url": "http://www.zlib.net/", + "text_url": "http://www.gzip.org/zlib/zlib_license.html", + "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:zlib", + "spdx_license_key": "Zlib", + "spdx_url": "https://spdx.org/licenses/Zlib", + "start_line": 13, + "end_line": 31, + "matched_rule": { + "identifier": "zlib_4.RULE", + "license_choice": false, + "licenses": [ + "zlib" + ] + } + } + ], + "copyrights": [ + { + "statements": [ + "Copyright (c) 1995-2010 Jean-loup Gailly, Brian Raiter and Gilles Vollant." + ], + "holders": [ + "Jean-loup Gailly, Brian Raiter and Gilles Vollant." + ], + "authors": [], + "start_line": 9, + "end_line": 10 + }, + { + "statements": [], + "holders": [], + "authors": [ + "Gilles Vollant" + ], + "start_line": 12, + "end_line": 15 + } + ], + "packages": [], + "files_count": 0, + "dirs_count": 0, + "size_count": 0, "scan_errors": [] }, { - "path": "samples/JGroups/src/RouterStub.java", - "type": "file", - "name": "RouterStub.java", - "base_name": "RouterStub", - "extension": ".java", - "date": "2017-10-19", - "size": 9913, - "sha1": "c1f6818f8ee7bddcc9f444bc94c099729d716d52", - "md5": "eecfe23494acbcd8088c93bc1e83c7f2", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": "Java", + "path": "samples/zlib/infback9", + "type": "directory", + "name": "infback9", + "base_name": "infback9", + "extension": "", + "size": 0, + "date": null, + "sha1": null, + "md5": null, + "mime_type": null, + "file_type": null, + "programming_language": null, "is_binary": false, - "is_text": true, + "is_text": false, "is_archive": false, "is_media": false, - "is_source": true, + "is_source": false, "is_script": false, + "licenses": [], + "copyrights": [], + "packages": [], + "files_count": 2, + "dirs_count": 0, + "size_count": 23223, "scan_errors": [] }, { - "path": "samples/JGroups/src/ImmutableReference.java", + "path": "samples/zlib/infback9/infback9.c", "type": "file", - "name": "ImmutableReference.java", - "base_name": "ImmutableReference", - "extension": ".java", - "date": "2017-10-19", - "size": 1838, - "sha1": "30f56b876d5576d9869e2c5c509b08db57110592", - "md5": "48ca3c72fb9a65c771a321222f118b88", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": "Java", + "name": "infback9.c", + "base_name": "infback9", + "extension": ".c", + "size": 21629, + "date": "2018-02-09", + "sha1": "17fb362c03755b12f2dda5b12a68cf38162674bd", + "md5": "23ff5edec0817da303cb1294c1e4205c", + "mime_type": "text/x-c", + "file_type": "C source, ASCII text", + "programming_language": "C", "is_binary": false, "is_text": true, "is_archive": false, "is_media": false, "is_source": true, "is_script": false, + "licenses": [ + { + "key": "zlib", + "score": 60.0, + "short_name": "ZLIB License", + "category": "Permissive", + "owner": "zlib", + "homepage_url": "http://www.zlib.net/", + "text_url": "http://www.gzip.org/zlib/zlib_license.html", + "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:zlib", + "spdx_license_key": "Zlib", + "spdx_url": "https://spdx.org/licenses/Zlib", + "start_line": 3, + "end_line": 3, + "matched_rule": { + "identifier": "zlib_5.RULE", + "license_choice": false, + "licenses": [ + "zlib" + ] + } + } + ], + "copyrights": [ + { + "statements": [ + "Copyright (c) 1995-2008 Mark Adler" + ], + "holders": [ + "Mark Adler" + ], + "authors": [], + "start_line": 1, + "end_line": 3 + } + ], + "packages": [], + "files_count": 0, + "dirs_count": 0, + "size_count": 0, "scan_errors": [] }, { - "path": "samples/JGroups/src/FixedMembershipToken.java", + "path": "samples/zlib/infback9/infback9.h", "type": "file", - "name": "FixedMembershipToken.java", - "base_name": "FixedMembershipToken", - "extension": ".java", - "date": "2017-10-19", - "size": 5144, - "sha1": "5901f73dcc78155a1a2c7b5663a3a11fba400b19", - "md5": "aca9640ec8beee21b098bcf8ecc91442", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": "Java", + "name": "infback9.h", + "base_name": "infback9", + "extension": ".h", + "size": 1594, + "date": "2018-02-09", + "sha1": "d0486a32b558dcaceded5f0746fad62e680a4734", + "md5": "52b1ed99960d3ed7ed60cd20295e64a8", + "mime_type": "text/x-c", + "file_type": "C source, ASCII text", + "programming_language": "C", "is_binary": false, "is_text": true, "is_archive": false, "is_media": false, "is_source": true, "is_script": false, + "licenses": [ + { + "key": "zlib", + "score": 60.0, + "short_name": "ZLIB License", + "category": "Permissive", + "owner": "zlib", + "homepage_url": "http://www.zlib.net/", + "text_url": "http://www.gzip.org/zlib/zlib_license.html", + "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:zlib", + "spdx_license_key": "Zlib", + "spdx_url": "https://spdx.org/licenses/Zlib", + "start_line": 3, + "end_line": 3, + "matched_rule": { + "identifier": "zlib_5.RULE", + "license_choice": false, + "licenses": [ + "zlib" + ] + } + } + ], + "copyrights": [ + { + "statements": [ + "Copyright (c) 2003 Mark Adler" + ], + "holders": [ + "Mark Adler" + ], + "authors": [], + "start_line": 1, + "end_line": 3 + } + ], + "packages": [], + "files_count": 0, + "dirs_count": 0, + "size_count": 0, "scan_errors": [] }, { - "path": "samples/JGroups/src/RouterStubManager.java", - "type": "file", - "name": "RouterStubManager.java", - "base_name": "RouterStubManager", - "extension": ".java", - "date": "2017-10-19", - "size": 8162, - "sha1": "eb419dc94cfe11ca318a3e743a7f9f080e70c751", - "md5": "20bee9631b7c82a45c250e095352aec7", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": "Java", + "path": "samples/zlib/iostream2", + "type": "directory", + "name": "iostream2", + "base_name": "iostream2", + "extension": "", + "size": 0, + "date": null, + "sha1": null, + "md5": null, + "mime_type": null, + "file_type": null, + "programming_language": null, "is_binary": false, - "is_text": true, + "is_text": false, "is_archive": false, "is_media": false, - "is_source": true, + "is_source": false, "is_script": false, + "licenses": [], + "copyrights": [], + "packages": [], + "files_count": 2, + "dirs_count": 0, + "size_count": 9994, "scan_errors": [] }, { - "path": "samples/JGroups/src/S3_PING.java", + "path": "samples/zlib/iostream2/zstream.h", "type": "file", - "name": "S3_PING.java", - "base_name": "S3_PING", - "extension": ".java", - "date": "2017-10-19", - "size": 122528, - "sha1": "08dba9986f69719970ead3592dc565465164df0d", - "md5": "83d8324f37d0e3f120bc89865cf0bd39", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": "Java", + "name": "zstream.h", + "base_name": "zstream", + "extension": ".h", + "size": 9283, + "date": "2018-02-09", + "sha1": "fca4540d490fff36bb90fd801cf9cd8fc695bb17", + "md5": "a980b61c1e8be68d5cdb1236ba6b43e7", + "mime_type": "text/x-c++", + "file_type": "C++ source, ASCII text", + "programming_language": "C", "is_binary": false, "is_text": true, "is_archive": false, "is_media": false, "is_source": true, "is_script": false, + "licenses": [ + { + "key": "cmr-no", + "score": 100.0, + "short_name": "CMR License", + "category": "Permissive", + "owner": "CMR - Christian Michelsen Research AS", + "homepage_url": "", + "text_url": "", + "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:cmr-no", + "spdx_license_key": "", + "spdx_url": "", + "start_line": 3, + "end_line": 15, + "matched_rule": { + "identifier": "cmr-no.LICENSE", + "license_choice": false, + "licenses": [ + "cmr-no" + ] + } + } + ], + "copyrights": [ + { + "statements": [ + "Copyright (c) 1997 Christian Michelsen Research as Advanced Computing" + ], + "holders": [ + "Christian Michelsen Research", + "Advanced Computing" + ], + "authors": [], + "start_line": 3, + "end_line": 5 + } + ], + "packages": [], + "files_count": 0, + "dirs_count": 0, + "size_count": 0, "scan_errors": [] }, { - "path": "samples/JGroups/src/GuardedBy.java", + "path": "samples/zlib/iostream2/zstream_test.cpp", "type": "file", - "name": "GuardedBy.java", - "base_name": "GuardedBy", - "extension": ".java", - "date": "2017-10-19", - "size": 813, - "sha1": "981d67087e65e9a44957c026d4b10817cf77d966", - "md5": "c5064400f759d3e81771005051d17dc1", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": "Java", + "name": "zstream_test.cpp", + "base_name": "zstream_test", + "extension": ".cpp", + "size": 711, + "date": "2018-02-09", + "sha1": "e18a6d55cbbd8b832f8d795530553467e5c74fcf", + "md5": "d32476bde4e6d5f889092fdff6f8cdb0", + "mime_type": "text/x-c", + "file_type": "C source, ASCII text", + "programming_language": "C++", "is_binary": false, "is_text": true, "is_archive": false, "is_media": false, "is_source": true, "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/arch/zlib.tar.gz", - "type": "file", - "name": "zlib.tar.gz", - "base_name": "zlib", - "extension": ".tar.gz", - "date": "2017-10-19", - "size": 28103, - "sha1": "576f0ccfe534d7f5ff5d6400078d3c6586de3abd", - "md5": "20b2370751abfc08bb3556c1d8114b5a", - "files_count": null, - "mime_type": "application/x-gzip", - "file_type": "gzip compressed data, last modified: Wed Jul 15 02:08:19 2015, from Unix", - "programming_language": null, - "is_binary": true, - "is_text": false, - "is_archive": true, - "is_media": false, - "is_source": false, - "is_script": false, + "licenses": [], + "copyrights": [], + "packages": [], + "files_count": 0, + "dirs_count": 0, + "size_count": 0, "scan_errors": [] } ] diff --git a/tests/data/deltacode/scan_1_file_moved_new.json b/tests/data/deltacode/scan_1_file_moved_new.json index e049cb79..f54ad9db 100644 --- a/tests/data/deltacode/scan_1_file_moved_new.json +++ b/tests/data/deltacode/scan_1_file_moved_new.json @@ -9,7 +9,7 @@ "--license-score": 0, "--format": "json-pp" }, - "files_count": 10, + "files_count": 8, "files": [ { "path": "1_file_moved_new/a", diff --git a/tests/data/deltacode/scan_1_file_moved_old.json b/tests/data/deltacode/scan_1_file_moved_old.json index 251c4d27..0d9a81ed 100644 --- a/tests/data/deltacode/scan_1_file_moved_old.json +++ b/tests/data/deltacode/scan_1_file_moved_old.json @@ -9,7 +9,7 @@ "--license-score": 0, "--format": "json-pp" }, - "files_count": 10, + "files_count": 8, "files": [ { "path": "1_file_moved_old/a", diff --git a/tests/data/deltacode/to-dict-unmodified.json b/tests/data/deltacode/to-dict-unmodified.json deleted file mode 100644 index ecc77747..00000000 --- a/tests/data/deltacode/to-dict-unmodified.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "scancode_notice": "Generated with ScanCode and provided on an \"AS IS\" BASIS, WITHOUT WARRANTIES\nOR CONDITIONS OF ANY KIND, either express or implied. No content created from\nScanCode should be considered or used as legal advice. Consult an Attorney\nfor any legal advice.\nScanCode is a free software code scanning tool from nexB Inc. and others.\nVisit https://github.com/nexB/scancode-toolkit/ for support and download.", - "scancode_version": "2.2.1.post49.bfb0b11", - "scancode_options": { - "--info": true, - "--license-score": 0, - "--format": "json-pp" - }, - "files_count": 1, - "files": [ - { - "path": "test/unmodified.txt", - "type": "file", - "name": "unmodified.txt", - "base_name": "unmodified", - "extension": ".txt", - "date": "2017-11-16", - "size": 11, - "sha1": "4f499c82f79e5372c293010f931ad2798ddf3e8e", - "md5": "5a94696761e458f1c659a666554848fd", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": null, - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - } - ] -} diff --git a/tests/data/models/scan/align-trees-simple-new.json b/tests/data/models/scan/align-trees-simple-new.json deleted file mode 100644 index 28133939..00000000 --- a/tests/data/models/scan/align-trees-simple-new.json +++ /dev/null @@ -1,958 +0,0 @@ -{ - "scancode_notice": "Generated with ScanCode and provided on an \"AS IS\" BASIS, WITHOUT WARRANTIES\nOR CONDITIONS OF ANY KIND, either express or implied. No content created from\nScanCode should be considered or used as legal advice. Consult an Attorney\nfor any legal advice.\nScanCode is a free software code scanning tool from nexB Inc. and others.\nVisit https://github.com/nexB/scancode-toolkit/ for support and download.", - "scancode_version": "2.2.1.post12.6d07756e", - "scancode_options": { - "--info": true, - "--license-score": 0, - "--format": "json-pp" - }, - "files_count": 43, - "files": [ - { - "path": "samples/README", - "type": "file", - "name": "README", - "base_name": "README", - "extension": "", - "date": "2017-09-22", - "size": 236, - "sha1": "2e07e32c52d607204fad196052d70e3d18fb8636", - "md5": "effc6856ef85a9250fb1a470792b3f38", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": null, - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/screenshot.png", - "type": "file", - "name": "screenshot.png", - "base_name": "screenshot", - "extension": ".png", - "date": "2017-09-22", - "size": 622754, - "sha1": "01ff4b1de0bc6c75c9cca6e46c80c1802d6976d4", - "md5": "b6ef5a90777147423c98b42a6a25e57a", - "files_count": null, - "mime_type": "image/png", - "file_type": "PNG image data, 2880 x 1666, 8-bit/color RGB, non-interlaced", - "programming_language": null, - "is_binary": true, - "is_text": false, - "is_archive": false, - "is_media": true, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/arch", - "type": "directory", - "name": "arch", - "base_name": "arch", - "extension": "", - "date": null, - "size": 28103, - "sha1": null, - "md5": null, - "files_count": 1, - "mime_type": null, - "file_type": null, - "programming_language": null, - "is_binary": false, - "is_text": false, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/JGroups", - "type": "directory", - "name": "JGroups", - "base_name": "JGroups", - "extension": "", - "date": null, - "size": 241228, - "sha1": null, - "md5": null, - "files_count": 14, - "mime_type": null, - "file_type": null, - "programming_language": null, - "is_binary": false, - "is_text": false, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/zlib", - "type": "directory", - "name": "zlib", - "base_name": "zlib", - "extension": "", - "date": null, - "size": 268762, - "sha1": null, - "md5": null, - "files_count": 16, - "mime_type": null, - "file_type": null, - "programming_language": null, - "is_binary": false, - "is_text": false, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/arch/zlib.tar.gz", - "type": "file", - "name": "zlib.tar.gz", - "base_name": "zlib", - "extension": ".tar.gz", - "date": "2017-09-22", - "size": 28103, - "sha1": "576f0ccfe534d7f5ff5d6400078d3c6586de3abd", - "md5": "20b2370751abfc08bb3556c1d8114b5a", - "files_count": null, - "mime_type": "application/x-gzip", - "file_type": "gzip compressed data, last modified: Wed Jul 15 09:08:19 2015, from Unix", - "programming_language": null, - "is_binary": true, - "is_text": false, - "is_archive": true, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/JGroups/EULA", - "type": "file", - "name": "EULA", - "base_name": "EULA", - "extension": "", - "date": "2017-09-22", - "size": 8156, - "sha1": "eb232aa0424eca9c4136904e6143b72aaa9cf4de", - "md5": "0be0aceb8296727efff0ac0bf8e6bdb3", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": "JavaScript+Lasso", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/JGroups/LICENSE", - "type": "file", - "name": "LICENSE", - "base_name": "LICENSE", - "extension": "", - "date": "2017-09-22", - "size": 26430, - "sha1": "e60c2e780886f95df9c9ee36992b8edabec00bcc", - "md5": "7fbc338309ac38fefcd64b04bb903e34", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": null, - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/JGroups/licenses", - "type": "directory", - "name": "licenses", - "base_name": "licenses", - "extension": "", - "date": null, - "size": 54552, - "sha1": null, - "md5": null, - "files_count": 5, - "mime_type": null, - "file_type": null, - "programming_language": null, - "is_binary": false, - "is_text": false, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/JGroups/src", - "type": "directory", - "name": "src", - "base_name": "src", - "extension": "", - "date": null, - "size": 152090, - "sha1": null, - "md5": null, - "files_count": 7, - "mime_type": null, - "file_type": null, - "programming_language": null, - "is_binary": false, - "is_text": false, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/JGroups/licenses/apache-1.1.txt", - "type": "file", - "name": "apache-1.1.txt", - "base_name": "apache-1.1", - "extension": ".txt", - "date": "2017-09-22", - "size": 2885, - "sha1": "6b5608d35c3e304532af43db8bbfc5947bef46a6", - "md5": "276982197c941f4cbf3d218546e17ae2", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", - "programming_language": null, - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/JGroups/licenses/apache-2.0.txt", - "type": "file", - "name": "apache-2.0.txt", - "base_name": "apache-2.0", - "extension": ".txt", - "date": "2017-09-22", - "size": 11560, - "sha1": "47b573e3824cd5e02a1a3ae99e2735b49e0256e4", - "md5": "d273d63619c9aeaf15cdaf76422c4f87", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", - "programming_language": null, - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/JGroups/licenses/bouncycastle.txt", - "type": "file", - "name": "bouncycastle.txt", - "base_name": "bouncycastle", - "extension": ".txt", - "date": "2017-09-22", - "size": 1186, - "sha1": "74facb0e9a734479f9cd893b5be3fe1bf651b760", - "md5": "9fffd8de865a5705969f62b128381f85", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": null, - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/JGroups/licenses/cpl-1.0.txt", - "type": "file", - "name": "cpl-1.0.txt", - "base_name": "cpl-1.0", - "extension": ".txt", - "date": "2017-09-22", - "size": 11987, - "sha1": "681cf776bcd79752543d42490ec7ed22a29fd888", - "md5": "9a6d2c9ae73d59eb3dd38e3909750d14", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", - "programming_language": null, - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/JGroups/licenses/lgpl.txt", - "type": "file", - "name": "lgpl.txt", - "base_name": "lgpl", - "extension": ".txt", - "date": "2017-09-22", - "size": 26934, - "sha1": "8f1a637d2e2ed1bdb9eb01a7dccb5c12cc0557e1", - "md5": "f14599a2f089f6ff8c97e2baa4e3d575", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", - "programming_language": null, - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/JGroups/src/FixedMembershipToken.java", - "type": "file", - "name": "FixedMembershipToken.java", - "base_name": "FixedMembershipToken", - "extension": ".java", - "date": "2017-09-22", - "size": 5144, - "sha1": "5901f73dcc78155a1a2c7b5663a3a11fba400b19", - "md5": "aca9640ec8beee21b098bcf8ecc91442", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": "Java", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/JGroups/src/GuardedBy.java", - "type": "file", - "name": "GuardedBy.java", - "base_name": "GuardedBy", - "extension": ".java", - "date": "2017-09-22", - "size": 813, - "sha1": "981d67087e65e9a44957c026d4b10817cf77d966", - "md5": "c5064400f759d3e81771005051d17dc1", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": "Java", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/JGroups/src/ImmutableReference.java", - "type": "file", - "name": "ImmutableReference.java", - "base_name": "ImmutableReference", - "extension": ".java", - "date": "2017-09-22", - "size": 1838, - "sha1": "30f56b876d5576d9869e2c5c509b08db57110592", - "md5": "48ca3c72fb9a65c771a321222f118b88", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": "Java", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/JGroups/src/RATE_LIMITER.java", - "type": "file", - "name": "RATE_LIMITER.java", - "base_name": "RATE_LIMITER", - "extension": ".java", - "date": "2017-09-22", - "size": 3692, - "sha1": "a8087e5d50da3273536ebda9b87b77aa4ff55deb", - "md5": "4626bdbc48871b55513e1a12991c61a8", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": "Java", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/JGroups/src/RouterStub.java", - "type": "file", - "name": "RouterStub.java", - "base_name": "RouterStub", - "extension": ".java", - "date": "2017-09-22", - "size": 9913, - "sha1": "c1f6818f8ee7bddcc9f444bc94c099729d716d52", - "md5": "eecfe23494acbcd8088c93bc1e83c7f2", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": "Java", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/JGroups/src/RouterStubManager.java", - "type": "file", - "name": "RouterStubManager.java", - "base_name": "RouterStubManager", - "extension": ".java", - "date": "2017-09-22", - "size": 8162, - "sha1": "eb419dc94cfe11ca318a3e743a7f9f080e70c751", - "md5": "20bee9631b7c82a45c250e095352aec7", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": "Java", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/JGroups/src/S3_PING.java", - "type": "file", - "name": "S3_PING.java", - "base_name": "S3_PING", - "extension": ".java", - "date": "2017-09-22", - "size": 122528, - "sha1": "08dba9986f69719970ead3592dc565465164df0d", - "md5": "83d8324f37d0e3f120bc89865cf0bd39", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": "Java", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/zlib/adler32.c", - "type": "file", - "name": "adler32.c", - "base_name": "adler32", - "extension": ".c", - "date": "2017-09-22", - "size": 4968, - "sha1": "0cff4808476ce0b5f6f0ebbc69ee2ab2a0eebe43", - "md5": "ae3bbb54820e1d49fb90cbba222e973f", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text", - "programming_language": "C", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/zlib/deflate.c", - "type": "file", - "name": "deflate.c", - "base_name": "deflate", - "extension": ".c", - "date": "2017-09-22", - "size": 71476, - "sha1": "7b4ace6d698c5dbbfb9a8f047f63228ca54d2e77", - "md5": "cd7826278ce9d9d9ed5abdefef50c3e2", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text", - "programming_language": "C", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/zlib/deflate.h", - "type": "file", - "name": "deflate.h", - "base_name": "deflate", - "extension": ".h", - "date": "2017-09-22", - "size": 12774, - "sha1": "29ed3b8ca3927576e5889dea5880ca0052942c7d", - "md5": "7ceae74a13201f14c91623116af169c3", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text", - "programming_language": "C", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/zlib/zlib.h", - "type": "file", - "name": "zlib.h", - "base_name": "zlib", - "extension": ".h", - "date": "2017-09-22", - "size": 87883, - "sha1": "400d35465f179a4acacb5fe749e6ce20a0bbdb84", - "md5": "64d8a5180bd54ff5452886e4cbb21e14", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text", - "programming_language": "C", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/zlib/zutil.c", - "type": "file", - "name": "zutil.c", - "base_name": "zutil", - "extension": ".c", - "date": "2017-09-22", - "size": 7414, - "sha1": "e1af709bff21ae0d4331119a7fc4c19f82932043", - "md5": "fff257bc1656eb60fc585a7dc35f963d", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text", - "programming_language": "C", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/zlib/zutil.h", - "type": "file", - "name": "zutil.h", - "base_name": "zutil", - "extension": ".h", - "date": "2017-09-22", - "size": 6766, - "sha1": "b909d27ef9ce51639f76b7ea6b62721e7d1b6bf7", - "md5": "04fcfbb961591c9452c4d0fd1525ffdf", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text", - "programming_language": "C", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/zlib/ada", - "type": "directory", - "name": "ada", - "base_name": "ada", - "extension": "", - "date": null, - "size": 13594, - "sha1": null, - "md5": null, - "files_count": 1, - "mime_type": null, - "file_type": null, - "programming_language": null, - "is_binary": false, - "is_text": false, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/zlib/dotzlib", - "type": "directory", - "name": "dotzlib", - "base_name": "dotzlib", - "extension": "", - "date": null, - "size": 14257, - "sha1": null, - "md5": null, - "files_count": 4, - "mime_type": null, - "file_type": null, - "programming_language": null, - "is_binary": false, - "is_text": false, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/zlib/gcc_gvmat64", - "type": "directory", - "name": "gcc_gvmat64", - "base_name": "gcc_gvmat64", - "extension": "", - "date": null, - "size": 16413, - "sha1": null, - "md5": null, - "files_count": 1, - "mime_type": null, - "file_type": null, - "programming_language": null, - "is_binary": false, - "is_text": false, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/zlib/infback9", - "type": "directory", - "name": "infback9", - "base_name": "infback9", - "extension": "", - "date": null, - "size": 23223, - "sha1": null, - "md5": null, - "files_count": 2, - "mime_type": null, - "file_type": null, - "programming_language": null, - "is_binary": false, - "is_text": false, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/zlib/iostream2", - "type": "directory", - "name": "iostream2", - "base_name": "iostream2", - "extension": "", - "date": null, - "size": 9994, - "sha1": null, - "md5": null, - "files_count": 2, - "mime_type": null, - "file_type": null, - "programming_language": null, - "is_binary": false, - "is_text": false, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/zlib/ada/zlib.ads", - "type": "file", - "name": "zlib.ads", - "base_name": "zlib", - "extension": ".ads", - "date": "2017-09-22", - "size": 13594, - "sha1": "0245a91806d804bf9f0907a3a001a141e9adb61b", - "md5": "71de2670f2e588b51c62e7f6a9046399", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": "Ada", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/zlib/dotzlib/AssemblyInfo.cs", - "type": "file", - "name": "AssemblyInfo.cs", - "base_name": "AssemblyInfo", - "extension": ".cs", - "date": "2017-09-22", - "size": 2500, - "sha1": "9f1db1177b2e9a014f72bb3cd80be17133e06d16", - "md5": "23d0d7c18846fc31655b6aa89b7c8038", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", - "programming_language": "C#", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/zlib/dotzlib/ChecksumImpl.cs", - "type": "file", - "name": "ChecksumImpl.cs", - "base_name": "ChecksumImpl", - "extension": ".cs", - "date": "2017-09-22", - "size": 8040, - "sha1": "3807a0e24a57b92ea301559cab7307b8eab52c51", - "md5": "d01b3cb2e75da9b15f05b92b42f6bd33", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ISO-8859 text, with CRLF line terminators", - "programming_language": "C#", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/zlib/dotzlib/LICENSE_1_0.txt", - "type": "file", - "name": "LICENSE_1_0.txt", - "base_name": "LICENSE_1_0", - "extension": ".txt", - "date": "2017-09-22", - "size": 1359, - "sha1": "892b34f7865d90a6f949f50d95e49625a10bc7f0", - "md5": "81543b22c36f10d20ac9712f8d80ef8d", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", - "programming_language": null, - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/zlib/dotzlib/readme.txt", - "type": "file", - "name": "readme.txt", - "base_name": "readme", - "extension": ".txt", - "date": "2017-09-22", - "size": 2358, - "sha1": "b1229b826f0096808628474538cea8fec2922a9b", - "md5": "1f20f3168ee63d90de033edac2ce383c", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", - "programming_language": null, - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/zlib/gcc_gvmat64/gvmat64.S", - "type": "file", - "name": "gvmat64.S", - "base_name": "gvmat64", - "extension": ".S", - "date": "2017-09-22", - "size": 16413, - "sha1": "742603cba1af98a1432cc02efb019b1a5760adf2", - "md5": "5e772d7302475e5473d0c4c57b9861e8", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text, with CRLF line terminators", - "programming_language": "GAS", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/zlib/infback9/infback9.c", - "type": "file", - "name": "infback9.c", - "base_name": "infback9", - "extension": ".c", - "date": "2017-09-22", - "size": 21629, - "sha1": "17fb362c03755b12f2dda5b12a68cf38162674bd", - "md5": "23ff5edec0817da303cb1294c1e4205c", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text", - "programming_language": "C", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/zlib/infback9/infback9.h", - "type": "file", - "name": "infback9.h", - "base_name": "infback9", - "extension": ".h", - "date": "2017-09-22", - "size": 1594, - "sha1": "d0486a32b558dcaceded5f0746fad62e680a4734", - "md5": "52b1ed99960d3ed7ed60cd20295e64a8", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text", - "programming_language": "C", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/zlib/iostream2/zstream.h", - "type": "file", - "name": "zstream.h", - "base_name": "zstream", - "extension": ".h", - "date": "2017-09-22", - "size": 9283, - "sha1": "fca4540d490fff36bb90fd801cf9cd8fc695bb17", - "md5": "a980b61c1e8be68d5cdb1236ba6b43e7", - "files_count": null, - "mime_type": "text/x-c++", - "file_type": "C++ source, ASCII text", - "programming_language": "C", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/zlib/iostream2/zstream_test.cpp", - "type": "file", - "name": "zstream_test.cpp", - "base_name": "zstream_test", - "extension": ".cpp", - "date": "2017-09-22", - "size": 711, - "sha1": "e18a6d55cbbd8b832f8d795530553467e5c74fcf", - "md5": "d32476bde4e6d5f889092fdff6f8cdb0", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text", - "programming_language": "C++", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - } - ] -} diff --git a/tests/data/models/scan/align-trees-simple-old.json b/tests/data/models/scan/align-trees-simple-old.json deleted file mode 100644 index 38bc1409..00000000 --- a/tests/data/models/scan/align-trees-simple-old.json +++ /dev/null @@ -1,959 +0,0 @@ -{ - "scancode_notice": "Generated with ScanCode and provided on an \"AS IS\" BASIS, WITHOUT WARRANTIES\nOR CONDITIONS OF ANY KIND, either express or implied. No content created from\nScanCode should be considered or used as legal advice. Consult an Attorney\nfor any legal advice.\nScanCode is a free software code scanning tool from nexB Inc. and others.\nVisit https://github.com/nexB/scancode-toolkit/ for support and download.", - "scancode_version": "2.2.1.post12.6d07756e", - "scancode_options": { - "--info": true, - "--license-score": 0, - "--full-root": true, - "--format": "json-pp" - }, - "files_count": 43, - "files": [ - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/README", - "type": "file", - "name": "README", - "base_name": "README", - "extension": "", - "date": "2017-09-22", - "size": 236, - "sha1": "2e07e32c52d607204fad196052d70e3d18fb8636", - "md5": "effc6856ef85a9250fb1a470792b3f38", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": null, - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/screenshot.png", - "type": "file", - "name": "screenshot.png", - "base_name": "screenshot", - "extension": ".png", - "date": "2017-09-22", - "size": 622754, - "sha1": "01ff4b1de0bc6c75c9cca6e46c80c1802d6976d4", - "md5": "b6ef5a90777147423c98b42a6a25e57a", - "files_count": null, - "mime_type": "image/png", - "file_type": "PNG image data, 2880 x 1666, 8-bit/color RGB, non-interlaced", - "programming_language": null, - "is_binary": true, - "is_text": false, - "is_archive": false, - "is_media": true, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/arch", - "type": "directory", - "name": "arch", - "base_name": "arch", - "extension": "", - "date": null, - "size": 28103, - "sha1": null, - "md5": null, - "files_count": 1, - "mime_type": null, - "file_type": null, - "programming_language": null, - "is_binary": false, - "is_text": false, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/JGroups", - "type": "directory", - "name": "JGroups", - "base_name": "JGroups", - "extension": "", - "date": null, - "size": 241228, - "sha1": null, - "md5": null, - "files_count": 14, - "mime_type": null, - "file_type": null, - "programming_language": null, - "is_binary": false, - "is_text": false, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/zlib", - "type": "directory", - "name": "zlib", - "base_name": "zlib", - "extension": "", - "date": null, - "size": 268762, - "sha1": null, - "md5": null, - "files_count": 16, - "mime_type": null, - "file_type": null, - "programming_language": null, - "is_binary": false, - "is_text": false, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/arch/zlib.tar.gz", - "type": "file", - "name": "zlib.tar.gz", - "base_name": "zlib", - "extension": ".tar.gz", - "date": "2017-09-22", - "size": 28103, - "sha1": "576f0ccfe534d7f5ff5d6400078d3c6586de3abd", - "md5": "20b2370751abfc08bb3556c1d8114b5a", - "files_count": null, - "mime_type": "application/x-gzip", - "file_type": "gzip compressed data, last modified: Wed Jul 15 09:08:19 2015, from Unix", - "programming_language": null, - "is_binary": true, - "is_text": false, - "is_archive": true, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/JGroups/EULA", - "type": "file", - "name": "EULA", - "base_name": "EULA", - "extension": "", - "date": "2017-09-22", - "size": 8156, - "sha1": "eb232aa0424eca9c4136904e6143b72aaa9cf4de", - "md5": "0be0aceb8296727efff0ac0bf8e6bdb3", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": "JavaScript+Lasso", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/JGroups/LICENSE", - "type": "file", - "name": "LICENSE", - "base_name": "LICENSE", - "extension": "", - "date": "2017-09-22", - "size": 26430, - "sha1": "e60c2e780886f95df9c9ee36992b8edabec00bcc", - "md5": "7fbc338309ac38fefcd64b04bb903e34", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": null, - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/JGroups/licenses", - "type": "directory", - "name": "licenses", - "base_name": "licenses", - "extension": "", - "date": null, - "size": 54552, - "sha1": null, - "md5": null, - "files_count": 5, - "mime_type": null, - "file_type": null, - "programming_language": null, - "is_binary": false, - "is_text": false, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/JGroups/src", - "type": "directory", - "name": "src", - "base_name": "src", - "extension": "", - "date": null, - "size": 152090, - "sha1": null, - "md5": null, - "files_count": 7, - "mime_type": null, - "file_type": null, - "programming_language": null, - "is_binary": false, - "is_text": false, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/JGroups/licenses/apache-1.1.txt", - "type": "file", - "name": "apache-1.1.txt", - "base_name": "apache-1.1", - "extension": ".txt", - "date": "2017-09-22", - "size": 2885, - "sha1": "6b5608d35c3e304532af43db8bbfc5947bef46a6", - "md5": "276982197c941f4cbf3d218546e17ae2", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", - "programming_language": null, - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/JGroups/licenses/apache-2.0.txt", - "type": "file", - "name": "apache-2.0.txt", - "base_name": "apache-2.0", - "extension": ".txt", - "date": "2017-09-22", - "size": 11560, - "sha1": "47b573e3824cd5e02a1a3ae99e2735b49e0256e4", - "md5": "d273d63619c9aeaf15cdaf76422c4f87", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", - "programming_language": null, - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/JGroups/licenses/bouncycastle.txt", - "type": "file", - "name": "bouncycastle.txt", - "base_name": "bouncycastle", - "extension": ".txt", - "date": "2017-09-22", - "size": 1186, - "sha1": "74facb0e9a734479f9cd893b5be3fe1bf651b760", - "md5": "9fffd8de865a5705969f62b128381f85", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": null, - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/JGroups/licenses/cpl-1.0.txt", - "type": "file", - "name": "cpl-1.0.txt", - "base_name": "cpl-1.0", - "extension": ".txt", - "date": "2017-09-22", - "size": 11987, - "sha1": "681cf776bcd79752543d42490ec7ed22a29fd888", - "md5": "9a6d2c9ae73d59eb3dd38e3909750d14", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", - "programming_language": null, - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/JGroups/licenses/lgpl.txt", - "type": "file", - "name": "lgpl.txt", - "base_name": "lgpl", - "extension": ".txt", - "date": "2017-09-22", - "size": 26934, - "sha1": "8f1a637d2e2ed1bdb9eb01a7dccb5c12cc0557e1", - "md5": "f14599a2f089f6ff8c97e2baa4e3d575", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", - "programming_language": null, - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/JGroups/src/FixedMembershipToken.java", - "type": "file", - "name": "FixedMembershipToken.java", - "base_name": "FixedMembershipToken", - "extension": ".java", - "date": "2017-09-22", - "size": 5144, - "sha1": "5901f73dcc78155a1a2c7b5663a3a11fba400b19", - "md5": "aca9640ec8beee21b098bcf8ecc91442", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": "Java", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/JGroups/src/GuardedBy.java", - "type": "file", - "name": "GuardedBy.java", - "base_name": "GuardedBy", - "extension": ".java", - "date": "2017-09-22", - "size": 813, - "sha1": "981d67087e65e9a44957c026d4b10817cf77d966", - "md5": "c5064400f759d3e81771005051d17dc1", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": "Java", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/JGroups/src/ImmutableReference.java", - "type": "file", - "name": "ImmutableReference.java", - "base_name": "ImmutableReference", - "extension": ".java", - "date": "2017-09-22", - "size": 1838, - "sha1": "30f56b876d5576d9869e2c5c509b08db57110592", - "md5": "48ca3c72fb9a65c771a321222f118b88", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": "Java", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/JGroups/src/RATE_LIMITER.java", - "type": "file", - "name": "RATE_LIMITER.java", - "base_name": "RATE_LIMITER", - "extension": ".java", - "date": "2017-09-22", - "size": 3692, - "sha1": "a8087e5d50da3273536ebda9b87b77aa4ff55deb", - "md5": "4626bdbc48871b55513e1a12991c61a8", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": "Java", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/JGroups/src/RouterStub.java", - "type": "file", - "name": "RouterStub.java", - "base_name": "RouterStub", - "extension": ".java", - "date": "2017-09-22", - "size": 9913, - "sha1": "c1f6818f8ee7bddcc9f444bc94c099729d716d52", - "md5": "eecfe23494acbcd8088c93bc1e83c7f2", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": "Java", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/JGroups/src/RouterStubManager.java", - "type": "file", - "name": "RouterStubManager.java", - "base_name": "RouterStubManager", - "extension": ".java", - "date": "2017-09-22", - "size": 8162, - "sha1": "eb419dc94cfe11ca318a3e743a7f9f080e70c751", - "md5": "20bee9631b7c82a45c250e095352aec7", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": "Java", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/JGroups/src/S3_PING.java", - "type": "file", - "name": "S3_PING.java", - "base_name": "S3_PING", - "extension": ".java", - "date": "2017-09-22", - "size": 122528, - "sha1": "08dba9986f69719970ead3592dc565465164df0d", - "md5": "83d8324f37d0e3f120bc89865cf0bd39", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": "Java", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/zlib/adler32.c", - "type": "file", - "name": "adler32.c", - "base_name": "adler32", - "extension": ".c", - "date": "2017-09-22", - "size": 4968, - "sha1": "0cff4808476ce0b5f6f0ebbc69ee2ab2a0eebe43", - "md5": "ae3bbb54820e1d49fb90cbba222e973f", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text", - "programming_language": "C", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/zlib/deflate.c", - "type": "file", - "name": "deflate.c", - "base_name": "deflate", - "extension": ".c", - "date": "2017-09-22", - "size": 71476, - "sha1": "7b4ace6d698c5dbbfb9a8f047f63228ca54d2e77", - "md5": "cd7826278ce9d9d9ed5abdefef50c3e2", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text", - "programming_language": "C", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/zlib/deflate.h", - "type": "file", - "name": "deflate.h", - "base_name": "deflate", - "extension": ".h", - "date": "2017-09-22", - "size": 12774, - "sha1": "29ed3b8ca3927576e5889dea5880ca0052942c7d", - "md5": "7ceae74a13201f14c91623116af169c3", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text", - "programming_language": "C", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/zlib/zlib.h", - "type": "file", - "name": "zlib.h", - "base_name": "zlib", - "extension": ".h", - "date": "2017-09-22", - "size": 87883, - "sha1": "400d35465f179a4acacb5fe749e6ce20a0bbdb84", - "md5": "64d8a5180bd54ff5452886e4cbb21e14", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text", - "programming_language": "C", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/zlib/zutil.c", - "type": "file", - "name": "zutil.c", - "base_name": "zutil", - "extension": ".c", - "date": "2017-09-22", - "size": 7414, - "sha1": "e1af709bff21ae0d4331119a7fc4c19f82932043", - "md5": "fff257bc1656eb60fc585a7dc35f963d", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text", - "programming_language": "C", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/zlib/zutil.h", - "type": "file", - "name": "zutil.h", - "base_name": "zutil", - "extension": ".h", - "date": "2017-09-22", - "size": 6766, - "sha1": "b909d27ef9ce51639f76b7ea6b62721e7d1b6bf7", - "md5": "04fcfbb961591c9452c4d0fd1525ffdf", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text", - "programming_language": "C", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/zlib/ada", - "type": "directory", - "name": "ada", - "base_name": "ada", - "extension": "", - "date": null, - "size": 13594, - "sha1": null, - "md5": null, - "files_count": 1, - "mime_type": null, - "file_type": null, - "programming_language": null, - "is_binary": false, - "is_text": false, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/zlib/dotzlib", - "type": "directory", - "name": "dotzlib", - "base_name": "dotzlib", - "extension": "", - "date": null, - "size": 14257, - "sha1": null, - "md5": null, - "files_count": 4, - "mime_type": null, - "file_type": null, - "programming_language": null, - "is_binary": false, - "is_text": false, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/zlib/gcc_gvmat64", - "type": "directory", - "name": "gcc_gvmat64", - "base_name": "gcc_gvmat64", - "extension": "", - "date": null, - "size": 16413, - "sha1": null, - "md5": null, - "files_count": 1, - "mime_type": null, - "file_type": null, - "programming_language": null, - "is_binary": false, - "is_text": false, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/zlib/infback9", - "type": "directory", - "name": "infback9", - "base_name": "infback9", - "extension": "", - "date": null, - "size": 23223, - "sha1": null, - "md5": null, - "files_count": 2, - "mime_type": null, - "file_type": null, - "programming_language": null, - "is_binary": false, - "is_text": false, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/zlib/iostream2", - "type": "directory", - "name": "iostream2", - "base_name": "iostream2", - "extension": "", - "date": null, - "size": 9994, - "sha1": null, - "md5": null, - "files_count": 2, - "mime_type": null, - "file_type": null, - "programming_language": null, - "is_binary": false, - "is_text": false, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/zlib/ada/zlib.ads", - "type": "file", - "name": "zlib.ads", - "base_name": "zlib", - "extension": ".ads", - "date": "2017-09-22", - "size": 13594, - "sha1": "0245a91806d804bf9f0907a3a001a141e9adb61b", - "md5": "71de2670f2e588b51c62e7f6a9046399", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": "Ada", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/zlib/dotzlib/AssemblyInfo.cs", - "type": "file", - "name": "AssemblyInfo.cs", - "base_name": "AssemblyInfo", - "extension": ".cs", - "date": "2017-09-22", - "size": 2500, - "sha1": "9f1db1177b2e9a014f72bb3cd80be17133e06d16", - "md5": "23d0d7c18846fc31655b6aa89b7c8038", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", - "programming_language": "C#", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/zlib/dotzlib/ChecksumImpl.cs", - "type": "file", - "name": "ChecksumImpl.cs", - "base_name": "ChecksumImpl", - "extension": ".cs", - "date": "2017-09-22", - "size": 8040, - "sha1": "3807a0e24a57b92ea301559cab7307b8eab52c51", - "md5": "d01b3cb2e75da9b15f05b92b42f6bd33", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ISO-8859 text, with CRLF line terminators", - "programming_language": "C#", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/zlib/dotzlib/LICENSE_1_0.txt", - "type": "file", - "name": "LICENSE_1_0.txt", - "base_name": "LICENSE_1_0", - "extension": ".txt", - "date": "2017-09-22", - "size": 1359, - "sha1": "892b34f7865d90a6f949f50d95e49625a10bc7f0", - "md5": "81543b22c36f10d20ac9712f8d80ef8d", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", - "programming_language": null, - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/zlib/dotzlib/readme.txt", - "type": "file", - "name": "readme.txt", - "base_name": "readme", - "extension": ".txt", - "date": "2017-09-22", - "size": 2358, - "sha1": "b1229b826f0096808628474538cea8fec2922a9b", - "md5": "1f20f3168ee63d90de033edac2ce383c", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", - "programming_language": null, - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/zlib/gcc_gvmat64/gvmat64.S", - "type": "file", - "name": "gvmat64.S", - "base_name": "gvmat64", - "extension": ".S", - "date": "2017-09-22", - "size": 16413, - "sha1": "742603cba1af98a1432cc02efb019b1a5760adf2", - "md5": "5e772d7302475e5473d0c4c57b9861e8", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text, with CRLF line terminators", - "programming_language": "GAS", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/zlib/infback9/infback9.c", - "type": "file", - "name": "infback9.c", - "base_name": "infback9", - "extension": ".c", - "date": "2017-09-22", - "size": 21629, - "sha1": "17fb362c03755b12f2dda5b12a68cf38162674bd", - "md5": "23ff5edec0817da303cb1294c1e4205c", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text", - "programming_language": "C", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/zlib/infback9/infback9.h", - "type": "file", - "name": "infback9.h", - "base_name": "infback9", - "extension": ".h", - "date": "2017-09-22", - "size": 1594, - "sha1": "d0486a32b558dcaceded5f0746fad62e680a4734", - "md5": "52b1ed99960d3ed7ed60cd20295e64a8", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text", - "programming_language": "C", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/zlib/iostream2/zstream.h", - "type": "file", - "name": "zstream.h", - "base_name": "zstream", - "extension": ".h", - "date": "2017-09-22", - "size": 9283, - "sha1": "fca4540d490fff36bb90fd801cf9cd8fc695bb17", - "md5": "a980b61c1e8be68d5cdb1236ba6b43e7", - "files_count": null, - "mime_type": "text/x-c++", - "file_type": "C++ source, ASCII text", - "programming_language": "C", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/zlib/iostream2/zstream_test.cpp", - "type": "file", - "name": "zstream_test.cpp", - "base_name": "zstream_test", - "extension": ".cpp", - "date": "2017-09-22", - "size": 711, - "sha1": "e18a6d55cbbd8b832f8d795530553467e5c74fcf", - "md5": "d32476bde4e6d5f889092fdff6f8cdb0", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text", - "programming_language": "C++", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - } - ] -} diff --git a/tests/data/models/scan/multiple_copies_01-clip_scan.json b/tests/data/models/scan/multiple_copies_01-clip_scan.json deleted file mode 100644 index 767cb5cf..00000000 --- a/tests/data/models/scan/multiple_copies_01-clip_scan.json +++ /dev/null @@ -1,1084 +0,0 @@ -{ - "scancode_notice": "Generated with ScanCode and provided on an \"AS IS\" BASIS, WITHOUT WARRANTIES\nOR CONDITIONS OF ANY KIND, either express or implied. No content created from\nScanCode should be considered or used as legal advice. Consult an Attorney\nfor any legal advice.\nScanCode is a free software code scanning tool from nexB Inc. and others.\nVisit https://github.com/nexB/scancode-toolkit/ for support and download.", - "scancode_version": "2.2.1", - "scancode_options": { - "--copyright": true, - "--license": true, - "--package": true, - "--info": true, - "--license-score": 0, - "--format": "json-pp" - }, - "files_count": 21, - "files": [ - { - "path": "multiple_copies_01/a", - "type": "directory", - "name": "a", - "base_name": "a", - "extension": "", - "date": null, - "size": 800, - "sha1": null, - "md5": null, - "files_count": 4, - "mime_type": null, - "file_type": null, - "programming_language": null, - "is_binary": false, - "is_text": false, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [], - "licenses": [], - "copyrights": [], - "packages": [] - }, - { - "path": "multiple_copies_01/a_copy", - "type": "directory", - "name": "a_copy", - "base_name": "a_copy", - "extension": "", - "date": null, - "size": 800, - "sha1": null, - "md5": null, - "files_count": 4, - "mime_type": null, - "file_type": null, - "programming_language": null, - "is_binary": false, - "is_text": false, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [], - "licenses": [], - "copyrights": [], - "packages": [] - }, - { - "path": "multiple_copies_01/a_nested_copy", - "type": "directory", - "name": "a_nested_copy", - "base_name": "a_nested_copy", - "extension": "", - "date": null, - "size": 800, - "sha1": null, - "md5": null, - "files_count": 4, - "mime_type": null, - "file_type": null, - "programming_language": null, - "is_binary": false, - "is_text": false, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [], - "licenses": [], - "copyrights": [], - "packages": [] - }, - { - "path": "multiple_copies_01/b", - "type": "directory", - "name": "b", - "base_name": "b", - "extension": "", - "date": null, - "size": 800, - "sha1": null, - "md5": null, - "files_count": 4, - "mime_type": null, - "file_type": null, - "programming_language": null, - "is_binary": false, - "is_text": false, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [], - "licenses": [], - "copyrights": [], - "packages": [] - }, - { - "path": "multiple_copies_01/a/a1.py", - "type": "file", - "name": "a1.py", - "base_name": "a1", - "extension": ".py", - "date": "2017-09-26", - "size": 200, - "sha1": "84b647771481d39dd3a53f6dc210c26abac37748", - "md5": "3cb56efa7140478458dbaa2b30239845", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", - "programming_language": "Python", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [], - "licenses": [ - { - "key": "apache-2.0", - "score": 80.0, - "short_name": "Apache 2.0", - "category": "Permissive", - "owner": "Apache Software Foundation", - "homepage_url": "http://www.apache.org/licenses/", - "text_url": "http://www.apache.org/licenses/LICENSE-2.0", - "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:apache-2.0", - "spdx_license_key": "Apache-2.0", - "spdx_url": "https://spdx.org/licenses/Apache-2.0", - "start_line": 3, - "end_line": 3, - "matched_rule": { - "identifier": "apache-2.0_57.RULE", - "license_choice": false, - "licenses": [ - "apache-2.0" - ] - } - } - ], - "copyrights": [ - { - "statements": [ - "Copyright (c) 2017 Acme Software Inc. and others." - ], - "holders": [ - "Acme Software Inc. and others." - ], - "authors": [], - "start_line": 2, - "end_line": 2 - } - ], - "packages": [] - }, - { - "path": "multiple_copies_01/a/a2.py", - "type": "file", - "name": "a2.py", - "base_name": "a2", - "extension": ".py", - "date": "2017-09-26", - "size": 200, - "sha1": "310797523e47db8481aeb06f1634317285115091", - "md5": "19efdad483f68bc9997a5c1f7ba41b26", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", - "programming_language": "Python", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [], - "licenses": [ - { - "key": "apache-2.0", - "score": 80.0, - "short_name": "Apache 2.0", - "category": "Permissive", - "owner": "Apache Software Foundation", - "homepage_url": "http://www.apache.org/licenses/", - "text_url": "http://www.apache.org/licenses/LICENSE-2.0", - "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:apache-2.0", - "spdx_license_key": "Apache-2.0", - "spdx_url": "https://spdx.org/licenses/Apache-2.0", - "start_line": 3, - "end_line": 3, - "matched_rule": { - "identifier": "apache-2.0_57.RULE", - "license_choice": false, - "licenses": [ - "apache-2.0" - ] - } - } - ], - "copyrights": [ - { - "statements": [ - "Copyright (c) 2017 Acme Software Inc. and others." - ], - "holders": [ - "Acme Software Inc. and others." - ], - "authors": [], - "start_line": 2, - "end_line": 2 - } - ], - "packages": [] - }, - { - "path": "multiple_copies_01/a/a3.py", - "type": "file", - "name": "a3.py", - "base_name": "a3", - "extension": ".py", - "date": "2017-09-26", - "size": 200, - "sha1": "fd5d3589c825f448546d7dcec36da3e567d35fe9", - "md5": "795ff2cae8ece792a9bfebe18ad3c8e6", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", - "programming_language": "Python", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [], - "licenses": [ - { - "key": "apache-2.0", - "score": 80.0, - "short_name": "Apache 2.0", - "category": "Permissive", - "owner": "Apache Software Foundation", - "homepage_url": "http://www.apache.org/licenses/", - "text_url": "http://www.apache.org/licenses/LICENSE-2.0", - "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:apache-2.0", - "spdx_license_key": "Apache-2.0", - "spdx_url": "https://spdx.org/licenses/Apache-2.0", - "start_line": 3, - "end_line": 3, - "matched_rule": { - "identifier": "apache-2.0_57.RULE", - "license_choice": false, - "licenses": [ - "apache-2.0" - ] - } - } - ], - "copyrights": [ - { - "statements": [ - "Copyright (c) 2017 Acme Software Inc. and others." - ], - "holders": [ - "Acme Software Inc. and others." - ], - "authors": [], - "start_line": 2, - "end_line": 2 - } - ], - "packages": [] - }, - { - "path": "multiple_copies_01/a/a4.py", - "type": "file", - "name": "a4.py", - "base_name": "a4", - "extension": ".py", - "date": "2017-09-26", - "size": 200, - "sha1": "6f71666c46446c29d3f45feef5419ae76fb86a5b", - "md5": "fc403815d6605df989414ff40a64ea17", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", - "programming_language": "Python", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [], - "licenses": [ - { - "key": "apache-2.0", - "score": 80.0, - "short_name": "Apache 2.0", - "category": "Permissive", - "owner": "Apache Software Foundation", - "homepage_url": "http://www.apache.org/licenses/", - "text_url": "http://www.apache.org/licenses/LICENSE-2.0", - "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:apache-2.0", - "spdx_license_key": "Apache-2.0", - "spdx_url": "https://spdx.org/licenses/Apache-2.0", - "start_line": 3, - "end_line": 3, - "matched_rule": { - "identifier": "apache-2.0_57.RULE", - "license_choice": false, - "licenses": [ - "apache-2.0" - ] - } - } - ], - "copyrights": [ - { - "statements": [ - "Copyright (c) 2017 Acme Software Inc. and others." - ], - "holders": [ - "Acme Software Inc. and others." - ], - "authors": [], - "start_line": 2, - "end_line": 2 - } - ], - "packages": [] - }, - { - "path": "multiple_copies_01/a_copy/a1.py", - "type": "file", - "name": "a1.py", - "base_name": "a1", - "extension": ".py", - "date": "2017-09-26", - "size": 200, - "sha1": "84b647771481d39dd3a53f6dc210c26abac37748", - "md5": "3cb56efa7140478458dbaa2b30239845", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", - "programming_language": "Python", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [], - "licenses": [ - { - "key": "apache-2.0", - "score": 80.0, - "short_name": "Apache 2.0", - "category": "Permissive", - "owner": "Apache Software Foundation", - "homepage_url": "http://www.apache.org/licenses/", - "text_url": "http://www.apache.org/licenses/LICENSE-2.0", - "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:apache-2.0", - "spdx_license_key": "Apache-2.0", - "spdx_url": "https://spdx.org/licenses/Apache-2.0", - "start_line": 3, - "end_line": 3, - "matched_rule": { - "identifier": "apache-2.0_57.RULE", - "license_choice": false, - "licenses": [ - "apache-2.0" - ] - } - } - ], - "copyrights": [ - { - "statements": [ - "Copyright (c) 2017 Acme Software Inc. and others." - ], - "holders": [ - "Acme Software Inc. and others." - ], - "authors": [], - "start_line": 2, - "end_line": 2 - } - ], - "packages": [] - }, - { - "path": "multiple_copies_01/a_copy/a2.py", - "type": "file", - "name": "a2.py", - "base_name": "a2", - "extension": ".py", - "date": "2017-09-26", - "size": 200, - "sha1": "310797523e47db8481aeb06f1634317285115091", - "md5": "19efdad483f68bc9997a5c1f7ba41b26", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", - "programming_language": "Python", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [], - "licenses": [ - { - "key": "apache-2.0", - "score": 80.0, - "short_name": "Apache 2.0", - "category": "Permissive", - "owner": "Apache Software Foundation", - "homepage_url": "http://www.apache.org/licenses/", - "text_url": "http://www.apache.org/licenses/LICENSE-2.0", - "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:apache-2.0", - "spdx_license_key": "Apache-2.0", - "spdx_url": "https://spdx.org/licenses/Apache-2.0", - "start_line": 3, - "end_line": 3, - "matched_rule": { - "identifier": "apache-2.0_57.RULE", - "license_choice": false, - "licenses": [ - "apache-2.0" - ] - } - } - ], - "copyrights": [ - { - "statements": [ - "Copyright (c) 2017 Acme Software Inc. and others." - ], - "holders": [ - "Acme Software Inc. and others." - ], - "authors": [], - "start_line": 2, - "end_line": 2 - } - ], - "packages": [] - }, - { - "path": "multiple_copies_01/a_copy/a3.py", - "type": "file", - "name": "a3.py", - "base_name": "a3", - "extension": ".py", - "date": "2017-09-26", - "size": 200, - "sha1": "fd5d3589c825f448546d7dcec36da3e567d35fe9", - "md5": "795ff2cae8ece792a9bfebe18ad3c8e6", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", - "programming_language": "Python", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [], - "licenses": [ - { - "key": "apache-2.0", - "score": 80.0, - "short_name": "Apache 2.0", - "category": "Permissive", - "owner": "Apache Software Foundation", - "homepage_url": "http://www.apache.org/licenses/", - "text_url": "http://www.apache.org/licenses/LICENSE-2.0", - "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:apache-2.0", - "spdx_license_key": "Apache-2.0", - "spdx_url": "https://spdx.org/licenses/Apache-2.0", - "start_line": 3, - "end_line": 3, - "matched_rule": { - "identifier": "apache-2.0_57.RULE", - "license_choice": false, - "licenses": [ - "apache-2.0" - ] - } - } - ], - "copyrights": [ - { - "statements": [ - "Copyright (c) 2017 Acme Software Inc. and others." - ], - "holders": [ - "Acme Software Inc. and others." - ], - "authors": [], - "start_line": 2, - "end_line": 2 - } - ], - "packages": [] - }, - { - "path": "multiple_copies_01/a_copy/a4.py", - "type": "file", - "name": "a4.py", - "base_name": "a4", - "extension": ".py", - "date": "2017-09-26", - "size": 200, - "sha1": "6f71666c46446c29d3f45feef5419ae76fb86a5b", - "md5": "fc403815d6605df989414ff40a64ea17", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", - "programming_language": "Python", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [], - "licenses": [ - { - "key": "apache-2.0", - "score": 80.0, - "short_name": "Apache 2.0", - "category": "Permissive", - "owner": "Apache Software Foundation", - "homepage_url": "http://www.apache.org/licenses/", - "text_url": "http://www.apache.org/licenses/LICENSE-2.0", - "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:apache-2.0", - "spdx_license_key": "Apache-2.0", - "spdx_url": "https://spdx.org/licenses/Apache-2.0", - "start_line": 3, - "end_line": 3, - "matched_rule": { - "identifier": "apache-2.0_57.RULE", - "license_choice": false, - "licenses": [ - "apache-2.0" - ] - } - } - ], - "copyrights": [ - { - "statements": [ - "Copyright (c) 2017 Acme Software Inc. and others." - ], - "holders": [ - "Acme Software Inc. and others." - ], - "authors": [], - "start_line": 2, - "end_line": 2 - } - ], - "packages": [] - }, - { - "path": "multiple_copies_01/a_nested_copy/level_2", - "type": "directory", - "name": "level_2", - "base_name": "level_2", - "extension": "", - "date": null, - "size": 800, - "sha1": null, - "md5": null, - "files_count": 4, - "mime_type": null, - "file_type": null, - "programming_language": null, - "is_binary": false, - "is_text": false, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [], - "licenses": [], - "copyrights": [], - "packages": [] - }, - { - "path": "multiple_copies_01/a_nested_copy/level_2/a1.py", - "type": "file", - "name": "a1.py", - "base_name": "a1", - "extension": ".py", - "date": "2017-09-26", - "size": 200, - "sha1": "84b647771481d39dd3a53f6dc210c26abac37748", - "md5": "3cb56efa7140478458dbaa2b30239845", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", - "programming_language": "Python", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [], - "licenses": [ - { - "key": "apache-2.0", - "score": 80.0, - "short_name": "Apache 2.0", - "category": "Permissive", - "owner": "Apache Software Foundation", - "homepage_url": "http://www.apache.org/licenses/", - "text_url": "http://www.apache.org/licenses/LICENSE-2.0", - "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:apache-2.0", - "spdx_license_key": "Apache-2.0", - "spdx_url": "https://spdx.org/licenses/Apache-2.0", - "start_line": 3, - "end_line": 3, - "matched_rule": { - "identifier": "apache-2.0_57.RULE", - "license_choice": false, - "licenses": [ - "apache-2.0" - ] - } - } - ], - "copyrights": [ - { - "statements": [ - "Copyright (c) 2017 Acme Software Inc. and others." - ], - "holders": [ - "Acme Software Inc. and others." - ], - "authors": [], - "start_line": 2, - "end_line": 2 - } - ], - "packages": [] - }, - { - "path": "multiple_copies_01/a_nested_copy/level_2/a2.py", - "type": "file", - "name": "a2.py", - "base_name": "a2", - "extension": ".py", - "date": "2017-09-26", - "size": 200, - "sha1": "310797523e47db8481aeb06f1634317285115091", - "md5": "19efdad483f68bc9997a5c1f7ba41b26", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", - "programming_language": "Python", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [], - "licenses": [ - { - "key": "apache-2.0", - "score": 80.0, - "short_name": "Apache 2.0", - "category": "Permissive", - "owner": "Apache Software Foundation", - "homepage_url": "http://www.apache.org/licenses/", - "text_url": "http://www.apache.org/licenses/LICENSE-2.0", - "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:apache-2.0", - "spdx_license_key": "Apache-2.0", - "spdx_url": "https://spdx.org/licenses/Apache-2.0", - "start_line": 3, - "end_line": 3, - "matched_rule": { - "identifier": "apache-2.0_57.RULE", - "license_choice": false, - "licenses": [ - "apache-2.0" - ] - } - } - ], - "copyrights": [ - { - "statements": [ - "Copyright (c) 2017 Acme Software Inc. and others." - ], - "holders": [ - "Acme Software Inc. and others." - ], - "authors": [], - "start_line": 2, - "end_line": 2 - } - ], - "packages": [] - }, - { - "path": "multiple_copies_01/a_nested_copy/level_2/a3.py", - "type": "file", - "name": "a3.py", - "base_name": "a3", - "extension": ".py", - "date": "2017-09-26", - "size": 200, - "sha1": "fd5d3589c825f448546d7dcec36da3e567d35fe9", - "md5": "795ff2cae8ece792a9bfebe18ad3c8e6", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", - "programming_language": "Python", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [], - "licenses": [ - { - "key": "apache-2.0", - "score": 80.0, - "short_name": "Apache 2.0", - "category": "Permissive", - "owner": "Apache Software Foundation", - "homepage_url": "http://www.apache.org/licenses/", - "text_url": "http://www.apache.org/licenses/LICENSE-2.0", - "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:apache-2.0", - "spdx_license_key": "Apache-2.0", - "spdx_url": "https://spdx.org/licenses/Apache-2.0", - "start_line": 3, - "end_line": 3, - "matched_rule": { - "identifier": "apache-2.0_57.RULE", - "license_choice": false, - "licenses": [ - "apache-2.0" - ] - } - } - ], - "copyrights": [ - { - "statements": [ - "Copyright (c) 2017 Acme Software Inc. and others." - ], - "holders": [ - "Acme Software Inc. and others." - ], - "authors": [], - "start_line": 2, - "end_line": 2 - } - ], - "packages": [] - }, - { - "path": "multiple_copies_01/a_nested_copy/level_2/a4.py", - "type": "file", - "name": "a4.py", - "base_name": "a4", - "extension": ".py", - "date": "2017-09-26", - "size": 200, - "sha1": "6f71666c46446c29d3f45feef5419ae76fb86a5b", - "md5": "fc403815d6605df989414ff40a64ea17", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", - "programming_language": "Python", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [], - "licenses": [ - { - "key": "apache-2.0", - "score": 80.0, - "short_name": "Apache 2.0", - "category": "Permissive", - "owner": "Apache Software Foundation", - "homepage_url": "http://www.apache.org/licenses/", - "text_url": "http://www.apache.org/licenses/LICENSE-2.0", - "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:apache-2.0", - "spdx_license_key": "Apache-2.0", - "spdx_url": "https://spdx.org/licenses/Apache-2.0", - "start_line": 3, - "end_line": 3, - "matched_rule": { - "identifier": "apache-2.0_57.RULE", - "license_choice": false, - "licenses": [ - "apache-2.0" - ] - } - } - ], - "copyrights": [ - { - "statements": [ - "Copyright (c) 2017 Acme Software Inc. and others." - ], - "holders": [ - "Acme Software Inc. and others." - ], - "authors": [], - "start_line": 2, - "end_line": 2 - } - ], - "packages": [] - }, - { - "path": "multiple_copies_01/b/b1.py", - "type": "file", - "name": "b1.py", - "base_name": "b1", - "extension": ".py", - "date": "2017-09-26", - "size": 200, - "sha1": "70f6ce80985578b5104db0abc578cf5a05e78f4b", - "md5": "af9e9420c6c5b2b0ca74e96bf7c1a2f4", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", - "programming_language": "Python", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [], - "licenses": [ - { - "key": "apache-2.0", - "score": 80.0, - "short_name": "Apache 2.0", - "category": "Permissive", - "owner": "Apache Software Foundation", - "homepage_url": "http://www.apache.org/licenses/", - "text_url": "http://www.apache.org/licenses/LICENSE-2.0", - "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:apache-2.0", - "spdx_license_key": "Apache-2.0", - "spdx_url": "https://spdx.org/licenses/Apache-2.0", - "start_line": 3, - "end_line": 3, - "matched_rule": { - "identifier": "apache-2.0_57.RULE", - "license_choice": false, - "licenses": [ - "apache-2.0" - ] - } - } - ], - "copyrights": [ - { - "statements": [ - "Copyright (c) 2017 Acme Software Inc. and others." - ], - "holders": [ - "Acme Software Inc. and others." - ], - "authors": [], - "start_line": 2, - "end_line": 2 - } - ], - "packages": [] - }, - { - "path": "multiple_copies_01/b/b2.py", - "type": "file", - "name": "b2.py", - "base_name": "b2", - "extension": ".py", - "date": "2017-09-26", - "size": 200, - "sha1": "3340d86b1da9323067db8022f86dc97cfccee1d0", - "md5": "74ce2b26cebb32670634270dde1fdf33", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", - "programming_language": "Python", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [], - "licenses": [ - { - "key": "apache-2.0", - "score": 80.0, - "short_name": "Apache 2.0", - "category": "Permissive", - "owner": "Apache Software Foundation", - "homepage_url": "http://www.apache.org/licenses/", - "text_url": "http://www.apache.org/licenses/LICENSE-2.0", - "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:apache-2.0", - "spdx_license_key": "Apache-2.0", - "spdx_url": "https://spdx.org/licenses/Apache-2.0", - "start_line": 3, - "end_line": 3, - "matched_rule": { - "identifier": "apache-2.0_57.RULE", - "license_choice": false, - "licenses": [ - "apache-2.0" - ] - } - } - ], - "copyrights": [ - { - "statements": [ - "Copyright (c) 2017 Acme Software Inc. and others." - ], - "holders": [ - "Acme Software Inc. and others." - ], - "authors": [], - "start_line": 2, - "end_line": 2 - } - ], - "packages": [] - }, - { - "path": "multiple_copies_01/b/b3.py", - "type": "file", - "name": "b3.py", - "base_name": "b3", - "extension": ".py", - "date": "2017-09-26", - "size": 200, - "sha1": "e49d4463662414bee5ad2d2e5c1fbd704f33b84e", - "md5": "8d458f54d32959b03dff37ef485b29c6", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", - "programming_language": "Python", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [], - "licenses": [ - { - "key": "apache-2.0", - "score": 80.0, - "short_name": "Apache 2.0", - "category": "Permissive", - "owner": "Apache Software Foundation", - "homepage_url": "http://www.apache.org/licenses/", - "text_url": "http://www.apache.org/licenses/LICENSE-2.0", - "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:apache-2.0", - "spdx_license_key": "Apache-2.0", - "spdx_url": "https://spdx.org/licenses/Apache-2.0", - "start_line": 3, - "end_line": 3, - "matched_rule": { - "identifier": "apache-2.0_57.RULE", - "license_choice": false, - "licenses": [ - "apache-2.0" - ] - } - } - ], - "copyrights": [ - { - "statements": [ - "Copyright (c) 2017 Acme Software Inc. and others." - ], - "holders": [ - "Acme Software Inc. and others." - ], - "authors": [], - "start_line": 2, - "end_line": 2 - } - ], - "packages": [] - }, - { - "path": "multiple_copies_01/b/b4.py", - "type": "file", - "name": "b4.py", - "base_name": "b4", - "extension": ".py", - "date": "2017-09-26", - "size": 200, - "sha1": "98c9e6bed78b1513c28e666016cb35a50708c36e", - "md5": "c3559aef44883a46e007ab01213091cb", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", - "programming_language": "Python", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [], - "licenses": [ - { - "key": "apache-2.0", - "score": 80.0, - "short_name": "Apache 2.0", - "category": "Permissive", - "owner": "Apache Software Foundation", - "homepage_url": "http://www.apache.org/licenses/", - "text_url": "http://www.apache.org/licenses/LICENSE-2.0", - "reference_url": "https://enterprise.dejacode.com/urn/urn:dje:license:apache-2.0", - "spdx_license_key": "Apache-2.0", - "spdx_url": "https://spdx.org/licenses/Apache-2.0", - "start_line": 3, - "end_line": 3, - "matched_rule": { - "identifier": "apache-2.0_57.RULE", - "license_choice": false, - "licenses": [ - "apache-2.0" - ] - } - } - ], - "copyrights": [ - { - "statements": [ - "Copyright (c) 2017 Acme Software Inc. and others." - ], - "holders": [ - "Acme Software Inc. and others." - ], - "authors": [], - "start_line": 2, - "end_line": 2 - } - ], - "packages": [] - } - ] -} diff --git a/tests/data/utils/load-files-simple-new.json b/tests/data/utils/load-files-simple-new.json deleted file mode 100644 index 28133939..00000000 --- a/tests/data/utils/load-files-simple-new.json +++ /dev/null @@ -1,958 +0,0 @@ -{ - "scancode_notice": "Generated with ScanCode and provided on an \"AS IS\" BASIS, WITHOUT WARRANTIES\nOR CONDITIONS OF ANY KIND, either express or implied. No content created from\nScanCode should be considered or used as legal advice. Consult an Attorney\nfor any legal advice.\nScanCode is a free software code scanning tool from nexB Inc. and others.\nVisit https://github.com/nexB/scancode-toolkit/ for support and download.", - "scancode_version": "2.2.1.post12.6d07756e", - "scancode_options": { - "--info": true, - "--license-score": 0, - "--format": "json-pp" - }, - "files_count": 43, - "files": [ - { - "path": "samples/README", - "type": "file", - "name": "README", - "base_name": "README", - "extension": "", - "date": "2017-09-22", - "size": 236, - "sha1": "2e07e32c52d607204fad196052d70e3d18fb8636", - "md5": "effc6856ef85a9250fb1a470792b3f38", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": null, - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/screenshot.png", - "type": "file", - "name": "screenshot.png", - "base_name": "screenshot", - "extension": ".png", - "date": "2017-09-22", - "size": 622754, - "sha1": "01ff4b1de0bc6c75c9cca6e46c80c1802d6976d4", - "md5": "b6ef5a90777147423c98b42a6a25e57a", - "files_count": null, - "mime_type": "image/png", - "file_type": "PNG image data, 2880 x 1666, 8-bit/color RGB, non-interlaced", - "programming_language": null, - "is_binary": true, - "is_text": false, - "is_archive": false, - "is_media": true, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/arch", - "type": "directory", - "name": "arch", - "base_name": "arch", - "extension": "", - "date": null, - "size": 28103, - "sha1": null, - "md5": null, - "files_count": 1, - "mime_type": null, - "file_type": null, - "programming_language": null, - "is_binary": false, - "is_text": false, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/JGroups", - "type": "directory", - "name": "JGroups", - "base_name": "JGroups", - "extension": "", - "date": null, - "size": 241228, - "sha1": null, - "md5": null, - "files_count": 14, - "mime_type": null, - "file_type": null, - "programming_language": null, - "is_binary": false, - "is_text": false, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/zlib", - "type": "directory", - "name": "zlib", - "base_name": "zlib", - "extension": "", - "date": null, - "size": 268762, - "sha1": null, - "md5": null, - "files_count": 16, - "mime_type": null, - "file_type": null, - "programming_language": null, - "is_binary": false, - "is_text": false, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/arch/zlib.tar.gz", - "type": "file", - "name": "zlib.tar.gz", - "base_name": "zlib", - "extension": ".tar.gz", - "date": "2017-09-22", - "size": 28103, - "sha1": "576f0ccfe534d7f5ff5d6400078d3c6586de3abd", - "md5": "20b2370751abfc08bb3556c1d8114b5a", - "files_count": null, - "mime_type": "application/x-gzip", - "file_type": "gzip compressed data, last modified: Wed Jul 15 09:08:19 2015, from Unix", - "programming_language": null, - "is_binary": true, - "is_text": false, - "is_archive": true, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/JGroups/EULA", - "type": "file", - "name": "EULA", - "base_name": "EULA", - "extension": "", - "date": "2017-09-22", - "size": 8156, - "sha1": "eb232aa0424eca9c4136904e6143b72aaa9cf4de", - "md5": "0be0aceb8296727efff0ac0bf8e6bdb3", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": "JavaScript+Lasso", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/JGroups/LICENSE", - "type": "file", - "name": "LICENSE", - "base_name": "LICENSE", - "extension": "", - "date": "2017-09-22", - "size": 26430, - "sha1": "e60c2e780886f95df9c9ee36992b8edabec00bcc", - "md5": "7fbc338309ac38fefcd64b04bb903e34", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": null, - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/JGroups/licenses", - "type": "directory", - "name": "licenses", - "base_name": "licenses", - "extension": "", - "date": null, - "size": 54552, - "sha1": null, - "md5": null, - "files_count": 5, - "mime_type": null, - "file_type": null, - "programming_language": null, - "is_binary": false, - "is_text": false, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/JGroups/src", - "type": "directory", - "name": "src", - "base_name": "src", - "extension": "", - "date": null, - "size": 152090, - "sha1": null, - "md5": null, - "files_count": 7, - "mime_type": null, - "file_type": null, - "programming_language": null, - "is_binary": false, - "is_text": false, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/JGroups/licenses/apache-1.1.txt", - "type": "file", - "name": "apache-1.1.txt", - "base_name": "apache-1.1", - "extension": ".txt", - "date": "2017-09-22", - "size": 2885, - "sha1": "6b5608d35c3e304532af43db8bbfc5947bef46a6", - "md5": "276982197c941f4cbf3d218546e17ae2", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", - "programming_language": null, - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/JGroups/licenses/apache-2.0.txt", - "type": "file", - "name": "apache-2.0.txt", - "base_name": "apache-2.0", - "extension": ".txt", - "date": "2017-09-22", - "size": 11560, - "sha1": "47b573e3824cd5e02a1a3ae99e2735b49e0256e4", - "md5": "d273d63619c9aeaf15cdaf76422c4f87", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", - "programming_language": null, - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/JGroups/licenses/bouncycastle.txt", - "type": "file", - "name": "bouncycastle.txt", - "base_name": "bouncycastle", - "extension": ".txt", - "date": "2017-09-22", - "size": 1186, - "sha1": "74facb0e9a734479f9cd893b5be3fe1bf651b760", - "md5": "9fffd8de865a5705969f62b128381f85", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": null, - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/JGroups/licenses/cpl-1.0.txt", - "type": "file", - "name": "cpl-1.0.txt", - "base_name": "cpl-1.0", - "extension": ".txt", - "date": "2017-09-22", - "size": 11987, - "sha1": "681cf776bcd79752543d42490ec7ed22a29fd888", - "md5": "9a6d2c9ae73d59eb3dd38e3909750d14", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", - "programming_language": null, - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/JGroups/licenses/lgpl.txt", - "type": "file", - "name": "lgpl.txt", - "base_name": "lgpl", - "extension": ".txt", - "date": "2017-09-22", - "size": 26934, - "sha1": "8f1a637d2e2ed1bdb9eb01a7dccb5c12cc0557e1", - "md5": "f14599a2f089f6ff8c97e2baa4e3d575", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", - "programming_language": null, - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/JGroups/src/FixedMembershipToken.java", - "type": "file", - "name": "FixedMembershipToken.java", - "base_name": "FixedMembershipToken", - "extension": ".java", - "date": "2017-09-22", - "size": 5144, - "sha1": "5901f73dcc78155a1a2c7b5663a3a11fba400b19", - "md5": "aca9640ec8beee21b098bcf8ecc91442", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": "Java", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/JGroups/src/GuardedBy.java", - "type": "file", - "name": "GuardedBy.java", - "base_name": "GuardedBy", - "extension": ".java", - "date": "2017-09-22", - "size": 813, - "sha1": "981d67087e65e9a44957c026d4b10817cf77d966", - "md5": "c5064400f759d3e81771005051d17dc1", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": "Java", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/JGroups/src/ImmutableReference.java", - "type": "file", - "name": "ImmutableReference.java", - "base_name": "ImmutableReference", - "extension": ".java", - "date": "2017-09-22", - "size": 1838, - "sha1": "30f56b876d5576d9869e2c5c509b08db57110592", - "md5": "48ca3c72fb9a65c771a321222f118b88", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": "Java", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/JGroups/src/RATE_LIMITER.java", - "type": "file", - "name": "RATE_LIMITER.java", - "base_name": "RATE_LIMITER", - "extension": ".java", - "date": "2017-09-22", - "size": 3692, - "sha1": "a8087e5d50da3273536ebda9b87b77aa4ff55deb", - "md5": "4626bdbc48871b55513e1a12991c61a8", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": "Java", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/JGroups/src/RouterStub.java", - "type": "file", - "name": "RouterStub.java", - "base_name": "RouterStub", - "extension": ".java", - "date": "2017-09-22", - "size": 9913, - "sha1": "c1f6818f8ee7bddcc9f444bc94c099729d716d52", - "md5": "eecfe23494acbcd8088c93bc1e83c7f2", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": "Java", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/JGroups/src/RouterStubManager.java", - "type": "file", - "name": "RouterStubManager.java", - "base_name": "RouterStubManager", - "extension": ".java", - "date": "2017-09-22", - "size": 8162, - "sha1": "eb419dc94cfe11ca318a3e743a7f9f080e70c751", - "md5": "20bee9631b7c82a45c250e095352aec7", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": "Java", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/JGroups/src/S3_PING.java", - "type": "file", - "name": "S3_PING.java", - "base_name": "S3_PING", - "extension": ".java", - "date": "2017-09-22", - "size": 122528, - "sha1": "08dba9986f69719970ead3592dc565465164df0d", - "md5": "83d8324f37d0e3f120bc89865cf0bd39", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": "Java", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/zlib/adler32.c", - "type": "file", - "name": "adler32.c", - "base_name": "adler32", - "extension": ".c", - "date": "2017-09-22", - "size": 4968, - "sha1": "0cff4808476ce0b5f6f0ebbc69ee2ab2a0eebe43", - "md5": "ae3bbb54820e1d49fb90cbba222e973f", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text", - "programming_language": "C", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/zlib/deflate.c", - "type": "file", - "name": "deflate.c", - "base_name": "deflate", - "extension": ".c", - "date": "2017-09-22", - "size": 71476, - "sha1": "7b4ace6d698c5dbbfb9a8f047f63228ca54d2e77", - "md5": "cd7826278ce9d9d9ed5abdefef50c3e2", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text", - "programming_language": "C", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/zlib/deflate.h", - "type": "file", - "name": "deflate.h", - "base_name": "deflate", - "extension": ".h", - "date": "2017-09-22", - "size": 12774, - "sha1": "29ed3b8ca3927576e5889dea5880ca0052942c7d", - "md5": "7ceae74a13201f14c91623116af169c3", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text", - "programming_language": "C", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/zlib/zlib.h", - "type": "file", - "name": "zlib.h", - "base_name": "zlib", - "extension": ".h", - "date": "2017-09-22", - "size": 87883, - "sha1": "400d35465f179a4acacb5fe749e6ce20a0bbdb84", - "md5": "64d8a5180bd54ff5452886e4cbb21e14", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text", - "programming_language": "C", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/zlib/zutil.c", - "type": "file", - "name": "zutil.c", - "base_name": "zutil", - "extension": ".c", - "date": "2017-09-22", - "size": 7414, - "sha1": "e1af709bff21ae0d4331119a7fc4c19f82932043", - "md5": "fff257bc1656eb60fc585a7dc35f963d", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text", - "programming_language": "C", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/zlib/zutil.h", - "type": "file", - "name": "zutil.h", - "base_name": "zutil", - "extension": ".h", - "date": "2017-09-22", - "size": 6766, - "sha1": "b909d27ef9ce51639f76b7ea6b62721e7d1b6bf7", - "md5": "04fcfbb961591c9452c4d0fd1525ffdf", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text", - "programming_language": "C", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/zlib/ada", - "type": "directory", - "name": "ada", - "base_name": "ada", - "extension": "", - "date": null, - "size": 13594, - "sha1": null, - "md5": null, - "files_count": 1, - "mime_type": null, - "file_type": null, - "programming_language": null, - "is_binary": false, - "is_text": false, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/zlib/dotzlib", - "type": "directory", - "name": "dotzlib", - "base_name": "dotzlib", - "extension": "", - "date": null, - "size": 14257, - "sha1": null, - "md5": null, - "files_count": 4, - "mime_type": null, - "file_type": null, - "programming_language": null, - "is_binary": false, - "is_text": false, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/zlib/gcc_gvmat64", - "type": "directory", - "name": "gcc_gvmat64", - "base_name": "gcc_gvmat64", - "extension": "", - "date": null, - "size": 16413, - "sha1": null, - "md5": null, - "files_count": 1, - "mime_type": null, - "file_type": null, - "programming_language": null, - "is_binary": false, - "is_text": false, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/zlib/infback9", - "type": "directory", - "name": "infback9", - "base_name": "infback9", - "extension": "", - "date": null, - "size": 23223, - "sha1": null, - "md5": null, - "files_count": 2, - "mime_type": null, - "file_type": null, - "programming_language": null, - "is_binary": false, - "is_text": false, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/zlib/iostream2", - "type": "directory", - "name": "iostream2", - "base_name": "iostream2", - "extension": "", - "date": null, - "size": 9994, - "sha1": null, - "md5": null, - "files_count": 2, - "mime_type": null, - "file_type": null, - "programming_language": null, - "is_binary": false, - "is_text": false, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/zlib/ada/zlib.ads", - "type": "file", - "name": "zlib.ads", - "base_name": "zlib", - "extension": ".ads", - "date": "2017-09-22", - "size": 13594, - "sha1": "0245a91806d804bf9f0907a3a001a141e9adb61b", - "md5": "71de2670f2e588b51c62e7f6a9046399", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": "Ada", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/zlib/dotzlib/AssemblyInfo.cs", - "type": "file", - "name": "AssemblyInfo.cs", - "base_name": "AssemblyInfo", - "extension": ".cs", - "date": "2017-09-22", - "size": 2500, - "sha1": "9f1db1177b2e9a014f72bb3cd80be17133e06d16", - "md5": "23d0d7c18846fc31655b6aa89b7c8038", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", - "programming_language": "C#", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/zlib/dotzlib/ChecksumImpl.cs", - "type": "file", - "name": "ChecksumImpl.cs", - "base_name": "ChecksumImpl", - "extension": ".cs", - "date": "2017-09-22", - "size": 8040, - "sha1": "3807a0e24a57b92ea301559cab7307b8eab52c51", - "md5": "d01b3cb2e75da9b15f05b92b42f6bd33", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ISO-8859 text, with CRLF line terminators", - "programming_language": "C#", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/zlib/dotzlib/LICENSE_1_0.txt", - "type": "file", - "name": "LICENSE_1_0.txt", - "base_name": "LICENSE_1_0", - "extension": ".txt", - "date": "2017-09-22", - "size": 1359, - "sha1": "892b34f7865d90a6f949f50d95e49625a10bc7f0", - "md5": "81543b22c36f10d20ac9712f8d80ef8d", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", - "programming_language": null, - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/zlib/dotzlib/readme.txt", - "type": "file", - "name": "readme.txt", - "base_name": "readme", - "extension": ".txt", - "date": "2017-09-22", - "size": 2358, - "sha1": "b1229b826f0096808628474538cea8fec2922a9b", - "md5": "1f20f3168ee63d90de033edac2ce383c", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", - "programming_language": null, - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/zlib/gcc_gvmat64/gvmat64.S", - "type": "file", - "name": "gvmat64.S", - "base_name": "gvmat64", - "extension": ".S", - "date": "2017-09-22", - "size": 16413, - "sha1": "742603cba1af98a1432cc02efb019b1a5760adf2", - "md5": "5e772d7302475e5473d0c4c57b9861e8", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text, with CRLF line terminators", - "programming_language": "GAS", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/zlib/infback9/infback9.c", - "type": "file", - "name": "infback9.c", - "base_name": "infback9", - "extension": ".c", - "date": "2017-09-22", - "size": 21629, - "sha1": "17fb362c03755b12f2dda5b12a68cf38162674bd", - "md5": "23ff5edec0817da303cb1294c1e4205c", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text", - "programming_language": "C", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/zlib/infback9/infback9.h", - "type": "file", - "name": "infback9.h", - "base_name": "infback9", - "extension": ".h", - "date": "2017-09-22", - "size": 1594, - "sha1": "d0486a32b558dcaceded5f0746fad62e680a4734", - "md5": "52b1ed99960d3ed7ed60cd20295e64a8", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text", - "programming_language": "C", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/zlib/iostream2/zstream.h", - "type": "file", - "name": "zstream.h", - "base_name": "zstream", - "extension": ".h", - "date": "2017-09-22", - "size": 9283, - "sha1": "fca4540d490fff36bb90fd801cf9cd8fc695bb17", - "md5": "a980b61c1e8be68d5cdb1236ba6b43e7", - "files_count": null, - "mime_type": "text/x-c++", - "file_type": "C++ source, ASCII text", - "programming_language": "C", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "samples/zlib/iostream2/zstream_test.cpp", - "type": "file", - "name": "zstream_test.cpp", - "base_name": "zstream_test", - "extension": ".cpp", - "date": "2017-09-22", - "size": 711, - "sha1": "e18a6d55cbbd8b832f8d795530553467e5c74fcf", - "md5": "d32476bde4e6d5f889092fdff6f8cdb0", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text", - "programming_language": "C++", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - } - ] -} diff --git a/tests/data/utils/load-files-simple-old.json b/tests/data/utils/load-files-simple-old.json deleted file mode 100644 index 38bc1409..00000000 --- a/tests/data/utils/load-files-simple-old.json +++ /dev/null @@ -1,959 +0,0 @@ -{ - "scancode_notice": "Generated with ScanCode and provided on an \"AS IS\" BASIS, WITHOUT WARRANTIES\nOR CONDITIONS OF ANY KIND, either express or implied. No content created from\nScanCode should be considered or used as legal advice. Consult an Attorney\nfor any legal advice.\nScanCode is a free software code scanning tool from nexB Inc. and others.\nVisit https://github.com/nexB/scancode-toolkit/ for support and download.", - "scancode_version": "2.2.1.post12.6d07756e", - "scancode_options": { - "--info": true, - "--license-score": 0, - "--full-root": true, - "--format": "json-pp" - }, - "files_count": 43, - "files": [ - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/README", - "type": "file", - "name": "README", - "base_name": "README", - "extension": "", - "date": "2017-09-22", - "size": 236, - "sha1": "2e07e32c52d607204fad196052d70e3d18fb8636", - "md5": "effc6856ef85a9250fb1a470792b3f38", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": null, - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/screenshot.png", - "type": "file", - "name": "screenshot.png", - "base_name": "screenshot", - "extension": ".png", - "date": "2017-09-22", - "size": 622754, - "sha1": "01ff4b1de0bc6c75c9cca6e46c80c1802d6976d4", - "md5": "b6ef5a90777147423c98b42a6a25e57a", - "files_count": null, - "mime_type": "image/png", - "file_type": "PNG image data, 2880 x 1666, 8-bit/color RGB, non-interlaced", - "programming_language": null, - "is_binary": true, - "is_text": false, - "is_archive": false, - "is_media": true, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/arch", - "type": "directory", - "name": "arch", - "base_name": "arch", - "extension": "", - "date": null, - "size": 28103, - "sha1": null, - "md5": null, - "files_count": 1, - "mime_type": null, - "file_type": null, - "programming_language": null, - "is_binary": false, - "is_text": false, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/JGroups", - "type": "directory", - "name": "JGroups", - "base_name": "JGroups", - "extension": "", - "date": null, - "size": 241228, - "sha1": null, - "md5": null, - "files_count": 14, - "mime_type": null, - "file_type": null, - "programming_language": null, - "is_binary": false, - "is_text": false, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/zlib", - "type": "directory", - "name": "zlib", - "base_name": "zlib", - "extension": "", - "date": null, - "size": 268762, - "sha1": null, - "md5": null, - "files_count": 16, - "mime_type": null, - "file_type": null, - "programming_language": null, - "is_binary": false, - "is_text": false, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/arch/zlib.tar.gz", - "type": "file", - "name": "zlib.tar.gz", - "base_name": "zlib", - "extension": ".tar.gz", - "date": "2017-09-22", - "size": 28103, - "sha1": "576f0ccfe534d7f5ff5d6400078d3c6586de3abd", - "md5": "20b2370751abfc08bb3556c1d8114b5a", - "files_count": null, - "mime_type": "application/x-gzip", - "file_type": "gzip compressed data, last modified: Wed Jul 15 09:08:19 2015, from Unix", - "programming_language": null, - "is_binary": true, - "is_text": false, - "is_archive": true, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/JGroups/EULA", - "type": "file", - "name": "EULA", - "base_name": "EULA", - "extension": "", - "date": "2017-09-22", - "size": 8156, - "sha1": "eb232aa0424eca9c4136904e6143b72aaa9cf4de", - "md5": "0be0aceb8296727efff0ac0bf8e6bdb3", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": "JavaScript+Lasso", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/JGroups/LICENSE", - "type": "file", - "name": "LICENSE", - "base_name": "LICENSE", - "extension": "", - "date": "2017-09-22", - "size": 26430, - "sha1": "e60c2e780886f95df9c9ee36992b8edabec00bcc", - "md5": "7fbc338309ac38fefcd64b04bb903e34", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": null, - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/JGroups/licenses", - "type": "directory", - "name": "licenses", - "base_name": "licenses", - "extension": "", - "date": null, - "size": 54552, - "sha1": null, - "md5": null, - "files_count": 5, - "mime_type": null, - "file_type": null, - "programming_language": null, - "is_binary": false, - "is_text": false, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/JGroups/src", - "type": "directory", - "name": "src", - "base_name": "src", - "extension": "", - "date": null, - "size": 152090, - "sha1": null, - "md5": null, - "files_count": 7, - "mime_type": null, - "file_type": null, - "programming_language": null, - "is_binary": false, - "is_text": false, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/JGroups/licenses/apache-1.1.txt", - "type": "file", - "name": "apache-1.1.txt", - "base_name": "apache-1.1", - "extension": ".txt", - "date": "2017-09-22", - "size": 2885, - "sha1": "6b5608d35c3e304532af43db8bbfc5947bef46a6", - "md5": "276982197c941f4cbf3d218546e17ae2", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", - "programming_language": null, - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/JGroups/licenses/apache-2.0.txt", - "type": "file", - "name": "apache-2.0.txt", - "base_name": "apache-2.0", - "extension": ".txt", - "date": "2017-09-22", - "size": 11560, - "sha1": "47b573e3824cd5e02a1a3ae99e2735b49e0256e4", - "md5": "d273d63619c9aeaf15cdaf76422c4f87", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", - "programming_language": null, - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/JGroups/licenses/bouncycastle.txt", - "type": "file", - "name": "bouncycastle.txt", - "base_name": "bouncycastle", - "extension": ".txt", - "date": "2017-09-22", - "size": 1186, - "sha1": "74facb0e9a734479f9cd893b5be3fe1bf651b760", - "md5": "9fffd8de865a5705969f62b128381f85", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": null, - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/JGroups/licenses/cpl-1.0.txt", - "type": "file", - "name": "cpl-1.0.txt", - "base_name": "cpl-1.0", - "extension": ".txt", - "date": "2017-09-22", - "size": 11987, - "sha1": "681cf776bcd79752543d42490ec7ed22a29fd888", - "md5": "9a6d2c9ae73d59eb3dd38e3909750d14", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", - "programming_language": null, - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/JGroups/licenses/lgpl.txt", - "type": "file", - "name": "lgpl.txt", - "base_name": "lgpl", - "extension": ".txt", - "date": "2017-09-22", - "size": 26934, - "sha1": "8f1a637d2e2ed1bdb9eb01a7dccb5c12cc0557e1", - "md5": "f14599a2f089f6ff8c97e2baa4e3d575", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", - "programming_language": null, - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/JGroups/src/FixedMembershipToken.java", - "type": "file", - "name": "FixedMembershipToken.java", - "base_name": "FixedMembershipToken", - "extension": ".java", - "date": "2017-09-22", - "size": 5144, - "sha1": "5901f73dcc78155a1a2c7b5663a3a11fba400b19", - "md5": "aca9640ec8beee21b098bcf8ecc91442", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": "Java", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/JGroups/src/GuardedBy.java", - "type": "file", - "name": "GuardedBy.java", - "base_name": "GuardedBy", - "extension": ".java", - "date": "2017-09-22", - "size": 813, - "sha1": "981d67087e65e9a44957c026d4b10817cf77d966", - "md5": "c5064400f759d3e81771005051d17dc1", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": "Java", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/JGroups/src/ImmutableReference.java", - "type": "file", - "name": "ImmutableReference.java", - "base_name": "ImmutableReference", - "extension": ".java", - "date": "2017-09-22", - "size": 1838, - "sha1": "30f56b876d5576d9869e2c5c509b08db57110592", - "md5": "48ca3c72fb9a65c771a321222f118b88", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": "Java", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/JGroups/src/RATE_LIMITER.java", - "type": "file", - "name": "RATE_LIMITER.java", - "base_name": "RATE_LIMITER", - "extension": ".java", - "date": "2017-09-22", - "size": 3692, - "sha1": "a8087e5d50da3273536ebda9b87b77aa4ff55deb", - "md5": "4626bdbc48871b55513e1a12991c61a8", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": "Java", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/JGroups/src/RouterStub.java", - "type": "file", - "name": "RouterStub.java", - "base_name": "RouterStub", - "extension": ".java", - "date": "2017-09-22", - "size": 9913, - "sha1": "c1f6818f8ee7bddcc9f444bc94c099729d716d52", - "md5": "eecfe23494acbcd8088c93bc1e83c7f2", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": "Java", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/JGroups/src/RouterStubManager.java", - "type": "file", - "name": "RouterStubManager.java", - "base_name": "RouterStubManager", - "extension": ".java", - "date": "2017-09-22", - "size": 8162, - "sha1": "eb419dc94cfe11ca318a3e743a7f9f080e70c751", - "md5": "20bee9631b7c82a45c250e095352aec7", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": "Java", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/JGroups/src/S3_PING.java", - "type": "file", - "name": "S3_PING.java", - "base_name": "S3_PING", - "extension": ".java", - "date": "2017-09-22", - "size": 122528, - "sha1": "08dba9986f69719970ead3592dc565465164df0d", - "md5": "83d8324f37d0e3f120bc89865cf0bd39", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": "Java", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/zlib/adler32.c", - "type": "file", - "name": "adler32.c", - "base_name": "adler32", - "extension": ".c", - "date": "2017-09-22", - "size": 4968, - "sha1": "0cff4808476ce0b5f6f0ebbc69ee2ab2a0eebe43", - "md5": "ae3bbb54820e1d49fb90cbba222e973f", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text", - "programming_language": "C", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/zlib/deflate.c", - "type": "file", - "name": "deflate.c", - "base_name": "deflate", - "extension": ".c", - "date": "2017-09-22", - "size": 71476, - "sha1": "7b4ace6d698c5dbbfb9a8f047f63228ca54d2e77", - "md5": "cd7826278ce9d9d9ed5abdefef50c3e2", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text", - "programming_language": "C", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/zlib/deflate.h", - "type": "file", - "name": "deflate.h", - "base_name": "deflate", - "extension": ".h", - "date": "2017-09-22", - "size": 12774, - "sha1": "29ed3b8ca3927576e5889dea5880ca0052942c7d", - "md5": "7ceae74a13201f14c91623116af169c3", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text", - "programming_language": "C", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/zlib/zlib.h", - "type": "file", - "name": "zlib.h", - "base_name": "zlib", - "extension": ".h", - "date": "2017-09-22", - "size": 87883, - "sha1": "400d35465f179a4acacb5fe749e6ce20a0bbdb84", - "md5": "64d8a5180bd54ff5452886e4cbb21e14", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text", - "programming_language": "C", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/zlib/zutil.c", - "type": "file", - "name": "zutil.c", - "base_name": "zutil", - "extension": ".c", - "date": "2017-09-22", - "size": 7414, - "sha1": "e1af709bff21ae0d4331119a7fc4c19f82932043", - "md5": "fff257bc1656eb60fc585a7dc35f963d", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text", - "programming_language": "C", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/zlib/zutil.h", - "type": "file", - "name": "zutil.h", - "base_name": "zutil", - "extension": ".h", - "date": "2017-09-22", - "size": 6766, - "sha1": "b909d27ef9ce51639f76b7ea6b62721e7d1b6bf7", - "md5": "04fcfbb961591c9452c4d0fd1525ffdf", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text", - "programming_language": "C", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/zlib/ada", - "type": "directory", - "name": "ada", - "base_name": "ada", - "extension": "", - "date": null, - "size": 13594, - "sha1": null, - "md5": null, - "files_count": 1, - "mime_type": null, - "file_type": null, - "programming_language": null, - "is_binary": false, - "is_text": false, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/zlib/dotzlib", - "type": "directory", - "name": "dotzlib", - "base_name": "dotzlib", - "extension": "", - "date": null, - "size": 14257, - "sha1": null, - "md5": null, - "files_count": 4, - "mime_type": null, - "file_type": null, - "programming_language": null, - "is_binary": false, - "is_text": false, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/zlib/gcc_gvmat64", - "type": "directory", - "name": "gcc_gvmat64", - "base_name": "gcc_gvmat64", - "extension": "", - "date": null, - "size": 16413, - "sha1": null, - "md5": null, - "files_count": 1, - "mime_type": null, - "file_type": null, - "programming_language": null, - "is_binary": false, - "is_text": false, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/zlib/infback9", - "type": "directory", - "name": "infback9", - "base_name": "infback9", - "extension": "", - "date": null, - "size": 23223, - "sha1": null, - "md5": null, - "files_count": 2, - "mime_type": null, - "file_type": null, - "programming_language": null, - "is_binary": false, - "is_text": false, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/zlib/iostream2", - "type": "directory", - "name": "iostream2", - "base_name": "iostream2", - "extension": "", - "date": null, - "size": 9994, - "sha1": null, - "md5": null, - "files_count": 2, - "mime_type": null, - "file_type": null, - "programming_language": null, - "is_binary": false, - "is_text": false, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/zlib/ada/zlib.ads", - "type": "file", - "name": "zlib.ads", - "base_name": "zlib", - "extension": ".ads", - "date": "2017-09-22", - "size": 13594, - "sha1": "0245a91806d804bf9f0907a3a001a141e9adb61b", - "md5": "71de2670f2e588b51c62e7f6a9046399", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text", - "programming_language": "Ada", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/zlib/dotzlib/AssemblyInfo.cs", - "type": "file", - "name": "AssemblyInfo.cs", - "base_name": "AssemblyInfo", - "extension": ".cs", - "date": "2017-09-22", - "size": 2500, - "sha1": "9f1db1177b2e9a014f72bb3cd80be17133e06d16", - "md5": "23d0d7c18846fc31655b6aa89b7c8038", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", - "programming_language": "C#", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/zlib/dotzlib/ChecksumImpl.cs", - "type": "file", - "name": "ChecksumImpl.cs", - "base_name": "ChecksumImpl", - "extension": ".cs", - "date": "2017-09-22", - "size": 8040, - "sha1": "3807a0e24a57b92ea301559cab7307b8eab52c51", - "md5": "d01b3cb2e75da9b15f05b92b42f6bd33", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ISO-8859 text, with CRLF line terminators", - "programming_language": "C#", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/zlib/dotzlib/LICENSE_1_0.txt", - "type": "file", - "name": "LICENSE_1_0.txt", - "base_name": "LICENSE_1_0", - "extension": ".txt", - "date": "2017-09-22", - "size": 1359, - "sha1": "892b34f7865d90a6f949f50d95e49625a10bc7f0", - "md5": "81543b22c36f10d20ac9712f8d80ef8d", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", - "programming_language": null, - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/zlib/dotzlib/readme.txt", - "type": "file", - "name": "readme.txt", - "base_name": "readme", - "extension": ".txt", - "date": "2017-09-22", - "size": 2358, - "sha1": "b1229b826f0096808628474538cea8fec2922a9b", - "md5": "1f20f3168ee63d90de033edac2ce383c", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with CRLF line terminators", - "programming_language": null, - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": false, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/zlib/gcc_gvmat64/gvmat64.S", - "type": "file", - "name": "gvmat64.S", - "base_name": "gvmat64", - "extension": ".S", - "date": "2017-09-22", - "size": 16413, - "sha1": "742603cba1af98a1432cc02efb019b1a5760adf2", - "md5": "5e772d7302475e5473d0c4c57b9861e8", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text, with CRLF line terminators", - "programming_language": "GAS", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/zlib/infback9/infback9.c", - "type": "file", - "name": "infback9.c", - "base_name": "infback9", - "extension": ".c", - "date": "2017-09-22", - "size": 21629, - "sha1": "17fb362c03755b12f2dda5b12a68cf38162674bd", - "md5": "23ff5edec0817da303cb1294c1e4205c", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text", - "programming_language": "C", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/zlib/infback9/infback9.h", - "type": "file", - "name": "infback9.h", - "base_name": "infback9", - "extension": ".h", - "date": "2017-09-22", - "size": 1594, - "sha1": "d0486a32b558dcaceded5f0746fad62e680a4734", - "md5": "52b1ed99960d3ed7ed60cd20295e64a8", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text", - "programming_language": "C", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/zlib/iostream2/zstream.h", - "type": "file", - "name": "zstream.h", - "base_name": "zstream", - "extension": ".h", - "date": "2017-09-22", - "size": 9283, - "sha1": "fca4540d490fff36bb90fd801cf9cd8fc695bb17", - "md5": "a980b61c1e8be68d5cdb1236ba6b43e7", - "files_count": null, - "mime_type": "text/x-c++", - "file_type": "C++ source, ASCII text", - "programming_language": "C", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - }, - { - "path": "/Users/sesser/code/nexb/scancode-toolkit/samples/zlib/iostream2/zstream_test.cpp", - "type": "file", - "name": "zstream_test.cpp", - "base_name": "zstream_test", - "extension": ".cpp", - "date": "2017-09-22", - "size": 711, - "sha1": "e18a6d55cbbd8b832f8d795530553467e5c74fcf", - "md5": "d32476bde4e6d5f889092fdff6f8cdb0", - "files_count": null, - "mime_type": "text/x-c", - "file_type": "C source, ASCII text", - "programming_language": "C++", - "is_binary": false, - "is_text": true, - "is_archive": false, - "is_media": false, - "is_source": true, - "is_script": false, - "scan_errors": [] - } - ] -} diff --git a/tests/data/utils/removed1.csv b/tests/data/utils/removed1.csv deleted file mode 100644 index f37fa136..00000000 --- a/tests/data/utils/removed1.csv +++ /dev/null @@ -1,9 +0,0 @@ -Type of delta,New scan path,Old scan path,new_filename,old_filename,new_sha1,old_sha1,new_size,old_size,new_type,old_type,new_original_path,old_original_path -unchanged,a/a1.py,a/a1.py,a1.py,a1.py,84b647771481d39dd3a53f6dc210c26abac37748,84b647771481d39dd3a53f6dc210c26abac37748,200,200,file,file,codebase_01_1_file_removed/a/a1.py,codebase_01/a/a1.py -unchanged,a/a2.py,a/a2.py,a2.py,a2.py,310797523e47db8481aeb06f1634317285115091,310797523e47db8481aeb06f1634317285115091,200,200,file,file,codebase_01_1_file_removed/a/a2.py,codebase_01/a/a2.py -unchanged,a/a3.py,a/a3.py,a3.py,a3.py,fd5d3589c825f448546d7dcec36da3e567d35fe9,fd5d3589c825f448546d7dcec36da3e567d35fe9,200,200,file,file,codebase_01_1_file_removed/a/a3.py,codebase_01/a/a3.py -unchanged,b/b1.py,b/b1.py,b1.py,b1.py,70f6ce80985578b5104db0abc578cf5a05e78f4b,70f6ce80985578b5104db0abc578cf5a05e78f4b,200,200,file,file,codebase_01_1_file_removed/b/b1.py,codebase_01/b/b1.py -unchanged,b/b2.py,b/b2.py,b2.py,b2.py,3340d86b1da9323067db8022f86dc97cfccee1d0,3340d86b1da9323067db8022f86dc97cfccee1d0,200,200,file,file,codebase_01_1_file_removed/b/b2.py,codebase_01/b/b2.py -unchanged,b/b3.py,b/b3.py,b3.py,b3.py,e49d4463662414bee5ad2d2e5c1fbd704f33b84e,e49d4463662414bee5ad2d2e5c1fbd704f33b84e,200,200,file,file,codebase_01_1_file_removed/b/b3.py,codebase_01/b/b3.py -unchanged,b/b4.py,b/b4.py,b4.py,b4.py,98c9e6bed78b1513c28e666016cb35a50708c36e,98c9e6bed78b1513c28e666016cb35a50708c36e,200,200,file,file,codebase_01_1_file_removed/b/b4.py,codebase_01/b/b4.py -removed,,a/a4.py,,a4.py,,6f71666c46446c29d3f45feef5419ae76fb86a5b,,200,,file,,codebase_01/a/a4.py \ No newline at end of file diff --git a/tests/data/utils/test_file1.json b/tests/data/utils/test_file1.json deleted file mode 100644 index 7f9a4e68..00000000 --- a/tests/data/utils/test_file1.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "path": "file1.txt", - "type": "file", - "name": "file1.txt", - "extension": ".txt", - "date": "2016-11-28", - "size": 20, - "sha1": "26d82f1931cbdbd83c2a6871b2cecd5cbcc8c26b", - "md5": "3de8f8b0dc94b8c2230fab9ec0ba0506", - "files_count": null, - "mime_type": "text/plain", - "file_type": "ASCII text, with no line terminators", - "programming_language": null, - "is_binary": null, - "is_text": true, - "is_archive": null, - "is_media": null, - "is_source": null, - "is_script": null, - "scan_errors": [], - "licenses": [], - "copyrights": [], - "packages": [] -} diff --git a/tests/data/utils/test_file2.json b/tests/data/utils/test_file2.json deleted file mode 100644 index 82b5406e..00000000 --- a/tests/data/utils/test_file2.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "path": "some/path/file1.txt", - "type": "file", - "name": "file1.txt", - "size": "256", - "sha1": "abcd", - "md5": "efgh" -} diff --git a/tests/data/utils/test_file3.json b/tests/data/utils/test_file3.json deleted file mode 100644 index c44dc316..00000000 --- a/tests/data/utils/test_file3.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "path": "some/path/file2.txt", - "type": "file", - "name": "file2.txt", - "size": "512", - "sha1": "12345", - "md5": "67891" -} diff --git a/tests/data/utils/test_file4.json b/tests/data/utils/test_file4.json deleted file mode 100644 index d1865df6..00000000 --- a/tests/data/utils/test_file4.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "path": "some/other/longer/path/file1.txt", - "type": "file", - "name": "file1.txt", - "size": "256", - "sha1": "abcd", - "md5": "efgh" -} diff --git a/tests/test_cli.py b/tests/test_cli.py index 51e46afa..70617262 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -268,8 +268,8 @@ def test_write_csv_1_file_moved_and_added(self): check_csvs(result_file, expected_file) def test_json_output_option_selected_all_selected(self): - new_scan = self.get_test_loc('deltacode/scan_1_file_moved_new.json') - old_scan = self.get_test_loc('deltacode/scan_1_file_moved_old.json') + new_scan = self.get_test_loc('cli/scan_1_file_moved_new.json') + old_scan = self.get_test_loc('cli/scan_1_file_moved_old.json') result_file = self.get_temp_file('json') @@ -384,8 +384,8 @@ def test_json_output_option_selected_all_selected(self): assert unmodified_result == unmodified_expected def test_json_output_option_selected_all_not_selected(self): - new_scan = self.get_test_loc('deltacode/scan_1_file_moved_new.json') - old_scan = self.get_test_loc('deltacode/scan_1_file_moved_old.json') + new_scan = self.get_test_loc('cli/scan_1_file_moved_new.json') + old_scan = self.get_test_loc('cli/scan_1_file_moved_old.json') result_file = self.get_temp_file('json') @@ -463,8 +463,8 @@ def test_json_output_option_selected_all_not_selected(self): assert len(unmodified_result) == 0 def test_csv_output_option_selected_all_selected(self): - new_scan = self.get_test_loc('deltacode/scan_1_file_moved_new.json') - old_scan = self.get_test_loc('deltacode/scan_1_file_moved_old.json') + new_scan = self.get_test_loc('cli/scan_1_file_moved_new.json') + old_scan = self.get_test_loc('cli/scan_1_file_moved_old.json') result_file = self.get_temp_file('.csv') expected_file = self.get_test_loc('cli/1_file_moved.csv') @@ -476,8 +476,8 @@ def test_csv_output_option_selected_all_selected(self): check_csvs(result_file, expected_file) def test_csv_output_option_selected_all_not_selected(self): - new_scan = self.get_test_loc('deltacode/scan_1_file_moved_new.json') - old_scan = self.get_test_loc('deltacode/scan_1_file_moved_old.json') + new_scan = self.get_test_loc('cli/scan_1_file_moved_new.json') + old_scan = self.get_test_loc('cli/scan_1_file_moved_old.json') result_file = self.get_temp_file('.csv') expected_file = self.get_test_loc('cli/1_file_moved_all_not_selected.csv') @@ -489,8 +489,8 @@ def test_csv_output_option_selected_all_not_selected(self): check_csvs(result_file, expected_file) def test_no_output_option_selected_all_selected(self): - new_scan = self.get_test_loc('deltacode/scan_1_file_moved_new.json') - old_scan = self.get_test_loc('deltacode/scan_1_file_moved_old.json') + new_scan = self.get_test_loc('cli/scan_1_file_moved_new.json') + old_scan = self.get_test_loc('cli/scan_1_file_moved_old.json') runner = CliRunner() result = runner.invoke(cli.cli, ['-n', new_scan, '-o', old_scan, '-a']) @@ -537,8 +537,8 @@ def test_no_output_option_selected_all_selected(self): assert '"original_path": "1_file_moved_new/a/a3.py"' in result .output def test_no_output_option_selected_all_not_selected(self): - new_scan = self.get_test_loc('deltacode/scan_1_file_moved_new.json') - old_scan = self.get_test_loc('deltacode/scan_1_file_moved_old.json') + new_scan = self.get_test_loc('cli/scan_1_file_moved_new.json') + old_scan = self.get_test_loc('cli/scan_1_file_moved_old.json') runner = CliRunner() result = runner.invoke(cli.cli, ['-n', new_scan, '-o', old_scan]) diff --git a/tests/test_deltacode.py b/tests/test_deltacode.py index 32c7c809..484cacc5 100644 --- a/tests/test_deltacode.py +++ b/tests/test_deltacode.py @@ -58,7 +58,7 @@ def test_align_and_index_scans(self): delta.new = new delta.old = old - delta.align_scan() + delta.align_scans() new_index = delta.new.index_files() old_index = delta.old.index_files() @@ -397,9 +397,10 @@ def test_DeltaCode_delta_len_error(self): result.old.files_count = 40 result.determine_delta() + assert result.errors == [ - 'Deltacode Error: Number of visited files(43) does not match total_files(42) in the new scan', - 'Deltacode Error: Number of visited files(43) does not match total_files(40) in the old scan' + 'DeltaCode Warning: new_visited(33) != new_total(42). Assuming old scancode format.', + 'DeltaCode Warning: old_visited(33) != old_total(40). Assuming old scancode format.', ] def test_DeltaCode_get_stats_original_path_openssl(self): diff --git a/tests/test_models.py b/tests/test_models.py index 24052600..b8c14f6f 100644 --- a/tests/test_models.py +++ b/tests/test_models.py @@ -40,24 +40,6 @@ class TestModels(FileBasedTesting): test_data_dir = os.path.join(os.path.dirname(__file__), 'data') - def test_Scan_load_files_fails_when_files_not_equal(self): - test_file = self.get_test_loc('models/scan/files-mismatch.json') - - result = models.Scan(test_file) - - expected_result = ["Scan Error: The number of files calculated with 'len(files)' does not equal the ScanCode 'files_count' value for the scan with path = " + test_file + "."] - - assert result.errors == expected_result - - def test_Scan_load_files_fails_when_counts_not_equal(self): - test_file = self.get_test_loc('models/scan/files-count-mismatch.json') - - result = models.Scan(test_file) - - expected_result = ["Scan Error: The number of files calculated with 'len(files)' does not equal the ScanCode 'files_count' value for the scan with path = " + test_file + "."] - - assert result.errors == expected_result - def test_Scan_index_files_simple(self): test_files = [models.File({'path': 'path1/a'}), models.File({'path': 'path1/b'})]