diff --git a/swh/clearlydefined/error.py b/swh/clearlydefined/error.py new file mode 100644 --- /dev/null +++ b/swh/clearlydefined/error.py @@ -0,0 +1,35 @@ +# Copyright (C) 2017-2021 The Software Heritage developers +# See the AUTHORS file at the top-level directory of this distribution +# License: GNU Affero General Public License version 3, or any later version +# See top-level LICENSE file for more information + +class Error(Exception): + def __init__(self, value): + self.value = value + + def __str__(self, value): + return repr(self.value) + + +class InvalidComponents(Error): + pass + + +class RevisionNotFound(Error): + pass + + +class WrongMetadata(Error): + pass + + +class NoJsonExtension(Error): + pass + + +class ToolNotFound(Error): + pass + + +class ToolNotSupported(Error): + pass diff --git a/swh/clearlydefined/mapping_utils.py b/swh/clearlydefined/mapping_utils.py --- a/swh/clearlydefined/mapping_utils.py +++ b/swh/clearlydefined/mapping_utils.py @@ -3,27 +3,250 @@ # License: GNU Affero General Public License version 3, or any later version # See top-level LICENSE file for more information -from typing import Optional +import json +from typing import Any, Dict, Optional, Tuple, List, Union +import gzip from swh.model.hashutil import hash_to_bytes from swh.model.hashutil import hash_to_hex -import psycopg2 +from swh.model.model import MetadataTargetType, Origin +from swh.clearlydefined.error import ( + InvalidComponents, + WrongMetadata, + ToolNotFound, + NoJsonExtension, + RevisionNotFound, + ToolNotSupported +) -def map_sha1_with_swhid(sha1: str, dsn: str) -> Optional[str]: + +def map_sha1_with_swhid(sha1: str, swh_storage) -> Optional[str]: """ - Take sha1 and dsn as input and give the corresponding + Take sha1 and swh_storage as input and give the corresponding swhID for that sha1 """ if not sha1: return None - read_connection = psycopg2.connect(dsn=dsn) - cur = read_connection.cursor() - sha1 = hash_to_bytes(sha1) - cur.execute("SELECT sha1_git FROM content where sha1= %s;", (sha1,)) - sha1_git_tuple_data = cur.fetchall() - if len(sha1_git_tuple_data) == 0: + content = swh_storage.content_get([hash_to_bytes(sha1)])[0] + if not content: return None - sha1_git = hash_to_hex(sha1_git_tuple_data[0][0]) + sha1_git = hash_to_hex(content.sha1_git) swh_id = "swh:1:cnt:{sha1_git}".format(sha1_git=sha1_git) return swh_id + + +def sha1_git_in_revisions(sha1_git: str, swh_storage) -> bool: + """ + Take sha1_git and swh_storage as input and + tell whether that sha1_git exists in revision + table + """ + sha1_git_bytes = hash_to_bytes(sha1_git) + missing_revision = swh_storage.revision_missing([sha1_git_bytes]) + if len(list(missing_revision)) == 0: + return True + return False + + +def map_scancode( + metadata_string: str, swh_storage +) -> Tuple[bool, List[Tuple[str, MetadataTargetType, None]]]: + """ + Take metadata_string and swh_storage as input and try to + map the sha1 of files with content, return status of + harvest and data to be written in swh_storage + """ + metadata = json.loads(metadata_string) + content = metadata.get("content") or {} + files = content.get("files") or {} + flag = True + data = [] + for file in files: + sha1 = file.get("sha1") + if sha1: + swh_id = map_sha1_with_swhid(sha1, swh_storage) + if swh_id: + data.append((swh_id, MetadataTargetType.CONTENT, None)) + else: + flag = False + return flag, data + + +def map_licensee( + metadata_string: str, swh_storage +) -> Tuple[bool, List[Tuple[str, MetadataTargetType, None]]]: + """ + Take metadata_string and swh_storage as input and try to + map the sha1 of files with content, return status of + harvest and data to be written in swh_storage + """ + metadata = json.loads(metadata_string) + licensee = metadata.get("licensee") or {} + output = licensee.get("output") or {} + content = output.get("content") or {} + files = content.get("matched_files") or [] + flag = True + data = [] + for file in files: + sha1 = file.get("content_hash") + if sha1: + swh_id = map_sha1_with_swhid(sha1, swh_storage) + if swh_id: + data.append((swh_id, MetadataTargetType.CONTENT, None)) + else: + flag = False + return flag, data + + +def map_clearlydefined( + metadata_string: str, swh_storage +) -> Tuple[bool, List[Tuple[str, MetadataTargetType, None]]]: + """ + Take metadata_string and swh_storage as input and try to + map the sha1 of files with content, return status of + harvest and data to be written in swh_storage + """ + metadata = json.loads(metadata_string) + files = metadata.get("files") or [] + flag = True + data = [] + for file in files: + hashes = file.get("hashes") or {} + sha1 = hashes.get("sha1") + if sha1: + swh_id = map_sha1_with_swhid(sha1, swh_storage) + if swh_id: + data.append((swh_id, MetadataTargetType.CONTENT, None)) + else: + flag = False + return flag, data + + +def map_harvest( + tool: str, metadata_string: str, swh_storage +) -> Tuple[bool, List[Tuple[str, MetadataTargetType, None]]]: + """ + Take tool, metadata_string and swh_storage as input and try to + map the sha1 of files with content, return status of + harvest and data to be written in swh_storage + """ + tools = { + "scancode": map_scancode, + "licensee": map_licensee, + "clearlydefined": map_clearlydefined, + } + + return tools[tool](metadata_string, swh_storage) + + +def map_definition( + metadata_string: str, swh_storage +) -> Optional[Tuple[bool, List[Tuple[str, MetadataTargetType, Optional[Origin]]]]]: + """ + Take metadata_string and swh_storage as input and try to + map the sha1 of defintion with content/ gitSha in revision + return None if not able to map + else return data to be written in swh_storage + """ + metadata: Dict[str, Dict[str, Optional[Dict]]] = json.loads(metadata_string) + described: Dict[str, Optional[Dict[str, Any]]] = metadata.get("described") or {} + hashes: Dict[str, str] = described.get("hashes") or {} + sha1_git = hashes.get("gitSha") + source: Dict[str, str] = described.get("sourceLocation") or {} + url = source.get("url") + origin = None + sha1 = hashes.get("sha1") + if url: + assert isinstance(url, str) + origin = Origin(url=url) + + if sha1_git: + assert isinstance(sha1_git, str) + if not sha1_git_in_revisions(sha1_git=sha1_git, swh_storage=swh_storage): + return None + swh_id = "swh:1:rev:{sha1_git}".format(sha1_git=sha1_git) + metadata_type = MetadataTargetType.REVISION + + elif sha1: + assert isinstance(sha1, str) + swh_id_sha1 = map_sha1_with_swhid(sha1=sha1, swh_storage=swh_storage) + if not swh_id_sha1: + return None + assert isinstance(swh_id_sha1, str) + swh_id = swh_id_sha1 + metadata_type = MetadataTargetType.CONTENT + + else: + raise WrongMetadata("Wrong metadata") + + return True, [(swh_id, metadata_type, origin)] + + +def map_row( + row: tuple, swh_storage +) -> Union[ + Optional[Tuple[bool, List[Tuple[str, MetadataTargetType, Optional[Origin]]]]], + Tuple[bool, List[Tuple[str, MetadataTargetType, None]]], +]: + """ + Take row and swh_storage as input and try to map that row, + if ID of row is invalid then raise exception, + if not able to map that row, then return None + else return status of that row and data to be written + in swh_storage + """ + cd_path = row[0] + list_cd_path = cd_path.split("/") + + # For example: maven/mavencentral/cobol-parser/revision/0.4.0.json + if len(list_cd_path) != 6: + if len(list_cd_path) != 9: + raise InvalidComponents( + "Not a supported/known ID, A valid ID should have 6 or 9 components." + ) + # For example: maven/mavencentral/cobol-parser/abc/0.4.0.json + if list_cd_path[4] != "revision": + raise RevisionNotFound( + "Not a supported/known ID, A valid ID should have" + '5th component as "revision".' + ) + # For example: maven/mavencentral/cobol-parser/revision/0.4.0.txt + if not list_cd_path[-1].endswith(".json"): + raise NoJsonExtension( + 'Not a supported/known ID, A valid ID should end with ".json" extension.' + ) + + metadata_string = gzip.decompress(row[1]).decode() + # if the row doesn't contain any information in metadata return None so it can be + # mapped later on + if metadata_string == "": + return None + + # if the ID of row contains 9 components: + # ////revision//tool//.json + # then it is a harvest + if len(list_cd_path) == 9: + # npm/npmjs/@ngtools/webpack/revision/10.2.1/abc/scancode/3.2.2.json + if list_cd_path[6] != "tool": + raise ToolNotFound( + 'Not a supported/known harvest ID, A valid harvest ID should have 7th\ + component as "tool".' + ) + tool = list_cd_path[7] + # if the row contains an unknown tool return None so it can be mapped later on + if tool not in ("scancode", "licensee", "clearlydefined"): + raise ToolNotSupported(f"Tool for this ID {cd_path} is not supported") + return map_harvest( + tool=tool, + metadata_string=metadata_string, + swh_storage=swh_storage, + ) + + # if the ID of row contains 6 components: + # ////revision/.json + # then it is a defintion + return map_definition( + metadata_string=metadata_string, + swh_storage=swh_storage, + ) diff --git a/swh/clearlydefined/tests/data/clearlydefined.json b/swh/clearlydefined/tests/data/clearlydefined.json new file mode 100644 --- /dev/null +++ b/swh/clearlydefined/tests/data/clearlydefined.json @@ -0,0 +1,282 @@ +{ + "_metadata": { + "type": "npm", + "url": "cd:/npm/npmjs/@pixi/mesh-extras/5.3.5", + "fetchedAt": "2020-12-18T10:26:42.827Z", + "links": { + "self": { + "href": "urn:npm:npmjs:@pixi:mesh-extras:revision:5.3.5:tool:clearlydefined:1.3.4", + "type": "resource" + }, + "siblings": { + "href": "urn:npm:npmjs:@pixi:mesh-extras:revision:5.3.5:tool:clearlydefined", + "type": "collection" + }, + "licensee": { + "href": "urn:npm:npmjs:@pixi:mesh-extras:revision:5.3.5:tool:licensee", + "type": "collection" + }, + "scancode": { + "href": "urn:npm:npmjs:@pixi:mesh-extras:revision:5.3.5:tool:scancode", + "type": "collection" + }, + "source": { + "href": "urn:git:github:pixijs:pixi.js:revision:b5353da2693f0112230cd2b1be581f9bff0ce2a1", + "type": "resource" + } + }, + "schemaVersion": "1.3.4", + "toolVersion": "1.1.4", + "processedAt": "2020-12-18T10:26:43.254Z" + }, + "attachments": [ + { + "path": "package/LICENSE", + "token": "8a3c4ecc2f727e1b487daccf186b61457b60a5e1aa7103969fa9b0d8e3ba567b" + }, + { + "path": "package/package.json", + "token": "85b85a7807ba4fdcd78d622e40497bdbe5f1b3346cdda1fe2cb859224de3d598" + } + ], + "summaryInfo": { + "k": 317, + "count": 11, + "hashes": { + "sha1": "c7e6ec806b594c8d5520ca3ffa87bdad27374411", + "sha256": "2988c69d931c63cfbcef7b8f2b8e051ea91626bb942596823df83bf4b3e36841" + } + }, + "files": [ + { + "path": "package/LICENSE", + "hashes": { + "sha1": "61c2b3a30496d329e21af70dd2d7e097046d07b7", + "sha256": "8a3c4ecc2f727e1b487daccf186b61457b60a5e1aa7103969fa9b0d8e3ba567b" + } + }, + { + "path": "package/README.md", + "hashes": { + "sha1": "34973274ccef6ab4dfaaf86599792fa9c3fe4689", + "sha256": "60b9c916c43fba00e2d3ba5207b25bf28109e985c3f739f430bb2056423d5aa9" + } + }, + { + "path": "package/dist/mesh-extras.js", + "hashes": { + "sha1": "528bebf013e2e42cb02893da85cc2f869a1b3894", + "sha256": "571ba0a84584f29d6fd2a73679bccf505fbe5b036cf387a9b4a589d4b2058214" + } + }, + { + "path": "package/dist/mesh-extras.js.map", + "hashes": { + "sha1": "ac5255a93cb3c9f8adc21ebab49b75ddc3efc5df", + "sha256": "85dc5f84ce91201e88dae1be1bc426678b28f800db9427e0fc94b476b07f7e88" + } + }, + { + "path": "package/dist/mesh-extras.min.js", + "hashes": { + "sha1": "108dc6a1e5c4c054b2f47444653e681275296332", + "sha256": "6ff463b89cc7d93611db5d0ce2dc6fda43b0ebe61195c347d1cf5477b3364688" + } + }, + { + "path": "package/dist/mesh-extras.min.js.map", + "hashes": { + "sha1": "803a059e79c3971989dcaa9b2887710c2a64f963", + "sha256": "9152ef85e74534776b7c4576fe88153b44fe5c7afe45ce00034eb2d2eb65dfd8" + } + }, + { + "path": "package/lib/mesh-extras.es.js", + "hashes": { + "sha1": "ef77555410ba0e9a53a86ec87c2f2fff7d74b8aa", + "sha256": "f36729679a357a235a1a092144b79b6cda2dda35abedfcc99288620882c2e892" + } + }, + { + "path": "package/lib/mesh-extras.es.js.map", + "hashes": { + "sha1": "87fb4ce548bce7a7b0ae49bbb67c9ffa4d047bb4", + "sha256": "29c5a8573ccc4bc1cd6cb6cc58a86dd7217b10844cd57bdd5cf59d037b061a81" + } + }, + { + "path": "package/lib/mesh-extras.js", + "hashes": { + "sha1": "868384a26b5f70fa5bb91c9e1cf9738e7f155bd6", + "sha256": "308cadc80383fbbf82a7b5b1ef67046d110e186dd7e11a8d85b02078e2f5869a" + } + }, + { + "path": "package/lib/mesh-extras.js.map", + "hashes": { + "sha1": "cef2746b1814f2e08562af28e120821503bc00e8", + "sha256": "9c1f29f4a920fb6b008370f47b3be542c1bf8a4cd20099631c8955136e945ab5" + } + }, + { + "path": "package/package.json", + "hashes": { + "sha1": "8ddf6cbb2639bee704a914c4a228332ce05215f7", + "sha256": "85b85a7807ba4fdcd78d622e40497bdbe5f1b3346cdda1fe2cb859224de3d598" + } + } + ], + "package.json": { + "name": "@pixi/mesh-extras", + "version": "5.3.5", + "main": "lib/mesh-extras.js", + "module": "lib/mesh-extras.es.js", + "bundle": "dist/mesh-extras.js", + "description": "Custom Mesh display objects, like Rope and SimplePlane", + "author": "Mat Groves", + "contributors": [ + "Matt Karl " + ], + "homepage": "http://pixijs.com/", + "bugs": "https://github.com/pixijs/pixi.js/issues", + "license": "MIT", + "repository": { + "type": "git", + "url": "https://github.com/pixijs/pixi.js.git" + }, + "publishConfig": { + "access": "public" + }, + "files": [ + "lib", + "dist" + ], + "dependencies": { + "@pixi/constants": "5.3.5", + "@pixi/core": "5.3.5", + "@pixi/math": "5.3.5", + "@pixi/mesh": "5.3.5", + "@pixi/utils": "5.3.5" + }, + "devDependencies": { + "@pixi/loaders": "5.3.5" + }, + "gitHead": "b5353da2693f0112230cd2b1be581f9bff0ce2a1" + }, + "registryData": { + "_id": "@pixi/mesh-extras", + "_rev": "37-99af22664aed7bcd0476efccf57088fc", + "name": "@pixi/mesh-extras", + "dist-tags": { + "latest": "5.3.5", + "next": "5.0.0-alpha.3", + "latest-5.1.x": "5.1.6", + "prerelease": "5.4.0-rc.3", + "latest-5.2.x": "5.2.5" + }, + "maintainers": [ + { + "name": "bigtimebuddy", + "email": "matt@mattkarl.com" + } + ], + "description": "Custom Mesh display objects, like Rope and SimplePlane", + "homepage": "http://pixijs.com/", + "repository": { + "type": "git", + "url": "git+https://github.com/pixijs/pixi.js.git" + }, + "contributors": [ + { + "name": "Matt Karl", + "email": "matt@mattkarl.com" + } + ], + "author": { + "name": "Mat Groves" + }, + "bugs": { + "url": "https://github.com/pixijs/pixi.js/issues" + }, + "license": "MIT", + "readme": "# @pixi/mesh-extras\n\n## Installation\n\n```bash\nnpm install @pixi/mesh-extras\n```\n\n## Usage\n\n```js\nimport { MeshRenderer } from '@pixi/mesh';\nimport { Renderer } from '@pixi/core';\nimport { Rope } from '@pixi/mesh-extras';\n\nRenderer.registerPlugin('mesh', MeshRenderer);\n\nconst rope = new Rope();\n```", + "readmeFilename": "README.md", + "manifest": { + "name": "@pixi/mesh-extras", + "version": "5.3.5", + "main": "lib/mesh-extras.js", + "module": "lib/mesh-extras.es.js", + "bundle": "dist/mesh-extras.js", + "description": "Custom Mesh display objects, like Rope and SimplePlane", + "author": { + "name": "Mat Groves" + }, + "contributors": [ + { + "name": "Matt Karl", + "email": "matt@mattkarl.com" + } + ], + "homepage": "http://pixijs.com/", + "bugs": { + "url": "https://github.com/pixijs/pixi.js/issues" + }, + "license": "MIT", + "repository": { + "type": "git", + "url": "git+https://github.com/pixijs/pixi.js.git" + }, + "publishConfig": { + "access": "public" + }, + "dependencies": { + "@pixi/constants": "5.3.5", + "@pixi/core": "5.3.5", + "@pixi/math": "5.3.5", + "@pixi/mesh": "5.3.5", + "@pixi/utils": "5.3.5" + }, + "devDependencies": { + "@pixi/loaders": "5.3.5" + }, + "gitHead": "b5353da2693f0112230cd2b1be581f9bff0ce2a1", + "_id": "@pixi/mesh-extras@5.3.5", + "_nodeVersion": "10.19.0", + "_npmVersion": "lerna/3.13.3/node@v10.19.0+x64 (darwin)", + "_npmUser": { + "name": "bigtimebuddy", + "email": "matt@mattkarl.com" + }, + "dist": { + "integrity": "sha512-47oHFkxUWQikB+7RT4ZcCecwc/GaKFSbZm6SL7dG12mQ+N5nGAZkWBIDw2d/Ai9PxMHo4ciUCjcS7el0SHkBjA==", + "shasum": "c7e6ec806b594c8d5520ca3ffa87bdad27374411", + "tarball": "https://registry.npmjs.org/@pixi/mesh-extras/-/mesh-extras-5.3.5.tgz", + "fileCount": 11, + "unpackedSize": 308318, + "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf26KUCRA9TVsSAnZWagAA/rAP/3UY+d5ycZ5QpSxO9Ke6\nrJEFC0jBfGRprbf4BGgvFil5HXjFX+s0xy5VB9AcSl+bPEDK6LIr6FZrCS85\nMBh4yRJXX+17mTfoSVaoLYA2UEl9fBhIGrryyObSF81TdAOhpKRmU5aPJ4hV\nORmdhetWLj4EOaHFt1pb0f62tVDrZdu8GU+TYqmU8ZpNoIfuw6iC8B79t1+R\njSxDqEUfVxCN3P/JTjakCP/oSqLOf1VSdUq/0wmyE8cdPLw+l8s20t5T7CQj\nCwe5jgVhL+Pg0z1rIQxJqRUzjGXZlnEdt+B5fIhHIcNbKQFtN/JMa1JcwjNA\nY9oAD8eHxGElK5gOtfFEYNqOlUPaeI0iupuaOK1gNVcGeKmvHZleE9dVsYrB\njM6d34F/mI6RPSw/ABOV1v7USWdxKe+f1paNSSMYbJNbehBYttDYxkXkgrLM\nynz7ru1EdnHACpJmcZVkZj/3hTZ0o7YDgRHpbLfIxAc2ETqr7ryN0y37uMAS\ns2kuaC89e6k7pd+91vEHQZtLKhMMtvivBYmdH2ZQWirU34kA9z+l5ux+NAoo\nWR9jfn/8+7S5SB4v0HFSzsgVbAxibuUaNHSvG39eBs9Au14uBdsasTwxaLwN\nRFwiTTJNS4fiCz165VCE08kI4uzrJAyqtblc9+z1gsmtWScpuDN7gJVrfsjx\nPSph\r\n=rg4i\r\n-----END PGP SIGNATURE-----\r\n" + }, + "directories": {}, + "maintainers": [ + { + "name": "bigtimebuddy", + "email": "matt@mattkarl.com" + } + ], + "_npmOperationalInternal": { + "host": "s3://npm-registry-packages", + "tmp": "tmp/mesh-extras_5.3.5_1608229524025_0.8091580391334361" + }, + "_hasShrinkwrap": false + }, + "releaseDate": "2020-12-17T18:25:24.267Z" + }, + "sourceInfo": { + "type": "git", + "provider": "github", + "namespace": "pixijs", + "name": "pixi.js", + "revision": "b5353da2693f0112230cd2b1be581f9bff0ce2a1", + "url": null, + "path": null + } +} \ No newline at end of file diff --git a/swh/clearlydefined/tests/data/clearlydefined_true.json b/swh/clearlydefined/tests/data/clearlydefined_true.json new file mode 100644 --- /dev/null +++ b/swh/clearlydefined/tests/data/clearlydefined_true.json @@ -0,0 +1,219 @@ +{ + "_metadata": { + "type": "npm", + "url": "cd:/npm/npmjs/@pixi/mesh-extras/5.3.5", + "fetchedAt": "2020-12-18T10:26:42.827Z", + "links": { + "self": { + "href": "urn:npm:npmjs:@pixi:mesh-extras:revision:5.3.5:tool:clearlydefined:1.3.4", + "type": "resource" + }, + "siblings": { + "href": "urn:npm:npmjs:@pixi:mesh-extras:revision:5.3.5:tool:clearlydefined", + "type": "collection" + }, + "licensee": { + "href": "urn:npm:npmjs:@pixi:mesh-extras:revision:5.3.5:tool:licensee", + "type": "collection" + }, + "scancode": { + "href": "urn:npm:npmjs:@pixi:mesh-extras:revision:5.3.5:tool:scancode", + "type": "collection" + }, + "source": { + "href": "urn:git:github:pixijs:pixi.js:revision:b5353da2693f0112230cd2b1be581f9bff0ce2a1", + "type": "resource" + } + }, + "schemaVersion": "1.3.4", + "toolVersion": "1.1.4", + "processedAt": "2020-12-18T10:26:43.254Z" + }, + "attachments": [ + { + "path": "package/LICENSE", + "token": "8a3c4ecc2f727e1b487daccf186b61457b60a5e1aa7103969fa9b0d8e3ba567b" + }, + { + "path": "package/package.json", + "token": "85b85a7807ba4fdcd78d622e40497bdbe5f1b3346cdda1fe2cb859224de3d598" + } + ], + "summaryInfo": { + "k": 317, + "count": 11, + "hashes": { + "sha1": "c7e6ec806b594c8d5520ca3ffa87bdad27374411", + "sha256": "2988c69d931c63cfbcef7b8f2b8e051ea91626bb942596823df83bf4b3e36841" + } + }, + "files": [ + { + "path": "package/LICENSE", + "hashes": { + "sha1": "61c2b3a30496d329e21af70dd2d7e097046d07b7", + "sha256": "8a3c4ecc2f727e1b487daccf186b61457b60a5e1aa7103969fa9b0d8e3ba567b" + } + }, + { + "path": "package/README.md", + "hashes": { + "sha1": "34973274ccef6ab4dfaaf86599792fa9c3fe4689", + "sha256": "60b9c916c43fba00e2d3ba5207b25bf28109e985c3f739f430bb2056423d5aa9" + } + } + ], + "package.json": { + "name": "@pixi/mesh-extras", + "version": "5.3.5", + "main": "lib/mesh-extras.js", + "module": "lib/mesh-extras.es.js", + "bundle": "dist/mesh-extras.js", + "description": "Custom Mesh display objects, like Rope and SimplePlane", + "author": "Mat Groves", + "contributors": [ + "Matt Karl " + ], + "homepage": "http://pixijs.com/", + "bugs": "https://github.com/pixijs/pixi.js/issues", + "license": "MIT", + "repository": { + "type": "git", + "url": "https://github.com/pixijs/pixi.js.git" + }, + "publishConfig": { + "access": "public" + }, + "files": [ + "lib", + "dist" + ], + "dependencies": { + "@pixi/constants": "5.3.5", + "@pixi/core": "5.3.5", + "@pixi/math": "5.3.5", + "@pixi/mesh": "5.3.5", + "@pixi/utils": "5.3.5" + }, + "devDependencies": { + "@pixi/loaders": "5.3.5" + }, + "gitHead": "b5353da2693f0112230cd2b1be581f9bff0ce2a1" + }, + "registryData": { + "_id": "@pixi/mesh-extras", + "_rev": "37-99af22664aed7bcd0476efccf57088fc", + "name": "@pixi/mesh-extras", + "dist-tags": { + "latest": "5.3.5", + "next": "5.0.0-alpha.3", + "latest-5.1.x": "5.1.6", + "prerelease": "5.4.0-rc.3", + "latest-5.2.x": "5.2.5" + }, + "maintainers": [ + { + "name": "bigtimebuddy", + "email": "matt@mattkarl.com" + } + ], + "description": "Custom Mesh display objects, like Rope and SimplePlane", + "homepage": "http://pixijs.com/", + "repository": { + "type": "git", + "url": "git+https://github.com/pixijs/pixi.js.git" + }, + "contributors": [ + { + "name": "Matt Karl", + "email": "matt@mattkarl.com" + } + ], + "author": { + "name": "Mat Groves" + }, + "bugs": { + "url": "https://github.com/pixijs/pixi.js/issues" + }, + "license": "MIT", + "readme": "# @pixi/mesh-extras\n\n## Installation\n\n```bash\nnpm install @pixi/mesh-extras\n```\n\n## Usage\n\n```js\nimport { MeshRenderer } from '@pixi/mesh';\nimport { Renderer } from '@pixi/core';\nimport { Rope } from '@pixi/mesh-extras';\n\nRenderer.registerPlugin('mesh', MeshRenderer);\n\nconst rope = new Rope();\n```", + "readmeFilename": "README.md", + "manifest": { + "name": "@pixi/mesh-extras", + "version": "5.3.5", + "main": "lib/mesh-extras.js", + "module": "lib/mesh-extras.es.js", + "bundle": "dist/mesh-extras.js", + "description": "Custom Mesh display objects, like Rope and SimplePlane", + "author": { + "name": "Mat Groves" + }, + "contributors": [ + { + "name": "Matt Karl", + "email": "matt@mattkarl.com" + } + ], + "homepage": "http://pixijs.com/", + "bugs": { + "url": "https://github.com/pixijs/pixi.js/issues" + }, + "license": "MIT", + "repository": { + "type": "git", + "url": "git+https://github.com/pixijs/pixi.js.git" + }, + "publishConfig": { + "access": "public" + }, + "dependencies": { + "@pixi/constants": "5.3.5", + "@pixi/core": "5.3.5", + "@pixi/math": "5.3.5", + "@pixi/mesh": "5.3.5", + "@pixi/utils": "5.3.5" + }, + "devDependencies": { + "@pixi/loaders": "5.3.5" + }, + "gitHead": "b5353da2693f0112230cd2b1be581f9bff0ce2a1", + "_id": "@pixi/mesh-extras@5.3.5", + "_nodeVersion": "10.19.0", + "_npmVersion": "lerna/3.13.3/node@v10.19.0+x64 (darwin)", + "_npmUser": { + "name": "bigtimebuddy", + "email": "matt@mattkarl.com" + }, + "dist": { + "integrity": "sha512-47oHFkxUWQikB+7RT4ZcCecwc/GaKFSbZm6SL7dG12mQ+N5nGAZkWBIDw2d/Ai9PxMHo4ciUCjcS7el0SHkBjA==", + "shasum": "c7e6ec806b594c8d5520ca3ffa87bdad27374411", + "tarball": "https://registry.npmjs.org/@pixi/mesh-extras/-/mesh-extras-5.3.5.tgz", + "fileCount": 11, + "unpackedSize": 308318, + "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf26KUCRA9TVsSAnZWagAA/rAP/3UY+d5ycZ5QpSxO9Ke6\nrJEFC0jBfGRprbf4BGgvFil5HXjFX+s0xy5VB9AcSl+bPEDK6LIr6FZrCS85\nMBh4yRJXX+17mTfoSVaoLYA2UEl9fBhIGrryyObSF81TdAOhpKRmU5aPJ4hV\nORmdhetWLj4EOaHFt1pb0f62tVDrZdu8GU+TYqmU8ZpNoIfuw6iC8B79t1+R\njSxDqEUfVxCN3P/JTjakCP/oSqLOf1VSdUq/0wmyE8cdPLw+l8s20t5T7CQj\nCwe5jgVhL+Pg0z1rIQxJqRUzjGXZlnEdt+B5fIhHIcNbKQFtN/JMa1JcwjNA\nY9oAD8eHxGElK5gOtfFEYNqOlUPaeI0iupuaOK1gNVcGeKmvHZleE9dVsYrB\njM6d34F/mI6RPSw/ABOV1v7USWdxKe+f1paNSSMYbJNbehBYttDYxkXkgrLM\nynz7ru1EdnHACpJmcZVkZj/3hTZ0o7YDgRHpbLfIxAc2ETqr7ryN0y37uMAS\ns2kuaC89e6k7pd+91vEHQZtLKhMMtvivBYmdH2ZQWirU34kA9z+l5ux+NAoo\nWR9jfn/8+7S5SB4v0HFSzsgVbAxibuUaNHSvG39eBs9Au14uBdsasTwxaLwN\nRFwiTTJNS4fiCz165VCE08kI4uzrJAyqtblc9+z1gsmtWScpuDN7gJVrfsjx\nPSph\r\n=rg4i\r\n-----END PGP SIGNATURE-----\r\n" + }, + "directories": {}, + "maintainers": [ + { + "name": "bigtimebuddy", + "email": "matt@mattkarl.com" + } + ], + "_npmOperationalInternal": { + "host": "s3://npm-registry-packages", + "tmp": "tmp/mesh-extras_5.3.5_1608229524025_0.8091580391334361" + }, + "_hasShrinkwrap": false + }, + "releaseDate": "2020-12-17T18:25:24.267Z" + }, + "sourceInfo": { + "type": "git", + "provider": "github", + "namespace": "pixijs", + "name": "pixi.js", + "revision": "b5353da2693f0112230cd2b1be581f9bff0ce2a1", + "url": null, + "path": null + } +} \ No newline at end of file diff --git a/swh/clearlydefined/tests/data/definitions.json b/swh/clearlydefined/tests/data/definitions.json new file mode 100644 --- /dev/null +++ b/swh/clearlydefined/tests/data/definitions.json @@ -0,0 +1,88 @@ +{ + "described": { + "releaseDate": "2019-03-29", + "sourceLocation": { + "type": "sourcearchive", + "provider": "mavencentral", + "namespace": "za.co.absa.cobrix", + "name": "cobol-parser", + "revision": "0.4.0", + "url": "http://central.maven.org/maven2/za/co/absa/cobrix/cobol-parser/0.4.0/cobol-parser-0.4.0-sources.jar" + }, + "urls": { + "registry": "http://central.maven.org/maven2/za/co/absa/cobrix/cobol-parser", + "version": "http://central.maven.org/maven2/za/co/absa/cobrix/cobol-parser/0.4.0", + "download": "http://central.maven.org/maven2/za/co/absa/cobrix/cobol-parser/0.4.0/cobol-parser-0.4.0.jar" + }, + "hashes": { + "sha1": "34973274ccef6ab4dfaaf86599792fa9c3fe4689", + "sha256": "2bf17e47907dc3dfa64fc17ae6ef71b54d96a79a740f3b7a618104d4281656f0" + }, + "files": 261, + "tools": [ + "clearlydefined/1.5.0", + "scancode/3.2.2" + ], + "toolScore": { + "total": 100, + "date": 30, + "source": 70 + }, + "score": { + "total": 100, + "date": 30, + "source": 70 + } + }, + "licensed": { + "declared": "Apache-2.0", + "toolScore": { + "total": 60, + "declared": 30, + "discovered": 0, + "consistency": 15, + "spdx": 15, + "texts": 0 + }, + "facets": { + "core": { + "attribution": { + "unknown": 260, + "parties": [ + "Copyright 2018-2019 ABSA Group Limited" + ] + }, + "discovered": { + "unknown": 260, + "expressions": [ + "Apache-2.0" + ] + }, + "files": 261 + } + }, + "score": { + "total": 60, + "declared": 30, + "discovered": 0, + "consistency": 15, + "spdx": 15, + "texts": 0 + } + }, + "coordinates": { + "type": "maven", + "provider": "mavencentral", + "namespace": "za.co.absa.cobrix", + "name": "cobol-parser", + "revision": "0.4.0" + }, + "_meta": { + "schemaVersion": "1.6.1", + "updated": "2019-11-04T05:20:21.308Z" + }, + "scores": { + "effective": 80, + "tool": 80 + } +} \ No newline at end of file diff --git a/swh/clearlydefined/tests/data/definitions_not_mapped.json b/swh/clearlydefined/tests/data/definitions_not_mapped.json new file mode 100644 --- /dev/null +++ b/swh/clearlydefined/tests/data/definitions_not_mapped.json @@ -0,0 +1,87 @@ +{ + "described": { + "releaseDate": "2019-03-29", + "sourceLocation": { + "type": "sourcearchive", + "provider": "mavencentral", + "namespace": "za.co.absa.cobrix", + "name": "cobol-parser", + "revision": "0.4.0", + "url": "http://central.maven.org/maven2/za/co/absa/cobrix/cobol-parser/0.4.0/cobol-parser-0.4.0-sources.jar" + }, + "urls": { + "registry": "http://central.maven.org/maven2/za/co/absa/cobrix/cobol-parser", + "version": "http://central.maven.org/maven2/za/co/absa/cobrix/cobol-parser/0.4.0", + "download": "http://central.maven.org/maven2/za/co/absa/cobrix/cobol-parser/0.4.0/cobol-parser-0.4.0.jar" + }, + "hashes": { + "sha1": "4c66129b968ab8122964823d1d77677f50884cf7" + }, + "files": 261, + "tools": [ + "clearlydefined/1.5.0", + "scancode/3.2.2" + ], + "toolScore": { + "total": 100, + "date": 30, + "source": 70 + }, + "score": { + "total": 100, + "date": 30, + "source": 70 + } + }, + "licensed": { + "declared": "Apache-2.0", + "toolScore": { + "total": 60, + "declared": 30, + "discovered": 0, + "consistency": 15, + "spdx": 15, + "texts": 0 + }, + "facets": { + "core": { + "attribution": { + "unknown": 260, + "parties": [ + "Copyright 2018-2019 ABSA Group Limited" + ] + }, + "discovered": { + "unknown": 260, + "expressions": [ + "Apache-2.0" + ] + }, + "files": 261 + } + }, + "score": { + "total": 60, + "declared": 30, + "discovered": 0, + "consistency": 15, + "spdx": 15, + "texts": 0 + } + }, + "coordinates": { + "type": "maven", + "provider": "mavencentral", + "namespace": "za.co.absa.cobrix", + "name": "cobol-parser", + "revision": "0.4.0" + }, + "_meta": { + "schemaVersion": "1.6.1", + "updated": "2019-11-04T05:20:21.308Z" + }, + "scores": { + "effective": 80, + "tool": 80 + } +} \ No newline at end of file diff --git a/swh/clearlydefined/tests/data/definitions_not_mapped_sha1_git.json b/swh/clearlydefined/tests/data/definitions_not_mapped_sha1_git.json new file mode 100644 --- /dev/null +++ b/swh/clearlydefined/tests/data/definitions_not_mapped_sha1_git.json @@ -0,0 +1,87 @@ +{ + "described": { + "releaseDate": "2019-03-29", + "sourceLocation": { + "type": "sourcearchive", + "provider": "mavencentral", + "namespace": "za.co.absa.cobrix", + "name": "cobol-parser", + "revision": "0.4.0", + "url": "http://central.maven.org/maven2/za/co/absa/cobrix/cobol-parser/0.4.0/cobol-parser-0.4.0-sources.jar" + }, + "urls": { + "registry": "http://central.maven.org/maven2/za/co/absa/cobrix/cobol-parser", + "version": "http://central.maven.org/maven2/za/co/absa/cobrix/cobol-parser/0.4.0", + "download": "http://central.maven.org/maven2/za/co/absa/cobrix/cobol-parser/0.4.0/cobol-parser-0.4.0.jar" + }, + "hashes": { + "gitSha": "4c66129b968ab8122964823d1d77677f50884cf7" + }, + "files": 261, + "tools": [ + "clearlydefined/1.5.0", + "scancode/3.2.2" + ], + "toolScore": { + "total": 100, + "date": 30, + "source": 70 + }, + "score": { + "total": 100, + "date": 30, + "source": 70 + } + }, + "licensed": { + "declared": "Apache-2.0", + "toolScore": { + "total": 60, + "declared": 30, + "discovered": 0, + "consistency": 15, + "spdx": 15, + "texts": 0 + }, + "facets": { + "core": { + "attribution": { + "unknown": 260, + "parties": [ + "Copyright 2018-2019 ABSA Group Limited" + ] + }, + "discovered": { + "unknown": 260, + "expressions": [ + "Apache-2.0" + ] + }, + "files": 261 + } + }, + "score": { + "total": 60, + "declared": 30, + "discovered": 0, + "consistency": 15, + "spdx": 15, + "texts": 0 + } + }, + "coordinates": { + "type": "maven", + "provider": "mavencentral", + "namespace": "za.co.absa.cobrix", + "name": "cobol-parser", + "revision": "0.4.0" + }, + "_meta": { + "schemaVersion": "1.6.1", + "updated": "2019-11-04T05:20:21.308Z" + }, + "scores": { + "effective": 80, + "tool": 80 + } +} \ No newline at end of file diff --git a/swh/clearlydefined/tests/data/definitions_sha1git.json b/swh/clearlydefined/tests/data/definitions_sha1git.json new file mode 100644 --- /dev/null +++ b/swh/clearlydefined/tests/data/definitions_sha1git.json @@ -0,0 +1,87 @@ +{ + "described": { + "releaseDate": "2019-03-29", + "sourceLocation": { + "type": "sourcearchive", + "provider": "mavencentral", + "namespace": "za.co.absa.cobrix", + "name": "cobol-parser", + "revision": "0.4.0", + "url": "http://central.maven.org/maven2/za/co/absa/cobrix/cobol-parser/0.4.0/cobol-parser-0.4.0-sources.jar" + }, + "urls": { + "registry": "http://central.maven.org/maven2/za/co/absa/cobrix/cobol-parser", + "version": "http://central.maven.org/maven2/za/co/absa/cobrix/cobol-parser/0.4.0", + "download": "http://central.maven.org/maven2/za/co/absa/cobrix/cobol-parser/0.4.0/cobol-parser-0.4.0.jar" + }, + "hashes": { + "gitSha": "4c66129b968ab8122964823d1d77677f50884cf6" + }, + "files": 261, + "tools": [ + "clearlydefined/1.5.0", + "scancode/3.2.2" + ], + "toolScore": { + "total": 100, + "date": 30, + "source": 70 + }, + "score": { + "total": 100, + "date": 30, + "source": 70 + } + }, + "licensed": { + "declared": "Apache-2.0", + "toolScore": { + "total": 60, + "declared": 30, + "discovered": 0, + "consistency": 15, + "spdx": 15, + "texts": 0 + }, + "facets": { + "core": { + "attribution": { + "unknown": 260, + "parties": [ + "Copyright 2018-2019 ABSA Group Limited" + ] + }, + "discovered": { + "unknown": 260, + "expressions": [ + "Apache-2.0" + ] + }, + "files": 261 + } + }, + "score": { + "total": 60, + "declared": 30, + "discovered": 0, + "consistency": 15, + "spdx": 15, + "texts": 0 + } + }, + "coordinates": { + "type": "maven", + "provider": "mavencentral", + "namespace": "za.co.absa.cobrix", + "name": "cobol-parser", + "revision": "0.4.0" + }, + "_meta": { + "schemaVersion": "1.6.1", + "updated": "2019-11-04T05:20:21.308Z" + }, + "scores": { + "effective": 80, + "tool": 80 + } +} \ No newline at end of file diff --git a/swh/clearlydefined/tests/data/licensee.json b/swh/clearlydefined/tests/data/licensee.json new file mode 100644 --- /dev/null +++ b/swh/clearlydefined/tests/data/licensee.json @@ -0,0 +1,151 @@ +{ + "_metadata": { + "type": "licensee", + "url": "cd:/npm/npmjs/@fluidframework/replay-driver/0.31.0", + "fetchedAt": "2020-12-18T21:49:15.334Z", + "links": { + "self": { + "href": "urn:npm:npmjs:@fluidframework:replay-driver:revision:0.31.0:tool:licensee:9.13.0", + "type": "resource" + }, + "siblings": { + "href": "urn:npm:npmjs:@fluidframework:replay-driver:revision:0.31.0:tool:licensee", + "type": "collection" + } + }, + "schemaVersion": "9.13.0", + "toolVersion": "9.11.0", + "processedAt": "2020-12-18T21:49:18.405Z" + }, + "licensee": { + "version": "9.11.0", + "parameters": [ + "--json", + "--no-readme" + ], + "output": { + "contentType": "application/json", + "content": { + "licenses": [ + { + "key": "mit", + "spdx_id": "MIT", + "meta": { + "title": "MIT License", + "source": "https://spdx.org/licenses/MIT.html", + "description": "A short and simple permissive license with conditions only requiring preservation of copyright and license notices. Licensed works, modifications, and larger works may be distributed under different terms and without source code.", + "how": "Create a text file (typically named LICENSE or LICENSE.txt) in the root of your source code and copy the text of the license into the file. Replace [year] with the current year and [fullname] with the name (or names) of the copyright holders.", + "using": [ + { + "Babel": "https://github.com/babel/babel/blob/master/LICENSE" + }, + { + ".NET Core": "https://github.com/dotnet/corefx/blob/master/LICENSE.TXT" + }, + { + "Rails": "https://github.com/rails/rails/blob/master/MIT-LICENSE" + } + ], + "featured": true, + "hidden": false, + "nickname": null, + "note": null + }, + "url": "http://choosealicense.com/licenses/mit/", + "rules": { + "permissions": [ + { + "tag": "commercial-use", + "label": "Commercial use", + "description": "This software and derivatives may be used for commercial purposes." + }, + { + "tag": "modifications", + "label": "Modification", + "description": "This software may be modified." + }, + { + "tag": "distribution", + "label": "Distribution", + "description": "This software may be distributed." + }, + { + "tag": "private-use", + "label": "Private use", + "description": "This software may be used and modified in private." + } + ], + "conditions": [ + { + "tag": "include-copyright", + "label": "License and copyright notice", + "description": "A copy of the license and copyright notice must be included with the software." + } + ], + "limitations": [ + { + "tag": "liability", + "label": "Liability", + "description": "This license includes a limitation of liability." + }, + { + "tag": "warranty", + "label": "Warranty", + "description": "The license explicitly states that it does NOT provide any warranty." + } + ] + }, + "fields": [ + { + "name": "year", + "description": "The current year" + }, + { + "name": "fullname", + "description": "The full name or username of the repository owner" + } + ], + "other": false, + "gpl": false, + "lgpl": false, + "cc": false + } + ], + "matched_files": [ + { + "filename": "package/LICENSE", + "content": "Copyright (c) Microsoft Corporation. All rights reserved.\n\nMIT License\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n", + "content_hash": "d1ece3dbe3e78a6648f37206f996e202acb3926b", + "content_normalized": "mit license permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"software\"), to deal in the software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the software, and to permit persons to whom the software is furnished to do so, subject to the following conditions: the above copyright notice and this permission notice shall be included in all copies or substantial portions of the software. the software is provided as is, without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. in no event shall the authors or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the software or the use or other dealings in the software.", + "matcher": { + "name": "dice", + "confidence": 98.91304347826086 + }, + "matched_license": "MIT" + }, + { + "filename": "package/package.json", + "content": "{\n \"name\": \"@fluidframework/replay-driver\",\n \"version\": \"0.31.0\",\n \"description\": \"Document replay version of Socket.IO implementation\",\n \"homepage\": \"https://fluidframework.com\",\n \"repository\": \"https://github.com/microsoft/FluidFramework\",\n \"license\": \"MIT\",\n \"author\": \"Microsoft\",\n \"sideEffects\": false,\n \"main\": \"dist/index.js\",\n \"module\": \"lib/index.js\",\n \"types\": \"dist/index.d.ts\",\n \"scripts\": {\n \"build\": \"npm run build:genver && concurrently npm:build:compile npm:lint\",\n \"build:compile\": \"concurrently npm:tsc npm:build:esnext\",\n \"build:docs\": \"api-extractor run --local && copyfiles -u 1 ./_api-extractor-temp/doc-models/* ../../../_api-extractor-temp/\",\n \"build:esnext\": \"tsc --project ./tsconfig.esnext.json\",\n \"build:full\": \"npm run build\",\n \"build:full:compile\": \"npm run build:compile\",\n \"build:genver\": \"gen-version\",\n \"clean\": \"rimraf dist lib *.tsbuildinfo *.build.log\",\n \"eslint\": \"eslint --format stylish src\",\n \"eslint:fix\": \"eslint --format stylish src --fix\",\n \"lint\": \"npm run eslint\",\n \"lint:fix\": \"npm run eslint:fix\",\n \"tsc\": \"tsc\",\n \"tsfmt\": \"tsfmt --verify\",\n \"tsfmt:fix\": \"tsfmt --replace\"\n },\n \"dependencies\": {\n \"@fluidframework/common-definitions\": \"^0.19.1\",\n \"@fluidframework/common-utils\": \"^0.26.0\",\n \"@fluidframework/driver-definitions\": \"^0.31.0\",\n \"@fluidframework/driver-utils\": \"^0.31.0\",\n \"@fluidframework/protocol-definitions\": \"^0.1016.1\",\n \"@fluidframework/telemetry-utils\": \"^0.31.0\",\n \"assert\": \"^2.0.0\",\n \"debug\": \"^4.1.1\"\n },\n \"devDependencies\": {\n \"@fluidframework/build-common\": \"^0.19.2\",\n \"@fluidframework/eslint-config-fluid\": \"^0.21.0\",\n \"@microsoft/api-extractor\": \"^7.7.2\",\n \"@types/assert\": \"^1.5.1\",\n \"@types/debug\": \"^4.1.5\",\n \"@types/mocha\": \"^5.2.5\",\n \"@types/nock\": \"^9.3.0\",\n \"@types/node\": \"^10.17.24\",\n \"@typescript-eslint/eslint-plugin\": \"~4.2.0\",\n \"@typescript-eslint/parser\": \"~4.2.0\",\n \"concurrently\": \"^5.2.0\",\n \"copyfiles\": \"^2.1.0\",\n \"eslint\": \"~7.9.0\",\n \"eslint-plugin-eslint-comments\": \"~3.2.0\",\n \"eslint-plugin-import\": \"~2.22.0\",\n \"eslint-plugin-no-null\": \"~1.0.2\",\n \"eslint-plugin-prefer-arrow\": \"~1.2.2\",\n \"eslint-plugin-react\": \"~7.21.2\",\n \"eslint-plugin-unicorn\": \"~22.0.0\",\n \"mocha\": \"^8.1.1\",\n \"nock\": \"^10.0.1\",\n \"rimraf\": \"^2.6.2\",\n \"typescript\": \"~3.7.4\",\n \"typescript-formatter\": \"7.1.0\"\n }\n}\n", + "content_hash": "61c2b3a30496d329e21af70dd2d7e097046d07b7", + "content_normalized": null, + "matcher": { + "name": "npmbower", + "confidence": 90 + }, + "matched_license": "MIT" + } + ] + } + } + }, + "attachments": [ + { + "path": "package/LICENSE", + "token": "ad0cf28f3381ca9bb0bf101d127402d44c17bfa0991e1a00bff7ae6679e9dada" + }, + { + "path": "package/package.json", + "token": "55d6a0b12804610fde8d9a6f57170b5b22d929af82cce918d19ff779c913f9e4" + } + ] +} \ No newline at end of file diff --git a/swh/clearlydefined/tests/data/licensee_true.json b/swh/clearlydefined/tests/data/licensee_true.json new file mode 100644 --- /dev/null +++ b/swh/clearlydefined/tests/data/licensee_true.json @@ -0,0 +1,151 @@ +{ + "_metadata": { + "type": "licensee", + "url": "cd:/npm/npmjs/@fluidframework/replay-driver/0.31.0", + "fetchedAt": "2020-12-18T21:49:15.334Z", + "links": { + "self": { + "href": "urn:npm:npmjs:@fluidframework:replay-driver:revision:0.31.0:tool:licensee:9.13.0", + "type": "resource" + }, + "siblings": { + "href": "urn:npm:npmjs:@fluidframework:replay-driver:revision:0.31.0:tool:licensee", + "type": "collection" + } + }, + "schemaVersion": "9.13.0", + "toolVersion": "9.11.0", + "processedAt": "2020-12-18T21:49:18.405Z" + }, + "licensee": { + "version": "9.11.0", + "parameters": [ + "--json", + "--no-readme" + ], + "output": { + "contentType": "application/json", + "content": { + "licenses": [ + { + "key": "mit", + "spdx_id": "MIT", + "meta": { + "title": "MIT License", + "source": "https://spdx.org/licenses/MIT.html", + "description": "A short and simple permissive license with conditions only requiring preservation of copyright and license notices. Licensed works, modifications, and larger works may be distributed under different terms and without source code.", + "how": "Create a text file (typically named LICENSE or LICENSE.txt) in the root of your source code and copy the text of the license into the file. Replace [year] with the current year and [fullname] with the name (or names) of the copyright holders.", + "using": [ + { + "Babel": "https://github.com/babel/babel/blob/master/LICENSE" + }, + { + ".NET Core": "https://github.com/dotnet/corefx/blob/master/LICENSE.TXT" + }, + { + "Rails": "https://github.com/rails/rails/blob/master/MIT-LICENSE" + } + ], + "featured": true, + "hidden": false, + "nickname": null, + "note": null + }, + "url": "http://choosealicense.com/licenses/mit/", + "rules": { + "permissions": [ + { + "tag": "commercial-use", + "label": "Commercial use", + "description": "This software and derivatives may be used for commercial purposes." + }, + { + "tag": "modifications", + "label": "Modification", + "description": "This software may be modified." + }, + { + "tag": "distribution", + "label": "Distribution", + "description": "This software may be distributed." + }, + { + "tag": "private-use", + "label": "Private use", + "description": "This software may be used and modified in private." + } + ], + "conditions": [ + { + "tag": "include-copyright", + "label": "License and copyright notice", + "description": "A copy of the license and copyright notice must be included with the software." + } + ], + "limitations": [ + { + "tag": "liability", + "label": "Liability", + "description": "This license includes a limitation of liability." + }, + { + "tag": "warranty", + "label": "Warranty", + "description": "The license explicitly states that it does NOT provide any warranty." + } + ] + }, + "fields": [ + { + "name": "year", + "description": "The current year" + }, + { + "name": "fullname", + "description": "The full name or username of the repository owner" + } + ], + "other": false, + "gpl": false, + "lgpl": false, + "cc": false + } + ], + "matched_files": [ + { + "filename": "package/LICENSE", + "content": "Copyright (c) Microsoft Corporation. All rights reserved.\n\nMIT License\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n", + "content_hash": null, + "content_normalized": "mit license permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"software\"), to deal in the software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the software, and to permit persons to whom the software is furnished to do so, subject to the following conditions: the above copyright notice and this permission notice shall be included in all copies or substantial portions of the software. the software is provided as is, without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. in no event shall the authors or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the software or the use or other dealings in the software.", + "matcher": { + "name": "dice", + "confidence": 98.91304347826086 + }, + "matched_license": "MIT" + }, + { + "filename": "package/package.json", + "content": "{\n \"name\": \"@fluidframework/replay-driver\",\n \"version\": \"0.31.0\",\n \"description\": \"Document replay version of Socket.IO implementation\",\n \"homepage\": \"https://fluidframework.com\",\n \"repository\": \"https://github.com/microsoft/FluidFramework\",\n \"license\": \"MIT\",\n \"author\": \"Microsoft\",\n \"sideEffects\": false,\n \"main\": \"dist/index.js\",\n \"module\": \"lib/index.js\",\n \"types\": \"dist/index.d.ts\",\n \"scripts\": {\n \"build\": \"npm run build:genver && concurrently npm:build:compile npm:lint\",\n \"build:compile\": \"concurrently npm:tsc npm:build:esnext\",\n \"build:docs\": \"api-extractor run --local && copyfiles -u 1 ./_api-extractor-temp/doc-models/* ../../../_api-extractor-temp/\",\n \"build:esnext\": \"tsc --project ./tsconfig.esnext.json\",\n \"build:full\": \"npm run build\",\n \"build:full:compile\": \"npm run build:compile\",\n \"build:genver\": \"gen-version\",\n \"clean\": \"rimraf dist lib *.tsbuildinfo *.build.log\",\n \"eslint\": \"eslint --format stylish src\",\n \"eslint:fix\": \"eslint --format stylish src --fix\",\n \"lint\": \"npm run eslint\",\n \"lint:fix\": \"npm run eslint:fix\",\n \"tsc\": \"tsc\",\n \"tsfmt\": \"tsfmt --verify\",\n \"tsfmt:fix\": \"tsfmt --replace\"\n },\n \"dependencies\": {\n \"@fluidframework/common-definitions\": \"^0.19.1\",\n \"@fluidframework/common-utils\": \"^0.26.0\",\n \"@fluidframework/driver-definitions\": \"^0.31.0\",\n \"@fluidframework/driver-utils\": \"^0.31.0\",\n \"@fluidframework/protocol-definitions\": \"^0.1016.1\",\n \"@fluidframework/telemetry-utils\": \"^0.31.0\",\n \"assert\": \"^2.0.0\",\n \"debug\": \"^4.1.1\"\n },\n \"devDependencies\": {\n \"@fluidframework/build-common\": \"^0.19.2\",\n \"@fluidframework/eslint-config-fluid\": \"^0.21.0\",\n \"@microsoft/api-extractor\": \"^7.7.2\",\n \"@types/assert\": \"^1.5.1\",\n \"@types/debug\": \"^4.1.5\",\n \"@types/mocha\": \"^5.2.5\",\n \"@types/nock\": \"^9.3.0\",\n \"@types/node\": \"^10.17.24\",\n \"@typescript-eslint/eslint-plugin\": \"~4.2.0\",\n \"@typescript-eslint/parser\": \"~4.2.0\",\n \"concurrently\": \"^5.2.0\",\n \"copyfiles\": \"^2.1.0\",\n \"eslint\": \"~7.9.0\",\n \"eslint-plugin-eslint-comments\": \"~3.2.0\",\n \"eslint-plugin-import\": \"~2.22.0\",\n \"eslint-plugin-no-null\": \"~1.0.2\",\n \"eslint-plugin-prefer-arrow\": \"~1.2.2\",\n \"eslint-plugin-react\": \"~7.21.2\",\n \"eslint-plugin-unicorn\": \"~22.0.0\",\n \"mocha\": \"^8.1.1\",\n \"nock\": \"^10.0.1\",\n \"rimraf\": \"^2.6.2\",\n \"typescript\": \"~3.7.4\",\n \"typescript-formatter\": \"7.1.0\"\n }\n}\n", + "content_hash": "61c2b3a30496d329e21af70dd2d7e097046d07b7", + "content_normalized": null, + "matcher": { + "name": "npmbower", + "confidence": 90 + }, + "matched_license": "MIT" + } + ] + } + } + }, + "attachments": [ + { + "path": "package/LICENSE", + "token": "ad0cf28f3381ca9bb0bf101d127402d44c17bfa0991e1a00bff7ae6679e9dada" + }, + { + "path": "package/package.json", + "token": "55d6a0b12804610fde8d9a6f57170b5b22d929af82cce918d19ff779c913f9e4" + } + ] +} \ No newline at end of file diff --git a/swh/clearlydefined/tests/data/scancode.json b/swh/clearlydefined/tests/data/scancode.json new file mode 100644 --- /dev/null +++ b/swh/clearlydefined/tests/data/scancode.json @@ -0,0 +1,6788 @@ +{ + "_metadata": { + "type": "scancode", + "url": "cd:/npm/npmjs/@ngtools/webpack/10.2.1", + "fetchedAt": "2020-12-23T00:25:23.043Z", + "links": { + "self": { + "href": "urn:npm:npmjs:@ngtools:webpack:revision:10.2.1:tool:scancode:3.2.2", + "type": "resource" + }, + "siblings": { + "href": "urn:npm:npmjs:@ngtools:webpack:revision:10.2.1:tool:scancode", + "type": "collection" + } + }, + "schemaVersion": "3.2.2", + "toolVersion": "3.0.2", + "contentType": "application/json", + "releaseDate": "2020-12-17T17:04:04.916Z", + "processedAt": "2020-12-23T00:25:39.586Z" + }, + "content": { + "headers": [ + { + "tool_name": "scancode-toolkit", + "tool_version": "3.0.2", + "options": { + "input": "/tmp/cd-JY1ciM", + "--classify": true, + "--copyright": true, + "--email": true, + "--generated": true, + "--info": true, + "--is-license-text": true, + "--json-pp": "/tmp/cd-00Vl2l", + "--license": true, + "--license-clarity-score": true, + "--license-diag": true, + "--license-text": true, + "--package": true, + "--processes": "2", + "--strip-root": true, + "--summary": true, + "--summary-key-files": true, + "--timeout": "1000.0", + "--url": true + }, + "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.", + "start_timestamp": "2020-12-23T002523.840923", + "end_timestamp": "2020-12-23T002538.791887", + "message": null, + "errors": [], + "extra_data": { + "files_count": 78 + } + } + ], + "summary": { + "license_expressions": [ + { + "value": "mit", + "count": 59 + }, + { + "value": null, + "count": 19 + } + ], + "copyrights": [ + { + "value": "Copyright (c) Google, Inc.", + "count": 58 + }, + { + "value": null, + "count": 20 + } + ], + "holders": [ + { + "value": "Google Inc.", + "count": 58 + }, + { + "value": null, + "count": 20 + } + ], + "authors": [ + { + "value": null, + "count": 78 + } + ], + "programming_language": [ + { + "value": "JavaScript", + "count": 38 + }, + { + "value": "TypeScript", + "count": 37 + }, + { + "value": null, + "count": 2 + }, + { + "value": "Python", + "count": 1 + } + ], + "packages": [ + { + "type": "npm", + "namespace": "@ngtools", + "name": "webpack", + "version": "10.2.1", + "qualifiers": null, + "subpath": null, + "primary_language": "JavaScript", + "description": "Webpack plugin that AoT compiles your Angular components and modules.", + "release_date": null, + "parties": [ + { + "type": "person", + "role": "author", + "name": "Angular Authors", + "email": null, + "url": null + } + ], + "keywords": [ + "angular", + "Angular CLI", + "devkit", + "sdk", + "Angular DevKit", + "webpack", + "plugin", + "aot" + ], + "homepage_url": "https://github.com/angular/angular-cli", + "download_url": "https://registry.npmjs.org/@ngtools/webpack/-/webpack-10.2.1.tgz", + "size": null, + "sha1": null, + "md5": null, + "sha256": null, + "sha512": null, + "bug_tracking_url": "https://github.com/angular/angular-cli/issues", + "code_view_url": null, + "vcs_url": "git+https://github.com/angular/angular-cli.git", + "copyright": null, + "license_expression": "mit", + "declared_license": "MIT", + "notice_text": null, + "manifest_path": "package.json", + "dependencies": [ + { + "purl": "pkg:npm/%40angular-devkit/core", + "requirement": "10.2.1", + "scope": "dependencies", + "is_runtime": true, + "is_optional": false, + "is_resolved": false + }, + { + "purl": "pkg:npm/enhanced-resolve", + "requirement": "4.3.0", + "scope": "dependencies", + "is_runtime": true, + "is_optional": false, + "is_resolved": false + }, + { + "purl": "pkg:npm/webpack-sources", + "requirement": "1.4.3", + "scope": "dependencies", + "is_runtime": true, + "is_optional": false, + "is_resolved": false + }, + { + "purl": "pkg:npm/%40angular/compiler-cli", + "requirement": "^10.0.0", + "scope": "peerDependencies", + "is_runtime": true, + "is_optional": false, + "is_resolved": false + }, + { + "purl": "pkg:npm/typescript", + "requirement": ">=3.9 < 4.1", + "scope": "peerDependencies", + "is_runtime": true, + "is_optional": false, + "is_resolved": false + }, + { + "purl": "pkg:npm/webpack", + "requirement": "^4.0.0", + "scope": "peerDependencies", + "is_runtime": true, + "is_optional": false, + "is_resolved": false + } + ], + "contains_source_code": null, + "source_packages": [], + "purl": "pkg:npm/%40ngtools/webpack@10.2.1", + "repository_homepage_url": "https://www.npmjs.com/package/@ngtools/webpack", + "repository_download_url": "https://registry.npmjs.org/@ngtools/webpack/-/webpack-10.2.1.tgz", + "api_data_url": "https://registry.npmjs.org/@ngtools%2fwebpack", + "files": [ + { + "path": "package", + "type": "directory" + } + ] + } + ] + }, + "license_clarity_score": { + "score": 94, + "has_declared_license_in_key_files": true, + "file_level_license_and_copyright_coverage": 0.76, + "has_consistent_key_and_file_level_licenses": true, + "is_using_only_spdx_licenses": true, + "has_full_text_for_all_licenses": true + }, + "summary_of_key_files": { + "license_expressions": [ + { + "value": "mit", + "count": 2 + }, + { + "value": null, + "count": 1 + } + ], + "copyrights": [ + { + "value": null, + "count": 2 + }, + { + "value": "Copyright (c) Google, Inc.", + "count": 1 + } + ], + "holders": [ + { + "value": null, + "count": 2 + }, + { + "value": "Google Inc.", + "count": 1 + } + ], + "authors": [ + { + "value": null, + "count": 3 + } + ], + "programming_language": [ + { + "value": null, + "count": 2 + }, + { + "value": "Python", + "count": 1 + } + ] + }, + "files": [ + { + "path": "package", + "type": "directory", + "name": "package", + "base_name": "package", + "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": [], + "license_expressions": [], + "holders": [], + "copyrights": [], + "authors": [], + "packages": [ + { + "type": "npm", + "namespace": "@ngtools", + "name": "webpack", + "version": "10.2.1", + "qualifiers": null, + "subpath": null, + "primary_language": "JavaScript", + "description": "Webpack plugin that AoT compiles your Angular components and modules.", + "release_date": null, + "parties": [ + { + "type": "person", + "role": "author", + "name": "Angular Authors", + "email": null, + "url": null + } + ], + "keywords": [ + "angular", + "Angular CLI", + "devkit", + "sdk", + "Angular DevKit", + "webpack", + "plugin", + "aot" + ], + "homepage_url": "https://github.com/angular/angular-cli", + "download_url": "https://registry.npmjs.org/@ngtools/webpack/-/webpack-10.2.1.tgz", + "size": null, + "sha1": null, + "md5": null, + "sha256": null, + "sha512": null, + "bug_tracking_url": "https://github.com/angular/angular-cli/issues", + "code_view_url": null, + "vcs_url": "git+https://github.com/angular/angular-cli.git", + "copyright": null, + "license_expression": "mit", + "declared_license": "MIT", + "notice_text": null, + "manifest_path": "package.json", + "dependencies": [ + { + "purl": "pkg:npm/%40angular-devkit/core", + "requirement": "10.2.1", + "scope": "dependencies", + "is_runtime": true, + "is_optional": false, + "is_resolved": false + }, + { + "purl": "pkg:npm/enhanced-resolve", + "requirement": "4.3.0", + "scope": "dependencies", + "is_runtime": true, + "is_optional": false, + "is_resolved": false + }, + { + "purl": "pkg:npm/webpack-sources", + "requirement": "1.4.3", + "scope": "dependencies", + "is_runtime": true, + "is_optional": false, + "is_resolved": false + }, + { + "purl": "pkg:npm/%40angular/compiler-cli", + "requirement": "^10.0.0", + "scope": "peerDependencies", + "is_runtime": true, + "is_optional": false, + "is_resolved": false + }, + { + "purl": "pkg:npm/typescript", + "requirement": ">=3.9 < 4.1", + "scope": "peerDependencies", + "is_runtime": true, + "is_optional": false, + "is_resolved": false + }, + { + "purl": "pkg:npm/webpack", + "requirement": "^4.0.0", + "scope": "peerDependencies", + "is_runtime": true, + "is_optional": false, + "is_resolved": false + } + ], + "contains_source_code": null, + "source_packages": [], + "purl": "pkg:npm/%40ngtools/webpack@10.2.1", + "repository_homepage_url": "https://www.npmjs.com/package/@ngtools/webpack", + "repository_download_url": "https://registry.npmjs.org/@ngtools/webpack/-/webpack-10.2.1.tgz", + "api_data_url": "https://registry.npmjs.org/@ngtools%2fwebpack", + "files": [ + { + "path": "package", + "type": "directory" + } + ] + } + ], + "emails": [], + "urls": [], + "is_legal": false, + "is_manifest": false, + "is_readme": false, + "is_top_level": true, + "is_key_file": false, + "is_generated": false, + "is_license_text": false, + "files_count": 78, + "dirs_count": 2, + "size_count": 249108, + "scan_errors": [] + }, + { + "path": "package/LICENSE", + "type": "file", + "name": "LICENSE", + "base_name": "LICENSE", + "extension": "", + "size": 1073, + "date": "1985-10-26", + "sha1": "34973274ccef6ab4dfaaf86599792fa9c3fe4689", + "md5": "dc2a37e472c366af2a7b8bd0f2ba5af4", + "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, + "licenses": [ + { + "key": "mit", + "score": 97.66, + "name": "MIT License", + "short_name": "MIT License", + "category": "Permissive", + "is_exception": false, + "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": 1, + "end_line": 21, + "matched_rule": { + "identifier": "mit_160.RULE", + "license_expression": "mit", + "licenses": [ + "mit" + ], + "is_license_text": true, + "is_license_notice": false, + "is_license_reference": false, + "is_license_tag": false, + "matcher": "3-seq", + "rule_length": 167, + "matched_length": 167, + "match_coverage": 100, + "rule_relevance": 100 + }, + "matched_text": "The MIT License\n\nCopyright ([c]) [2017] [Google], [Inc].\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE." + } + ], + "license_expressions": [ + "mit" + ], + "holders": [ + { + "value": "Google, Inc.", + "start_line": 3, + "end_line": 3 + } + ], + "copyrights": [ + { + "value": "Copyright (c) 2017 Google, Inc.", + "start_line": 3, + "end_line": 3 + } + ], + "authors": [], + "packages": [], + "emails": [], + "urls": [], + "is_legal": true, + "is_manifest": false, + "is_readme": false, + "is_top_level": true, + "is_key_file": true, + "is_generated": false, + "is_license_text": true, + "files_count": 0, + "dirs_count": 0, + "size_count": 0, + "scan_errors": [] + }, + { + "path": "package/package.json", + "type": "file", + "name": "package.json", + "base_name": "package", + "extension": ".json", + "size": 1072, + "date": "1985-10-26", + "sha1": "80471dfcc9fc280667e9033603b3418bc45ea87c", + "md5": "294286cdc001f617c4a043a832fea604", + "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, + "licenses": [ + { + "key": "mit", + "score": 99, + "name": "MIT License", + "short_name": "MIT License", + "category": "Permissive", + "is_exception": false, + "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": 7, + "matched_rule": { + "identifier": "mit_34.RULE", + "license_expression": "mit", + "licenses": [ + "mit" + ], + "is_license_text": false, + "is_license_notice": false, + "is_license_reference": false, + "is_license_tag": true, + "matcher": "2-aho", + "rule_length": 2, + "matched_length": 2, + "match_coverage": 100, + "rule_relevance": 99 + }, + "matched_text": "license\": \"MIT\"," + } + ], + "license_expressions": [ + "mit" + ], + "holders": [], + "copyrights": [], + "authors": [], + "packages": [], + "emails": [], + "urls": [ + { + "url": "https://github.com/angular/angular-cli.git", + "start_line": 20, + "end_line": 20 + }, + { + "url": "https://github.com/angular/angular-cli/issues", + "start_line": 24, + "end_line": 24 + }, + { + "url": "https://github.com/angular/angular-cli", + "start_line": 26, + "end_line": 26 + } + ], + "is_legal": false, + "is_manifest": true, + "is_readme": false, + "is_top_level": true, + "is_key_file": true, + "is_generated": false, + "is_license_text": false, + "files_count": 0, + "dirs_count": 0, + "size_count": 0, + "scan_errors": [] + }, + { + "path": "package/README.md", + "type": "file", + "name": "README.md", + "base_name": "README", + "extension": ".md", + "size": 4769, + "date": "1985-10-26", + "sha1": "1daa935ef919ea901fe668fbd8595c725aac2bef", + "md5": "7e796c9a6b5540e2f096357e6832c2aa", + "mime_type": "text/plain", + "file_type": "ASCII text, with very long lines", + "programming_language": "Python", + "is_binary": false, + "is_text": true, + "is_archive": false, + "is_media": false, + "is_source": false, + "is_script": false, + "licenses": [], + "license_expressions": [], + "holders": [], + "copyrights": [], + "authors": [], + "packages": [], + "emails": [], + "urls": [ + { + "url": "https://www.npmjs.com/~ngtools", + "start_line": 68, + "end_line": 68 + }, + { + "url": "https://youtu.be/uBRK6cTr4Vk?t=6m45s", + "start_line": 68, + "end_line": 68 + } + ], + "is_legal": false, + "is_manifest": false, + "is_readme": true, + "is_top_level": true, + "is_key_file": true, + "is_generated": false, + "is_license_text": false, + "files_count": 0, + "dirs_count": 0, + "size_count": 0, + "scan_errors": [] + }, + { + "path": "package/src", + "type": "directory", + "name": "src", + "base_name": "src", + "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": [], + "license_expressions": [], + "holders": [], + "copyrights": [], + "authors": [], + "packages": [], + "emails": [], + "urls": [], + "is_legal": false, + "is_manifest": false, + "is_readme": false, + "is_top_level": true, + "is_key_file": false, + "is_generated": false, + "is_license_text": false, + "files_count": 75, + "dirs_count": 1, + "size_count": 242194, + "scan_errors": [] + }, + { + "path": "package/src/angular_compiler_plugin.d.ts", + "type": "file", + "name": "angular_compiler_plugin.d.ts", + "base_name": "angular_compiler_plugin.d", + "extension": ".ts", + "size": 2583, + "date": "1985-10-26", + "sha1": "b1d089d246cd4f61233f266c90dbdfab2287f821", + "md5": "4550754c8f887ea914d75bc4900b3acf", + "mime_type": "text/plain", + "file_type": "ASCII text", + "programming_language": "TypeScript", + "is_binary": false, + "is_text": true, + "is_archive": false, + "is_media": false, + "is_source": true, + "is_script": false, + "licenses": [], + "license_expressions": [], + "holders": [], + "copyrights": [], + "authors": [], + "packages": [], + "emails": [], + "urls": [], + "is_legal": false, + "is_manifest": false, + "is_readme": false, + "is_top_level": false, + "is_key_file": false, + "is_generated": false, + "is_license_text": false, + "files_count": 0, + "dirs_count": 0, + "size_count": 0, + "scan_errors": [] + }, + { + "path": "package/src/angular_compiler_plugin.js", + "type": "file", + "name": "angular_compiler_plugin.js", + "base_name": "angular_compiler_plugin", + "extension": ".js", + "size": 62532, + "date": "1985-10-26", + "sha1": "f137dfd4a1054370b92b4c9782368b2af580b617", + "md5": "3298f9d4f6c88573e3cfa01f7a590de5", + "mime_type": "text/x-c++", + "file_type": "C++ source, ASCII text", + "programming_language": "JavaScript", + "is_binary": false, + "is_text": true, + "is_archive": false, + "is_media": false, + "is_source": true, + "is_script": false, + "licenses": [ + { + "key": "mit", + "score": 100, + "name": "MIT License", + "short_name": "MIT License", + "category": "Permissive", + "is_exception": false, + "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": 8, + "end_line": 9, + "matched_rule": { + "identifier": "mit_129.RULE", + "license_expression": "mit", + "licenses": [ + "mit" + ], + "is_license_text": false, + "is_license_notice": true, + "is_license_reference": false, + "is_license_tag": false, + "matcher": "2-aho", + "rule_length": 25, + "matched_length": 25, + "match_coverage": 100, + "rule_relevance": 100 + }, + "matched_text": "Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license" + } + ], + "license_expressions": [ + "mit" + ], + "holders": [ + { + "value": "Google Inc.", + "start_line": 6, + "end_line": 6 + } + ], + "copyrights": [ + { + "value": "Copyright Google Inc.", + "start_line": 6, + "end_line": 6 + } + ], + "authors": [], + "packages": [], + "emails": [], + "urls": [ + { + "url": "https://angular.io/license", + "start_line": 9, + "end_line": 9 + }, + { + "url": "https://github.com/nodejs/node/issues/9435", + "start_line": 407, + "end_line": 407 + }, + { + "url": "https://github.com/angular/angular-cli/issues/9071", + "start_line": 411, + "end_line": 411 + }, + { + "url": "https://github.com/angular/angular-cli/pull/15030", + "start_line": 465, + "end_line": 465 + }, + { + "url": "https://goo.gl/jB3GVv", + "start_line": 947, + "end_line": 947 + } + ], + "is_legal": false, + "is_manifest": false, + "is_readme": false, + "is_top_level": false, + "is_key_file": false, + "is_generated": false, + "is_license_text": false, + "files_count": 0, + "dirs_count": 0, + "size_count": 0, + "scan_errors": [] + }, + { + "path": "package/src/benchmark.d.ts", + "type": "file", + "name": "benchmark.d.ts", + "base_name": "benchmark.d", + "extension": ".ts", + "size": 105, + "date": "1985-10-26", + "sha1": "9d62b62ba2e70fdf5e3a95ca18ad0949951ea087", + "md5": "c61e30c7669f2a3837a2dc5d17ea2136", + "mime_type": "text/plain", + "file_type": "ASCII text", + "programming_language": "TypeScript", + "is_binary": false, + "is_text": true, + "is_archive": false, + "is_media": false, + "is_source": true, + "is_script": false, + "licenses": [], + "license_expressions": [], + "holders": [], + "copyrights": [], + "authors": [], + "packages": [], + "emails": [], + "urls": [], + "is_legal": false, + "is_manifest": false, + "is_readme": false, + "is_top_level": false, + "is_key_file": false, + "is_generated": false, + "is_license_text": false, + "files_count": 0, + "dirs_count": 0, + "size_count": 0, + "scan_errors": [] + }, + { + "path": "package/src/benchmark.js", + "type": "file", + "name": "benchmark.js", + "base_name": "benchmark", + "extension": ".js", + "size": 728, + "date": "1985-10-26", + "sha1": "e58f3cddff7a6571b35e95e34223cac46f9fd385", + "md5": "44473f96eadb20d9b94c9f7eabf3bd83", + "mime_type": "text/plain", + "file_type": "ASCII text", + "programming_language": "JavaScript", + "is_binary": false, + "is_text": true, + "is_archive": false, + "is_media": false, + "is_source": true, + "is_script": false, + "licenses": [ + { + "key": "mit", + "score": 100, + "name": "MIT License", + "short_name": "MIT License", + "category": "Permissive", + "is_exception": false, + "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": 8, + "end_line": 9, + "matched_rule": { + "identifier": "mit_129.RULE", + "license_expression": "mit", + "licenses": [ + "mit" + ], + "is_license_text": false, + "is_license_notice": true, + "is_license_reference": false, + "is_license_tag": false, + "matcher": "2-aho", + "rule_length": 25, + "matched_length": 25, + "match_coverage": 100, + "rule_relevance": 100 + }, + "matched_text": "Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license" + } + ], + "license_expressions": [ + "mit" + ], + "holders": [ + { + "value": "Google Inc.", + "start_line": 6, + "end_line": 6 + } + ], + "copyrights": [ + { + "value": "Copyright Google Inc.", + "start_line": 6, + "end_line": 6 + } + ], + "authors": [], + "packages": [], + "emails": [], + "urls": [ + { + "url": "https://angular.io/license", + "start_line": 9, + "end_line": 9 + } + ], + "is_legal": false, + "is_manifest": false, + "is_readme": false, + "is_top_level": false, + "is_key_file": false, + "is_generated": false, + "is_license_text": false, + "files_count": 0, + "dirs_count": 0, + "size_count": 0, + "scan_errors": [] + }, + { + "path": "package/src/compiler_host.d.ts", + "type": "file", + "name": "compiler_host.d.ts", + "base_name": "compiler_host.d", + "extension": ".ts", + "size": 2988, + "date": "1985-10-26", + "sha1": "02a9c90f5b3dee7265ef70a369da912fb5337185", + "md5": "cc8a4a74d683b92400c1389d5fbab8d8", + "mime_type": "text/plain", + "file_type": "ASCII text", + "programming_language": "TypeScript", + "is_binary": false, + "is_text": true, + "is_archive": false, + "is_media": false, + "is_source": true, + "is_script": false, + "licenses": [ + { + "key": "mit", + "score": 100, + "name": "MIT License", + "short_name": "MIT License", + "category": "Permissive", + "is_exception": false, + "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": 6, + "end_line": 7, + "matched_rule": { + "identifier": "mit_129.RULE", + "license_expression": "mit", + "licenses": [ + "mit" + ], + "is_license_text": false, + "is_license_notice": true, + "is_license_reference": false, + "is_license_tag": false, + "matcher": "2-aho", + "rule_length": 25, + "matched_length": 25, + "match_coverage": 100, + "rule_relevance": 100 + }, + "matched_text": "Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license" + } + ], + "license_expressions": [ + "mit" + ], + "holders": [ + { + "value": "Google Inc.", + "start_line": 4, + "end_line": 4 + } + ], + "copyrights": [ + { + "value": "Copyright Google Inc.", + "start_line": 4, + "end_line": 4 + } + ], + "authors": [], + "packages": [], + "emails": [], + "urls": [ + { + "url": "https://angular.io/license", + "start_line": 7, + "end_line": 7 + } + ], + "is_legal": false, + "is_manifest": false, + "is_readme": false, + "is_top_level": false, + "is_key_file": false, + "is_generated": false, + "is_license_text": false, + "files_count": 0, + "dirs_count": 0, + "size_count": 0, + "scan_errors": [] + }, + { + "path": "package/src/compiler_host.js", + "type": "file", + "name": "compiler_host.js", + "base_name": "compiler_host", + "extension": ".js", + "size": 13727, + "date": "1985-10-26", + "sha1": "8fe2730c7f79c55cb53143f2652578917a59ab10", + "md5": "218500564b1b78c12bfcc97b4844b1e7", + "mime_type": "text/x-c++", + "file_type": "C++ source, ASCII text", + "programming_language": "JavaScript", + "is_binary": false, + "is_text": true, + "is_archive": false, + "is_media": false, + "is_source": true, + "is_script": false, + "licenses": [ + { + "key": "mit", + "score": 100, + "name": "MIT License", + "short_name": "MIT License", + "category": "Permissive", + "is_exception": false, + "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": 8, + "end_line": 9, + "matched_rule": { + "identifier": "mit_129.RULE", + "license_expression": "mit", + "licenses": [ + "mit" + ], + "is_license_text": false, + "is_license_notice": true, + "is_license_reference": false, + "is_license_tag": false, + "matcher": "2-aho", + "rule_length": 25, + "matched_length": 25, + "match_coverage": 100, + "rule_relevance": 100 + }, + "matched_text": "Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license" + } + ], + "license_expressions": [ + "mit" + ], + "holders": [ + { + "value": "Google Inc.", + "start_line": 6, + "end_line": 6 + } + ], + "copyrights": [ + { + "value": "Copyright Google Inc.", + "start_line": 6, + "end_line": 6 + } + ], + "authors": [], + "packages": [], + "emails": [], + "urls": [ + { + "url": "https://angular.io/license", + "start_line": 9, + "end_line": 9 + } + ], + "is_legal": false, + "is_manifest": false, + "is_readme": false, + "is_top_level": false, + "is_key_file": false, + "is_generated": false, + "is_license_text": false, + "files_count": 0, + "dirs_count": 0, + "size_count": 0, + "scan_errors": [] + }, + { + "path": "package/src/diagnostics.d.ts", + "type": "file", + "name": "diagnostics.d.ts", + "base_name": "diagnostics.d", + "extension": ".ts", + "size": 1024, + "date": "1985-10-26", + "sha1": "0c0f263831fdcd1d019a4a5ed6f6f9236832b50e", + "md5": "7259cca07c9d21595bd14fb3178c823c", + "mime_type": "text/plain", + "file_type": "ASCII text", + "programming_language": "TypeScript", + "is_binary": false, + "is_text": true, + "is_archive": false, + "is_media": false, + "is_source": true, + "is_script": false, + "licenses": [ + { + "key": "mit", + "score": 100, + "name": "MIT License", + "short_name": "MIT License", + "category": "Permissive", + "is_exception": false, + "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": 5, + "end_line": 6, + "matched_rule": { + "identifier": "mit_129.RULE", + "license_expression": "mit", + "licenses": [ + "mit" + ], + "is_license_text": false, + "is_license_notice": true, + "is_license_reference": false, + "is_license_tag": false, + "matcher": "2-aho", + "rule_length": 25, + "matched_length": 25, + "match_coverage": 100, + "rule_relevance": 100 + }, + "matched_text": "Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license" + } + ], + "license_expressions": [ + "mit" + ], + "holders": [ + { + "value": "Google Inc.", + "start_line": 3, + "end_line": 3 + } + ], + "copyrights": [ + { + "value": "Copyright Google Inc.", + "start_line": 3, + "end_line": 3 + } + ], + "authors": [], + "packages": [], + "emails": [], + "urls": [ + { + "url": "https://angular.io/license", + "start_line": 6, + "end_line": 6 + } + ], + "is_legal": false, + "is_manifest": false, + "is_readme": false, + "is_top_level": false, + "is_key_file": false, + "is_generated": false, + "is_license_text": false, + "files_count": 0, + "dirs_count": 0, + "size_count": 0, + "scan_errors": [] + }, + { + "path": "package/src/diagnostics.js", + "type": "file", + "name": "diagnostics.js", + "base_name": "diagnostics", + "extension": ".js", + "size": 5784, + "date": "1985-10-26", + "sha1": "b3b13ea5e1414f8db558911210b3614794edaaa9", + "md5": "71d182cfd915396470343f0d3bff5923", + "mime_type": "text/x-c++", + "file_type": "C++ source, ASCII text", + "programming_language": "JavaScript", + "is_binary": false, + "is_text": true, + "is_archive": false, + "is_media": false, + "is_source": true, + "is_script": false, + "licenses": [ + { + "key": "mit", + "score": 100, + "name": "MIT License", + "short_name": "MIT License", + "category": "Permissive", + "is_exception": false, + "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": 8, + "end_line": 9, + "matched_rule": { + "identifier": "mit_129.RULE", + "license_expression": "mit", + "licenses": [ + "mit" + ], + "is_license_text": false, + "is_license_notice": true, + "is_license_reference": false, + "is_license_tag": false, + "matcher": "2-aho", + "rule_length": 25, + "matched_length": 25, + "match_coverage": 100, + "rule_relevance": 100 + }, + "matched_text": "Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license" + } + ], + "license_expressions": [ + "mit" + ], + "holders": [ + { + "value": "Google Inc.", + "start_line": 6, + "end_line": 6 + } + ], + "copyrights": [ + { + "value": "Copyright Google Inc.", + "start_line": 6, + "end_line": 6 + } + ], + "authors": [], + "packages": [], + "emails": [], + "urls": [ + { + "url": "https://angular.io/license", + "start_line": 9, + "end_line": 9 + } + ], + "is_legal": false, + "is_manifest": false, + "is_readme": false, + "is_top_level": false, + "is_key_file": false, + "is_generated": false, + "is_license_text": false, + "files_count": 0, + "dirs_count": 0, + "size_count": 0, + "scan_errors": [] + }, + { + "path": "package/src/entry_resolver.d.ts", + "type": "file", + "name": "entry_resolver.d.ts", + "base_name": "entry_resolver.d", + "extension": ".ts", + "size": 366, + "date": "1985-10-26", + "sha1": "4dab5028ad71edfbb25946ecffe4ed747b0d1ed3", + "md5": "a55320d72f41d91662961f7d163df123", + "mime_type": "text/plain", + "file_type": "ASCII text", + "programming_language": "TypeScript", + "is_binary": false, + "is_text": true, + "is_archive": false, + "is_media": false, + "is_source": true, + "is_script": false, + "licenses": [ + { + "key": "mit", + "score": 100, + "name": "MIT License", + "short_name": "MIT License", + "category": "Permissive", + "is_exception": false, + "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": 5, + "end_line": 6, + "matched_rule": { + "identifier": "mit_129.RULE", + "license_expression": "mit", + "licenses": [ + "mit" + ], + "is_license_text": false, + "is_license_notice": true, + "is_license_reference": false, + "is_license_tag": false, + "matcher": "2-aho", + "rule_length": 25, + "matched_length": 25, + "match_coverage": 100, + "rule_relevance": 100 + }, + "matched_text": "Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license" + } + ], + "license_expressions": [ + "mit" + ], + "holders": [ + { + "value": "Google Inc.", + "start_line": 3, + "end_line": 3 + } + ], + "copyrights": [ + { + "value": "Copyright Google Inc.", + "start_line": 3, + "end_line": 3 + } + ], + "authors": [], + "packages": [], + "emails": [], + "urls": [ + { + "url": "https://angular.io/license", + "start_line": 6, + "end_line": 6 + } + ], + "is_legal": false, + "is_manifest": false, + "is_readme": false, + "is_top_level": false, + "is_key_file": false, + "is_generated": false, + "is_license_text": false, + "files_count": 0, + "dirs_count": 0, + "size_count": 0, + "scan_errors": [] + }, + { + "path": "package/src/entry_resolver.js", + "type": "file", + "name": "entry_resolver.js", + "base_name": "entry_resolver", + "extension": ".js", + "size": 6317, + "date": "1985-10-26", + "sha1": "e51a7196e065875fca6cdea3180c16194a94d125", + "md5": "ab64e853a21ea1fb8de7f619ecad0b1f", + "mime_type": "text/plain", + "file_type": "ASCII text", + "programming_language": "JavaScript", + "is_binary": false, + "is_text": true, + "is_archive": false, + "is_media": false, + "is_source": true, + "is_script": false, + "licenses": [ + { + "key": "mit", + "score": 100, + "name": "MIT License", + "short_name": "MIT License", + "category": "Permissive", + "is_exception": false, + "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": 6, + "end_line": 7, + "matched_rule": { + "identifier": "mit_129.RULE", + "license_expression": "mit", + "licenses": [ + "mit" + ], + "is_license_text": false, + "is_license_notice": true, + "is_license_reference": false, + "is_license_tag": false, + "matcher": "2-aho", + "rule_length": 25, + "matched_length": 25, + "match_coverage": 100, + "rule_relevance": 100 + }, + "matched_text": "Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license" + } + ], + "license_expressions": [ + "mit" + ], + "holders": [ + { + "value": "Google Inc.", + "start_line": 4, + "end_line": 4 + } + ], + "copyrights": [ + { + "value": "Copyright Google Inc.", + "start_line": 4, + "end_line": 4 + } + ], + "authors": [], + "packages": [], + "emails": [], + "urls": [ + { + "url": "https://angular.io/license", + "start_line": 7, + "end_line": 7 + } + ], + "is_legal": false, + "is_manifest": false, + "is_readme": false, + "is_top_level": false, + "is_key_file": false, + "is_generated": false, + "is_license_text": false, + "files_count": 0, + "dirs_count": 0, + "size_count": 0, + "scan_errors": [] + }, + { + "path": "package/src/index.d.ts", + "type": "file", + "name": "index.d.ts", + "base_name": "index.d", + "extension": ".ts", + "size": 452, + "date": "1985-10-26", + "sha1": "915113cc85448a87d56c37032dbe28c8b9e4c467", + "md5": "d898c27e88c106e4dcaaef8b7ef13f61", + "mime_type": "text/plain", + "file_type": "ASCII text", + "programming_language": "TypeScript", + "is_binary": false, + "is_text": true, + "is_archive": false, + "is_media": false, + "is_source": true, + "is_script": false, + "licenses": [ + { + "key": "mit", + "score": 100, + "name": "MIT License", + "short_name": "MIT License", + "category": "Permissive", + "is_exception": false, + "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": 5, + "end_line": 6, + "matched_rule": { + "identifier": "mit_129.RULE", + "license_expression": "mit", + "licenses": [ + "mit" + ], + "is_license_text": false, + "is_license_notice": true, + "is_license_reference": false, + "is_license_tag": false, + "matcher": "2-aho", + "rule_length": 25, + "matched_length": 25, + "match_coverage": 100, + "rule_relevance": 100 + }, + "matched_text": "Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license" + } + ], + "license_expressions": [ + "mit" + ], + "holders": [ + { + "value": "Google Inc.", + "start_line": 3, + "end_line": 3 + } + ], + "copyrights": [ + { + "value": "Copyright Google Inc.", + "start_line": 3, + "end_line": 3 + } + ], + "authors": [], + "packages": [], + "emails": [], + "urls": [ + { + "url": "https://angular.io/license", + "start_line": 6, + "end_line": 6 + } + ], + "is_legal": false, + "is_manifest": false, + "is_readme": false, + "is_top_level": false, + "is_key_file": false, + "is_generated": false, + "is_license_text": false, + "files_count": 0, + "dirs_count": 0, + "size_count": 0, + "scan_errors": [] + }, + { + "path": "package/src/index.js", + "type": "file", + "name": "index.js", + "base_name": "index", + "extension": ".js", + "size": 1137, + "date": "1985-10-26", + "sha1": "7acb57855406ebc025b103667e387a41d726b1d1", + "md5": "9b1c46dc06de0f741e2c77fafd49323a", + "mime_type": "text/plain", + "file_type": "ASCII text", + "programming_language": "JavaScript", + "is_binary": false, + "is_text": true, + "is_archive": false, + "is_media": false, + "is_source": true, + "is_script": false, + "licenses": [ + { + "key": "mit", + "score": 100, + "name": "MIT License", + "short_name": "MIT License", + "category": "Permissive", + "is_exception": false, + "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": 6, + "end_line": 7, + "matched_rule": { + "identifier": "mit_129.RULE", + "license_expression": "mit", + "licenses": [ + "mit" + ], + "is_license_text": false, + "is_license_notice": true, + "is_license_reference": false, + "is_license_tag": false, + "matcher": "2-aho", + "rule_length": 25, + "matched_length": 25, + "match_coverage": 100, + "rule_relevance": 100 + }, + "matched_text": "Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license" + } + ], + "license_expressions": [ + "mit" + ], + "holders": [ + { + "value": "Google Inc.", + "start_line": 4, + "end_line": 4 + } + ], + "copyrights": [ + { + "value": "Copyright Google Inc.", + "start_line": 4, + "end_line": 4 + } + ], + "authors": [], + "packages": [], + "emails": [], + "urls": [ + { + "url": "https://angular.io/license", + "start_line": 7, + "end_line": 7 + } + ], + "is_legal": false, + "is_manifest": false, + "is_readme": false, + "is_top_level": false, + "is_key_file": false, + "is_generated": false, + "is_license_text": false, + "files_count": 0, + "dirs_count": 0, + "size_count": 0, + "scan_errors": [] + }, + { + "path": "package/src/interfaces.d.ts", + "type": "file", + "name": "interfaces.d.ts", + "base_name": "interfaces.d", + "extension": ".ts", + "size": 3305, + "date": "1985-10-26", + "sha1": "baecd44abbdc975c7cdedd3a35293ee10c900085", + "md5": "5549ca7a073a44ac6c0174fa63bde7d8", + "mime_type": "text/plain", + "file_type": "ASCII text", + "programming_language": "TypeScript", + "is_binary": false, + "is_text": true, + "is_archive": false, + "is_media": false, + "is_source": true, + "is_script": false, + "licenses": [ + { + "key": "mit", + "score": 100, + "name": "MIT License", + "short_name": "MIT License", + "category": "Permissive", + "is_exception": false, + "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": 5, + "end_line": 6, + "matched_rule": { + "identifier": "mit_129.RULE", + "license_expression": "mit", + "licenses": [ + "mit" + ], + "is_license_text": false, + "is_license_notice": true, + "is_license_reference": false, + "is_license_tag": false, + "matcher": "2-aho", + "rule_length": 25, + "matched_length": 25, + "match_coverage": 100, + "rule_relevance": 100 + }, + "matched_text": "Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license" + } + ], + "license_expressions": [ + "mit" + ], + "holders": [ + { + "value": "Google Inc.", + "start_line": 3, + "end_line": 3 + } + ], + "copyrights": [ + { + "value": "Copyright Google Inc.", + "start_line": 3, + "end_line": 3 + } + ], + "authors": [], + "packages": [], + "emails": [], + "urls": [ + { + "url": "https://angular.io/license", + "start_line": 6, + "end_line": 6 + } + ], + "is_legal": false, + "is_manifest": false, + "is_readme": false, + "is_top_level": false, + "is_key_file": false, + "is_generated": false, + "is_license_text": false, + "files_count": 0, + "dirs_count": 0, + "size_count": 0, + "scan_errors": [] + }, + { + "path": "package/src/interfaces.js", + "type": "file", + "name": "interfaces.js", + "base_name": "interfaces", + "extension": ".js", + "size": 504, + "date": "1985-10-26", + "sha1": "5e0172c165cdc10f84d5e9a90cfaaed808b39291", + "md5": "a02ffe73d0c11f23615f1ffd282ae258", + "mime_type": "text/plain", + "file_type": "ASCII text", + "programming_language": "JavaScript", + "is_binary": false, + "is_text": true, + "is_archive": false, + "is_media": false, + "is_source": true, + "is_script": false, + "licenses": [ + { + "key": "mit", + "score": 100, + "name": "MIT License", + "short_name": "MIT License", + "category": "Permissive", + "is_exception": false, + "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": 6, + "end_line": 7, + "matched_rule": { + "identifier": "mit_129.RULE", + "license_expression": "mit", + "licenses": [ + "mit" + ], + "is_license_text": false, + "is_license_notice": true, + "is_license_reference": false, + "is_license_tag": false, + "matcher": "2-aho", + "rule_length": 25, + "matched_length": 25, + "match_coverage": 100, + "rule_relevance": 100 + }, + "matched_text": "Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license" + } + ], + "license_expressions": [ + "mit" + ], + "holders": [ + { + "value": "Google Inc.", + "start_line": 4, + "end_line": 4 + } + ], + "copyrights": [ + { + "value": "Copyright Google Inc.", + "start_line": 4, + "end_line": 4 + } + ], + "authors": [], + "packages": [], + "emails": [], + "urls": [ + { + "url": "https://angular.io/license", + "start_line": 7, + "end_line": 7 + } + ], + "is_legal": false, + "is_manifest": false, + "is_readme": false, + "is_top_level": false, + "is_key_file": false, + "is_generated": false, + "is_license_text": false, + "files_count": 0, + "dirs_count": 0, + "size_count": 0, + "scan_errors": [] + }, + { + "path": "package/src/lazy_routes.d.ts", + "type": "file", + "name": "lazy_routes.d.ts", + "base_name": "lazy_routes.d", + "extension": ".ts", + "size": 251, + "date": "1985-10-26", + "sha1": "4a3a5aa4ebff95bf80709c92b4344e30495e6f24", + "md5": "7af729869f751074afbf2f05504b3576", + "mime_type": "text/plain", + "file_type": "ASCII text", + "programming_language": "TypeScript", + "is_binary": false, + "is_text": true, + "is_archive": false, + "is_media": false, + "is_source": true, + "is_script": false, + "licenses": [], + "license_expressions": [], + "holders": [], + "copyrights": [], + "authors": [], + "packages": [], + "emails": [], + "urls": [], + "is_legal": false, + "is_manifest": false, + "is_readme": false, + "is_top_level": false, + "is_key_file": false, + "is_generated": false, + "is_license_text": false, + "files_count": 0, + "dirs_count": 0, + "size_count": 0, + "scan_errors": [] + }, + { + "path": "package/src/lazy_routes.js", + "type": "file", + "name": "lazy_routes.js", + "base_name": "lazy_routes", + "extension": ".js", + "size": 3329, + "date": "1985-10-26", + "sha1": "83ffaf9a48e6d21b676be8a036a534350e712095", + "md5": "e5ddf3ceafe57bde069665895e1e3c39", + "mime_type": "text/plain", + "file_type": "ASCII text", + "programming_language": "JavaScript", + "is_binary": false, + "is_text": true, + "is_archive": false, + "is_media": false, + "is_source": true, + "is_script": false, + "licenses": [ + { + "key": "mit", + "score": 100, + "name": "MIT License", + "short_name": "MIT License", + "category": "Permissive", + "is_exception": false, + "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": 8, + "end_line": 9, + "matched_rule": { + "identifier": "mit_129.RULE", + "license_expression": "mit", + "licenses": [ + "mit" + ], + "is_license_text": false, + "is_license_notice": true, + "is_license_reference": false, + "is_license_tag": false, + "matcher": "2-aho", + "rule_length": 25, + "matched_length": 25, + "match_coverage": 100, + "rule_relevance": 100 + }, + "matched_text": "Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license" + } + ], + "license_expressions": [ + "mit" + ], + "holders": [ + { + "value": "Google Inc.", + "start_line": 6, + "end_line": 6 + } + ], + "copyrights": [ + { + "value": "Copyright Google Inc.", + "start_line": 6, + "end_line": 6 + } + ], + "authors": [], + "packages": [], + "emails": [], + "urls": [ + { + "url": "https://angular.io/license", + "start_line": 9, + "end_line": 9 + } + ], + "is_legal": false, + "is_manifest": false, + "is_readme": false, + "is_top_level": false, + "is_key_file": false, + "is_generated": false, + "is_license_text": false, + "files_count": 0, + "dirs_count": 0, + "size_count": 0, + "scan_errors": [] + }, + { + "path": "package/src/loader.d.ts", + "type": "file", + "name": "loader.d.ts", + "base_name": "loader.d", + "extension": ".ts", + "size": 103, + "date": "1985-10-26", + "sha1": "e099e1e633cfe08cf6eb3908845890a2031c5b96", + "md5": "1001345c702edc7b05e8dd8dc98decb8", + "mime_type": "text/plain", + "file_type": "ASCII text", + "programming_language": "TypeScript", + "is_binary": false, + "is_text": true, + "is_archive": false, + "is_media": false, + "is_source": true, + "is_script": false, + "licenses": [], + "license_expressions": [], + "holders": [], + "copyrights": [], + "authors": [], + "packages": [], + "emails": [], + "urls": [], + "is_legal": false, + "is_manifest": false, + "is_readme": false, + "is_top_level": false, + "is_key_file": false, + "is_generated": false, + "is_license_text": false, + "files_count": 0, + "dirs_count": 0, + "size_count": 0, + "scan_errors": [] + }, + { + "path": "package/src/loader.js", + "type": "file", + "name": "loader.js", + "base_name": "loader", + "extension": ".js", + "size": 5086, + "date": "1985-10-26", + "sha1": "1a6268c1e75d434530770f9a672cc04cdfebd885", + "md5": "bf8a11e4206a092e548aa2f414d47ebc", + "mime_type": "text/plain", + "file_type": "ASCII text", + "programming_language": "JavaScript", + "is_binary": false, + "is_text": true, + "is_archive": false, + "is_media": false, + "is_source": true, + "is_script": false, + "licenses": [ + { + "key": "mit", + "score": 100, + "name": "MIT License", + "short_name": "MIT License", + "category": "Permissive", + "is_exception": false, + "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": 8, + "end_line": 9, + "matched_rule": { + "identifier": "mit_129.RULE", + "license_expression": "mit", + "licenses": [ + "mit" + ], + "is_license_text": false, + "is_license_notice": true, + "is_license_reference": false, + "is_license_tag": false, + "matcher": "2-aho", + "rule_length": 25, + "matched_length": 25, + "match_coverage": 100, + "rule_relevance": 100 + }, + "matched_text": "Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license" + } + ], + "license_expressions": [ + "mit" + ], + "holders": [ + { + "value": "Google Inc.", + "start_line": 6, + "end_line": 6 + } + ], + "copyrights": [ + { + "value": "Copyright Google Inc.", + "start_line": 6, + "end_line": 6 + } + ], + "authors": [], + "packages": [], + "emails": [], + "urls": [ + { + "url": "https://angular.io/license", + "start_line": 9, + "end_line": 9 + } + ], + "is_legal": false, + "is_manifest": false, + "is_readme": false, + "is_top_level": false, + "is_key_file": false, + "is_generated": false, + "is_license_text": false, + "files_count": 0, + "dirs_count": 0, + "size_count": 0, + "scan_errors": [] + }, + { + "path": "package/src/ngcc_processor.d.ts", + "type": "file", + "name": "ngcc_processor.d.ts", + "base_name": "ngcc_processor.d", + "extension": ".ts", + "size": 1232, + "date": "1985-10-26", + "sha1": "f1f51b6cd4eacc868e7308e51fa96b9afdad9bcb", + "md5": "aaed78553999df34059b4153451f96d0", + "mime_type": "text/plain", + "file_type": "ASCII text", + "programming_language": "TypeScript", + "is_binary": false, + "is_text": true, + "is_archive": false, + "is_media": false, + "is_source": true, + "is_script": false, + "licenses": [ + { + "key": "mit", + "score": 100, + "name": "MIT License", + "short_name": "MIT License", + "category": "Permissive", + "is_exception": false, + "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": 5, + "end_line": 6, + "matched_rule": { + "identifier": "mit_129.RULE", + "license_expression": "mit", + "licenses": [ + "mit" + ], + "is_license_text": false, + "is_license_notice": true, + "is_license_reference": false, + "is_license_tag": false, + "matcher": "2-aho", + "rule_length": 25, + "matched_length": 25, + "match_coverage": 100, + "rule_relevance": 100 + }, + "matched_text": "Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license" + } + ], + "license_expressions": [ + "mit" + ], + "holders": [ + { + "value": "Google Inc.", + "start_line": 3, + "end_line": 3 + } + ], + "copyrights": [ + { + "value": "Copyright Google Inc.", + "start_line": 3, + "end_line": 3 + } + ], + "authors": [], + "packages": [], + "emails": [], + "urls": [ + { + "url": "https://angular.io/license", + "start_line": 6, + "end_line": 6 + } + ], + "is_legal": false, + "is_manifest": false, + "is_readme": false, + "is_top_level": false, + "is_key_file": false, + "is_generated": false, + "is_license_text": false, + "files_count": 0, + "dirs_count": 0, + "size_count": 0, + "scan_errors": [] + }, + { + "path": "package/src/ngcc_processor.js", + "type": "file", + "name": "ngcc_processor.js", + "base_name": "ngcc_processor", + "extension": ".js", + "size": 10165, + "date": "1985-10-26", + "sha1": "04fb3f75f6a5c86dcdd280f5dae43b4775b29bf5", + "md5": "795e169547ff57a24b3e93a932d94924", + "mime_type": "text/x-c++", + "file_type": "C++ source, ASCII text", + "programming_language": "JavaScript", + "is_binary": false, + "is_text": true, + "is_archive": false, + "is_media": false, + "is_source": true, + "is_script": false, + "licenses": [ + { + "key": "mit", + "score": 100, + "name": "MIT License", + "short_name": "MIT License", + "category": "Permissive", + "is_exception": false, + "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": 6, + "end_line": 7, + "matched_rule": { + "identifier": "mit_129.RULE", + "license_expression": "mit", + "licenses": [ + "mit" + ], + "is_license_text": false, + "is_license_notice": true, + "is_license_reference": false, + "is_license_tag": false, + "matcher": "2-aho", + "rule_length": 25, + "matched_length": 25, + "match_coverage": 100, + "rule_relevance": 100 + }, + "matched_text": "Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license" + } + ], + "license_expressions": [ + "mit" + ], + "holders": [ + { + "value": "Google Inc.", + "start_line": 4, + "end_line": 4 + } + ], + "copyrights": [ + { + "value": "Copyright Google Inc.", + "start_line": 4, + "end_line": 4 + } + ], + "authors": [], + "packages": [], + "emails": [], + "urls": [ + { + "url": "https://angular.io/license", + "start_line": 7, + "end_line": 7 + }, + { + "url": "https://github.com/angular/angular/blob/b93c1dffa17e4e6900b3ab1b9e554b6da92be0de/packages/compiler-cli/src/ngcc/src/packages/dependency_host.ts#L85-L121", + "start_line": 178, + "end_line": 178 + } + ], + "is_legal": false, + "is_manifest": false, + "is_readme": false, + "is_top_level": false, + "is_key_file": false, + "is_generated": false, + "is_license_text": false, + "files_count": 0, + "dirs_count": 0, + "size_count": 0, + "scan_errors": [] + }, + { + "path": "package/src/paths-plugin.d.ts", + "type": "file", + "name": "paths-plugin.d.ts", + "base_name": "paths-plugin.d", + "extension": ".ts", + "size": 305, + "date": "1985-10-26", + "sha1": "45d8c5de1eea9ad0a4b3dd24ccd0f75df364bb18", + "md5": "f4b1ccddaf625c6b302081c99a6c499f", + "mime_type": "text/plain", + "file_type": "ASCII text", + "programming_language": "TypeScript", + "is_binary": false, + "is_text": true, + "is_archive": false, + "is_media": false, + "is_source": true, + "is_script": false, + "licenses": [], + "license_expressions": [], + "holders": [], + "copyrights": [], + "authors": [], + "packages": [], + "emails": [], + "urls": [], + "is_legal": false, + "is_manifest": false, + "is_readme": false, + "is_top_level": false, + "is_key_file": false, + "is_generated": false, + "is_license_text": false, + "files_count": 0, + "dirs_count": 0, + "size_count": 0, + "scan_errors": [] + }, + { + "path": "package/src/paths-plugin.js", + "type": "file", + "name": "paths-plugin.js", + "base_name": "paths-plugin", + "extension": ".js", + "size": 5653, + "date": "1985-10-26", + "sha1": "103d268d8357a3c3c123f3ead23f87ed4d2d0163", + "md5": "8267bdde8973b185316eda35c47d3df4", + "mime_type": "text/x-c++", + "file_type": "C++ source, ASCII text", + "programming_language": "JavaScript", + "is_binary": false, + "is_text": true, + "is_archive": false, + "is_media": false, + "is_source": true, + "is_script": false, + "licenses": [ + { + "key": "mit", + "score": 100, + "name": "MIT License", + "short_name": "MIT License", + "category": "Permissive", + "is_exception": false, + "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": 8, + "end_line": 9, + "matched_rule": { + "identifier": "mit_129.RULE", + "license_expression": "mit", + "licenses": [ + "mit" + ], + "is_license_text": false, + "is_license_notice": true, + "is_license_reference": false, + "is_license_tag": false, + "matcher": "2-aho", + "rule_length": 25, + "matched_length": 25, + "match_coverage": 100, + "rule_relevance": 100 + }, + "matched_text": "Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license" + } + ], + "license_expressions": [ + "mit" + ], + "holders": [ + { + "value": "Google Inc.", + "start_line": 6, + "end_line": 6 + } + ], + "copyrights": [ + { + "value": "Copyright Google Inc.", + "start_line": 6, + "end_line": 6 + } + ], + "authors": [], + "packages": [], + "emails": [], + "urls": [ + { + "url": "https://angular.io/license", + "start_line": 9, + "end_line": 9 + } + ], + "is_legal": false, + "is_manifest": false, + "is_readme": false, + "is_top_level": false, + "is_key_file": false, + "is_generated": false, + "is_license_text": false, + "files_count": 0, + "dirs_count": 0, + "size_count": 0, + "scan_errors": [] + }, + { + "path": "package/src/refactor.d.ts", + "type": "file", + "name": "refactor.d.ts", + "base_name": "refactor.d", + "extension": ".ts", + "size": 2135, + "date": "1985-10-26", + "sha1": "e67dc3123ee50a414ba9164936abe50337d09064", + "md5": "55a5907de51e6b756574ec0922312587", + "mime_type": "text/plain", + "file_type": "ASCII text", + "programming_language": "TypeScript", + "is_binary": false, + "is_text": true, + "is_archive": false, + "is_media": false, + "is_source": true, + "is_script": false, + "licenses": [], + "license_expressions": [], + "holders": [], + "copyrights": [], + "authors": [], + "packages": [], + "emails": [], + "urls": [], + "is_legal": false, + "is_manifest": false, + "is_readme": false, + "is_top_level": false, + "is_key_file": false, + "is_generated": false, + "is_license_text": false, + "files_count": 0, + "dirs_count": 0, + "size_count": 0, + "scan_errors": [] + }, + { + "path": "package/src/refactor.js", + "type": "file", + "name": "refactor.js", + "base_name": "refactor", + "extension": ".js", + "size": 3552, + "date": "1985-10-26", + "sha1": "35e3469a799093cdefd314a7a27357767f76b9ec", + "md5": "7c0c1c7a45cae94b8a3960b989c64dee", + "mime_type": "text/x-c++", + "file_type": "C++ source, ASCII text", + "programming_language": "JavaScript", + "is_binary": false, + "is_text": true, + "is_archive": false, + "is_media": false, + "is_source": true, + "is_script": false, + "licenses": [ + { + "key": "mit", + "score": 100, + "name": "MIT License", + "short_name": "MIT License", + "category": "Permissive", + "is_exception": false, + "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": 8, + "end_line": 9, + "matched_rule": { + "identifier": "mit_129.RULE", + "license_expression": "mit", + "licenses": [ + "mit" + ], + "is_license_text": false, + "is_license_notice": true, + "is_license_reference": false, + "is_license_tag": false, + "matcher": "2-aho", + "rule_length": 25, + "matched_length": 25, + "match_coverage": 100, + "rule_relevance": 100 + }, + "matched_text": "Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license" + } + ], + "license_expressions": [ + "mit" + ], + "holders": [ + { + "value": "Google Inc.", + "start_line": 6, + "end_line": 6 + } + ], + "copyrights": [ + { + "value": "Copyright Google Inc.", + "start_line": 6, + "end_line": 6 + } + ], + "authors": [], + "packages": [], + "emails": [], + "urls": [ + { + "url": "https://angular.io/license", + "start_line": 9, + "end_line": 9 + } + ], + "is_legal": false, + "is_manifest": false, + "is_readme": false, + "is_top_level": false, + "is_key_file": false, + "is_generated": false, + "is_license_text": false, + "files_count": 0, + "dirs_count": 0, + "size_count": 0, + "scan_errors": [] + }, + { + "path": "package/src/resource_loader.d.ts", + "type": "file", + "name": "resource_loader.d.ts", + "base_name": "resource_loader.d", + "extension": ".ts", + "size": 514, + "date": "1985-10-26", + "sha1": "d198053788af4d01bcf20b7e772809b57637f8e5", + "md5": "9f496a0d4643ca5517100e911ef5addf", + "mime_type": "text/plain", + "file_type": "ASCII text", + "programming_language": "TypeScript", + "is_binary": false, + "is_text": true, + "is_archive": false, + "is_media": false, + "is_source": true, + "is_script": false, + "licenses": [], + "license_expressions": [], + "holders": [], + "copyrights": [], + "authors": [], + "packages": [], + "emails": [], + "urls": [], + "is_legal": false, + "is_manifest": false, + "is_readme": false, + "is_top_level": false, + "is_key_file": false, + "is_generated": false, + "is_license_text": false, + "files_count": 0, + "dirs_count": 0, + "size_count": 0, + "scan_errors": [] + }, + { + "path": "package/src/resource_loader.js", + "type": "file", + "name": "resource_loader.js", + "base_name": "resource_loader", + "extension": ".js", + "size": 6537, + "date": "1985-10-26", + "sha1": "699e22e9228a0b7bc27c79c92c3a7fe77eae1116", + "md5": "ca9536d54240217291595fa51edddcb5", + "mime_type": "text/x-c++", + "file_type": "C++ source, ASCII text", + "programming_language": "JavaScript", + "is_binary": false, + "is_text": true, + "is_archive": false, + "is_media": false, + "is_source": true, + "is_script": false, + "licenses": [ + { + "key": "mit", + "score": 100, + "name": "MIT License", + "short_name": "MIT License", + "category": "Permissive", + "is_exception": false, + "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": 8, + "end_line": 9, + "matched_rule": { + "identifier": "mit_129.RULE", + "license_expression": "mit", + "licenses": [ + "mit" + ], + "is_license_text": false, + "is_license_notice": true, + "is_license_reference": false, + "is_license_tag": false, + "matcher": "2-aho", + "rule_length": 25, + "matched_length": 25, + "match_coverage": 100, + "rule_relevance": 100 + }, + "matched_text": "Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license" + } + ], + "license_expressions": [ + "mit" + ], + "holders": [ + { + "value": "Google Inc.", + "start_line": 6, + "end_line": 6 + } + ], + "copyrights": [ + { + "value": "Copyright Google Inc.", + "start_line": 6, + "end_line": 6 + } + ], + "authors": [], + "packages": [], + "emails": [], + "urls": [ + { + "url": "https://angular.io/license", + "start_line": 9, + "end_line": 9 + } + ], + "is_legal": false, + "is_manifest": false, + "is_readme": false, + "is_top_level": false, + "is_key_file": false, + "is_generated": false, + "is_license_text": false, + "files_count": 0, + "dirs_count": 0, + "size_count": 0, + "scan_errors": [] + }, + { + "path": "package/src/type_checker.d.ts", + "type": "file", + "name": "type_checker.d.ts", + "base_name": "type_checker.d", + "extension": ".ts", + "size": 741, + "date": "1985-10-26", + "sha1": "7ad173b14a181a375aa067fe71823a9c281fbea7", + "md5": "61b1f30a9fdff3fee98c7193fab69364", + "mime_type": "text/plain", + "file_type": "ASCII text", + "programming_language": "TypeScript", + "is_binary": false, + "is_text": true, + "is_archive": false, + "is_media": false, + "is_source": true, + "is_script": false, + "licenses": [], + "license_expressions": [], + "holders": [], + "copyrights": [], + "authors": [], + "packages": [], + "emails": [], + "urls": [], + "is_legal": false, + "is_manifest": false, + "is_readme": false, + "is_top_level": false, + "is_key_file": false, + "is_generated": false, + "is_license_text": false, + "files_count": 0, + "dirs_count": 0, + "size_count": 0, + "scan_errors": [] + }, + { + "path": "package/src/type_checker.js", + "type": "file", + "name": "type_checker.js", + "base_name": "type_checker", + "extension": ".js", + "size": 4495, + "date": "1985-10-26", + "sha1": "1cfc567f455162d0c6da28821a733f812d4ac36a", + "md5": "dabac82aa85206b29e397df30804c536", + "mime_type": "text/x-c++", + "file_type": "C++ source, ASCII text", + "programming_language": "JavaScript", + "is_binary": false, + "is_text": true, + "is_archive": false, + "is_media": false, + "is_source": true, + "is_script": false, + "licenses": [ + { + "key": "mit", + "score": 100, + "name": "MIT License", + "short_name": "MIT License", + "category": "Permissive", + "is_exception": false, + "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": 8, + "end_line": 9, + "matched_rule": { + "identifier": "mit_129.RULE", + "license_expression": "mit", + "licenses": [ + "mit" + ], + "is_license_text": false, + "is_license_notice": true, + "is_license_reference": false, + "is_license_tag": false, + "matcher": "2-aho", + "rule_length": 25, + "matched_length": 25, + "match_coverage": 100, + "rule_relevance": 100 + }, + "matched_text": "Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license" + } + ], + "license_expressions": [ + "mit" + ], + "holders": [ + { + "value": "Google Inc.", + "start_line": 6, + "end_line": 6 + } + ], + "copyrights": [ + { + "value": "Copyright Google Inc.", + "start_line": 6, + "end_line": 6 + } + ], + "authors": [], + "packages": [], + "emails": [], + "urls": [ + { + "url": "https://angular.io/license", + "start_line": 9, + "end_line": 9 + } + ], + "is_legal": false, + "is_manifest": false, + "is_readme": false, + "is_top_level": false, + "is_key_file": false, + "is_generated": false, + "is_license_text": false, + "files_count": 0, + "dirs_count": 0, + "size_count": 0, + "scan_errors": [] + }, + { + "path": "package/src/type_checker_bootstrap.js", + "type": "file", + "name": "type_checker_bootstrap.js", + "base_name": "type_checker_bootstrap", + "extension": ".js", + "size": 284, + "date": "1985-10-26", + "sha1": "94208a675cb4b07b634c6c6356e17ff6aebf7e5c", + "md5": "261ecf450f94f8072a826ca960f1ea16", + "mime_type": "text/plain", + "file_type": "ASCII text", + "programming_language": "JavaScript", + "is_binary": false, + "is_text": true, + "is_archive": false, + "is_media": false, + "is_source": true, + "is_script": false, + "licenses": [ + { + "key": "mit", + "score": 100, + "name": "MIT License", + "short_name": "MIT License", + "category": "Permissive", + "is_exception": false, + "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": 5, + "end_line": 6, + "matched_rule": { + "identifier": "mit_129.RULE", + "license_expression": "mit", + "licenses": [ + "mit" + ], + "is_license_text": false, + "is_license_notice": true, + "is_license_reference": false, + "is_license_tag": false, + "matcher": "2-aho", + "rule_length": 25, + "matched_length": 25, + "match_coverage": 100, + "rule_relevance": 100 + }, + "matched_text": "Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license" + } + ], + "license_expressions": [ + "mit" + ], + "holders": [ + { + "value": "Google Inc.", + "start_line": 3, + "end_line": 3 + } + ], + "copyrights": [ + { + "value": "Copyright Google Inc.", + "start_line": 3, + "end_line": 3 + } + ], + "authors": [], + "packages": [], + "emails": [], + "urls": [ + { + "url": "https://angular.io/license", + "start_line": 6, + "end_line": 6 + } + ], + "is_legal": false, + "is_manifest": false, + "is_readme": false, + "is_top_level": false, + "is_key_file": false, + "is_generated": false, + "is_license_text": false, + "files_count": 0, + "dirs_count": 0, + "size_count": 0, + "scan_errors": [] + }, + { + "path": "package/src/type_checker_messages.d.ts", + "type": "file", + "name": "type_checker_messages.d.ts", + "base_name": "type_checker_messages.d", + "extension": ".ts", + "size": 1268, + "date": "1985-10-26", + "sha1": "2d4e5fe7a822452c2afbaad67b22c04d90f0cf6b", + "md5": "59007087ed4f2dfad8fcc882f024ca63", + "mime_type": "text/plain", + "file_type": "ASCII text", + "programming_language": "TypeScript", + "is_binary": false, + "is_text": true, + "is_archive": false, + "is_media": false, + "is_source": true, + "is_script": false, + "licenses": [ + { + "key": "mit", + "score": 100, + "name": "MIT License", + "short_name": "MIT License", + "category": "Permissive", + "is_exception": false, + "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": 5, + "end_line": 6, + "matched_rule": { + "identifier": "mit_129.RULE", + "license_expression": "mit", + "licenses": [ + "mit" + ], + "is_license_text": false, + "is_license_notice": true, + "is_license_reference": false, + "is_license_tag": false, + "matcher": "2-aho", + "rule_length": 25, + "matched_length": 25, + "match_coverage": 100, + "rule_relevance": 100 + }, + "matched_text": "Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license" + } + ], + "license_expressions": [ + "mit" + ], + "holders": [ + { + "value": "Google Inc.", + "start_line": 3, + "end_line": 3 + } + ], + "copyrights": [ + { + "value": "Copyright Google Inc.", + "start_line": 3, + "end_line": 3 + } + ], + "authors": [], + "packages": [], + "emails": [], + "urls": [ + { + "url": "https://angular.io/license", + "start_line": 6, + "end_line": 6 + } + ], + "is_legal": false, + "is_manifest": false, + "is_readme": false, + "is_top_level": false, + "is_key_file": false, + "is_generated": false, + "is_license_text": false, + "files_count": 0, + "dirs_count": 0, + "size_count": 0, + "scan_errors": [] + }, + { + "path": "package/src/type_checker_messages.js", + "type": "file", + "name": "type_checker_messages.js", + "base_name": "type_checker_messages", + "extension": ".js", + "size": 1535, + "date": "1985-10-26", + "sha1": "57a0a36e6da7dccae0ee865af60f683c26aa3e15", + "md5": "cb27edd6beeb127ee243b1c204eb48d4", + "mime_type": "text/x-c++", + "file_type": "C++ source, ASCII text", + "programming_language": "JavaScript", + "is_binary": false, + "is_text": true, + "is_archive": false, + "is_media": false, + "is_source": true, + "is_script": false, + "licenses": [], + "license_expressions": [], + "holders": [], + "copyrights": [], + "authors": [], + "packages": [], + "emails": [], + "urls": [], + "is_legal": false, + "is_manifest": false, + "is_readme": false, + "is_top_level": false, + "is_key_file": false, + "is_generated": false, + "is_license_text": false, + "files_count": 0, + "dirs_count": 0, + "size_count": 0, + "scan_errors": [] + }, + { + "path": "package/src/type_checker_worker.d.ts", + "type": "file", + "name": "type_checker_worker.d.ts", + "base_name": "type_checker_worker.d", + "extension": ".ts", + "size": 11, + "date": "1985-10-26", + "sha1": "b878c11a77128e74c3cf15c93ef2ceddf2aa0b38", + "md5": "e2ebd7ddedcadeeadbf819c35985c768", + "mime_type": "text/plain", + "file_type": "ASCII text", + "programming_language": "TypeScript", + "is_binary": false, + "is_text": true, + "is_archive": false, + "is_media": false, + "is_source": true, + "is_script": false, + "licenses": [], + "license_expressions": [], + "holders": [], + "copyrights": [], + "authors": [], + "packages": [], + "emails": [], + "urls": [], + "is_legal": false, + "is_manifest": false, + "is_readme": false, + "is_top_level": false, + "is_key_file": false, + "is_generated": false, + "is_license_text": false, + "files_count": 0, + "dirs_count": 0, + "size_count": 0, + "scan_errors": [] + }, + { + "path": "package/src/type_checker_worker.js", + "type": "file", + "name": "type_checker_worker.js", + "base_name": "type_checker_worker", + "extension": ".js", + "size": 2104, + "date": "1985-10-26", + "sha1": "3ab1aad4b2330ca0a4c46271ab24f9658ec2da81", + "md5": "de51293b6aaeb51279ff3d244f512bea", + "mime_type": "text/plain", + "file_type": "ASCII text", + "programming_language": "JavaScript", + "is_binary": false, + "is_text": true, + "is_archive": false, + "is_media": false, + "is_source": true, + "is_script": false, + "licenses": [ + { + "key": "mit", + "score": 100, + "name": "MIT License", + "short_name": "MIT License", + "category": "Permissive", + "is_exception": false, + "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": 8, + "matched_rule": { + "identifier": "mit_129.RULE", + "license_expression": "mit", + "licenses": [ + "mit" + ], + "is_license_text": false, + "is_license_notice": true, + "is_license_reference": false, + "is_license_tag": false, + "matcher": "2-aho", + "rule_length": 25, + "matched_length": 25, + "match_coverage": 100, + "rule_relevance": 100 + }, + "matched_text": "Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license" + } + ], + "license_expressions": [ + "mit" + ], + "holders": [ + { + "value": "Google Inc.", + "start_line": 5, + "end_line": 5 + } + ], + "copyrights": [ + { + "value": "Copyright Google Inc.", + "start_line": 5, + "end_line": 5 + } + ], + "authors": [], + "packages": [], + "emails": [], + "urls": [ + { + "url": "https://angular.io/license", + "start_line": 8, + "end_line": 8 + } + ], + "is_legal": false, + "is_manifest": false, + "is_readme": false, + "is_top_level": false, + "is_key_file": false, + "is_generated": false, + "is_license_text": false, + "files_count": 0, + "dirs_count": 0, + "size_count": 0, + "scan_errors": [] + }, + { + "path": "package/src/utils.d.ts", + "type": "file", + "name": "utils.d.ts", + "base_name": "utils.d", + "extension": ".ts", + "size": 453, + "date": "1985-10-26", + "sha1": "370fe676b43d13127830954d066d386165aa22a1", + "md5": "f967fe2dbc44bb8555baa6faa972ac76", + "mime_type": "text/plain", + "file_type": "ASCII text", + "programming_language": "TypeScript", + "is_binary": false, + "is_text": true, + "is_archive": false, + "is_media": false, + "is_source": true, + "is_script": false, + "licenses": [ + { + "key": "mit", + "score": 100, + "name": "MIT License", + "short_name": "MIT License", + "category": "Permissive", + "is_exception": false, + "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": 5, + "end_line": 6, + "matched_rule": { + "identifier": "mit_129.RULE", + "license_expression": "mit", + "licenses": [ + "mit" + ], + "is_license_text": false, + "is_license_notice": true, + "is_license_reference": false, + "is_license_tag": false, + "matcher": "2-aho", + "rule_length": 25, + "matched_length": 25, + "match_coverage": 100, + "rule_relevance": 100 + }, + "matched_text": "Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license" + } + ], + "license_expressions": [ + "mit" + ], + "holders": [ + { + "value": "Google Inc.", + "start_line": 3, + "end_line": 3 + } + ], + "copyrights": [ + { + "value": "Copyright Google Inc.", + "start_line": 3, + "end_line": 3 + } + ], + "authors": [], + "packages": [], + "emails": [], + "urls": [ + { + "url": "https://angular.io/license", + "start_line": 6, + "end_line": 6 + } + ], + "is_legal": false, + "is_manifest": false, + "is_readme": false, + "is_top_level": false, + "is_key_file": false, + "is_generated": false, + "is_license_text": false, + "files_count": 0, + "dirs_count": 0, + "size_count": 0, + "scan_errors": [] + }, + { + "path": "package/src/utils.js", + "type": "file", + "name": "utils.js", + "base_name": "utils", + "extension": ".js", + "size": 1315, + "date": "1985-10-26", + "sha1": "bc33a76262e26f2c9e78b442a0a53fbf29980ece", + "md5": "7f969e27f4d54bfc872d563942b5f4c9", + "mime_type": "text/plain", + "file_type": "ASCII text", + "programming_language": "JavaScript", + "is_binary": false, + "is_text": true, + "is_archive": false, + "is_media": false, + "is_source": true, + "is_script": false, + "licenses": [ + { + "key": "mit", + "score": 100, + "name": "MIT License", + "short_name": "MIT License", + "category": "Permissive", + "is_exception": false, + "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": 8, + "end_line": 9, + "matched_rule": { + "identifier": "mit_129.RULE", + "license_expression": "mit", + "licenses": [ + "mit" + ], + "is_license_text": false, + "is_license_notice": true, + "is_license_reference": false, + "is_license_tag": false, + "matcher": "2-aho", + "rule_length": 25, + "matched_length": 25, + "match_coverage": 100, + "rule_relevance": 100 + }, + "matched_text": "Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license" + } + ], + "license_expressions": [ + "mit" + ], + "holders": [ + { + "value": "Google Inc.", + "start_line": 6, + "end_line": 6 + } + ], + "copyrights": [ + { + "value": "Copyright Google Inc.", + "start_line": 6, + "end_line": 6 + } + ], + "authors": [], + "packages": [], + "emails": [], + "urls": [ + { + "url": "https://angular.io/license", + "start_line": 9, + "end_line": 9 + } + ], + "is_legal": false, + "is_manifest": false, + "is_readme": false, + "is_top_level": false, + "is_key_file": false, + "is_generated": false, + "is_license_text": false, + "files_count": 0, + "dirs_count": 0, + "size_count": 0, + "scan_errors": [] + }, + { + "path": "package/src/virtual_file_system_decorator.d.ts", + "type": "file", + "name": "virtual_file_system_decorator.d.ts", + "base_name": "virtual_file_system_decorator.d", + "extension": ".ts", + "size": 2184, + "date": "1985-10-26", + "sha1": "19571f8d6b144db5a5ed781c8772c4483c626b63", + "md5": "23de75f0098e2abb48927b40449bc981", + "mime_type": "text/plain", + "file_type": "ASCII text", + "programming_language": "TypeScript", + "is_binary": false, + "is_text": true, + "is_archive": false, + "is_media": false, + "is_source": true, + "is_script": false, + "licenses": [ + { + "key": "mit", + "score": 100, + "name": "MIT License", + "short_name": "MIT License", + "category": "Permissive", + "is_exception": false, + "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": 6, + "end_line": 7, + "matched_rule": { + "identifier": "mit_129.RULE", + "license_expression": "mit", + "licenses": [ + "mit" + ], + "is_license_text": false, + "is_license_notice": true, + "is_license_reference": false, + "is_license_tag": false, + "matcher": "2-aho", + "rule_length": 25, + "matched_length": 25, + "match_coverage": 100, + "rule_relevance": 100 + }, + "matched_text": "Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license" + } + ], + "license_expressions": [ + "mit" + ], + "holders": [ + { + "value": "Google Inc.", + "start_line": 4, + "end_line": 4 + } + ], + "copyrights": [ + { + "value": "Copyright Google Inc.", + "start_line": 4, + "end_line": 4 + } + ], + "authors": [], + "packages": [], + "emails": [], + "urls": [ + { + "url": "https://angular.io/license", + "start_line": 7, + "end_line": 7 + } + ], + "is_legal": false, + "is_manifest": false, + "is_readme": false, + "is_top_level": false, + "is_key_file": false, + "is_generated": false, + "is_license_text": false, + "files_count": 0, + "dirs_count": 0, + "size_count": 0, + "scan_errors": [] + }, + { + "path": "package/src/virtual_file_system_decorator.js", + "type": "file", + "name": "virtual_file_system_decorator.js", + "base_name": "virtual_file_system_decorator", + "extension": ".js", + "size": 6833, + "date": "1985-10-26", + "sha1": "e2a6e3579a7c5ecc821d92849e1630a2dc33481d", + "md5": "81be700b7b28462c9332de725e4801c9", + "mime_type": "text/x-c++", + "file_type": "C++ source, ASCII text, with very long lines", + "programming_language": "JavaScript", + "is_binary": false, + "is_text": true, + "is_archive": false, + "is_media": false, + "is_source": true, + "is_script": false, + "licenses": [ + { + "key": "mit", + "score": 100, + "name": "MIT License", + "short_name": "MIT License", + "category": "Permissive", + "is_exception": false, + "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": 8, + "end_line": 9, + "matched_rule": { + "identifier": "mit_129.RULE", + "license_expression": "mit", + "licenses": [ + "mit" + ], + "is_license_text": false, + "is_license_notice": true, + "is_license_reference": false, + "is_license_tag": false, + "matcher": "2-aho", + "rule_length": 25, + "matched_length": 25, + "match_coverage": 100, + "rule_relevance": 100 + }, + "matched_text": "Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license" + } + ], + "license_expressions": [ + "mit" + ], + "holders": [ + { + "value": "Google Inc.", + "start_line": 6, + "end_line": 6 + } + ], + "copyrights": [ + { + "value": "Copyright Google Inc.", + "start_line": 6, + "end_line": 6 + } + ], + "authors": [], + "packages": [], + "emails": [], + "urls": [ + { + "url": "https://angular.io/license", + "start_line": 9, + "end_line": 9 + } + ], + "is_legal": false, + "is_manifest": false, + "is_readme": false, + "is_top_level": false, + "is_key_file": false, + "is_generated": false, + "is_license_text": false, + "files_count": 0, + "dirs_count": 0, + "size_count": 0, + "scan_errors": [] + }, + { + "path": "package/src/webpack-input-host.d.ts", + "type": "file", + "name": "webpack-input-host.d.ts", + "base_name": "webpack-input-host.d", + "extension": ".ts", + "size": 460, + "date": "1985-10-26", + "sha1": "4dcf990c786d05afa02162cbaf5a077f28f535ac", + "md5": "e6dbad0b1157cf6eabd50f17c69b5c15", + "mime_type": "text/plain", + "file_type": "ASCII text", + "programming_language": "TypeScript", + "is_binary": false, + "is_text": true, + "is_archive": false, + "is_media": false, + "is_source": true, + "is_script": false, + "licenses": [ + { + "key": "mit", + "score": 100, + "name": "MIT License", + "short_name": "MIT License", + "category": "Permissive", + "is_exception": false, + "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": 6, + "end_line": 7, + "matched_rule": { + "identifier": "mit_129.RULE", + "license_expression": "mit", + "licenses": [ + "mit" + ], + "is_license_text": false, + "is_license_notice": true, + "is_license_reference": false, + "is_license_tag": false, + "matcher": "2-aho", + "rule_length": 25, + "matched_length": 25, + "match_coverage": 100, + "rule_relevance": 100 + }, + "matched_text": "Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license" + } + ], + "license_expressions": [ + "mit" + ], + "holders": [ + { + "value": "Google Inc.", + "start_line": 4, + "end_line": 4 + } + ], + "copyrights": [ + { + "value": "Copyright Google Inc.", + "start_line": 4, + "end_line": 4 + } + ], + "authors": [], + "packages": [], + "emails": [], + "urls": [ + { + "url": "https://angular.io/license", + "start_line": 7, + "end_line": 7 + } + ], + "is_legal": false, + "is_manifest": false, + "is_readme": false, + "is_top_level": false, + "is_key_file": false, + "is_generated": false, + "is_license_text": false, + "files_count": 0, + "dirs_count": 0, + "size_count": 0, + "scan_errors": [] + }, + { + "path": "package/src/webpack-input-host.js", + "type": "file", + "name": "webpack-input-host.js", + "base_name": "webpack-input-host", + "extension": ".js", + "size": 2028, + "date": "1985-10-26", + "sha1": "343e18a574eebaf89fb6473534ca5d3247bb1c1a", + "md5": "cdd94d1e5e16d210161fe4347cfcd5be", + "mime_type": "text/plain", + "file_type": "ASCII text", + "programming_language": "JavaScript", + "is_binary": false, + "is_text": true, + "is_archive": false, + "is_media": false, + "is_source": true, + "is_script": false, + "licenses": [ + { + "key": "mit", + "score": 100, + "name": "MIT License", + "short_name": "MIT License", + "category": "Permissive", + "is_exception": false, + "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": 8, + "end_line": 9, + "matched_rule": { + "identifier": "mit_129.RULE", + "license_expression": "mit", + "licenses": [ + "mit" + ], + "is_license_text": false, + "is_license_notice": true, + "is_license_reference": false, + "is_license_tag": false, + "matcher": "2-aho", + "rule_length": 25, + "matched_length": 25, + "match_coverage": 100, + "rule_relevance": 100 + }, + "matched_text": "Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license" + } + ], + "license_expressions": [ + "mit" + ], + "holders": [ + { + "value": "Google Inc.", + "start_line": 6, + "end_line": 6 + } + ], + "copyrights": [ + { + "value": "Copyright Google Inc.", + "start_line": 6, + "end_line": 6 + } + ], + "authors": [], + "packages": [], + "emails": [], + "urls": [ + { + "url": "https://angular.io/license", + "start_line": 9, + "end_line": 9 + } + ], + "is_legal": false, + "is_manifest": false, + "is_readme": false, + "is_top_level": false, + "is_key_file": false, + "is_generated": false, + "is_license_text": false, + "files_count": 0, + "dirs_count": 0, + "size_count": 0, + "scan_errors": [] + }, + { + "path": "package/src/webpack.d.ts", + "type": "file", + "name": "webpack.d.ts", + "base_name": "webpack.d", + "extension": ".ts", + "size": 814, + "date": "1985-10-26", + "sha1": "a62871940c27d2130e5de522d4d697b5e4efc01c", + "md5": "3dce3eded47f6eb9235e70e88fe2a15c", + "mime_type": "text/plain", + "file_type": "ASCII text", + "programming_language": "TypeScript", + "is_binary": false, + "is_text": true, + "is_archive": false, + "is_media": false, + "is_source": true, + "is_script": false, + "licenses": [ + { + "key": "mit", + "score": 100, + "name": "MIT License", + "short_name": "MIT License", + "category": "Permissive", + "is_exception": false, + "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": 5, + "end_line": 6, + "matched_rule": { + "identifier": "mit_129.RULE", + "license_expression": "mit", + "licenses": [ + "mit" + ], + "is_license_text": false, + "is_license_notice": true, + "is_license_reference": false, + "is_license_tag": false, + "matcher": "2-aho", + "rule_length": 25, + "matched_length": 25, + "match_coverage": 100, + "rule_relevance": 100 + }, + "matched_text": "Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license" + } + ], + "license_expressions": [ + "mit" + ], + "holders": [ + { + "value": "Google Inc.", + "start_line": 3, + "end_line": 3 + } + ], + "copyrights": [ + { + "value": "Copyright Google Inc.", + "start_line": 3, + "end_line": 3 + } + ], + "authors": [], + "packages": [], + "emails": [], + "urls": [ + { + "url": "https://angular.io/license", + "start_line": 6, + "end_line": 6 + } + ], + "is_legal": false, + "is_manifest": false, + "is_readme": false, + "is_top_level": false, + "is_key_file": false, + "is_generated": false, + "is_license_text": false, + "files_count": 0, + "dirs_count": 0, + "size_count": 0, + "scan_errors": [] + }, + { + "path": "package/src/webpack.js", + "type": "file", + "name": "webpack.js", + "base_name": "webpack", + "extension": ".js", + "size": 77, + "date": "1985-10-26", + "sha1": "b66edae489b6e4147ce7e1ec65a107e297219771", + "md5": "8963201168a2449f79025884824955f2", + "mime_type": "text/plain", + "file_type": "ASCII text", + "programming_language": "JavaScript", + "is_binary": false, + "is_text": true, + "is_archive": false, + "is_media": false, + "is_source": true, + "is_script": false, + "licenses": [], + "license_expressions": [], + "holders": [], + "copyrights": [], + "authors": [], + "packages": [], + "emails": [], + "urls": [], + "is_legal": false, + "is_manifest": false, + "is_readme": false, + "is_top_level": false, + "is_key_file": false, + "is_generated": false, + "is_license_text": false, + "files_count": 0, + "dirs_count": 0, + "size_count": 0, + "scan_errors": [] + }, + { + "path": "package/src/transformers", + "type": "directory", + "name": "transformers", + "base_name": "transformers", + "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": [], + "license_expressions": [], + "holders": [], + "copyrights": [], + "authors": [], + "packages": [], + "emails": [], + "urls": [], + "is_legal": false, + "is_manifest": false, + "is_readme": false, + "is_top_level": false, + "is_key_file": false, + "is_generated": false, + "is_license_text": false, + "files_count": 34, + "dirs_count": 0, + "size_count": 77178, + "scan_errors": [] + }, + { + "path": "package/src/transformers/ast_helpers.d.ts", + "type": "file", + "name": "ast_helpers.d.ts", + "base_name": "ast_helpers.d", + "extension": ".ts", + "size": 511, + "date": "1985-10-26", + "sha1": "abcbd7ff67f46d75118457501c63c86d657b039d", + "md5": "0b34b9f27cfe9adc94177653dc4459f9", + "mime_type": "text/plain", + "file_type": "ASCII text", + "programming_language": "TypeScript", + "is_binary": false, + "is_text": true, + "is_archive": false, + "is_media": false, + "is_source": true, + "is_script": false, + "licenses": [ + { + "key": "mit", + "score": 100, + "name": "MIT License", + "short_name": "MIT License", + "category": "Permissive", + "is_exception": false, + "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": 5, + "end_line": 6, + "matched_rule": { + "identifier": "mit_129.RULE", + "license_expression": "mit", + "licenses": [ + "mit" + ], + "is_license_text": false, + "is_license_notice": true, + "is_license_reference": false, + "is_license_tag": false, + "matcher": "2-aho", + "rule_length": 25, + "matched_length": 25, + "match_coverage": 100, + "rule_relevance": 100 + }, + "matched_text": "Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license" + } + ], + "license_expressions": [ + "mit" + ], + "holders": [ + { + "value": "Google Inc.", + "start_line": 3, + "end_line": 3 + } + ], + "copyrights": [ + { + "value": "Copyright Google Inc.", + "start_line": 3, + "end_line": 3 + } + ], + "authors": [], + "packages": [], + "emails": [], + "urls": [ + { + "url": "https://angular.io/license", + "start_line": 6, + "end_line": 6 + } + ], + "is_legal": false, + "is_manifest": false, + "is_readme": false, + "is_top_level": false, + "is_key_file": false, + "is_generated": false, + "is_license_text": false, + "files_count": 0, + "dirs_count": 0, + "size_count": 0, + "scan_errors": [] + }, + { + "path": "package/src/transformers/ast_helpers.js", + "type": "file", + "name": "ast_helpers.js", + "base_name": "ast_helpers", + "extension": ".js", + "size": 1269, + "date": "1985-10-26", + "sha1": "f9ad61a4a7ae8aea08c6754420275f8b12e476f1", + "md5": "1ecb6265f550cc98ecd05d0d43226ede", + "mime_type": "text/plain", + "file_type": "ASCII text", + "programming_language": "JavaScript", + "is_binary": false, + "is_text": true, + "is_archive": false, + "is_media": false, + "is_source": true, + "is_script": false, + "licenses": [ + { + "key": "mit", + "score": 100, + "name": "MIT License", + "short_name": "MIT License", + "category": "Permissive", + "is_exception": false, + "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": 8, + "end_line": 9, + "matched_rule": { + "identifier": "mit_129.RULE", + "license_expression": "mit", + "licenses": [ + "mit" + ], + "is_license_text": false, + "is_license_notice": true, + "is_license_reference": false, + "is_license_tag": false, + "matcher": "2-aho", + "rule_length": 25, + "matched_length": 25, + "match_coverage": 100, + "rule_relevance": 100 + }, + "matched_text": "Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license" + } + ], + "license_expressions": [ + "mit" + ], + "holders": [ + { + "value": "Google Inc.", + "start_line": 6, + "end_line": 6 + } + ], + "copyrights": [ + { + "value": "Copyright Google Inc.", + "start_line": 6, + "end_line": 6 + } + ], + "authors": [], + "packages": [], + "emails": [], + "urls": [ + { + "url": "https://angular.io/license", + "start_line": 9, + "end_line": 9 + } + ], + "is_legal": false, + "is_manifest": false, + "is_readme": false, + "is_top_level": false, + "is_key_file": false, + "is_generated": false, + "is_license_text": false, + "files_count": 0, + "dirs_count": 0, + "size_count": 0, + "scan_errors": [] + }, + { + "path": "package/src/transformers/elide_imports.d.ts", + "type": "file", + "name": "elide_imports.d.ts", + "base_name": "elide_imports.d", + "extension": ".ts", + "size": 475, + "date": "1985-10-26", + "sha1": "b9d23c6231a1bfea29e9fb260313c257b64f8c7f", + "md5": "55def3cfef9009b14372de9ee7772245", + "mime_type": "text/plain", + "file_type": "ASCII text", + "programming_language": "TypeScript", + "is_binary": false, + "is_text": true, + "is_archive": false, + "is_media": false, + "is_source": true, + "is_script": false, + "licenses": [ + { + "key": "mit", + "score": 100, + "name": "MIT License", + "short_name": "MIT License", + "category": "Permissive", + "is_exception": false, + "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": 5, + "end_line": 6, + "matched_rule": { + "identifier": "mit_129.RULE", + "license_expression": "mit", + "licenses": [ + "mit" + ], + "is_license_text": false, + "is_license_notice": true, + "is_license_reference": false, + "is_license_tag": false, + "matcher": "2-aho", + "rule_length": 25, + "matched_length": 25, + "match_coverage": 100, + "rule_relevance": 100 + }, + "matched_text": "Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license" + } + ], + "license_expressions": [ + "mit" + ], + "holders": [ + { + "value": "Google Inc.", + "start_line": 3, + "end_line": 3 + } + ], + "copyrights": [ + { + "value": "Copyright Google Inc.", + "start_line": 3, + "end_line": 3 + } + ], + "authors": [], + "packages": [], + "emails": [], + "urls": [ + { + "url": "https://angular.io/license", + "start_line": 6, + "end_line": 6 + } + ], + "is_legal": false, + "is_manifest": false, + "is_readme": false, + "is_top_level": false, + "is_key_file": false, + "is_generated": false, + "is_license_text": false, + "files_count": 0, + "dirs_count": 0, + "size_count": 0, + "scan_errors": [] + }, + { + "path": "package/src/transformers/elide_imports.js", + "type": "file", + "name": "elide_imports.js", + "base_name": "elide_imports", + "extension": ".js", + "size": 6743, + "date": "1985-10-26", + "sha1": "d8add6d82484d497824e4c554d33ca218167fe87", + "md5": "97a86876fe1fc263dd5bacee826149cd", + "mime_type": "text/plain", + "file_type": "ASCII text", + "programming_language": "JavaScript", + "is_binary": false, + "is_text": true, + "is_archive": false, + "is_media": false, + "is_source": true, + "is_script": false, + "licenses": [ + { + "key": "mit", + "score": 100, + "name": "MIT License", + "short_name": "MIT License", + "category": "Permissive", + "is_exception": false, + "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": 8, + "end_line": 9, + "matched_rule": { + "identifier": "mit_129.RULE", + "license_expression": "mit", + "licenses": [ + "mit" + ], + "is_license_text": false, + "is_license_notice": true, + "is_license_reference": false, + "is_license_tag": false, + "matcher": "2-aho", + "rule_length": 25, + "matched_length": 25, + "match_coverage": 100, + "rule_relevance": 100 + }, + "matched_text": "Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license" + } + ], + "license_expressions": [ + "mit" + ], + "holders": [ + { + "value": "Google Inc.", + "start_line": 6, + "end_line": 6 + } + ], + "copyrights": [ + { + "value": "Copyright Google Inc.", + "start_line": 6, + "end_line": 6 + } + ], + "authors": [], + "packages": [], + "emails": [], + "urls": [ + { + "url": "https://angular.io/license", + "start_line": 9, + "end_line": 9 + }, + { + "url": "https://github.com/Microsoft/TypeScript/issues/17552", + "start_line": 18, + "end_line": 18 + } + ], + "is_legal": false, + "is_manifest": false, + "is_readme": false, + "is_top_level": false, + "is_key_file": false, + "is_generated": false, + "is_license_text": false, + "files_count": 0, + "dirs_count": 0, + "size_count": 0, + "scan_errors": [] + }, + { + "path": "package/src/transformers/export_lazy_module_map.d.ts", + "type": "file", + "name": "export_lazy_module_map.d.ts", + "base_name": "export_lazy_module_map.d", + "extension": ".ts", + "size": 246, + "date": "1985-10-26", + "sha1": "b9634b92b6dcee476b35e5fbf5ed416afef50637", + "md5": "a5014fd69ad0520be4cc652ed3a3a20e", + "mime_type": "text/plain", + "file_type": "ASCII text", + "programming_language": "TypeScript", + "is_binary": false, + "is_text": true, + "is_archive": false, + "is_media": false, + "is_source": true, + "is_script": false, + "licenses": [], + "license_expressions": [], + "holders": [], + "copyrights": [], + "authors": [], + "packages": [], + "emails": [], + "urls": [], + "is_legal": false, + "is_manifest": false, + "is_readme": false, + "is_top_level": false, + "is_key_file": false, + "is_generated": false, + "is_license_text": false, + "files_count": 0, + "dirs_count": 0, + "size_count": 0, + "scan_errors": [] + }, + { + "path": "package/src/transformers/export_lazy_module_map.js", + "type": "file", + "name": "export_lazy_module_map.js", + "base_name": "export_lazy_module_map", + "extension": ".js", + "size": 3488, + "date": "1985-10-26", + "sha1": "8b3c93bcd33efd5d8b1de87a062bb5f3eb6bb806", + "md5": "649d9efd9d8c708c29e1f5ccbed7ac62", + "mime_type": "text/plain", + "file_type": "ASCII text", + "programming_language": "JavaScript", + "is_binary": false, + "is_text": true, + "is_archive": false, + "is_media": false, + "is_source": true, + "is_script": false, + "licenses": [ + { + "key": "mit", + "score": 100, + "name": "MIT License", + "short_name": "MIT License", + "category": "Permissive", + "is_exception": false, + "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": 8, + "end_line": 9, + "matched_rule": { + "identifier": "mit_129.RULE", + "license_expression": "mit", + "licenses": [ + "mit" + ], + "is_license_text": false, + "is_license_notice": true, + "is_license_reference": false, + "is_license_tag": false, + "matcher": "2-aho", + "rule_length": 25, + "matched_length": 25, + "match_coverage": 100, + "rule_relevance": 100 + }, + "matched_text": "Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license" + } + ], + "license_expressions": [ + "mit" + ], + "holders": [ + { + "value": "Google Inc.", + "start_line": 6, + "end_line": 6 + } + ], + "copyrights": [ + { + "value": "Copyright Google Inc.", + "start_line": 6, + "end_line": 6 + } + ], + "authors": [], + "packages": [], + "emails": [], + "urls": [ + { + "url": "https://angular.io/license", + "start_line": 9, + "end_line": 9 + } + ], + "is_legal": false, + "is_manifest": false, + "is_readme": false, + "is_top_level": false, + "is_key_file": false, + "is_generated": false, + "is_license_text": false, + "files_count": 0, + "dirs_count": 0, + "size_count": 0, + "scan_errors": [] + }, + { + "path": "package/src/transformers/export_ngfactory.d.ts", + "type": "file", + "name": "export_ngfactory.d.ts", + "base_name": "export_ngfactory.d", + "extension": ".ts", + "size": 236, + "date": "1985-10-26", + "sha1": "e1cfeb2fb2a09effbd270bb44b7ee98cbed0f43f", + "md5": "7434cbbafdee2a8bc5b8339d200db207", + "mime_type": "text/plain", + "file_type": "ASCII text", + "programming_language": "TypeScript", + "is_binary": false, + "is_text": true, + "is_archive": false, + "is_media": false, + "is_source": true, + "is_script": false, + "licenses": [], + "license_expressions": [], + "holders": [], + "copyrights": [], + "authors": [], + "packages": [], + "emails": [], + "urls": [], + "is_legal": false, + "is_manifest": false, + "is_readme": false, + "is_top_level": false, + "is_key_file": false, + "is_generated": false, + "is_license_text": false, + "files_count": 0, + "dirs_count": 0, + "size_count": 0, + "scan_errors": [] + }, + { + "path": "package/src/transformers/export_ngfactory.js", + "type": "file", + "name": "export_ngfactory.js", + "base_name": "export_ngfactory", + "extension": ".js", + "size": 2859, + "date": "1985-10-26", + "sha1": "1a34cd3d667568c31dd5b26f54d92be80802ee11", + "md5": "147583d0c4994c12e874eb47cca0ce23", + "mime_type": "text/plain", + "file_type": "ASCII text", + "programming_language": "JavaScript", + "is_binary": false, + "is_text": true, + "is_archive": false, + "is_media": false, + "is_source": true, + "is_script": false, + "licenses": [ + { + "key": "mit", + "score": 100, + "name": "MIT License", + "short_name": "MIT License", + "category": "Permissive", + "is_exception": false, + "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": 8, + "end_line": 9, + "matched_rule": { + "identifier": "mit_129.RULE", + "license_expression": "mit", + "licenses": [ + "mit" + ], + "is_license_text": false, + "is_license_notice": true, + "is_license_reference": false, + "is_license_tag": false, + "matcher": "2-aho", + "rule_length": 25, + "matched_length": 25, + "match_coverage": 100, + "rule_relevance": 100 + }, + "matched_text": "Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license" + } + ], + "license_expressions": [ + "mit" + ], + "holders": [ + { + "value": "Google Inc.", + "start_line": 6, + "end_line": 6 + } + ], + "copyrights": [ + { + "value": "Copyright Google Inc.", + "start_line": 6, + "end_line": 6 + } + ], + "authors": [], + "packages": [], + "emails": [], + "urls": [ + { + "url": "https://angular.io/license", + "start_line": 9, + "end_line": 9 + } + ], + "is_legal": false, + "is_manifest": false, + "is_readme": false, + "is_top_level": false, + "is_key_file": false, + "is_generated": false, + "is_license_text": false, + "files_count": 0, + "dirs_count": 0, + "size_count": 0, + "scan_errors": [] + }, + { + "path": "package/src/transformers/find_resources.d.ts", + "type": "file", + "name": "find_resources.d.ts", + "base_name": "find_resources.d", + "extension": ".ts", + "size": 313, + "date": "1985-10-26", + "sha1": "8ea136aca7bb6ad2aec1c85b7997fd8a0f15ad05", + "md5": "bfcd854e2e323917c05c47cd9015991f", + "mime_type": "text/plain", + "file_type": "ASCII text", + "programming_language": "TypeScript", + "is_binary": false, + "is_text": true, + "is_archive": false, + "is_media": false, + "is_source": true, + "is_script": false, + "licenses": [ + { + "key": "mit", + "score": 100, + "name": "MIT License", + "short_name": "MIT License", + "category": "Permissive", + "is_exception": false, + "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": 5, + "end_line": 6, + "matched_rule": { + "identifier": "mit_129.RULE", + "license_expression": "mit", + "licenses": [ + "mit" + ], + "is_license_text": false, + "is_license_notice": true, + "is_license_reference": false, + "is_license_tag": false, + "matcher": "2-aho", + "rule_length": 25, + "matched_length": 25, + "match_coverage": 100, + "rule_relevance": 100 + }, + "matched_text": "Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license" + } + ], + "license_expressions": [ + "mit" + ], + "holders": [ + { + "value": "Google Inc.", + "start_line": 3, + "end_line": 3 + } + ], + "copyrights": [ + { + "value": "Copyright Google Inc.", + "start_line": 3, + "end_line": 3 + } + ], + "authors": [], + "packages": [], + "emails": [], + "urls": [ + { + "url": "https://angular.io/license", + "start_line": 6, + "end_line": 6 + } + ], + "is_legal": false, + "is_manifest": false, + "is_readme": false, + "is_top_level": false, + "is_key_file": false, + "is_generated": false, + "is_license_text": false, + "files_count": 0, + "dirs_count": 0, + "size_count": 0, + "scan_errors": [] + }, + { + "path": "package/src/transformers/find_resources.js", + "type": "file", + "name": "find_resources.js", + "base_name": "find_resources", + "extension": ".js", + "size": 2122, + "date": "1985-10-26", + "sha1": "481499f33a70acf4276735637d3b2efc96622212", + "md5": "3f16bbd5a72c39cda40b79afca1dec6f", + "mime_type": "text/plain", + "file_type": "ASCII text", + "programming_language": "JavaScript", + "is_binary": false, + "is_text": true, + "is_archive": false, + "is_media": false, + "is_source": true, + "is_script": false, + "licenses": [ + { + "key": "mit", + "score": 100, + "name": "MIT License", + "short_name": "MIT License", + "category": "Permissive", + "is_exception": false, + "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": 8, + "end_line": 9, + "matched_rule": { + "identifier": "mit_129.RULE", + "license_expression": "mit", + "licenses": [ + "mit" + ], + "is_license_text": false, + "is_license_notice": true, + "is_license_reference": false, + "is_license_tag": false, + "matcher": "2-aho", + "rule_length": 25, + "matched_length": 25, + "match_coverage": 100, + "rule_relevance": 100 + }, + "matched_text": "Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license" + } + ], + "license_expressions": [ + "mit" + ], + "holders": [ + { + "value": "Google Inc.", + "start_line": 6, + "end_line": 6 + } + ], + "copyrights": [ + { + "value": "Copyright Google Inc.", + "start_line": 6, + "end_line": 6 + } + ], + "authors": [], + "packages": [], + "emails": [], + "urls": [ + { + "url": "https://angular.io/license", + "start_line": 9, + "end_line": 9 + } + ], + "is_legal": false, + "is_manifest": false, + "is_readme": false, + "is_top_level": false, + "is_key_file": false, + "is_generated": false, + "is_license_text": false, + "files_count": 0, + "dirs_count": 0, + "size_count": 0, + "scan_errors": [] + }, + { + "path": "package/src/transformers/import_factory.d.ts", + "type": "file", + "name": "import_factory.d.ts", + "base_name": "import_factory.d", + "extension": ".ts", + "size": 1452, + "date": "1985-10-26", + "sha1": "339b274ab95c5097152a6eff8254b853cae6f041", + "md5": "a368d8c44cfdcd103654c13c03058786", + "mime_type": "text/plain", + "file_type": "UTF-8 Unicode text", + "programming_language": "TypeScript", + "is_binary": false, + "is_text": true, + "is_archive": false, + "is_media": false, + "is_source": true, + "is_script": false, + "licenses": [], + "license_expressions": [], + "holders": [], + "copyrights": [], + "authors": [], + "packages": [], + "emails": [], + "urls": [], + "is_legal": false, + "is_manifest": false, + "is_readme": false, + "is_top_level": false, + "is_key_file": false, + "is_generated": false, + "is_license_text": false, + "files_count": 0, + "dirs_count": 0, + "size_count": 0, + "scan_errors": [] + }, + { + "path": "package/src/transformers/import_factory.js", + "type": "file", + "name": "import_factory.js", + "base_name": "import_factory", + "extension": ".js", + "size": 8225, + "date": "1985-10-26", + "sha1": "f952e1b2743d05cc0423646bebfdb6e5c88eaff0", + "md5": "829749208a7a763c9eb66d0fac4a572c", + "mime_type": "text/plain", + "file_type": "UTF-8 Unicode text", + "programming_language": "JavaScript", + "is_binary": false, + "is_text": true, + "is_archive": false, + "is_media": false, + "is_source": true, + "is_script": false, + "licenses": [ + { + "key": "mit", + "score": 100, + "name": "MIT License", + "short_name": "MIT License", + "category": "Permissive", + "is_exception": false, + "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": 8, + "end_line": 9, + "matched_rule": { + "identifier": "mit_129.RULE", + "license_expression": "mit", + "licenses": [ + "mit" + ], + "is_license_text": false, + "is_license_notice": true, + "is_license_reference": false, + "is_license_tag": false, + "matcher": "2-aho", + "rule_length": 25, + "matched_length": 25, + "match_coverage": 100, + "rule_relevance": 100 + }, + "matched_text": "Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license" + } + ], + "license_expressions": [ + "mit" + ], + "holders": [ + { + "value": "Google Inc.", + "start_line": 6, + "end_line": 6 + } + ], + "copyrights": [ + { + "value": "Copyright Google Inc.", + "start_line": 6, + "end_line": 6 + } + ], + "authors": [], + "packages": [], + "emails": [], + "urls": [ + { + "url": "https://angular.io/license", + "start_line": 9, + "end_line": 9 + }, + { + "url": "https://angular.io/guide/ivy", + "start_line": 58, + "end_line": 58 + }, + { + "url": "https://v8.angular.io/guide/ivy", + "start_line": 68, + "end_line": 68 + }, + { + "url": "https://github.com/angular/angular/issues/11402", + "start_line": 98, + "end_line": 98 + } + ], + "is_legal": false, + "is_manifest": false, + "is_readme": false, + "is_top_level": false, + "is_key_file": false, + "is_generated": true, + "is_license_text": false, + "files_count": 0, + "dirs_count": 0, + "size_count": 0, + "scan_errors": [] + }, + { + "path": "package/src/transformers/index.d.ts", + "type": "file", + "name": "index.d.ts", + "base_name": "index.d", + "extension": ".ts", + "size": 705, + "date": "1985-10-26", + "sha1": "37fdfd7041a0883d1ab149f253f35a577c981ed0", + "md5": "b06cc51e0ac6ab1b05f8edce18cca337", + "mime_type": "text/plain", + "file_type": "ASCII text", + "programming_language": "TypeScript", + "is_binary": false, + "is_text": true, + "is_archive": false, + "is_media": false, + "is_source": true, + "is_script": false, + "licenses": [ + { + "key": "mit", + "score": 100, + "name": "MIT License", + "short_name": "MIT License", + "category": "Permissive", + "is_exception": false, + "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": 5, + "end_line": 6, + "matched_rule": { + "identifier": "mit_129.RULE", + "license_expression": "mit", + "licenses": [ + "mit" + ], + "is_license_text": false, + "is_license_notice": true, + "is_license_reference": false, + "is_license_tag": false, + "matcher": "2-aho", + "rule_length": 25, + "matched_length": 25, + "match_coverage": 100, + "rule_relevance": 100 + }, + "matched_text": "Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license" + } + ], + "license_expressions": [ + "mit" + ], + "holders": [ + { + "value": "Google Inc.", + "start_line": 3, + "end_line": 3 + } + ], + "copyrights": [ + { + "value": "Copyright Google Inc.", + "start_line": 3, + "end_line": 3 + } + ], + "authors": [], + "packages": [], + "emails": [], + "urls": [ + { + "url": "https://angular.io/license", + "start_line": 6, + "end_line": 6 + } + ], + "is_legal": false, + "is_manifest": false, + "is_readme": false, + "is_top_level": false, + "is_key_file": false, + "is_generated": false, + "is_license_text": false, + "files_count": 0, + "dirs_count": 0, + "size_count": 0, + "scan_errors": [] + }, + { + "path": "package/src/transformers/index.js", + "type": "file", + "name": "index.js", + "base_name": "index", + "extension": ".js", + "size": 1546, + "date": "1985-10-26", + "sha1": "78a30c470159608965afe07f811f7d8b1560dc1b", + "md5": "a66ba5cae4e1022a333b1b0229a0ba6f", + "mime_type": "text/plain", + "file_type": "ASCII text", + "programming_language": "JavaScript", + "is_binary": false, + "is_text": true, + "is_archive": false, + "is_media": false, + "is_source": true, + "is_script": false, + "licenses": [ + { + "key": "mit", + "score": 100, + "name": "MIT License", + "short_name": "MIT License", + "category": "Permissive", + "is_exception": false, + "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": 17, + "end_line": 18, + "matched_rule": { + "identifier": "mit_129.RULE", + "license_expression": "mit", + "licenses": [ + "mit" + ], + "is_license_text": false, + "is_license_notice": true, + "is_license_reference": false, + "is_license_tag": false, + "matcher": "2-aho", + "rule_length": 25, + "matched_length": 25, + "match_coverage": 100, + "rule_relevance": 100 + }, + "matched_text": "Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license" + } + ], + "license_expressions": [ + "mit" + ], + "holders": [ + { + "value": "Google Inc.", + "start_line": 15, + "end_line": 15 + } + ], + "copyrights": [ + { + "value": "Copyright Google Inc.", + "start_line": 15, + "end_line": 15 + } + ], + "authors": [], + "packages": [], + "emails": [], + "urls": [ + { + "url": "https://angular.io/license", + "start_line": 18, + "end_line": 18 + } + ], + "is_legal": false, + "is_manifest": false, + "is_readme": false, + "is_top_level": false, + "is_key_file": false, + "is_generated": false, + "is_license_text": false, + "files_count": 0, + "dirs_count": 0, + "size_count": 0, + "scan_errors": [] + }, + { + "path": "package/src/transformers/insert_import.d.ts", + "type": "file", + "name": "insert_import.d.ts", + "base_name": "insert_import.d", + "extension": ".ts", + "size": 589, + "date": "1985-10-26", + "sha1": "e4012bc124cd474d461a43c3cc85a10091c3e547", + "md5": "a5a5792f4a910e7f48f2652df099314b", + "mime_type": "text/plain", + "file_type": "ASCII text", + "programming_language": "TypeScript", + "is_binary": false, + "is_text": true, + "is_archive": false, + "is_media": false, + "is_source": true, + "is_script": false, + "licenses": [ + { + "key": "mit", + "score": 100, + "name": "MIT License", + "short_name": "MIT License", + "category": "Permissive", + "is_exception": false, + "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": 5, + "end_line": 6, + "matched_rule": { + "identifier": "mit_129.RULE", + "license_expression": "mit", + "licenses": [ + "mit" + ], + "is_license_text": false, + "is_license_notice": true, + "is_license_reference": false, + "is_license_tag": false, + "matcher": "2-aho", + "rule_length": 25, + "matched_length": 25, + "match_coverage": 100, + "rule_relevance": 100 + }, + "matched_text": "Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license" + } + ], + "license_expressions": [ + "mit" + ], + "holders": [ + { + "value": "Google Inc.", + "start_line": 3, + "end_line": 3 + } + ], + "copyrights": [ + { + "value": "Copyright Google Inc.", + "start_line": 3, + "end_line": 3 + } + ], + "authors": [], + "packages": [], + "emails": [], + "urls": [ + { + "url": "https://angular.io/license", + "start_line": 6, + "end_line": 6 + } + ], + "is_legal": false, + "is_manifest": false, + "is_readme": false, + "is_top_level": false, + "is_key_file": false, + "is_generated": false, + "is_license_text": false, + "files_count": 0, + "dirs_count": 0, + "size_count": 0, + "scan_errors": [] + }, + { + "path": "package/src/transformers/insert_import.js", + "type": "file", + "name": "insert_import.js", + "base_name": "insert_import", + "extension": ".js", + "size": 4427, + "date": "1985-10-26", + "sha1": "687db365d48fd3de28cffb2caac7ed14d5954864", + "md5": "aff8ff23db51b0185a4085d8510133b5", + "mime_type": "text/plain", + "file_type": "ASCII text", + "programming_language": "JavaScript", + "is_binary": false, + "is_text": true, + "is_archive": false, + "is_media": false, + "is_source": true, + "is_script": false, + "licenses": [ + { + "key": "mit", + "score": 100, + "name": "MIT License", + "short_name": "MIT License", + "category": "Permissive", + "is_exception": false, + "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": 8, + "end_line": 9, + "matched_rule": { + "identifier": "mit_129.RULE", + "license_expression": "mit", + "licenses": [ + "mit" + ], + "is_license_text": false, + "is_license_notice": true, + "is_license_reference": false, + "is_license_tag": false, + "matcher": "2-aho", + "rule_length": 25, + "matched_length": 25, + "match_coverage": 100, + "rule_relevance": 100 + }, + "matched_text": "Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license" + } + ], + "license_expressions": [ + "mit" + ], + "holders": [ + { + "value": "Google Inc.", + "start_line": 6, + "end_line": 6 + } + ], + "copyrights": [ + { + "value": "Copyright Google Inc.", + "start_line": 6, + "end_line": 6 + } + ], + "authors": [], + "packages": [], + "emails": [], + "urls": [ + { + "url": "https://angular.io/license", + "start_line": 9, + "end_line": 9 + } + ], + "is_legal": false, + "is_manifest": false, + "is_readme": false, + "is_top_level": false, + "is_key_file": false, + "is_generated": false, + "is_license_text": false, + "files_count": 0, + "dirs_count": 0, + "size_count": 0, + "scan_errors": [] + }, + { + "path": "package/src/transformers/interfaces.d.ts", + "type": "file", + "name": "interfaces.d.ts", + "base_name": "interfaces.d", + "extension": ".ts", + "size": 1200, + "date": "1985-10-26", + "sha1": "76e574bde9d23f9d569ed20aa1c79d951dfe66a2", + "md5": "4a9f1117cb29ecf4e03b2021f2bfb8ae", + "mime_type": "text/plain", + "file_type": "ASCII text", + "programming_language": "TypeScript", + "is_binary": false, + "is_text": true, + "is_archive": false, + "is_media": false, + "is_source": true, + "is_script": false, + "licenses": [ + { + "key": "mit", + "score": 100, + "name": "MIT License", + "short_name": "MIT License", + "category": "Permissive", + "is_exception": false, + "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": 5, + "end_line": 6, + "matched_rule": { + "identifier": "mit_129.RULE", + "license_expression": "mit", + "licenses": [ + "mit" + ], + "is_license_text": false, + "is_license_notice": true, + "is_license_reference": false, + "is_license_tag": false, + "matcher": "2-aho", + "rule_length": 25, + "matched_length": 25, + "match_coverage": 100, + "rule_relevance": 100 + }, + "matched_text": "Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license" + } + ], + "license_expressions": [ + "mit" + ], + "holders": [ + { + "value": "Google Inc.", + "start_line": 3, + "end_line": 3 + } + ], + "copyrights": [ + { + "value": "Copyright Google Inc.", + "start_line": 3, + "end_line": 3 + } + ], + "authors": [], + "packages": [], + "emails": [], + "urls": [ + { + "url": "https://angular.io/license", + "start_line": 6, + "end_line": 6 + } + ], + "is_legal": false, + "is_manifest": false, + "is_readme": false, + "is_top_level": false, + "is_key_file": false, + "is_generated": false, + "is_license_text": false, + "files_count": 0, + "dirs_count": 0, + "size_count": 0, + "scan_errors": [] + }, + { + "path": "package/src/transformers/interfaces.js", + "type": "file", + "name": "interfaces.js", + "base_name": "interfaces", + "extension": ".js", + "size": 1503, + "date": "1985-10-26", + "sha1": "acd638c3e381677b7407026a629069a88271ccf4", + "md5": "ef9a65bd7aaac7270b29209988d596bf", + "mime_type": "text/x-c++", + "file_type": "C++ source, ASCII text", + "programming_language": "JavaScript", + "is_binary": false, + "is_text": true, + "is_archive": false, + "is_media": false, + "is_source": true, + "is_script": false, + "licenses": [], + "license_expressions": [], + "holders": [], + "copyrights": [], + "authors": [], + "packages": [], + "emails": [], + "urls": [], + "is_legal": false, + "is_manifest": false, + "is_readme": false, + "is_top_level": false, + "is_key_file": false, + "is_generated": false, + "is_license_text": false, + "files_count": 0, + "dirs_count": 0, + "size_count": 0, + "scan_errors": [] + }, + { + "path": "package/src/transformers/make_transform.d.ts", + "type": "file", + "name": "make_transform.d.ts", + "base_name": "make_transform.d", + "extension": ".ts", + "size": 441, + "date": "1985-10-26", + "sha1": "7785b284f6b8dd15e0b09070800d7197b6958983", + "md5": "a4b05363c65234495b770727326ca6bb", + "mime_type": "text/plain", + "file_type": "ASCII text", + "programming_language": "TypeScript", + "is_binary": false, + "is_text": true, + "is_archive": false, + "is_media": false, + "is_source": true, + "is_script": false, + "licenses": [ + { + "key": "mit", + "score": 100, + "name": "MIT License", + "short_name": "MIT License", + "category": "Permissive", + "is_exception": false, + "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": 5, + "end_line": 6, + "matched_rule": { + "identifier": "mit_129.RULE", + "license_expression": "mit", + "licenses": [ + "mit" + ], + "is_license_text": false, + "is_license_notice": true, + "is_license_reference": false, + "is_license_tag": false, + "matcher": "2-aho", + "rule_length": 25, + "matched_length": 25, + "match_coverage": 100, + "rule_relevance": 100 + }, + "matched_text": "Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license" + } + ], + "license_expressions": [ + "mit" + ], + "holders": [ + { + "value": "Google Inc.", + "start_line": 3, + "end_line": 3 + } + ], + "copyrights": [ + { + "value": "Copyright Google Inc.", + "start_line": 3, + "end_line": 3 + } + ], + "authors": [], + "packages": [], + "emails": [], + "urls": [ + { + "url": "https://angular.io/license", + "start_line": 6, + "end_line": 6 + } + ], + "is_legal": false, + "is_manifest": false, + "is_readme": false, + "is_top_level": false, + "is_key_file": false, + "is_generated": false, + "is_license_text": false, + "files_count": 0, + "dirs_count": 0, + "size_count": 0, + "scan_errors": [] + }, + { + "path": "package/src/transformers/make_transform.js", + "type": "file", + "name": "make_transform.js", + "base_name": "make_transform", + "extension": ".js", + "size": 4077, + "date": "1985-10-26", + "sha1": "6be1f5f6dd607c49f9edd49ce05c176f79b75af4", + "md5": "c125275be869b2ba225eb07495e45541", + "mime_type": "text/plain", + "file_type": "ASCII text", + "programming_language": "JavaScript", + "is_binary": false, + "is_text": true, + "is_archive": false, + "is_media": false, + "is_source": true, + "is_script": false, + "licenses": [ + { + "key": "mit", + "score": 100, + "name": "MIT License", + "short_name": "MIT License", + "category": "Permissive", + "is_exception": false, + "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": 8, + "end_line": 9, + "matched_rule": { + "identifier": "mit_129.RULE", + "license_expression": "mit", + "licenses": [ + "mit" + ], + "is_license_text": false, + "is_license_notice": true, + "is_license_reference": false, + "is_license_tag": false, + "matcher": "2-aho", + "rule_length": 25, + "matched_length": 25, + "match_coverage": 100, + "rule_relevance": 100 + }, + "matched_text": "Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license" + } + ], + "license_expressions": [ + "mit" + ], + "holders": [ + { + "value": "Google Inc.", + "start_line": 6, + "end_line": 6 + } + ], + "copyrights": [ + { + "value": "Copyright Google Inc.", + "start_line": 6, + "end_line": 6 + } + ], + "authors": [], + "packages": [], + "emails": [], + "urls": [ + { + "url": "https://angular.io/license", + "start_line": 9, + "end_line": 9 + }, + { + "url": "https://github.com/Microsoft/TypeScript/issues/17552", + "start_line": 22, + "end_line": 22 + } + ], + "is_legal": false, + "is_manifest": false, + "is_readme": false, + "is_top_level": false, + "is_key_file": false, + "is_generated": false, + "is_license_text": false, + "files_count": 0, + "dirs_count": 0, + "size_count": 0, + "scan_errors": [] + }, + { + "path": "package/src/transformers/register_locale_data.d.ts", + "type": "file", + "name": "register_locale_data.d.ts", + "base_name": "register_locale_data.d", + "extension": ".ts", + "size": 458, + "date": "1985-10-26", + "sha1": "7e8259723006654d7c5ca7c40fc077e7ee0dc9ae", + "md5": "d0d5bd69465bc4a49757871deccf00c7", + "mime_type": "text/plain", + "file_type": "ASCII text", + "programming_language": "TypeScript", + "is_binary": false, + "is_text": true, + "is_archive": false, + "is_media": false, + "is_source": true, + "is_script": false, + "licenses": [ + { + "key": "mit", + "score": 100, + "name": "MIT License", + "short_name": "MIT License", + "category": "Permissive", + "is_exception": false, + "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": 5, + "end_line": 6, + "matched_rule": { + "identifier": "mit_129.RULE", + "license_expression": "mit", + "licenses": [ + "mit" + ], + "is_license_text": false, + "is_license_notice": true, + "is_license_reference": false, + "is_license_tag": false, + "matcher": "2-aho", + "rule_length": 25, + "matched_length": 25, + "match_coverage": 100, + "rule_relevance": 100 + }, + "matched_text": "Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license" + } + ], + "license_expressions": [ + "mit" + ], + "holders": [ + { + "value": "Google Inc.", + "start_line": 3, + "end_line": 3 + } + ], + "copyrights": [ + { + "value": "Copyright Google Inc.", + "start_line": 3, + "end_line": 3 + } + ], + "authors": [], + "packages": [], + "emails": [], + "urls": [ + { + "url": "https://angular.io/license", + "start_line": 6, + "end_line": 6 + } + ], + "is_legal": false, + "is_manifest": false, + "is_readme": false, + "is_top_level": false, + "is_key_file": false, + "is_generated": false, + "is_license_text": false, + "files_count": 0, + "dirs_count": 0, + "size_count": 0, + "scan_errors": [] + }, + { + "path": "package/src/transformers/register_locale_data.js", + "type": "file", + "name": "register_locale_data.js", + "base_name": "register_locale_data", + "extension": ".js", + "size": 3336, + "date": "1985-10-26", + "sha1": "51d320c70565834a838e5ba02fad0425f7a9509e", + "md5": "ac7e5dd513f59263d3369508e9d5e81b", + "mime_type": "text/plain", + "file_type": "ASCII text", + "programming_language": "JavaScript", + "is_binary": false, + "is_text": true, + "is_archive": false, + "is_media": false, + "is_source": true, + "is_script": false, + "licenses": [ + { + "key": "mit", + "score": 100, + "name": "MIT License", + "short_name": "MIT License", + "category": "Permissive", + "is_exception": false, + "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": 8, + "end_line": 9, + "matched_rule": { + "identifier": "mit_129.RULE", + "license_expression": "mit", + "licenses": [ + "mit" + ], + "is_license_text": false, + "is_license_notice": true, + "is_license_reference": false, + "is_license_tag": false, + "matcher": "2-aho", + "rule_length": 25, + "matched_length": 25, + "match_coverage": 100, + "rule_relevance": 100 + }, + "matched_text": "Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license" + } + ], + "license_expressions": [ + "mit" + ], + "holders": [ + { + "value": "Google Inc.", + "start_line": 6, + "end_line": 6 + } + ], + "copyrights": [ + { + "value": "Copyright Google Inc.", + "start_line": 6, + "end_line": 6 + } + ], + "authors": [], + "packages": [], + "emails": [], + "urls": [ + { + "url": "https://angular.io/license", + "start_line": 9, + "end_line": 9 + } + ], + "is_legal": false, + "is_manifest": false, + "is_readme": false, + "is_top_level": false, + "is_key_file": false, + "is_generated": false, + "is_license_text": false, + "files_count": 0, + "dirs_count": 0, + "size_count": 0, + "scan_errors": [] + }, + { + "path": "package/src/transformers/remove-ivy-jit-support-calls.d.ts", + "type": "file", + "name": "remove-ivy-jit-support-calls.d.ts", + "base_name": "remove-ivy-jit-support-calls.d", + "extension": ".ts", + "size": 411, + "date": "1985-10-26", + "sha1": "1d7a2bb929bb94165734e7ff054fc3099d7c4984", + "md5": "85f617ca4537bc4e66c5d3eb74aef566", + "mime_type": "text/plain", + "file_type": "ASCII text", + "programming_language": "TypeScript", + "is_binary": false, + "is_text": true, + "is_archive": false, + "is_media": false, + "is_source": true, + "is_script": false, + "licenses": [ + { + "key": "mit", + "score": 100, + "name": "MIT License", + "short_name": "MIT License", + "category": "Permissive", + "is_exception": false, + "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": 5, + "end_line": 6, + "matched_rule": { + "identifier": "mit_129.RULE", + "license_expression": "mit", + "licenses": [ + "mit" + ], + "is_license_text": false, + "is_license_notice": true, + "is_license_reference": false, + "is_license_tag": false, + "matcher": "2-aho", + "rule_length": 25, + "matched_length": 25, + "match_coverage": 100, + "rule_relevance": 100 + }, + "matched_text": "Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license" + } + ], + "license_expressions": [ + "mit" + ], + "holders": [ + { + "value": "Google Inc.", + "start_line": 3, + "end_line": 3 + } + ], + "copyrights": [ + { + "value": "Copyright Google Inc.", + "start_line": 3, + "end_line": 3 + } + ], + "authors": [], + "packages": [], + "emails": [], + "urls": [ + { + "url": "https://angular.io/license", + "start_line": 6, + "end_line": 6 + } + ], + "is_legal": false, + "is_manifest": false, + "is_readme": false, + "is_top_level": false, + "is_key_file": false, + "is_generated": false, + "is_license_text": false, + "files_count": 0, + "dirs_count": 0, + "size_count": 0, + "scan_errors": [] + }, + { + "path": "package/src/transformers/remove-ivy-jit-support-calls.js", + "type": "file", + "name": "remove-ivy-jit-support-calls.js", + "base_name": "remove-ivy-jit-support-calls", + "extension": ".js", + "size": 2788, + "date": "1985-10-26", + "sha1": "cced7e682783f78c8f9abae7c109ed8710eee741", + "md5": "ceb664a3ecd01f7c5eeffd1a9c76ce9c", + "mime_type": "text/plain", + "file_type": "UTF-8 Unicode text", + "programming_language": "JavaScript", + "is_binary": false, + "is_text": true, + "is_archive": false, + "is_media": false, + "is_source": true, + "is_script": false, + "licenses": [ + { + "key": "mit", + "score": 100, + "name": "MIT License", + "short_name": "MIT License", + "category": "Permissive", + "is_exception": false, + "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": 8, + "end_line": 9, + "matched_rule": { + "identifier": "mit_129.RULE", + "license_expression": "mit", + "licenses": [ + "mit" + ], + "is_license_text": false, + "is_license_notice": true, + "is_license_reference": false, + "is_license_tag": false, + "matcher": "2-aho", + "rule_length": 25, + "matched_length": 25, + "match_coverage": 100, + "rule_relevance": 100 + }, + "matched_text": "Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license" + } + ], + "license_expressions": [ + "mit" + ], + "holders": [ + { + "value": "Google Inc.", + "start_line": 6, + "end_line": 6 + } + ], + "copyrights": [ + { + "value": "Copyright Google Inc.", + "start_line": 6, + "end_line": 6 + } + ], + "authors": [], + "packages": [], + "emails": [], + "urls": [ + { + "url": "https://angular.io/license", + "start_line": 9, + "end_line": 9 + } + ], + "is_legal": false, + "is_manifest": false, + "is_readme": false, + "is_top_level": false, + "is_key_file": false, + "is_generated": false, + "is_license_text": false, + "files_count": 0, + "dirs_count": 0, + "size_count": 0, + "scan_errors": [] + }, + { + "path": "package/src/transformers/remove_decorators.d.ts", + "type": "file", + "name": "remove_decorators.d.ts", + "base_name": "remove_decorators.d", + "extension": ".ts", + "size": 403, + "date": "1985-10-26", + "sha1": "b202f719a6b5d02c95ea95211f1268d954c4dd4a", + "md5": "bdcdcea591f91bd6d1dd904a0eea36b8", + "mime_type": "text/plain", + "file_type": "ASCII text", + "programming_language": "TypeScript", + "is_binary": false, + "is_text": true, + "is_archive": false, + "is_media": false, + "is_source": true, + "is_script": false, + "licenses": [ + { + "key": "mit", + "score": 100, + "name": "MIT License", + "short_name": "MIT License", + "category": "Permissive", + "is_exception": false, + "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": 5, + "end_line": 6, + "matched_rule": { + "identifier": "mit_129.RULE", + "license_expression": "mit", + "licenses": [ + "mit" + ], + "is_license_text": false, + "is_license_notice": true, + "is_license_reference": false, + "is_license_tag": false, + "matcher": "2-aho", + "rule_length": 25, + "matched_length": 25, + "match_coverage": 100, + "rule_relevance": 100 + }, + "matched_text": "Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license" + } + ], + "license_expressions": [ + "mit" + ], + "holders": [ + { + "value": "Google Inc.", + "start_line": 3, + "end_line": 3 + } + ], + "copyrights": [ + { + "value": "Copyright Google Inc.", + "start_line": 3, + "end_line": 3 + } + ], + "authors": [], + "packages": [], + "emails": [], + "urls": [ + { + "url": "https://angular.io/license", + "start_line": 6, + "end_line": 6 + } + ], + "is_legal": false, + "is_manifest": false, + "is_readme": false, + "is_top_level": false, + "is_key_file": false, + "is_generated": false, + "is_license_text": false, + "files_count": 0, + "dirs_count": 0, + "size_count": 0, + "scan_errors": [] + }, + { + "path": "package/src/transformers/remove_decorators.js", + "type": "file", + "name": "remove_decorators.js", + "base_name": "remove_decorators", + "extension": ".js", + "size": 3220, + "date": "1985-10-26", + "sha1": "7985f02fb63504ee723f3766c19c1fcd9d50196b", + "md5": "9e21f14874035d783d0e0520e07ebb57", + "mime_type": "text/plain", + "file_type": "ASCII text", + "programming_language": "JavaScript", + "is_binary": false, + "is_text": true, + "is_archive": false, + "is_media": false, + "is_source": true, + "is_script": false, + "licenses": [ + { + "key": "mit", + "score": 100, + "name": "MIT License", + "short_name": "MIT License", + "category": "Permissive", + "is_exception": false, + "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": 8, + "end_line": 9, + "matched_rule": { + "identifier": "mit_129.RULE", + "license_expression": "mit", + "licenses": [ + "mit" + ], + "is_license_text": false, + "is_license_notice": true, + "is_license_reference": false, + "is_license_tag": false, + "matcher": "2-aho", + "rule_length": 25, + "matched_length": 25, + "match_coverage": 100, + "rule_relevance": 100 + }, + "matched_text": "Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license" + } + ], + "license_expressions": [ + "mit" + ], + "holders": [ + { + "value": "Google Inc.", + "start_line": 6, + "end_line": 6 + } + ], + "copyrights": [ + { + "value": "Copyright Google Inc.", + "start_line": 6, + "end_line": 6 + } + ], + "authors": [], + "packages": [], + "emails": [], + "urls": [ + { + "url": "https://angular.io/license", + "start_line": 9, + "end_line": 9 + } + ], + "is_legal": false, + "is_manifest": false, + "is_readme": false, + "is_top_level": false, + "is_key_file": false, + "is_generated": false, + "is_license_text": false, + "files_count": 0, + "dirs_count": 0, + "size_count": 0, + "scan_errors": [] + }, + { + "path": "package/src/transformers/replace_bootstrap.d.ts", + "type": "file", + "name": "replace_bootstrap.d.ts", + "base_name": "replace_bootstrap.d", + "extension": ".ts", + "size": 299, + "date": "1985-10-26", + "sha1": "197546c978f05fb346c4eea9130a65d7bfa4dd9c", + "md5": "3808071ccb7789d0f20be0aa85ee29eb", + "mime_type": "text/plain", + "file_type": "ASCII text", + "programming_language": "TypeScript", + "is_binary": false, + "is_text": true, + "is_archive": false, + "is_media": false, + "is_source": true, + "is_script": false, + "licenses": [], + "license_expressions": [], + "holders": [], + "copyrights": [], + "authors": [], + "packages": [], + "emails": [], + "urls": [], + "is_legal": false, + "is_manifest": false, + "is_readme": false, + "is_top_level": false, + "is_key_file": false, + "is_generated": false, + "is_license_text": false, + "files_count": 0, + "dirs_count": 0, + "size_count": 0, + "scan_errors": [] + }, + { + "path": "package/src/transformers/replace_bootstrap.js", + "type": "file", + "name": "replace_bootstrap.js", + "base_name": "replace_bootstrap", + "extension": ".js", + "size": 4060, + "date": "1985-10-26", + "sha1": "ef5bad3f5ae33d4a1b2e8868b1475dac9f7fc93a", + "md5": "15f08b03915717e710837f23953b85bd", + "mime_type": "text/plain", + "file_type": "ASCII text, with very long lines", + "programming_language": "JavaScript", + "is_binary": false, + "is_text": true, + "is_archive": false, + "is_media": false, + "is_source": true, + "is_script": false, + "licenses": [ + { + "key": "mit", + "score": 100, + "name": "MIT License", + "short_name": "MIT License", + "category": "Permissive", + "is_exception": false, + "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": 8, + "end_line": 9, + "matched_rule": { + "identifier": "mit_129.RULE", + "license_expression": "mit", + "licenses": [ + "mit" + ], + "is_license_text": false, + "is_license_notice": true, + "is_license_reference": false, + "is_license_tag": false, + "matcher": "2-aho", + "rule_length": 25, + "matched_length": 25, + "match_coverage": 100, + "rule_relevance": 100 + }, + "matched_text": "Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license" + } + ], + "license_expressions": [ + "mit" + ], + "holders": [ + { + "value": "Google Inc.", + "start_line": 6, + "end_line": 6 + } + ], + "copyrights": [ + { + "value": "Copyright Google Inc.", + "start_line": 6, + "end_line": 6 + } + ], + "authors": [], + "packages": [], + "emails": [], + "urls": [ + { + "url": "https://angular.io/license", + "start_line": 9, + "end_line": 9 + } + ], + "is_legal": false, + "is_manifest": false, + "is_readme": false, + "is_top_level": false, + "is_key_file": false, + "is_generated": false, + "is_license_text": false, + "files_count": 0, + "dirs_count": 0, + "size_count": 0, + "scan_errors": [] + }, + { + "path": "package/src/transformers/replace_resources.d.ts", + "type": "file", + "name": "replace_resources.d.ts", + "base_name": "replace_resources.d", + "extension": ".ts", + "size": 523, + "date": "1985-10-26", + "sha1": "a4b61ea9fbacef58d45bbad941b3b6737385620f", + "md5": "360f87caf42a496d497d167392c5d316", + "mime_type": "text/plain", + "file_type": "ASCII text", + "programming_language": "TypeScript", + "is_binary": false, + "is_text": true, + "is_archive": false, + "is_media": false, + "is_source": true, + "is_script": false, + "licenses": [ + { + "key": "mit", + "score": 100, + "name": "MIT License", + "short_name": "MIT License", + "category": "Permissive", + "is_exception": false, + "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": 5, + "end_line": 6, + "matched_rule": { + "identifier": "mit_129.RULE", + "license_expression": "mit", + "licenses": [ + "mit" + ], + "is_license_text": false, + "is_license_notice": true, + "is_license_reference": false, + "is_license_tag": false, + "matcher": "2-aho", + "rule_length": 25, + "matched_length": 25, + "match_coverage": 100, + "rule_relevance": 100 + }, + "matched_text": "Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license" + } + ], + "license_expressions": [ + "mit" + ], + "holders": [ + { + "value": "Google Inc.", + "start_line": 3, + "end_line": 3 + } + ], + "copyrights": [ + { + "value": "Copyright Google Inc.", + "start_line": 3, + "end_line": 3 + } + ], + "authors": [], + "packages": [], + "emails": [], + "urls": [ + { + "url": "https://angular.io/license", + "start_line": 6, + "end_line": 6 + } + ], + "is_legal": false, + "is_manifest": false, + "is_readme": false, + "is_top_level": false, + "is_key_file": false, + "is_generated": false, + "is_license_text": false, + "files_count": 0, + "dirs_count": 0, + "size_count": 0, + "scan_errors": [] + }, + { + "path": "package/src/transformers/replace_resources.js", + "type": "file", + "name": "replace_resources.js", + "base_name": "replace_resources", + "extension": ".js", + "size": 7769, + "date": "1985-10-26", + "sha1": "4de029b020d3d7252b4531818e708280c4cecd7a", + "md5": "0acf755a557d3842b446975e3178b8b3", + "mime_type": "text/plain", + "file_type": "ASCII text", + "programming_language": "JavaScript", + "is_binary": false, + "is_text": true, + "is_archive": false, + "is_media": false, + "is_source": true, + "is_script": false, + "licenses": [ + { + "key": "mit", + "score": 100, + "name": "MIT License", + "short_name": "MIT License", + "category": "Permissive", + "is_exception": false, + "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": 8, + "end_line": 9, + "matched_rule": { + "identifier": "mit_129.RULE", + "license_expression": "mit", + "licenses": [ + "mit" + ], + "is_license_text": false, + "is_license_notice": true, + "is_license_reference": false, + "is_license_tag": false, + "matcher": "2-aho", + "rule_length": 25, + "matched_length": 25, + "match_coverage": 100, + "rule_relevance": 100 + }, + "matched_text": "Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license" + } + ], + "license_expressions": [ + "mit" + ], + "holders": [ + { + "value": "Google Inc.", + "start_line": 6, + "end_line": 6 + } + ], + "copyrights": [ + { + "value": "Copyright Google Inc.", + "start_line": 6, + "end_line": 6 + } + ], + "authors": [], + "packages": [], + "emails": [], + "urls": [ + { + "url": "https://angular.io/license", + "start_line": 9, + "end_line": 9 + } + ], + "is_legal": false, + "is_manifest": false, + "is_readme": false, + "is_top_level": false, + "is_key_file": false, + "is_generated": false, + "is_license_text": false, + "files_count": 0, + "dirs_count": 0, + "size_count": 0, + "scan_errors": [] + }, + { + "path": "package/src/transformers/replace_server_bootstrap.d.ts", + "type": "file", + "name": "replace_server_bootstrap.d.ts", + "base_name": "replace_server_bootstrap.d", + "extension": ".ts", + "size": 281, + "date": "1985-10-26", + "sha1": "3dfd9c3026cf33cbe216abfb4fd558893fada578", + "md5": "76b1969f11e6c8569a394c3266dc2db0", + "mime_type": "text/plain", + "file_type": "ASCII text", + "programming_language": "TypeScript", + "is_binary": false, + "is_text": true, + "is_archive": false, + "is_media": false, + "is_source": true, + "is_script": false, + "licenses": [], + "license_expressions": [], + "holders": [], + "copyrights": [], + "authors": [], + "packages": [], + "emails": [], + "urls": [], + "is_legal": false, + "is_manifest": false, + "is_readme": false, + "is_top_level": false, + "is_key_file": false, + "is_generated": false, + "is_license_text": false, + "files_count": 0, + "dirs_count": 0, + "size_count": 0, + "scan_errors": [] + }, + { + "path": "package/src/transformers/replace_server_bootstrap.js", + "type": "file", + "name": "replace_server_bootstrap.js", + "base_name": "replace_server_bootstrap", + "extension": ".js", + "size": 6115, + "date": "1985-10-26", + "sha1": "cc8bbe03b45105b55d897d1569b82c6b2ab556ef", + "md5": "493c01652ed4a40782ab33998b675460", + "mime_type": "text/plain", + "file_type": "ASCII text, with very long lines", + "programming_language": "JavaScript", + "is_binary": false, + "is_text": true, + "is_archive": false, + "is_media": false, + "is_source": true, + "is_script": false, + "licenses": [ + { + "key": "mit", + "score": 100, + "name": "MIT License", + "short_name": "MIT License", + "category": "Permissive", + "is_exception": false, + "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": 8, + "end_line": 9, + "matched_rule": { + "identifier": "mit_129.RULE", + "license_expression": "mit", + "licenses": [ + "mit" + ], + "is_license_text": false, + "is_license_notice": true, + "is_license_reference": false, + "is_license_tag": false, + "matcher": "2-aho", + "rule_length": 25, + "matched_length": 25, + "match_coverage": 100, + "rule_relevance": 100 + }, + "matched_text": "Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license" + } + ], + "license_expressions": [ + "mit" + ], + "holders": [ + { + "value": "Google Inc.", + "start_line": 6, + "end_line": 6 + } + ], + "copyrights": [ + { + "value": "Copyright Google Inc.", + "start_line": 6, + "end_line": 6 + } + ], + "authors": [], + "packages": [], + "emails": [], + "urls": [ + { + "url": "https://angular.io/license", + "start_line": 9, + "end_line": 9 + } + ], + "is_legal": false, + "is_manifest": false, + "is_readme": false, + "is_top_level": false, + "is_key_file": false, + "is_generated": false, + "is_license_text": false, + "files_count": 0, + "dirs_count": 0, + "size_count": 0, + "scan_errors": [] + }, + { + "path": "package/src/transformers/spec_helpers.d.ts", + "type": "file", + "name": "spec_helpers.d.ts", + "base_name": "spec_helpers.d", + "extension": ".ts", + "size": 535, + "date": "1985-10-26", + "sha1": "f458dfcb5c07fe433c81d9ff107956f27fef7795", + "md5": "8beea260242af5bf4bf7ab85186ffd04", + "mime_type": "text/plain", + "file_type": "ASCII text", + "programming_language": "TypeScript", + "is_binary": false, + "is_text": true, + "is_archive": false, + "is_media": false, + "is_source": true, + "is_script": false, + "licenses": [], + "license_expressions": [], + "holders": [], + "copyrights": [], + "authors": [], + "packages": [], + "emails": [], + "urls": [], + "is_legal": false, + "is_manifest": false, + "is_readme": false, + "is_top_level": false, + "is_key_file": false, + "is_generated": false, + "is_license_text": false, + "files_count": 0, + "dirs_count": 0, + "size_count": 0, + "scan_errors": [] + }, + { + "path": "package/src/transformers/spec_helpers.js", + "type": "file", + "name": "spec_helpers.js", + "base_name": "spec_helpers", + "extension": ".js", + "size": 4553, + "date": "1985-10-26", + "sha1": "49e180d7ee22cde28ef1dcbaf44b928cf3c2c440", + "md5": "b578038f3404e019398c16114d124bf1", + "mime_type": "text/plain", + "file_type": "ASCII text", + "programming_language": "JavaScript", + "is_binary": false, + "is_text": true, + "is_archive": false, + "is_media": false, + "is_source": true, + "is_script": false, + "licenses": [ + { + "key": "mit", + "score": 100, + "name": "MIT License", + "short_name": "MIT License", + "category": "Permissive", + "is_exception": false, + "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": 8, + "end_line": 9, + "matched_rule": { + "identifier": "mit_129.RULE", + "license_expression": "mit", + "licenses": [ + "mit" + ], + "is_license_text": false, + "is_license_notice": true, + "is_license_reference": false, + "is_license_tag": false, + "matcher": "2-aho", + "rule_length": 25, + "matched_length": 25, + "match_coverage": 100, + "rule_relevance": 100 + }, + "matched_text": "Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.io/license" + } + ], + "license_expressions": [ + "mit" + ], + "holders": [ + { + "value": "Google Inc.", + "start_line": 6, + "end_line": 6 + } + ], + "copyrights": [ + { + "value": "Copyright Google Inc.", + "start_line": 6, + "end_line": 6 + } + ], + "authors": [], + "packages": [], + "emails": [], + "urls": [ + { + "url": "https://angular.io/license", + "start_line": 9, + "end_line": 9 + } + ], + "is_legal": false, + "is_manifest": false, + "is_readme": false, + "is_top_level": false, + "is_key_file": false, + "is_generated": false, + "is_license_text": false, + "files_count": 0, + "dirs_count": 0, + "size_count": 0, + "scan_errors": [] + } + ] + } +} \ No newline at end of file diff --git a/swh/clearlydefined/tests/data/scancode_true.json b/swh/clearlydefined/tests/data/scancode_true.json new file mode 100644 --- /dev/null +++ b/swh/clearlydefined/tests/data/scancode_true.json @@ -0,0 +1,516 @@ +{ + "_metadata": { + "type": "scancode", + "url": "cd:/npm/npmjs/@ngtools/webpack/10.2.1", + "fetchedAt": "2020-12-23T00:25:23.043Z", + "links": { + "self": { + "href": "urn:npm:npmjs:@ngtools:webpack:revision:10.2.1:tool:scancode:3.2.2", + "type": "resource" + }, + "siblings": { + "href": "urn:npm:npmjs:@ngtools:webpack:revision:10.2.1:tool:scancode", + "type": "collection" + } + }, + "schemaVersion": "3.2.2", + "toolVersion": "3.0.2", + "contentType": "application/json", + "releaseDate": "2020-12-17T17:04:04.916Z", + "processedAt": "2020-12-23T00:25:39.586Z" + }, + "content": { + "headers": [ + { + "tool_name": "scancode-toolkit", + "tool_version": "3.0.2", + "options": { + "input": "/tmp/cd-JY1ciM", + "--classify": true, + "--copyright": true, + "--email": true, + "--generated": true, + "--info": true, + "--is-license-text": true, + "--json-pp": "/tmp/cd-00Vl2l", + "--license": true, + "--license-clarity-score": true, + "--license-diag": true, + "--license-text": true, + "--package": true, + "--processes": "2", + "--strip-root": true, + "--summary": true, + "--summary-key-files": true, + "--timeout": "1000.0", + "--url": true + }, + "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.", + "start_timestamp": "2020-12-23T002523.840923", + "end_timestamp": "2020-12-23T002538.791887", + "message": null, + "errors": [], + "extra_data": { + "files_count": 78 + } + } + ], + "summary": { + "license_expressions": [ + { + "value": "mit", + "count": 59 + }, + { + "value": null, + "count": 19 + } + ], + "copyrights": [ + { + "value": "Copyright (c) Google, Inc.", + "count": 58 + }, + { + "value": null, + "count": 20 + } + ], + "holders": [ + { + "value": "Google Inc.", + "count": 58 + }, + { + "value": null, + "count": 20 + } + ], + "authors": [ + { + "value": null, + "count": 78 + } + ], + "programming_language": [ + { + "value": "JavaScript", + "count": 38 + }, + { + "value": "TypeScript", + "count": 37 + }, + { + "value": null, + "count": 2 + }, + { + "value": "Python", + "count": 1 + } + ], + "packages": [ + { + "type": "npm", + "namespace": "@ngtools", + "name": "webpack", + "version": "10.2.1", + "qualifiers": null, + "subpath": null, + "primary_language": "JavaScript", + "description": "Webpack plugin that AoT compiles your Angular components and modules.", + "release_date": null, + "parties": [ + { + "type": "person", + "role": "author", + "name": "Angular Authors", + "email": null, + "url": null + } + ], + "keywords": [ + "angular", + "Angular CLI", + "devkit", + "sdk", + "Angular DevKit", + "webpack", + "plugin", + "aot" + ], + "homepage_url": "https://github.com/angular/angular-cli", + "download_url": "https://registry.npmjs.org/@ngtools/webpack/-/webpack-10.2.1.tgz", + "size": null, + "sha1": null, + "md5": null, + "sha256": null, + "sha512": null, + "bug_tracking_url": "https://github.com/angular/angular-cli/issues", + "code_view_url": null, + "vcs_url": "git+https://github.com/angular/angular-cli.git", + "copyright": null, + "license_expression": "mit", + "declared_license": "MIT", + "notice_text": null, + "manifest_path": "package.json", + "dependencies": [ + { + "purl": "pkg:npm/%40angular-devkit/core", + "requirement": "10.2.1", + "scope": "dependencies", + "is_runtime": true, + "is_optional": false, + "is_resolved": false + }, + { + "purl": "pkg:npm/enhanced-resolve", + "requirement": "4.3.0", + "scope": "dependencies", + "is_runtime": true, + "is_optional": false, + "is_resolved": false + }, + { + "purl": "pkg:npm/webpack-sources", + "requirement": "1.4.3", + "scope": "dependencies", + "is_runtime": true, + "is_optional": false, + "is_resolved": false + }, + { + "purl": "pkg:npm/%40angular/compiler-cli", + "requirement": "^10.0.0", + "scope": "peerDependencies", + "is_runtime": true, + "is_optional": false, + "is_resolved": false + }, + { + "purl": "pkg:npm/typescript", + "requirement": ">=3.9 < 4.1", + "scope": "peerDependencies", + "is_runtime": true, + "is_optional": false, + "is_resolved": false + }, + { + "purl": "pkg:npm/webpack", + "requirement": "^4.0.0", + "scope": "peerDependencies", + "is_runtime": true, + "is_optional": false, + "is_resolved": false + } + ], + "contains_source_code": null, + "source_packages": [], + "purl": "pkg:npm/%40ngtools/webpack@10.2.1", + "repository_homepage_url": "https://www.npmjs.com/package/@ngtools/webpack", + "repository_download_url": "https://registry.npmjs.org/@ngtools/webpack/-/webpack-10.2.1.tgz", + "api_data_url": "https://registry.npmjs.org/@ngtools%2fwebpack", + "files": [ + { + "path": "package", + "type": "directory" + } + ] + } + ] + }, + "license_clarity_score": { + "score": 94, + "has_declared_license_in_key_files": true, + "file_level_license_and_copyright_coverage": 0.76, + "has_consistent_key_and_file_level_licenses": true, + "is_using_only_spdx_licenses": true, + "has_full_text_for_all_licenses": true + }, + "summary_of_key_files": { + "license_expressions": [ + { + "value": "mit", + "count": 2 + }, + { + "value": null, + "count": 1 + } + ], + "copyrights": [ + { + "value": null, + "count": 2 + }, + { + "value": "Copyright (c) Google, Inc.", + "count": 1 + } + ], + "holders": [ + { + "value": null, + "count": 2 + }, + { + "value": "Google Inc.", + "count": 1 + } + ], + "authors": [ + { + "value": null, + "count": 3 + } + ], + "programming_language": [ + { + "value": null, + "count": 2 + }, + { + "value": "Python", + "count": 1 + } + ] + }, + "files": [ + { + "path": "package", + "type": "directory", + "name": "package", + "base_name": "package", + "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": [], + "license_expressions": [], + "holders": [], + "copyrights": [], + "authors": [], + "packages": [ + { + "type": "npm", + "namespace": "@ngtools", + "name": "webpack", + "version": "10.2.1", + "qualifiers": null, + "subpath": null, + "primary_language": "JavaScript", + "description": "Webpack plugin that AoT compiles your Angular components and modules.", + "release_date": null, + "parties": [ + { + "type": "person", + "role": "author", + "name": "Angular Authors", + "email": null, + "url": null + } + ], + "keywords": [ + "angular", + "Angular CLI", + "devkit", + "sdk", + "Angular DevKit", + "webpack", + "plugin", + "aot" + ], + "homepage_url": "https://github.com/angular/angular-cli", + "download_url": "https://registry.npmjs.org/@ngtools/webpack/-/webpack-10.2.1.tgz", + "size": null, + "sha1": null, + "md5": null, + "sha256": null, + "sha512": null, + "bug_tracking_url": "https://github.com/angular/angular-cli/issues", + "code_view_url": null, + "vcs_url": "git+https://github.com/angular/angular-cli.git", + "copyright": null, + "license_expression": "mit", + "declared_license": "MIT", + "notice_text": null, + "manifest_path": "package.json", + "dependencies": [ + { + "purl": "pkg:npm/%40angular-devkit/core", + "requirement": "10.2.1", + "scope": "dependencies", + "is_runtime": true, + "is_optional": false, + "is_resolved": false + }, + { + "purl": "pkg:npm/enhanced-resolve", + "requirement": "4.3.0", + "scope": "dependencies", + "is_runtime": true, + "is_optional": false, + "is_resolved": false + }, + { + "purl": "pkg:npm/webpack-sources", + "requirement": "1.4.3", + "scope": "dependencies", + "is_runtime": true, + "is_optional": false, + "is_resolved": false + }, + { + "purl": "pkg:npm/%40angular/compiler-cli", + "requirement": "^10.0.0", + "scope": "peerDependencies", + "is_runtime": true, + "is_optional": false, + "is_resolved": false + }, + { + "purl": "pkg:npm/typescript", + "requirement": ">=3.9 < 4.1", + "scope": "peerDependencies", + "is_runtime": true, + "is_optional": false, + "is_resolved": false + }, + { + "purl": "pkg:npm/webpack", + "requirement": "^4.0.0", + "scope": "peerDependencies", + "is_runtime": true, + "is_optional": false, + "is_resolved": false + } + ], + "contains_source_code": null, + "source_packages": [], + "purl": "pkg:npm/%40ngtools/webpack@10.2.1", + "repository_homepage_url": "https://www.npmjs.com/package/@ngtools/webpack", + "repository_download_url": "https://registry.npmjs.org/@ngtools/webpack/-/webpack-10.2.1.tgz", + "api_data_url": "https://registry.npmjs.org/@ngtools%2fwebpack", + "files": [ + { + "path": "package", + "type": "directory" + } + ] + } + ], + "emails": [], + "urls": [], + "is_legal": false, + "is_manifest": false, + "is_readme": false, + "is_top_level": true, + "is_key_file": false, + "is_generated": false, + "is_license_text": false, + "files_count": 78, + "dirs_count": 2, + "size_count": 249108, + "scan_errors": [] + }, + { + "path": "package/LICENSE", + "type": "file", + "name": "LICENSE", + "base_name": "LICENSE", + "extension": "", + "size": 1073, + "date": "1985-10-26", + "sha1": "34973274ccef6ab4dfaaf86599792fa9c3fe4689", + "md5": "dc2a37e472c366af2a7b8bd0f2ba5af4", + "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, + "licenses": [ + { + "key": "mit", + "score": 97.66, + "name": "MIT License", + "short_name": "MIT License", + "category": "Permissive", + "is_exception": false, + "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": 1, + "end_line": 21, + "matched_rule": { + "identifier": "mit_160.RULE", + "license_expression": "mit", + "licenses": [ + "mit" + ], + "is_license_text": true, + "is_license_notice": false, + "is_license_reference": false, + "is_license_tag": false, + "matcher": "3-seq", + "rule_length": 167, + "matched_length": 167, + "match_coverage": 100, + "rule_relevance": 100 + }, + "matched_text": "The MIT License\n\nCopyright ([c]) [2017] [Google], [Inc].\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE." + } + ], + "license_expressions": [ + "mit" + ], + "holders": [ + { + "value": "Google, Inc.", + "start_line": 3, + "end_line": 3 + } + ], + "copyrights": [ + { + "value": "Copyright (c) 2017 Google, Inc.", + "start_line": 3, + "end_line": 3 + } + ], + "authors": [], + "packages": [], + "emails": [], + "urls": [], + "is_legal": true, + "is_manifest": false, + "is_readme": false, + "is_top_level": true, + "is_key_file": true, + "is_generated": false, + "is_license_text": true, + "files_count": 0, + "dirs_count": 0, + "size_count": 0, + "scan_errors": [] + } + ] + } +} \ No newline at end of file diff --git a/swh/clearlydefined/tests/test_mapping.py b/swh/clearlydefined/tests/test_mapping.py deleted file mode 100644 --- a/swh/clearlydefined/tests/test_mapping.py +++ /dev/null @@ -1,72 +0,0 @@ -# Copyright (C) 2017-2021 The Software Heritage developers -# See the AUTHORS file at the top-level directory of this distribution -# License: GNU Affero General Public License version 3, or any later version -# See top-level LICENSE file for more information - -from swh.clearlydefined.mapping_utils import map_sha1_with_swhid -import psycopg2 - - -def add_data(dsn: str): - write_connection = psycopg2.connect(dsn=dsn) - cur = write_connection.cursor() - data = [ - { - "sha1": "\\xa6628c8a4fbc08c29b8472e2222975e5b9918131", - "sha1_git": "\\xe103b11cbfecbc116dacbb1f9ab2a02176092a32", - "sha256": ( - "\\x6ac599151a7aaa8ca5d38dc5bb61b49193a3cadc1ed33de5a57e4d1ecc53c846" - ), - "blake2s256": ( - "\\xc509b320abede3580bb1de75a0efa09ba7416db9c8de845a4e1b4317c0b8a8d9" - ), - "length": 717, - }, - { - "sha1": "\\xd1ece3dbe3e78a6648f37206f996e202acb3926b", - "sha1_git": "\\x095b80e14c3ea6254f57e94761f2313e32b1d58a", - "sha256": ( - "\\x2a24791d738e4380d55e1c990dd0bd2bcdc98240d9a25c488804abfd814b8c96" - ), - "blake2s256": ( - "\\xa18463fe94e1b4ee191815c2fa48948c44ffbdffcda49fad6591ac4c93f19aef" - ), - "length": 3138, - }, - ] - for row in data: - cur.execute( - "INSERT INTO content (sha1, sha1_git, sha256, blake2s256, length) VALUES \ - (%s,%s,%s,%s,%s);", - ( - row["sha1"], - row["sha1_git"], - row["sha256"], - row["blake2s256"], - row["length"], - ), - ) - write_connection.commit() - - -def test_mapping(swh_storage_backend_config): - dsn = swh_storage_backend_config["db"] - add_data(dsn=dsn) - sha1 = "a6628c8a4fbc08c29b8472e2222975e5b9918131" - assert "swh:1:cnt:e103b11cbfecbc116dacbb1f9ab2a02176092a32" == map_sha1_with_swhid( - sha1=sha1, dsn=dsn - ) - - -def test_mapping_with_empty_sha1(swh_storage_backend_config): - dsn = swh_storage_backend_config["db"] - add_data(dsn=dsn) - sha1 = "" - assert map_sha1_with_swhid(sha1=sha1, dsn=dsn) is None - - -def test_mapping_with_wrong_sha1(swh_storage_backend_config): - dsn = swh_storage_backend_config["db"] - add_data(dsn=dsn) - sha1 = "6ac599151a7aaa8ca5d38dc5bb61b49193a3cadc1ed33de5a57e4d1ecc53c846" - assert map_sha1_with_swhid(sha1=sha1, dsn=dsn) is None diff --git a/swh/clearlydefined/tests/test_mapping_utils.py b/swh/clearlydefined/tests/test_mapping_utils.py new file mode 100644 --- /dev/null +++ b/swh/clearlydefined/tests/test_mapping_utils.py @@ -0,0 +1,446 @@ +# Copyright (C) 2017-2021 The Software Heritage developers +# See the AUTHORS file at the top-level directory of this distribution +# License: GNU Affero General Public License version 3, or any later version +# See top-level LICENSE file for more information + +from swh.clearlydefined.mapping_utils import map_sha1_with_swhid +from swh.clearlydefined.mapping_utils import map_row +from swh.clearlydefined.mapping_utils import map_definition +from swh.clearlydefined.error import ( + InvalidComponents, + WrongMetadata, + NoJsonExtension, + RevisionNotFound, + ToolNotSupported, + ToolNotFound, +) + +from swh.model import from_disk +from swh.model.model import ( + MetadataTargetType, + Origin, + Content, + Revision, + Person, + TimestampWithTimezone, + Timestamp, + RevisionType, + Directory, + DirectoryEntry, +) +from swh.model.hashutil import hash_to_bytes + +import gzip +import os +from typing import Tuple + + +content_data = [ + Content.from_data(b"42\n"), + Content.from_data(b"4242\n"), +] + +directory = Directory( + id=hash_to_bytes("5256e856a0a0898966d6ba14feb4388b8b82d302"), + entries=tuple( + [ + DirectoryEntry( + name=b"foo", + type="file", + target=content_data[0].sha1_git, + perms=from_disk.DentryPerms.content, + ), + ], + ), +) + +revision_data = [ + Revision( + id=hash_to_bytes("4c66129b968ab8122964823d1d77677f50884cf6"), + message=b"hello", + author=Person( + name=b"Nicolas Dandrimont", + email=b"nicolas@example.com", + fullname=b"Nicolas Dandrimont ", + ), + date=TimestampWithTimezone( + timestamp=Timestamp(seconds=1234567890, microseconds=0), + offset=120, + negative_utc=False, + ), + committer=Person( + name=b"St\xc3fano Zacchiroli", + email=b"stefano@example.com", + fullname=b"St\xc3fano Zacchiroli ", + ), + committer_date=TimestampWithTimezone( + timestamp=Timestamp(seconds=1123456789, microseconds=0), + offset=120, + negative_utc=False, + ), + parents=(), + type=RevisionType.GIT, + directory=directory.id, + metadata={ + "checksums": { + "sha1": "tarball-sha1", + "sha256": "tarball-sha256", + }, + "signed-off-by": "some-dude", + }, + extra_headers=( + (b"gpgsig", b"test123"), + (b"mergetag", b"foo\\bar"), + (b"mergetag", b"\x22\xaf\x89\x80\x01\x00"), + ), + synthetic=True, + ), + Revision( + id=hash_to_bytes("3c66129b968ab8122964823d1d77677f50884cf6"), + message=b"hello again", + author=Person( + name=b"Roberto Dicosmo", + email=b"roberto@example.com", + fullname=b"Roberto Dicosmo ", + ), + date=TimestampWithTimezone( + timestamp=Timestamp( + seconds=1234567843, + microseconds=220000, + ), + offset=-720, + negative_utc=False, + ), + committer=Person( + name=b"tony", + email=b"ar@dumont.fr", + fullname=b"tony ", + ), + committer_date=TimestampWithTimezone( + timestamp=Timestamp( + seconds=1123456789, + microseconds=220000, + ), + offset=0, + negative_utc=False, + ), + parents=(), + type=RevisionType.GIT, + directory=directory.id, + metadata=None, + extra_headers=(), + synthetic=False, + ), +] + + +def make_row(id: str, text: str) -> Tuple[str, bytes]: + """ + Take id and text as input and return a + row like a row present in + clearcode toolkit database + """ + row = (id, gzip.compress(text.encode())) + return row + + +def file_data(file_name): + with open(file_name) as file: + data = file.read() + return data + + +def add_content_data(swh_storage): + swh_storage.content_add(content_data) + + +def add_revision_data(swh_storage): + swh_storage.revision_add(revision_data) + + +def test_mapping_sha1_with_swhID(swh_storage): + add_content_data(swh_storage) + sha1 = "34973274ccef6ab4dfaaf86599792fa9c3fe4689" + assert "swh:1:cnt:d81cc0710eb6cf9efd5b920a8453e1e07157b6cd" == map_sha1_with_swhid( + sha1=sha1, swh_storage=swh_storage + ) + + +def test_mapping_with_empty_sha1(swh_storage): + add_content_data(swh_storage) + sha1 = "" + assert map_sha1_with_swhid(sha1=sha1, swh_storage=swh_storage) is None + + +def test_mapping_with_wrong_sha1(swh_storage): + add_content_data(swh_storage) + sha1 = "6ac599151a7aaa8ca5d38dc5bb61b49193a3cadc1ed33de5a57e4d1ecc53c846" + assert map_sha1_with_swhid(sha1=sha1, swh_storage=swh_storage) is None + + +def test_map_row_for_definitions_with_sha1(swh_storage, datadir): + add_content_data(swh_storage) + row = make_row( + id="maven/mavencentral/za.co.absa.cobrix/cobol-parser/revision/0.4.0.json", + text=file_data(os.path.join(datadir, "definitions.json")), + ) + expected = ( + True, + [ + ( + "swh:1:cnt:d81cc0710eb6cf9efd5b920a8453e1e07157b6cd", + MetadataTargetType.CONTENT, + Origin( + url="http://central.maven.org/maven2/za/co/absa/cobrix/" + "cobol-parser/0.4.0/cobol-parser-0.4.0-sources.jar" + ), + ) + ], + ) + assert map_row(row=row, swh_storage=swh_storage) == expected + + +def test_map_row_for_definitions_with_gitsha1(swh_storage, datadir): + add_revision_data(swh_storage) + row = make_row( + id="maven/mavencentral/za.co.absa.cobrix/cobol-parser/revision/0.4.0.json", + text=file_data(os.path.join(datadir, "definitions_sha1git.json")), + ) + expected = ( + True, + [ + ( + "swh:1:rev:4c66129b968ab8122964823d1d77677f50884cf6", + MetadataTargetType.REVISION, + Origin( + url="http://central.maven.org/maven2/za/co/absa/cobrix/" + "cobol-parser/0.4.0/cobol-parser-0.4.0-sources.jar" + ), + ) + ], + ) + assert map_row(row=row, swh_storage=swh_storage) == expected + + +def test_map_row_for_scancode(swh_storage, datadir): + add_content_data(swh_storage) + row = make_row( + id="npm/npmjs/@ngtools/webpack/revision/10.2.1/tool/scancode/3.2.2.json", + text=file_data(os.path.join(datadir, "scancode.json")), + ) + expected = ( + False, + [ + ( + "swh:1:cnt:d81cc0710eb6cf9efd5b920a8453e1e07157b6cd", + MetadataTargetType.CONTENT, + None, + ) + ], + ) + assert map_row(row=row, swh_storage=swh_storage) == expected + + +def test_map_row_for_scancode_true_flag(swh_storage, datadir): + add_content_data(swh_storage) + row = make_row( + id="npm/npmjs/@ngtools/webpack/revision/10.2.1/tool/scancode/3.2.2.json", + text=file_data(os.path.join(datadir, "scancode_true.json")), + ) + expected = ( + True, + [ + ( + "swh:1:cnt:d81cc0710eb6cf9efd5b920a8453e1e07157b6cd", + MetadataTargetType.CONTENT, + None, + ) + ], + ) + assert map_row(row=row, swh_storage=swh_storage) == expected + + +def test_map_row_for_licensee(swh_storage, datadir): + add_content_data(swh_storage) + row = make_row( + id="npm/npmjs/@fluidframework/replay-driver/revision/0.31.0/tool/licensee/\ + 9.13.0.json", + text=file_data(os.path.join(datadir, "licensee.json")), + ) + expected = ( + False, + [ + ( + "swh:1:cnt:36fade77193cb6d2bd826161a0979d64c28ab4fa", + MetadataTargetType.CONTENT, + None, + ) + ], + ) + assert map_row(row=row, swh_storage=swh_storage) == expected + + +def test_map_row_for_licensee_true_flag(swh_storage, datadir): + add_content_data(swh_storage) + row = make_row( + id="npm/npmjs/@fluidframework/replay-driver/revision/0.31.0/tool/licensee/\ + 9.13.0.json", + text=file_data(os.path.join(datadir, "licensee_true.json")), + ) + expected = ( + True, + [ + ( + "swh:1:cnt:36fade77193cb6d2bd826161a0979d64c28ab4fa", + MetadataTargetType.CONTENT, + None, + ) + ], + ) + assert map_row(row=row, swh_storage=swh_storage) == expected + + +def test_map_row_for_clearlydefined(swh_storage, datadir): + add_content_data(swh_storage) + row = make_row( + id="npm/npmjs/@pixi/mesh-extras/revision/5.3.5/tool/clearlydefined/1.3.4.json", + text=file_data(os.path.join(datadir, "clearlydefined.json")), + ) + expected = ( + False, + [ + ( + "swh:1:cnt:36fade77193cb6d2bd826161a0979d64c28ab4fa", + MetadataTargetType.CONTENT, + None, + ) + ], + ) + map_row(row=row, swh_storage=swh_storage) == expected + + +def test_map_row_for_clearlydefined_true_flag(swh_storage, datadir): + add_content_data(swh_storage) + row = make_row( + id="npm/npmjs/@pixi/mesh-extras/revision/5.3.5/tool/clearlydefined/1.3.4.json", + text=file_data(os.path.join(datadir, "clearlydefined_true.json")), + ) + expected = ( + True, + [ + ( + "swh:1:cnt:36fade77193cb6d2bd826161a0979d64c28ab4fa", + MetadataTargetType.CONTENT, + None, + ) + ], + ) + map_row(row=row, swh_storage=swh_storage) == expected + + +def test_sha1git_not_in_revision(swh_storage, datadir): + add_revision_data(swh_storage) + assert ( + map_definition( + metadata_string=file_data( + os.path.join(datadir, "definitions_not_mapped_sha1_git.json") + ), + swh_storage=swh_storage, + ) + is None + ) + + +def test_sha1_not_in_content(swh_storage, datadir): + add_content_data(swh_storage) + assert ( + map_definition( + metadata_string=file_data( + os.path.join(datadir, "definitions_not_mapped.json") + ), + swh_storage=swh_storage, + ) + is None + ) + + +def test_map_definition_with_wrong_metadata(swh_storage, datadir): + try: + map_definition( + metadata_string=file_data(os.path.join(datadir, "licensee.json")), + swh_storage=swh_storage, + ) + except WrongMetadata as e: + assert type(e) == WrongMetadata + + +def test_map_row_with_invalid_ID(swh_storage): + try: + row = make_row( + id="maven/mavencentral/cobol-parser/revision/0.4.0.json", text="abc" + ) + map_row(row=row, swh_storage=swh_storage) + except InvalidComponents as e: + assert type(e) == InvalidComponents + + +def test_map_row_with_empty_metadata_string(swh_storage): + row = make_row( + id="maven/mavencentral/za.co.absa.cobrix/cobol-parser/revision/0.4.0.json", + text="", + ) + assert map_row(row=row, swh_storage=swh_storage) is None + + +def test_map_row_with_invalid_ID_without_revision(swh_storage): + try: + row = make_row( + id="maven/mavencentral/za.co.absa.cobrix/cobol-parser/abc/0.4.0.json", + text="abc", + ) + map_row(row=row, swh_storage=swh_storage) + except RevisionNotFound as e: + assert type(e) == RevisionNotFound + + +def test_map_row_with_invalid_ID_without_json_extension(swh_storage): + try: + row = make_row( + id="maven/mavencentral/za.co.absa.cobrix/cobol-parser/revision/0.4.0.txt", + text="abc", + ) + map_row(row=row, swh_storage=swh_storage) + except NoJsonExtension as e: + assert type(e) == NoJsonExtension + + +def test_map_row_with_invalid_ID_without_6_or_9_length(swh_storage): + try: + row = make_row( + id="npm/npmjs/@ngtools/webpack/revision/10.2.1/tool/3.2.2.json", text="abc" + ) + map_row(row=row, swh_storage=swh_storage) + except InvalidComponents as e: + assert type(e) == InvalidComponents + + +def test_map_row_with_invalid_tool(swh_storage): + try: + row = make_row( + id="npm/npmjs/@ngtools/webpack/revision/10.2.1/tool/abc/3.2.2.json", + text="abc", + ) + map_row(row=row, swh_storage=swh_storage) + except ToolNotSupported as e: + assert type(e) == ToolNotSupported + + +def test_map_row_with_invalid_harvest_ID(swh_storage): + try: + row = make_row( + id="npm/npmjs/@ngtools/webpack/revision/10.2.1/abc/scancode/3.2.2.json", + text="abc", + ) + map_row(row=row, swh_storage=swh_storage) + except ToolNotFound as e: + assert type(e) == ToolNotFound