diff --git a/PKG-INFO b/PKG-INFO index b47144ce..4361140c 100644 --- a/PKG-INFO +++ b/PKG-INFO @@ -1,206 +1,206 @@ Metadata-Version: 2.1 Name: swh.web -Version: 0.0.355 +Version: 0.0.356 Summary: Software Heritage Web UI Home-page: https://forge.softwareheritage.org/diffusion/DWUI/ Author: Software Heritage developers Author-email: swh-devel@inria.fr License: UNKNOWN Project-URL: Bug Reports, https://forge.softwareheritage.org/maniphest Project-URL: Funding, https://www.softwareheritage.org/donate Project-URL: Source, https://forge.softwareheritage.org/source/swh-web Project-URL: Documentation, https://docs.softwareheritage.org/devel/swh-web/ Platform: UNKNOWN Classifier: Programming Language :: Python :: 3 Classifier: Intended Audience :: Developers Classifier: License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+) Classifier: Operating System :: OS Independent Classifier: Development Status :: 5 - Production/Stable Classifier: Framework :: Django Requires-Python: >=3.7 Description-Content-Type: text/markdown Provides-Extra: testing License-File: LICENSE License-File: AUTHORS # swh-web This repository holds the development of Software Heritage web applications: * swh-web API (https://archive.softwareheritage.org/api): enables to query the content of the archive through HTTP requests and get responses in JSON or YAML. * swh-web browse (https://archive.softwareheritage.org/browse): graphical interface that eases the navigation in the archive. Documentation about how to use these components but also the details of their URI schemes can be found in the docs folder. The produced HTML documentation can be read and browsed at https://docs.softwareheritage.org/devel/swh-web/index.html. ## Technical details Those applications are powered by: * [Django Web Framework](https://www.djangoproject.com/) on the backend side with the following extensions enabled: * [django-rest-framework](http://www.django-rest-framework.org/) * [django-webpack-loader](https://github.com/owais/django-webpack-loader) * [django-js-reverse](http://django-js-reverse.readthedocs.io/en/latest/) * [webpack](https://webpack.js.org/) on the frontend side for better static assets management, including: * assets dependencies management and retrieval through [yarn](https://yarnpkg.com/en/) * linting of custom javascript code (through [eslint](https://eslint.org/)) and stylesheets (through [stylelint](https://stylelint.io/)) * use of [es6](http://es6-features.org) syntax and advanced javascript feature like [async/await](https://javascript.info/async-await) or [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) thanks to [babel](https://babeljs.io/) (es6 to es5 transpiler and polyfills provider) * assets minification (using [terser](https://github.com/terser-js/terser) and [cssnano](http://cssnano.co/)) but also dead code elimination for production use ## How to build, run and test ### Backend requirements First you will need [Python 3](https://www.python.org) and a complete [swh development environment](https://forge.softwareheritage.org/source/swh-environment/) installed. To run the backend, you need to have the following [Python 3 modules](requirements.txt) installed. To run the backend tests, the following [Python 3 modules](requirements-test.txt) are also required to be installed. One easy way to install them is to use the `pip` tool: ``` $ pip install -r requirements.txt -r requirements-test.txt ``` ### Frontend requirements To compile the frontend assets, you need to have [nodejs](https://nodejs.org/en/) >= 12.0.0 and [yarn](https://yarnpkg.com/en/) installed. If you are on Debian, you can easily install an up to date nodejs from the [nodesource](https://github.com/nodesource/distributions/blob/master/README.md) repository. Packages for yarn can be installed by following [these instructions](https://yarnpkg.com/en/docs/install#debian-stable). Alternatively, you can install yarn with `npm install yarn`, and add `YARN=node_modules/yarn/bin/yarn` as argument whenever you run `make`. Please note that the static assets bundles generated by webpack are not stored in the git repository. Follow the instructions below in order to generate them in order to be able to run the frontend part of the web applications. ### Make targets to execute the applications Below is the list of available make targets that can be executed from the root directory of swh-web in order to build and/or execute the web applications under various configurations: * **run-django-webpack-devserver**: Compile and serve not optimized (without mignification and dead code elimination) frontend static assets using [webpack-dev-server](https://github.com/webpack/webpack-dev-server) and run django server with development settings. This is the recommended target to use when developing swh-web as it enables automatic reloading of backend and frontend part of the applications when modifying source files (*.py, *.js, *.css, *.html). * **run-django-webpack-dev**: Compile not optimized (no minification, no dead code elimination) frontend static assets using webpack and run django server with development settings. This is the recommended target when one only wants to develop the backend side of the application. * **run-django-webpack-prod**: Compile optimized (with minification and dead code elimination) frontend static assets using webpack and run django server with production settings. This is useful to test the applications in production mode (with the difference that static assets are served by django). Production settings notably enable advanced django caching and you will need to have [memcached](https://memcached.org/) installed for that feature to work. * **run-django-server-dev**: Run the django server with development settings but without compiling frontend static assets through webpack. * **run-django-server-prod**: Run the django server with production settings but without compiling frontend static assets through webpack. * **run-gunicorn-server**: Run the web applications with production settings in a [gunicorn](http://gunicorn.org/) worker as they will be in real production environment. Once one of these targets executed, the web applications can be executed by pointing your browser to http://localhost:5004. ### Make targets to test the applications Some make targets are also available to easily execute the backend and frontend tests of the Software Heritage web applications. The backend tests are powered by the [pytest](https://docs.pytest.org/en/latest/) and [hypothesis](https://hypothesis.readthedocs.io/en/latest/) frameworks while the frontend ones rely on the use of the [cypress](https://www.cypress.io/) tool. Below is the exhaustive list of those targets: * **test**: execute the backend tests using a fast hypothesis profile (only one input example will be provided for each test) * **test-full**: execute the backend tests using a slower hypothesis profile (one hundred of input examples will be provided for each test which helps spotting possible bugs) * **test-frontend**: execute the frontend tests using cypress in headless mode but with some slow test suites disabled * **test-frontend-full**: execute the frontend tests using cypress in headless mode with all test suites enabled * **test-frontend-ui**: execute the frontend tests using the cypress GUI but with some slow test suites disabled * **test-frontend-full-ui**: execute the frontend tests using the cypress GUI with all test suites enabled ### Yarn targets Below is a list of available yarn targets in order to only execute the frontend static assets compilation (no web server will be executed): * **build-dev**: compile not optimized (without mignification and dead code elimination) frontend static assets and store the results in the `swh/web/static` folder. * **build**: compile optimized (with mignification and dead code elimination) frontend static assets and store the results in the `swh/web/static` folder. **The build target must be executed prior performing the Debian packaging of swh-web** in order for the package to contain the optimized assets dedicated to production environment. To execute these targets, issue the following command: ``` $ yarn ``` diff --git a/requirements-test.txt b/requirements-test.txt index baded558..f2f50fc4 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -1,17 +1,18 @@ decorator # dependency of swh.core[http] djangorestframework-stubs django-stubs django-test-migrations hypothesis -pytest +pytest < 7.0.0 # v7.0.0 removed _pytest.tmpdir.TempdirFactory, which is used by some of the pytest plugins we use pytest-django pytest-mock +pytest-postgresql requests-mock != 1.9.0, != 1.9.1 swh.core[http] >= 0.0.95 swh.loader.git >= 0.8.0 swh-scheduler[testing] >= 0.5.0 swh.storage >= 0.1.1 types-docutils types-psycopg2 types-pyyaml types-requests diff --git a/static/webpack-stats.json b/static/webpack-stats.json index 0bac67cf..526180c7 100644 --- a/static/webpack-stats.json +++ b/static/webpack-stats.json @@ -1,776 +1,776 @@ { "status": "done", "assets": { "img/thirdParty/chosen-sprite.png": { "name": "img/thirdParty/chosen-sprite.png", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/img/thirdParty/chosen-sprite.png", "publicPath": "/static/img/thirdParty/chosen-sprite.png" }, "img/thirdParty/chosen-sprite@2x.png": { "name": "img/thirdParty/chosen-sprite@2x.png", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/img/thirdParty/chosen-sprite@2x.png", "publicPath": "/static/img/thirdParty/chosen-sprite@2x.png" }, "fonts/materialdesignicons-webfont.woff2?v=6.5.95": { "name": "fonts/materialdesignicons-webfont.woff2?v=6.5.95", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/fonts/materialdesignicons-webfont.woff2", "publicPath": "/static/fonts/materialdesignicons-webfont.woff2?v=6.5.95" }, + "fonts/materialdesignicons-webfont.woff?v=6.5.95": { + "name": "fonts/materialdesignicons-webfont.woff?v=6.5.95", + "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/fonts/materialdesignicons-webfont.woff", + "publicPath": "/static/fonts/materialdesignicons-webfont.woff?v=6.5.95" + }, "fonts/materialdesignicons-webfont.eot?v=6.5.95": { "name": "fonts/materialdesignicons-webfont.eot?v=6.5.95", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/fonts/materialdesignicons-webfont.eot", "publicPath": "/static/fonts/materialdesignicons-webfont.eot?v=6.5.95" }, "fonts/materialdesignicons-webfont.eot": { "name": "fonts/materialdesignicons-webfont.eot", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/fonts/materialdesignicons-webfont.eot", "publicPath": "/static/fonts/materialdesignicons-webfont.eot" }, - "fonts/materialdesignicons-webfont.woff?v=6.5.95": { - "name": "fonts/materialdesignicons-webfont.woff?v=6.5.95", - "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/fonts/materialdesignicons-webfont.woff", - "publicPath": "/static/fonts/materialdesignicons-webfont.woff?v=6.5.95" - }, "fonts/materialdesignicons-webfont.ttf?v=6.5.95": { "name": "fonts/materialdesignicons-webfont.ttf?v=6.5.95", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/fonts/materialdesignicons-webfont.ttf", "publicPath": "/static/fonts/materialdesignicons-webfont.ttf?v=6.5.95" }, "fonts/alegreya-latin-400.woff2": { "name": "fonts/alegreya-latin-400.woff2", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/fonts/alegreya-latin-400.woff2", "publicPath": "/static/fonts/alegreya-latin-400.woff2" }, "fonts/alegreya-latin-400.woff": { "name": "fonts/alegreya-latin-400.woff", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/fonts/alegreya-latin-400.woff", "publicPath": "/static/fonts/alegreya-latin-400.woff" }, "fonts/alegreya-latin-400italic.woff2": { "name": "fonts/alegreya-latin-400italic.woff2", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/fonts/alegreya-latin-400italic.woff2", "publicPath": "/static/fonts/alegreya-latin-400italic.woff2" }, - "fonts/alegreya-latin-400italic.woff": { - "name": "fonts/alegreya-latin-400italic.woff", - "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/fonts/alegreya-latin-400italic.woff", - "publicPath": "/static/fonts/alegreya-latin-400italic.woff" - }, "fonts/alegreya-latin-500.woff2": { "name": "fonts/alegreya-latin-500.woff2", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/fonts/alegreya-latin-500.woff2", "publicPath": "/static/fonts/alegreya-latin-500.woff2" }, + "fonts/alegreya-latin-400italic.woff": { + "name": "fonts/alegreya-latin-400italic.woff", + "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/fonts/alegreya-latin-400italic.woff", + "publicPath": "/static/fonts/alegreya-latin-400italic.woff" + }, "fonts/alegreya-latin-500.woff": { "name": "fonts/alegreya-latin-500.woff", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/fonts/alegreya-latin-500.woff", "publicPath": "/static/fonts/alegreya-latin-500.woff" }, "fonts/alegreya-latin-500italic.woff2": { "name": "fonts/alegreya-latin-500italic.woff2", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/fonts/alegreya-latin-500italic.woff2", "publicPath": "/static/fonts/alegreya-latin-500italic.woff2" }, - "fonts/alegreya-latin-500italic.woff": { - "name": "fonts/alegreya-latin-500italic.woff", - "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/fonts/alegreya-latin-500italic.woff", - "publicPath": "/static/fonts/alegreya-latin-500italic.woff" - }, "fonts/alegreya-latin-700.woff2": { "name": "fonts/alegreya-latin-700.woff2", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/fonts/alegreya-latin-700.woff2", "publicPath": "/static/fonts/alegreya-latin-700.woff2" }, + "fonts/alegreya-latin-500italic.woff": { + "name": "fonts/alegreya-latin-500italic.woff", + "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/fonts/alegreya-latin-500italic.woff", + "publicPath": "/static/fonts/alegreya-latin-500italic.woff" + }, "fonts/alegreya-latin-700.woff": { "name": "fonts/alegreya-latin-700.woff", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/fonts/alegreya-latin-700.woff", "publicPath": "/static/fonts/alegreya-latin-700.woff" }, - "fonts/alegreya-latin-700italic.woff2": { - "name": "fonts/alegreya-latin-700italic.woff2", - "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/fonts/alegreya-latin-700italic.woff2", - "publicPath": "/static/fonts/alegreya-latin-700italic.woff2" - }, "fonts/alegreya-latin-700italic.woff": { "name": "fonts/alegreya-latin-700italic.woff", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/fonts/alegreya-latin-700italic.woff", "publicPath": "/static/fonts/alegreya-latin-700italic.woff" }, + "fonts/alegreya-latin-800.woff": { + "name": "fonts/alegreya-latin-800.woff", + "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/fonts/alegreya-latin-800.woff", + "publicPath": "/static/fonts/alegreya-latin-800.woff" + }, "fonts/alegreya-latin-800.woff2": { "name": "fonts/alegreya-latin-800.woff2", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/fonts/alegreya-latin-800.woff2", "publicPath": "/static/fonts/alegreya-latin-800.woff2" }, - "fonts/alegreya-latin-800.woff": { - "name": "fonts/alegreya-latin-800.woff", - "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/fonts/alegreya-latin-800.woff", - "publicPath": "/static/fonts/alegreya-latin-800.woff" + "fonts/alegreya-latin-700italic.woff2": { + "name": "fonts/alegreya-latin-700italic.woff2", + "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/fonts/alegreya-latin-700italic.woff2", + "publicPath": "/static/fonts/alegreya-latin-700italic.woff2" }, "fonts/alegreya-latin-800italic.woff2": { "name": "fonts/alegreya-latin-800italic.woff2", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/fonts/alegreya-latin-800italic.woff2", "publicPath": "/static/fonts/alegreya-latin-800italic.woff2" }, "fonts/alegreya-latin-800italic.woff": { "name": "fonts/alegreya-latin-800italic.woff", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/fonts/alegreya-latin-800italic.woff", "publicPath": "/static/fonts/alegreya-latin-800italic.woff" }, "fonts/alegreya-latin-900.woff2": { "name": "fonts/alegreya-latin-900.woff2", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/fonts/alegreya-latin-900.woff2", "publicPath": "/static/fonts/alegreya-latin-900.woff2" }, - "fonts/alegreya-latin-900.woff": { - "name": "fonts/alegreya-latin-900.woff", - "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/fonts/alegreya-latin-900.woff", - "publicPath": "/static/fonts/alegreya-latin-900.woff" - }, "fonts/alegreya-latin-900italic.woff2": { "name": "fonts/alegreya-latin-900italic.woff2", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/fonts/alegreya-latin-900italic.woff2", "publicPath": "/static/fonts/alegreya-latin-900italic.woff2" }, + "fonts/alegreya-latin-900.woff": { + "name": "fonts/alegreya-latin-900.woff", + "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/fonts/alegreya-latin-900.woff", + "publicPath": "/static/fonts/alegreya-latin-900.woff" + }, "fonts/alegreya-latin-900italic.woff": { "name": "fonts/alegreya-latin-900italic.woff", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/fonts/alegreya-latin-900italic.woff", "publicPath": "/static/fonts/alegreya-latin-900italic.woff" }, - "fonts/alegreya-sans-latin-100.woff2": { - "name": "fonts/alegreya-sans-latin-100.woff2", - "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/fonts/alegreya-sans-latin-100.woff2", - "publicPath": "/static/fonts/alegreya-sans-latin-100.woff2" - }, "fonts/alegreya-sans-latin-100.woff": { "name": "fonts/alegreya-sans-latin-100.woff", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/fonts/alegreya-sans-latin-100.woff", "publicPath": "/static/fonts/alegreya-sans-latin-100.woff" }, "fonts/alegreya-sans-latin-100italic.woff2": { "name": "fonts/alegreya-sans-latin-100italic.woff2", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/fonts/alegreya-sans-latin-100italic.woff2", "publicPath": "/static/fonts/alegreya-sans-latin-100italic.woff2" }, "fonts/alegreya-sans-latin-100italic.woff": { "name": "fonts/alegreya-sans-latin-100italic.woff", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/fonts/alegreya-sans-latin-100italic.woff", "publicPath": "/static/fonts/alegreya-sans-latin-100italic.woff" }, - "fonts/alegreya-sans-latin-300.woff2": { - "name": "fonts/alegreya-sans-latin-300.woff2", - "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/fonts/alegreya-sans-latin-300.woff2", - "publicPath": "/static/fonts/alegreya-sans-latin-300.woff2" + "fonts/alegreya-sans-latin-100.woff2": { + "name": "fonts/alegreya-sans-latin-100.woff2", + "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/fonts/alegreya-sans-latin-100.woff2", + "publicPath": "/static/fonts/alegreya-sans-latin-100.woff2" }, "fonts/alegreya-sans-latin-300.woff": { "name": "fonts/alegreya-sans-latin-300.woff", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/fonts/alegreya-sans-latin-300.woff", "publicPath": "/static/fonts/alegreya-sans-latin-300.woff" }, - "fonts/alegreya-sans-latin-300italic.woff2": { - "name": "fonts/alegreya-sans-latin-300italic.woff2", - "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/fonts/alegreya-sans-latin-300italic.woff2", - "publicPath": "/static/fonts/alegreya-sans-latin-300italic.woff2" + "fonts/alegreya-sans-latin-300.woff2": { + "name": "fonts/alegreya-sans-latin-300.woff2", + "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/fonts/alegreya-sans-latin-300.woff2", + "publicPath": "/static/fonts/alegreya-sans-latin-300.woff2" }, "fonts/alegreya-sans-latin-300italic.woff": { "name": "fonts/alegreya-sans-latin-300italic.woff", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/fonts/alegreya-sans-latin-300italic.woff", "publicPath": "/static/fonts/alegreya-sans-latin-300italic.woff" }, + "fonts/alegreya-sans-latin-300italic.woff2": { + "name": "fonts/alegreya-sans-latin-300italic.woff2", + "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/fonts/alegreya-sans-latin-300italic.woff2", + "publicPath": "/static/fonts/alegreya-sans-latin-300italic.woff2" + }, "fonts/alegreya-sans-latin-400.woff2": { "name": "fonts/alegreya-sans-latin-400.woff2", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/fonts/alegreya-sans-latin-400.woff2", "publicPath": "/static/fonts/alegreya-sans-latin-400.woff2" }, "fonts/alegreya-sans-latin-400.woff": { "name": "fonts/alegreya-sans-latin-400.woff", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/fonts/alegreya-sans-latin-400.woff", "publicPath": "/static/fonts/alegreya-sans-latin-400.woff" }, "fonts/alegreya-sans-latin-400italic.woff2": { "name": "fonts/alegreya-sans-latin-400italic.woff2", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/fonts/alegreya-sans-latin-400italic.woff2", "publicPath": "/static/fonts/alegreya-sans-latin-400italic.woff2" }, "fonts/alegreya-sans-latin-400italic.woff": { "name": "fonts/alegreya-sans-latin-400italic.woff", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/fonts/alegreya-sans-latin-400italic.woff", "publicPath": "/static/fonts/alegreya-sans-latin-400italic.woff" }, "fonts/alegreya-sans-latin-500.woff2": { "name": "fonts/alegreya-sans-latin-500.woff2", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/fonts/alegreya-sans-latin-500.woff2", "publicPath": "/static/fonts/alegreya-sans-latin-500.woff2" }, "fonts/alegreya-sans-latin-500.woff": { "name": "fonts/alegreya-sans-latin-500.woff", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/fonts/alegreya-sans-latin-500.woff", "publicPath": "/static/fonts/alegreya-sans-latin-500.woff" }, "fonts/alegreya-sans-latin-500italic.woff2": { "name": "fonts/alegreya-sans-latin-500italic.woff2", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/fonts/alegreya-sans-latin-500italic.woff2", "publicPath": "/static/fonts/alegreya-sans-latin-500italic.woff2" }, "fonts/alegreya-sans-latin-500italic.woff": { "name": "fonts/alegreya-sans-latin-500italic.woff", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/fonts/alegreya-sans-latin-500italic.woff", "publicPath": "/static/fonts/alegreya-sans-latin-500italic.woff" }, "fonts/alegreya-sans-latin-700.woff2": { "name": "fonts/alegreya-sans-latin-700.woff2", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/fonts/alegreya-sans-latin-700.woff2", "publicPath": "/static/fonts/alegreya-sans-latin-700.woff2" }, - "fonts/alegreya-sans-latin-700.woff": { - "name": "fonts/alegreya-sans-latin-700.woff", - "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/fonts/alegreya-sans-latin-700.woff", - "publicPath": "/static/fonts/alegreya-sans-latin-700.woff" - }, "fonts/alegreya-sans-latin-700italic.woff2": { "name": "fonts/alegreya-sans-latin-700italic.woff2", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/fonts/alegreya-sans-latin-700italic.woff2", "publicPath": "/static/fonts/alegreya-sans-latin-700italic.woff2" }, "fonts/alegreya-sans-latin-700italic.woff": { "name": "fonts/alegreya-sans-latin-700italic.woff", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/fonts/alegreya-sans-latin-700italic.woff", "publicPath": "/static/fonts/alegreya-sans-latin-700italic.woff" }, "fonts/alegreya-sans-latin-800.woff2": { "name": "fonts/alegreya-sans-latin-800.woff2", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/fonts/alegreya-sans-latin-800.woff2", "publicPath": "/static/fonts/alegreya-sans-latin-800.woff2" }, - "fonts/alegreya-sans-latin-800.woff": { - "name": "fonts/alegreya-sans-latin-800.woff", - "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/fonts/alegreya-sans-latin-800.woff", - "publicPath": "/static/fonts/alegreya-sans-latin-800.woff" + "fonts/alegreya-sans-latin-700.woff": { + "name": "fonts/alegreya-sans-latin-700.woff", + "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/fonts/alegreya-sans-latin-700.woff", + "publicPath": "/static/fonts/alegreya-sans-latin-700.woff" }, "fonts/alegreya-sans-latin-800italic.woff2": { "name": "fonts/alegreya-sans-latin-800italic.woff2", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/fonts/alegreya-sans-latin-800italic.woff2", "publicPath": "/static/fonts/alegreya-sans-latin-800italic.woff2" }, + "fonts/alegreya-sans-latin-800.woff": { + "name": "fonts/alegreya-sans-latin-800.woff", + "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/fonts/alegreya-sans-latin-800.woff", + "publicPath": "/static/fonts/alegreya-sans-latin-800.woff" + }, "fonts/alegreya-sans-latin-800italic.woff": { "name": "fonts/alegreya-sans-latin-800italic.woff", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/fonts/alegreya-sans-latin-800italic.woff", "publicPath": "/static/fonts/alegreya-sans-latin-800italic.woff" }, "fonts/alegreya-sans-latin-900.woff2": { "name": "fonts/alegreya-sans-latin-900.woff2", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/fonts/alegreya-sans-latin-900.woff2", "publicPath": "/static/fonts/alegreya-sans-latin-900.woff2" }, "fonts/alegreya-sans-latin-900.woff": { "name": "fonts/alegreya-sans-latin-900.woff", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/fonts/alegreya-sans-latin-900.woff", "publicPath": "/static/fonts/alegreya-sans-latin-900.woff" }, "fonts/alegreya-sans-latin-900italic.woff2": { "name": "fonts/alegreya-sans-latin-900italic.woff2", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/fonts/alegreya-sans-latin-900italic.woff2", "publicPath": "/static/fonts/alegreya-sans-latin-900italic.woff2" }, "fonts/alegreya-sans-latin-900italic.woff": { "name": "fonts/alegreya-sans-latin-900italic.woff", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/fonts/alegreya-sans-latin-900italic.woff", "publicPath": "/static/fonts/alegreya-sans-latin-900italic.woff" }, "js/pdf.worker.min.js": { "name": "js/pdf.worker.min.js", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/js/pdf.worker.min.js", "publicPath": "/static/js/pdf.worker.min.js" }, "fonts/MathJax_AMS-Regular.woff": { "name": "fonts/MathJax_AMS-Regular.woff", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/fonts/MathJax_AMS-Regular.woff", "publicPath": "/static/fonts/MathJax_AMS-Regular.woff" }, "fonts/MathJax_Calligraphic-Bold.woff": { "name": "fonts/MathJax_Calligraphic-Bold.woff", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/fonts/MathJax_Calligraphic-Bold.woff", "publicPath": "/static/fonts/MathJax_Calligraphic-Bold.woff" }, "fonts/MathJax_Calligraphic-Regular.woff": { "name": "fonts/MathJax_Calligraphic-Regular.woff", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/fonts/MathJax_Calligraphic-Regular.woff", "publicPath": "/static/fonts/MathJax_Calligraphic-Regular.woff" }, "fonts/MathJax_Fraktur-Bold.woff": { "name": "fonts/MathJax_Fraktur-Bold.woff", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/fonts/MathJax_Fraktur-Bold.woff", "publicPath": "/static/fonts/MathJax_Fraktur-Bold.woff" }, "fonts/MathJax_Fraktur-Regular.woff": { "name": "fonts/MathJax_Fraktur-Regular.woff", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/fonts/MathJax_Fraktur-Regular.woff", "publicPath": "/static/fonts/MathJax_Fraktur-Regular.woff" }, "fonts/MathJax_Main-Bold.woff": { "name": "fonts/MathJax_Main-Bold.woff", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/fonts/MathJax_Main-Bold.woff", "publicPath": "/static/fonts/MathJax_Main-Bold.woff" }, "fonts/MathJax_Main-Italic.woff": { "name": "fonts/MathJax_Main-Italic.woff", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/fonts/MathJax_Main-Italic.woff", "publicPath": "/static/fonts/MathJax_Main-Italic.woff" }, "fonts/MathJax_Main-Regular.woff": { "name": "fonts/MathJax_Main-Regular.woff", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/fonts/MathJax_Main-Regular.woff", "publicPath": "/static/fonts/MathJax_Main-Regular.woff" }, "fonts/MathJax_Math-BoldItalic.woff": { "name": "fonts/MathJax_Math-BoldItalic.woff", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/fonts/MathJax_Math-BoldItalic.woff", "publicPath": "/static/fonts/MathJax_Math-BoldItalic.woff" }, "fonts/MathJax_Math-Italic.woff": { "name": "fonts/MathJax_Math-Italic.woff", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/fonts/MathJax_Math-Italic.woff", "publicPath": "/static/fonts/MathJax_Math-Italic.woff" }, "fonts/MathJax_Math-Regular.woff": { "name": "fonts/MathJax_Math-Regular.woff", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/fonts/MathJax_Math-Regular.woff", "publicPath": "/static/fonts/MathJax_Math-Regular.woff" }, "fonts/MathJax_SansSerif-Bold.woff": { "name": "fonts/MathJax_SansSerif-Bold.woff", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/fonts/MathJax_SansSerif-Bold.woff", "publicPath": "/static/fonts/MathJax_SansSerif-Bold.woff" }, "fonts/MathJax_SansSerif-Italic.woff": { "name": "fonts/MathJax_SansSerif-Italic.woff", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/fonts/MathJax_SansSerif-Italic.woff", "publicPath": "/static/fonts/MathJax_SansSerif-Italic.woff" }, "fonts/MathJax_SansSerif-Regular.woff": { "name": "fonts/MathJax_SansSerif-Regular.woff", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/fonts/MathJax_SansSerif-Regular.woff", "publicPath": "/static/fonts/MathJax_SansSerif-Regular.woff" }, "fonts/MathJax_Script-Regular.woff": { "name": "fonts/MathJax_Script-Regular.woff", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/fonts/MathJax_Script-Regular.woff", "publicPath": "/static/fonts/MathJax_Script-Regular.woff" }, "fonts/MathJax_Size1-Regular.woff": { "name": "fonts/MathJax_Size1-Regular.woff", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/fonts/MathJax_Size1-Regular.woff", "publicPath": "/static/fonts/MathJax_Size1-Regular.woff" }, "fonts/MathJax_Size2-Regular.woff": { "name": "fonts/MathJax_Size2-Regular.woff", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/fonts/MathJax_Size2-Regular.woff", "publicPath": "/static/fonts/MathJax_Size2-Regular.woff" }, "fonts/MathJax_Size3-Regular.woff": { "name": "fonts/MathJax_Size3-Regular.woff", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/fonts/MathJax_Size3-Regular.woff", "publicPath": "/static/fonts/MathJax_Size3-Regular.woff" }, "fonts/MathJax_Size4-Regular.woff": { "name": "fonts/MathJax_Size4-Regular.woff", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/fonts/MathJax_Size4-Regular.woff", "publicPath": "/static/fonts/MathJax_Size4-Regular.woff" }, "fonts/MathJax_Typewriter-Regular.woff": { "name": "fonts/MathJax_Typewriter-Regular.woff", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/fonts/MathJax_Typewriter-Regular.woff", "publicPath": "/static/fonts/MathJax_Typewriter-Regular.woff" }, "fonts/MathJax_Vector-Bold.woff": { "name": "fonts/MathJax_Vector-Bold.woff", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/fonts/MathJax_Vector-Bold.woff", "publicPath": "/static/fonts/MathJax_Vector-Bold.woff" }, "fonts/MathJax_Vector-Regular.woff": { "name": "fonts/MathJax_Vector-Regular.woff", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/fonts/MathJax_Vector-Regular.woff", "publicPath": "/static/fonts/MathJax_Vector-Regular.woff" }, "fonts/MathJax_Zero.woff": { "name": "fonts/MathJax_Zero.woff", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/fonts/MathJax_Zero.woff", "publicPath": "/static/fonts/MathJax_Zero.woff" }, "robots.txt": { "name": "robots.txt", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/robots.txt", "publicPath": "/static/robots.txt" }, "js/pdf.worker.min.js.LICENSE.txt": { "name": "js/pdf.worker.min.js.LICENSE.txt", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/js/pdf.worker.min.js.LICENSE.txt", "publicPath": "/static/js/pdf.worker.min.js.LICENSE.txt" }, "js/admin.dd251562dae83eb019a5.js.LICENSE.txt": { "name": "js/admin.dd251562dae83eb019a5.js.LICENSE.txt", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/js/admin.dd251562dae83eb019a5.js.LICENSE.txt", "publicPath": "/static/js/admin.dd251562dae83eb019a5.js.LICENSE.txt" }, "js/auth.7381ff7d9581af98cd05.js.LICENSE.txt": { "name": "js/auth.7381ff7d9581af98cd05.js.LICENSE.txt", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/js/auth.7381ff7d9581af98cd05.js.LICENSE.txt", "publicPath": "/static/js/auth.7381ff7d9581af98cd05.js.LICENSE.txt" }, "js/browse.947bb7896a305103ef07.js.LICENSE.txt": { "name": "js/browse.947bb7896a305103ef07.js.LICENSE.txt", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/js/browse.947bb7896a305103ef07.js.LICENSE.txt", "publicPath": "/static/js/browse.947bb7896a305103ef07.js.LICENSE.txt" }, "js/guided_tour.9734aa27598765424c60.js.LICENSE.txt": { "name": "js/guided_tour.9734aa27598765424c60.js.LICENSE.txt", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/js/guided_tour.9734aa27598765424c60.js.LICENSE.txt", "publicPath": "/static/js/guided_tour.9734aa27598765424c60.js.LICENSE.txt" }, "js/highlightjs.e1894dff356e09d44fbb.js.LICENSE.txt": { "name": "js/highlightjs.e1894dff356e09d44fbb.js.LICENSE.txt", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/js/highlightjs.e1894dff356e09d44fbb.js.LICENSE.txt", "publicPath": "/static/js/highlightjs.e1894dff356e09d44fbb.js.LICENSE.txt" }, "js/revision.53acc2dea637a557682c.js.LICENSE.txt": { "name": "js/revision.53acc2dea637a557682c.js.LICENSE.txt", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/js/revision.53acc2dea637a557682c.js.LICENSE.txt", "publicPath": "/static/js/revision.53acc2dea637a557682c.js.LICENSE.txt" }, "js/save.9c62d3ca29fa3ae18dc3.js.LICENSE.txt": { "name": "js/save.9c62d3ca29fa3ae18dc3.js.LICENSE.txt", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/js/save.9c62d3ca29fa3ae18dc3.js.LICENSE.txt", "publicPath": "/static/js/save.9c62d3ca29fa3ae18dc3.js.LICENSE.txt" }, "js/showdown.c33d171d25f3025a070e.js.LICENSE.txt": { "name": "js/showdown.c33d171d25f3025a070e.js.LICENSE.txt", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/js/showdown.c33d171d25f3025a070e.js.LICENSE.txt", "publicPath": "/static/js/showdown.c33d171d25f3025a070e.js.LICENSE.txt" }, "js/vault.147cdb83270419445ab0.js.LICENSE.txt": { "name": "js/vault.147cdb83270419445ab0.js.LICENSE.txt", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/js/vault.147cdb83270419445ab0.js.LICENSE.txt", "publicPath": "/static/js/vault.147cdb83270419445ab0.js.LICENSE.txt" }, "js/vendors.90725ea29eaa3e73ee0c.js.LICENSE.txt": { "name": "js/vendors.90725ea29eaa3e73ee0c.js.LICENSE.txt", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/js/vendors.90725ea29eaa3e73ee0c.js.LICENSE.txt", "publicPath": "/static/js/vendors.90725ea29eaa3e73ee0c.js.LICENSE.txt" }, "js/webapp.fdfedd73b82e041c3713.js.LICENSE.txt": { "name": "js/webapp.fdfedd73b82e041c3713.js.LICENSE.txt", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/js/webapp.fdfedd73b82e041c3713.js.LICENSE.txt", "publicPath": "/static/js/webapp.fdfedd73b82e041c3713.js.LICENSE.txt" }, "js/admin.dd251562dae83eb019a5.js": { "name": "js/admin.dd251562dae83eb019a5.js", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/js/admin.dd251562dae83eb019a5.js", "publicPath": "/static/js/admin.dd251562dae83eb019a5.js" }, "css/auth.0336a94c2c02b4b2a4f4.css": { "name": "css/auth.0336a94c2c02b4b2a4f4.css", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/css/auth.0336a94c2c02b4b2a4f4.css", "publicPath": "/static/css/auth.0336a94c2c02b4b2a4f4.css" }, "js/auth.7381ff7d9581af98cd05.js": { "name": "js/auth.7381ff7d9581af98cd05.js", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/js/auth.7381ff7d9581af98cd05.js", "publicPath": "/static/js/auth.7381ff7d9581af98cd05.js" }, "css/browse.6315ef52ed73df532bed.css": { "name": "css/browse.6315ef52ed73df532bed.css", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/css/browse.6315ef52ed73df532bed.css", "publicPath": "/static/css/browse.6315ef52ed73df532bed.css" }, "js/browse.947bb7896a305103ef07.js": { "name": "js/browse.947bb7896a305103ef07.js", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/js/browse.947bb7896a305103ef07.js", "publicPath": "/static/js/browse.947bb7896a305103ef07.js" }, "css/guided_tour.1de8b53f719cea9f465a.css": { "name": "css/guided_tour.1de8b53f719cea9f465a.css", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/css/guided_tour.1de8b53f719cea9f465a.css", "publicPath": "/static/css/guided_tour.1de8b53f719cea9f465a.css" }, "js/guided_tour.9734aa27598765424c60.js": { "name": "js/guided_tour.9734aa27598765424c60.js", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/js/guided_tour.9734aa27598765424c60.js", "publicPath": "/static/js/guided_tour.9734aa27598765424c60.js" }, "css/origin.5b45e9e6e54fd51ee886.css": { "name": "css/origin.5b45e9e6e54fd51ee886.css", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/css/origin.5b45e9e6e54fd51ee886.css", "publicPath": "/static/css/origin.5b45e9e6e54fd51ee886.css" }, "js/origin.e2879000cacbf25db65a.js": { "name": "js/origin.e2879000cacbf25db65a.js", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/js/origin.e2879000cacbf25db65a.js", "publicPath": "/static/js/origin.e2879000cacbf25db65a.js" }, "css/revision.5ddd36d69e1760bfa29d.css": { "name": "css/revision.5ddd36d69e1760bfa29d.css", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/css/revision.5ddd36d69e1760bfa29d.css", "publicPath": "/static/css/revision.5ddd36d69e1760bfa29d.css" }, "js/revision.53acc2dea637a557682c.js": { "name": "js/revision.53acc2dea637a557682c.js", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/js/revision.53acc2dea637a557682c.js", "publicPath": "/static/js/revision.53acc2dea637a557682c.js" }, "js/save.9c62d3ca29fa3ae18dc3.js": { "name": "js/save.9c62d3ca29fa3ae18dc3.js", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/js/save.9c62d3ca29fa3ae18dc3.js", "publicPath": "/static/js/save.9c62d3ca29fa3ae18dc3.js" }, "css/vault.25fc5883f848b48ffa5b.css": { "name": "css/vault.25fc5883f848b48ffa5b.css", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/css/vault.25fc5883f848b48ffa5b.css", "publicPath": "/static/css/vault.25fc5883f848b48ffa5b.css" }, "js/vault.147cdb83270419445ab0.js": { "name": "js/vault.147cdb83270419445ab0.js", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/js/vault.147cdb83270419445ab0.js", "publicPath": "/static/js/vault.147cdb83270419445ab0.js" }, "css/vendors.6ddb67bb1aade301093d.css": { "name": "css/vendors.6ddb67bb1aade301093d.css", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/css/vendors.6ddb67bb1aade301093d.css", "publicPath": "/static/css/vendors.6ddb67bb1aade301093d.css" }, "js/vendors.90725ea29eaa3e73ee0c.js": { "name": "js/vendors.90725ea29eaa3e73ee0c.js", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/js/vendors.90725ea29eaa3e73ee0c.js", "publicPath": "/static/js/vendors.90725ea29eaa3e73ee0c.js" }, "css/webapp.524d6dc01c6a847b4d8d.css": { "name": "css/webapp.524d6dc01c6a847b4d8d.css", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/css/webapp.524d6dc01c6a847b4d8d.css", "publicPath": "/static/css/webapp.524d6dc01c6a847b4d8d.css" }, "js/webapp.fdfedd73b82e041c3713.js": { "name": "js/webapp.fdfedd73b82e041c3713.js", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/js/webapp.fdfedd73b82e041c3713.js", "publicPath": "/static/js/webapp.fdfedd73b82e041c3713.js" }, "js/d3.9fbc8c4f808d6305db8c.js": { "name": "js/d3.9fbc8c4f808d6305db8c.js", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/js/d3.9fbc8c4f808d6305db8c.js", "publicPath": "/static/js/d3.9fbc8c4f808d6305db8c.js" }, "css/highlightjs.ae43064ab38a65a04d81.css": { "name": "css/highlightjs.ae43064ab38a65a04d81.css", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/css/highlightjs.ae43064ab38a65a04d81.css", "publicPath": "/static/css/highlightjs.ae43064ab38a65a04d81.css" }, "js/highlightjs.e1894dff356e09d44fbb.js": { "name": "js/highlightjs.e1894dff356e09d44fbb.js", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/js/highlightjs.e1894dff356e09d44fbb.js", "publicPath": "/static/js/highlightjs.e1894dff356e09d44fbb.js" }, "css/showdown.426fbf6a7a6653fd4cbb.css": { "name": "css/showdown.426fbf6a7a6653fd4cbb.css", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/css/showdown.426fbf6a7a6653fd4cbb.css", "publicPath": "/static/css/showdown.426fbf6a7a6653fd4cbb.css" }, "js/showdown.c33d171d25f3025a070e.js": { "name": "js/showdown.c33d171d25f3025a070e.js", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/js/showdown.c33d171d25f3025a070e.js", "publicPath": "/static/js/showdown.c33d171d25f3025a070e.js" }, "css/org.6851b70c924e28f6bf51.css": { "name": "css/org.6851b70c924e28f6bf51.css", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/css/org.6851b70c924e28f6bf51.css", "publicPath": "/static/css/org.6851b70c924e28f6bf51.css" }, "js/org.27a44f19269b37fa5fe6.js": { "name": "js/org.27a44f19269b37fa5fe6.js", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/js/org.27a44f19269b37fa5fe6.js", "publicPath": "/static/js/org.27a44f19269b37fa5fe6.js" }, "js/pdfjs.0de3de7f552746c41e31.js": { "name": "js/pdfjs.0de3de7f552746c41e31.js", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/js/pdfjs.0de3de7f552746c41e31.js", "publicPath": "/static/js/pdfjs.0de3de7f552746c41e31.js" }, "js/mathjax.82b6ebf86da778cadb7d.js": { "name": "js/mathjax.82b6ebf86da778cadb7d.js", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/js/mathjax.82b6ebf86da778cadb7d.js", "publicPath": "/static/js/mathjax.82b6ebf86da778cadb7d.js" }, "css/auth.0336a94c2c02b4b2a4f4.css.map": { "name": "css/auth.0336a94c2c02b4b2a4f4.css.map", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/css/auth.0336a94c2c02b4b2a4f4.css.map", "publicPath": "/static/css/auth.0336a94c2c02b4b2a4f4.css.map" }, "css/browse.6315ef52ed73df532bed.css.map": { "name": "css/browse.6315ef52ed73df532bed.css.map", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/css/browse.6315ef52ed73df532bed.css.map", "publicPath": "/static/css/browse.6315ef52ed73df532bed.css.map" }, "css/guided_tour.1de8b53f719cea9f465a.css.map": { "name": "css/guided_tour.1de8b53f719cea9f465a.css.map", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/css/guided_tour.1de8b53f719cea9f465a.css.map", "publicPath": "/static/css/guided_tour.1de8b53f719cea9f465a.css.map" }, "css/origin.5b45e9e6e54fd51ee886.css.map": { "name": "css/origin.5b45e9e6e54fd51ee886.css.map", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/css/origin.5b45e9e6e54fd51ee886.css.map", "publicPath": "/static/css/origin.5b45e9e6e54fd51ee886.css.map" }, "css/revision.5ddd36d69e1760bfa29d.css.map": { "name": "css/revision.5ddd36d69e1760bfa29d.css.map", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/css/revision.5ddd36d69e1760bfa29d.css.map", "publicPath": "/static/css/revision.5ddd36d69e1760bfa29d.css.map" }, "css/vault.25fc5883f848b48ffa5b.css.map": { "name": "css/vault.25fc5883f848b48ffa5b.css.map", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/css/vault.25fc5883f848b48ffa5b.css.map", "publicPath": "/static/css/vault.25fc5883f848b48ffa5b.css.map" }, "css/vendors.6ddb67bb1aade301093d.css.map": { "name": "css/vendors.6ddb67bb1aade301093d.css.map", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/css/vendors.6ddb67bb1aade301093d.css.map", "publicPath": "/static/css/vendors.6ddb67bb1aade301093d.css.map" }, "css/webapp.524d6dc01c6a847b4d8d.css.map": { "name": "css/webapp.524d6dc01c6a847b4d8d.css.map", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/css/webapp.524d6dc01c6a847b4d8d.css.map", "publicPath": "/static/css/webapp.524d6dc01c6a847b4d8d.css.map" }, "css/highlightjs.ae43064ab38a65a04d81.css.map": { "name": "css/highlightjs.ae43064ab38a65a04d81.css.map", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/css/highlightjs.ae43064ab38a65a04d81.css.map", "publicPath": "/static/css/highlightjs.ae43064ab38a65a04d81.css.map" }, - "css/showdown.426fbf6a7a6653fd4cbb.css.map": { - "name": "css/showdown.426fbf6a7a6653fd4cbb.css.map", - "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/css/showdown.426fbf6a7a6653fd4cbb.css.map", - "publicPath": "/static/css/showdown.426fbf6a7a6653fd4cbb.css.map" - }, "css/org.6851b70c924e28f6bf51.css.map": { "name": "css/org.6851b70c924e28f6bf51.css.map", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/css/org.6851b70c924e28f6bf51.css.map", "publicPath": "/static/css/org.6851b70c924e28f6bf51.css.map" }, + "css/showdown.426fbf6a7a6653fd4cbb.css.map": { + "name": "css/showdown.426fbf6a7a6653fd4cbb.css.map", + "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/css/showdown.426fbf6a7a6653fd4cbb.css.map", + "publicPath": "/static/css/showdown.426fbf6a7a6653fd4cbb.css.map" + }, "js/admin.dd251562dae83eb019a5.js.map": { "name": "js/admin.dd251562dae83eb019a5.js.map", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/js/admin.dd251562dae83eb019a5.js.map", "publicPath": "/static/js/admin.dd251562dae83eb019a5.js.map" }, "js/auth.7381ff7d9581af98cd05.js.map": { "name": "js/auth.7381ff7d9581af98cd05.js.map", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/js/auth.7381ff7d9581af98cd05.js.map", "publicPath": "/static/js/auth.7381ff7d9581af98cd05.js.map" }, "js/browse.947bb7896a305103ef07.js.map": { "name": "js/browse.947bb7896a305103ef07.js.map", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/js/browse.947bb7896a305103ef07.js.map", "publicPath": "/static/js/browse.947bb7896a305103ef07.js.map" }, "js/guided_tour.9734aa27598765424c60.js.map": { "name": "js/guided_tour.9734aa27598765424c60.js.map", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/js/guided_tour.9734aa27598765424c60.js.map", "publicPath": "/static/js/guided_tour.9734aa27598765424c60.js.map" }, "js/origin.e2879000cacbf25db65a.js.map": { "name": "js/origin.e2879000cacbf25db65a.js.map", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/js/origin.e2879000cacbf25db65a.js.map", "publicPath": "/static/js/origin.e2879000cacbf25db65a.js.map" }, "js/revision.53acc2dea637a557682c.js.map": { "name": "js/revision.53acc2dea637a557682c.js.map", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/js/revision.53acc2dea637a557682c.js.map", "publicPath": "/static/js/revision.53acc2dea637a557682c.js.map" }, "js/save.9c62d3ca29fa3ae18dc3.js.map": { "name": "js/save.9c62d3ca29fa3ae18dc3.js.map", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/js/save.9c62d3ca29fa3ae18dc3.js.map", "publicPath": "/static/js/save.9c62d3ca29fa3ae18dc3.js.map" }, "js/vault.147cdb83270419445ab0.js.map": { "name": "js/vault.147cdb83270419445ab0.js.map", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/js/vault.147cdb83270419445ab0.js.map", "publicPath": "/static/js/vault.147cdb83270419445ab0.js.map" }, "js/vendors.90725ea29eaa3e73ee0c.js.map": { "name": "js/vendors.90725ea29eaa3e73ee0c.js.map", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/js/vendors.90725ea29eaa3e73ee0c.js.map", "publicPath": "/static/js/vendors.90725ea29eaa3e73ee0c.js.map" }, "js/webapp.fdfedd73b82e041c3713.js.map": { "name": "js/webapp.fdfedd73b82e041c3713.js.map", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/js/webapp.fdfedd73b82e041c3713.js.map", "publicPath": "/static/js/webapp.fdfedd73b82e041c3713.js.map" }, "js/d3.9fbc8c4f808d6305db8c.js.map": { "name": "js/d3.9fbc8c4f808d6305db8c.js.map", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/js/d3.9fbc8c4f808d6305db8c.js.map", "publicPath": "/static/js/d3.9fbc8c4f808d6305db8c.js.map" }, "js/highlightjs.e1894dff356e09d44fbb.js.map": { "name": "js/highlightjs.e1894dff356e09d44fbb.js.map", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/js/highlightjs.e1894dff356e09d44fbb.js.map", "publicPath": "/static/js/highlightjs.e1894dff356e09d44fbb.js.map" }, "js/showdown.c33d171d25f3025a070e.js.map": { "name": "js/showdown.c33d171d25f3025a070e.js.map", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/js/showdown.c33d171d25f3025a070e.js.map", "publicPath": "/static/js/showdown.c33d171d25f3025a070e.js.map" }, "js/org.27a44f19269b37fa5fe6.js.map": { "name": "js/org.27a44f19269b37fa5fe6.js.map", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/js/org.27a44f19269b37fa5fe6.js.map", "publicPath": "/static/js/org.27a44f19269b37fa5fe6.js.map" }, "js/pdfjs.0de3de7f552746c41e31.js.map": { "name": "js/pdfjs.0de3de7f552746c41e31.js.map", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/js/pdfjs.0de3de7f552746c41e31.js.map", "publicPath": "/static/js/pdfjs.0de3de7f552746c41e31.js.map" }, "js/mathjax.82b6ebf86da778cadb7d.js.map": { "name": "js/mathjax.82b6ebf86da778cadb7d.js.map", "path": "/var/lib/jenkins/workspace/DWAPPS/pypi-upload/static/js/mathjax.82b6ebf86da778cadb7d.js.map", "publicPath": "/static/js/mathjax.82b6ebf86da778cadb7d.js.map" } }, "chunks": { "admin": [ "js/admin.dd251562dae83eb019a5.js" ], "auth": [ "css/auth.0336a94c2c02b4b2a4f4.css", "js/auth.7381ff7d9581af98cd05.js" ], "browse": [ "css/browse.6315ef52ed73df532bed.css", "js/browse.947bb7896a305103ef07.js" ], "guided_tour": [ "css/guided_tour.1de8b53f719cea9f465a.css", "js/guided_tour.9734aa27598765424c60.js" ], "origin": [ "css/origin.5b45e9e6e54fd51ee886.css", "js/origin.e2879000cacbf25db65a.js" ], "revision": [ "css/revision.5ddd36d69e1760bfa29d.css", "js/revision.53acc2dea637a557682c.js" ], "save": [ "js/save.9c62d3ca29fa3ae18dc3.js" ], "vault": [ "css/vault.25fc5883f848b48ffa5b.css", "js/vault.147cdb83270419445ab0.js" ], "vendors": [ "css/vendors.6ddb67bb1aade301093d.css", "js/vendors.90725ea29eaa3e73ee0c.js" ], "webapp": [ "css/webapp.524d6dc01c6a847b4d8d.css", "js/webapp.fdfedd73b82e041c3713.js" ] }, "publicPath": "/static/" } \ No newline at end of file diff --git a/swh.web.egg-info/PKG-INFO b/swh.web.egg-info/PKG-INFO index b47144ce..4361140c 100644 --- a/swh.web.egg-info/PKG-INFO +++ b/swh.web.egg-info/PKG-INFO @@ -1,206 +1,206 @@ Metadata-Version: 2.1 Name: swh.web -Version: 0.0.355 +Version: 0.0.356 Summary: Software Heritage Web UI Home-page: https://forge.softwareheritage.org/diffusion/DWUI/ Author: Software Heritage developers Author-email: swh-devel@inria.fr License: UNKNOWN Project-URL: Bug Reports, https://forge.softwareheritage.org/maniphest Project-URL: Funding, https://www.softwareheritage.org/donate Project-URL: Source, https://forge.softwareheritage.org/source/swh-web Project-URL: Documentation, https://docs.softwareheritage.org/devel/swh-web/ Platform: UNKNOWN Classifier: Programming Language :: Python :: 3 Classifier: Intended Audience :: Developers Classifier: License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+) Classifier: Operating System :: OS Independent Classifier: Development Status :: 5 - Production/Stable Classifier: Framework :: Django Requires-Python: >=3.7 Description-Content-Type: text/markdown Provides-Extra: testing License-File: LICENSE License-File: AUTHORS # swh-web This repository holds the development of Software Heritage web applications: * swh-web API (https://archive.softwareheritage.org/api): enables to query the content of the archive through HTTP requests and get responses in JSON or YAML. * swh-web browse (https://archive.softwareheritage.org/browse): graphical interface that eases the navigation in the archive. Documentation about how to use these components but also the details of their URI schemes can be found in the docs folder. The produced HTML documentation can be read and browsed at https://docs.softwareheritage.org/devel/swh-web/index.html. ## Technical details Those applications are powered by: * [Django Web Framework](https://www.djangoproject.com/) on the backend side with the following extensions enabled: * [django-rest-framework](http://www.django-rest-framework.org/) * [django-webpack-loader](https://github.com/owais/django-webpack-loader) * [django-js-reverse](http://django-js-reverse.readthedocs.io/en/latest/) * [webpack](https://webpack.js.org/) on the frontend side for better static assets management, including: * assets dependencies management and retrieval through [yarn](https://yarnpkg.com/en/) * linting of custom javascript code (through [eslint](https://eslint.org/)) and stylesheets (through [stylelint](https://stylelint.io/)) * use of [es6](http://es6-features.org) syntax and advanced javascript feature like [async/await](https://javascript.info/async-await) or [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) thanks to [babel](https://babeljs.io/) (es6 to es5 transpiler and polyfills provider) * assets minification (using [terser](https://github.com/terser-js/terser) and [cssnano](http://cssnano.co/)) but also dead code elimination for production use ## How to build, run and test ### Backend requirements First you will need [Python 3](https://www.python.org) and a complete [swh development environment](https://forge.softwareheritage.org/source/swh-environment/) installed. To run the backend, you need to have the following [Python 3 modules](requirements.txt) installed. To run the backend tests, the following [Python 3 modules](requirements-test.txt) are also required to be installed. One easy way to install them is to use the `pip` tool: ``` $ pip install -r requirements.txt -r requirements-test.txt ``` ### Frontend requirements To compile the frontend assets, you need to have [nodejs](https://nodejs.org/en/) >= 12.0.0 and [yarn](https://yarnpkg.com/en/) installed. If you are on Debian, you can easily install an up to date nodejs from the [nodesource](https://github.com/nodesource/distributions/blob/master/README.md) repository. Packages for yarn can be installed by following [these instructions](https://yarnpkg.com/en/docs/install#debian-stable). Alternatively, you can install yarn with `npm install yarn`, and add `YARN=node_modules/yarn/bin/yarn` as argument whenever you run `make`. Please note that the static assets bundles generated by webpack are not stored in the git repository. Follow the instructions below in order to generate them in order to be able to run the frontend part of the web applications. ### Make targets to execute the applications Below is the list of available make targets that can be executed from the root directory of swh-web in order to build and/or execute the web applications under various configurations: * **run-django-webpack-devserver**: Compile and serve not optimized (without mignification and dead code elimination) frontend static assets using [webpack-dev-server](https://github.com/webpack/webpack-dev-server) and run django server with development settings. This is the recommended target to use when developing swh-web as it enables automatic reloading of backend and frontend part of the applications when modifying source files (*.py, *.js, *.css, *.html). * **run-django-webpack-dev**: Compile not optimized (no minification, no dead code elimination) frontend static assets using webpack and run django server with development settings. This is the recommended target when one only wants to develop the backend side of the application. * **run-django-webpack-prod**: Compile optimized (with minification and dead code elimination) frontend static assets using webpack and run django server with production settings. This is useful to test the applications in production mode (with the difference that static assets are served by django). Production settings notably enable advanced django caching and you will need to have [memcached](https://memcached.org/) installed for that feature to work. * **run-django-server-dev**: Run the django server with development settings but without compiling frontend static assets through webpack. * **run-django-server-prod**: Run the django server with production settings but without compiling frontend static assets through webpack. * **run-gunicorn-server**: Run the web applications with production settings in a [gunicorn](http://gunicorn.org/) worker as they will be in real production environment. Once one of these targets executed, the web applications can be executed by pointing your browser to http://localhost:5004. ### Make targets to test the applications Some make targets are also available to easily execute the backend and frontend tests of the Software Heritage web applications. The backend tests are powered by the [pytest](https://docs.pytest.org/en/latest/) and [hypothesis](https://hypothesis.readthedocs.io/en/latest/) frameworks while the frontend ones rely on the use of the [cypress](https://www.cypress.io/) tool. Below is the exhaustive list of those targets: * **test**: execute the backend tests using a fast hypothesis profile (only one input example will be provided for each test) * **test-full**: execute the backend tests using a slower hypothesis profile (one hundred of input examples will be provided for each test which helps spotting possible bugs) * **test-frontend**: execute the frontend tests using cypress in headless mode but with some slow test suites disabled * **test-frontend-full**: execute the frontend tests using cypress in headless mode with all test suites enabled * **test-frontend-ui**: execute the frontend tests using the cypress GUI but with some slow test suites disabled * **test-frontend-full-ui**: execute the frontend tests using the cypress GUI with all test suites enabled ### Yarn targets Below is a list of available yarn targets in order to only execute the frontend static assets compilation (no web server will be executed): * **build-dev**: compile not optimized (without mignification and dead code elimination) frontend static assets and store the results in the `swh/web/static` folder. * **build**: compile optimized (with mignification and dead code elimination) frontend static assets and store the results in the `swh/web/static` folder. **The build target must be executed prior performing the Debian packaging of swh-web** in order for the package to contain the optimized assets dedicated to production environment. To execute these targets, issue the following command: ``` $ yarn ``` diff --git a/swh.web.egg-info/SOURCES.txt b/swh.web.egg-info/SOURCES.txt index f37da997..d97dd51d 100644 --- a/swh.web.egg-info/SOURCES.txt +++ b/swh.web.egg-info/SOURCES.txt @@ -1,1950 +1,1956 @@ .gitignore .pre-commit-config.yaml AUTHORS CODE_OF_CONDUCT.md CONTRIBUTORS LICENSE MANIFEST.in Makefile Makefile.local README.md conftest.py cypress.json mypy.ini package.json pyproject.toml pytest.ini requirements-swh.txt requirements-test.txt requirements.txt setup.cfg setup.py tox.ini yarn.lock assets/config/.bootstraprc assets/config/.eslintignore assets/config/.eslintrc assets/config/bootstrap-pre-customize.scss assets/config/webpack.config.development.js assets/config/webpack.config.production.js assets/config/webpack-plugins/dump-highlightjs-languages-data-plugin.js assets/config/webpack-plugins/fix-swh-source-maps-webpack-plugin.js assets/config/webpack-plugins/generate-weblabels-webpack-plugin/README.md assets/config/webpack-plugins/generate-weblabels-webpack-plugin/index.js assets/config/webpack-plugins/generate-weblabels-webpack-plugin/jslicenses.ejs assets/config/webpack-plugins/generate-weblabels-webpack-plugin/plugin-options-schema.json assets/config/webpack-plugins/generate-weblabels-webpack-plugin/spdx-licenses-mapping.js assets/src/bundles/admin/deposit.js assets/src/bundles/admin/index.js assets/src/bundles/admin/origin-save.js assets/src/bundles/auth/auth.css assets/src/bundles/auth/index.js assets/src/bundles/browse/breadcrumbs.css assets/src/bundles/browse/browse-utils.js assets/src/bundles/browse/browse.css assets/src/bundles/browse/content.css assets/src/bundles/browse/index.js assets/src/bundles/browse/origin-search.js assets/src/bundles/browse/snapshot-navigation.css assets/src/bundles/browse/snapshot-navigation.js assets/src/bundles/browse/swhid-utils.js assets/src/bundles/guided_tour/guided-tour-steps.yaml assets/src/bundles/guided_tour/index.js assets/src/bundles/guided_tour/swh-introjs.css assets/src/bundles/origin/index.js assets/src/bundles/origin/utils.js assets/src/bundles/origin/visits-calendar.js assets/src/bundles/origin/visits-histogram.js assets/src/bundles/origin/visits-reporting.css assets/src/bundles/origin/visits-reporting.js assets/src/bundles/revision/diff-panel.ejs assets/src/bundles/revision/diff-utils.js assets/src/bundles/revision/index.js assets/src/bundles/revision/log-utils.js assets/src/bundles/revision/revision.css assets/src/bundles/save/artifact-form-row.ejs assets/src/bundles/save/index.js assets/src/bundles/vault/index.js assets/src/bundles/vault/vault-create-tasks.js assets/src/bundles/vault/vault-table-row.ejs assets/src/bundles/vault/vault-ui.js assets/src/bundles/vault/vault.css assets/src/bundles/vendors/datatables.css assets/src/bundles/vendors/elementsfrompoint-polyfill.js assets/src/bundles/vendors/index.js assets/src/bundles/webapp/badges.js assets/src/bundles/webapp/breadcrumbs.css assets/src/bundles/webapp/code-highlighting.js assets/src/bundles/webapp/coverage.css assets/src/bundles/webapp/history-counters.css assets/src/bundles/webapp/history-counters.js assets/src/bundles/webapp/iframes.js assets/src/bundles/webapp/index.js assets/src/bundles/webapp/math-typesetting.js assets/src/bundles/webapp/notebook-rendering.js assets/src/bundles/webapp/notebook.css assets/src/bundles/webapp/pdf-rendering.js assets/src/bundles/webapp/readme-rendering.js assets/src/bundles/webapp/sentry.js assets/src/bundles/webapp/status-widget.css assets/src/bundles/webapp/status-widget.js assets/src/bundles/webapp/webapp-utils.js assets/src/bundles/webapp/webapp.css assets/src/bundles/webapp/xss-filtering.js assets/src/thirdparty/jquery.tabSlideOut/LICENSE assets/src/thirdparty/jquery.tabSlideOut/jquery.tabSlideOut.css assets/src/thirdparty/jquery.tabSlideOut/jquery.tabSlideOut.js assets/src/utils/constants.js assets/src/utils/d3.js assets/src/utils/functions.js assets/src/utils/highlightjs.css assets/src/utils/highlightjs.js assets/src/utils/hljs-swh-theme.css assets/src/utils/mathjax.js assets/src/utils/org.css assets/src/utils/org.js assets/src/utils/scrolling.js assets/src/utils/showdown.css assets/src/utils/showdown.js cypress/fixtures/example.json cypress/fixtures/origin-save.json cypress/fixtures/save-task-info.json cypress/fixtures/swh_1_dir_cd19126d815470b28919d64b2a8e6a3e37f900dd.tar.gz cypress/fixtures/swh_1_rev_1c480a4573d2a003fc2630c21c2b25829de49972.git.tar cypress/integration/admin.spec.js cypress/integration/api-tokens.spec.js cypress/integration/back-to-top.spec.js cypress/integration/code-highlighting.spec.js cypress/integration/content-display.spec.js cypress/integration/content-rendering.spec.js cypress/integration/deposit-admin.spec.js cypress/integration/directory.spec.js cypress/integration/errors.spec.js cypress/integration/guided-tour.spec.js cypress/integration/home.spec.js cypress/integration/language-select.spec.js cypress/integration/layout.spec.js cypress/integration/origin-browse.spec.js cypress/integration/origin-save.spec.js cypress/integration/origin-search.spec.js cypress/integration/origin-visits.spec.js cypress/integration/persistent-identifiers.spec.js cypress/integration/revision-diff.spec.js cypress/integration/sidebar.spec.js cypress/integration/vault.spec.js cypress/plugins/index.js cypress/support/index.js cypress/utils/index.js docs/.gitignore docs/Makefile docs/conf.py docs/developers-info.rst docs/index.rst docs/uri-scheme-api-content.rst docs/uri-scheme-api-directory.rst docs/uri-scheme-api-graph.rst docs/uri-scheme-api-identifiers.rst docs/uri-scheme-api-origin.rst docs/uri-scheme-api-release.rst docs/uri-scheme-api-revision.rst docs/uri-scheme-api-snapshot.rst docs/uri-scheme-api-stat.rst docs/uri-scheme-api-vault.rst docs/uri-scheme-api.rst docs/uri-scheme-browse-content.rst docs/uri-scheme-browse-directory.rst docs/uri-scheme-browse-origin.rst docs/uri-scheme-browse-release.rst docs/uri-scheme-browse-revision.rst docs/uri-scheme-browse-snapshot.rst docs/uri-scheme-browse.rst docs/uri-scheme-identifiers.rst docs/uri-scheme-misc.rst docs/_static/.placeholder docs/_templates/.placeholder static/robots.txt static/webpack-stats.json static/css/auth.0336a94c2c02b4b2a4f4.css static/css/auth.0336a94c2c02b4b2a4f4.css.map static/css/browse.6315ef52ed73df532bed.css static/css/browse.6315ef52ed73df532bed.css.map static/css/guided_tour.1de8b53f719cea9f465a.css static/css/guided_tour.1de8b53f719cea9f465a.css.map static/css/highlightjs.ae43064ab38a65a04d81.css static/css/highlightjs.ae43064ab38a65a04d81.css.map static/css/org.6851b70c924e28f6bf51.css static/css/org.6851b70c924e28f6bf51.css.map static/css/origin.5b45e9e6e54fd51ee886.css static/css/origin.5b45e9e6e54fd51ee886.css.map static/css/revision.5ddd36d69e1760bfa29d.css static/css/revision.5ddd36d69e1760bfa29d.css.map static/css/showdown.426fbf6a7a6653fd4cbb.css static/css/showdown.426fbf6a7a6653fd4cbb.css.map static/css/vault.25fc5883f848b48ffa5b.css static/css/vault.25fc5883f848b48ffa5b.css.map static/css/vendors.6ddb67bb1aade301093d.css static/css/vendors.6ddb67bb1aade301093d.css.map static/css/webapp.524d6dc01c6a847b4d8d.css static/css/webapp.524d6dc01c6a847b4d8d.css.map static/fonts/MathJax_AMS-Regular.woff static/fonts/MathJax_Calligraphic-Bold.woff static/fonts/MathJax_Calligraphic-Regular.woff static/fonts/MathJax_Fraktur-Bold.woff static/fonts/MathJax_Fraktur-Regular.woff static/fonts/MathJax_Main-Bold.woff static/fonts/MathJax_Main-Italic.woff static/fonts/MathJax_Main-Regular.woff static/fonts/MathJax_Math-BoldItalic.woff static/fonts/MathJax_Math-Italic.woff static/fonts/MathJax_Math-Regular.woff static/fonts/MathJax_SansSerif-Bold.woff static/fonts/MathJax_SansSerif-Italic.woff static/fonts/MathJax_SansSerif-Regular.woff static/fonts/MathJax_Script-Regular.woff static/fonts/MathJax_Size1-Regular.woff static/fonts/MathJax_Size2-Regular.woff static/fonts/MathJax_Size3-Regular.woff static/fonts/MathJax_Size4-Regular.woff static/fonts/MathJax_Typewriter-Regular.woff static/fonts/MathJax_Vector-Bold.woff static/fonts/MathJax_Vector-Regular.woff static/fonts/MathJax_Zero.woff static/fonts/alegreya-latin-400.woff static/fonts/alegreya-latin-400.woff2 static/fonts/alegreya-latin-400italic.woff static/fonts/alegreya-latin-400italic.woff2 static/fonts/alegreya-latin-500.woff static/fonts/alegreya-latin-500.woff2 static/fonts/alegreya-latin-500italic.woff static/fonts/alegreya-latin-500italic.woff2 static/fonts/alegreya-latin-700.woff static/fonts/alegreya-latin-700.woff2 static/fonts/alegreya-latin-700italic.woff static/fonts/alegreya-latin-700italic.woff2 static/fonts/alegreya-latin-800.woff static/fonts/alegreya-latin-800.woff2 static/fonts/alegreya-latin-800italic.woff static/fonts/alegreya-latin-800italic.woff2 static/fonts/alegreya-latin-900.woff static/fonts/alegreya-latin-900.woff2 static/fonts/alegreya-latin-900italic.woff static/fonts/alegreya-latin-900italic.woff2 static/fonts/alegreya-sans-latin-100.woff static/fonts/alegreya-sans-latin-100.woff2 static/fonts/alegreya-sans-latin-100italic.woff static/fonts/alegreya-sans-latin-100italic.woff2 static/fonts/alegreya-sans-latin-300.woff static/fonts/alegreya-sans-latin-300.woff2 static/fonts/alegreya-sans-latin-300italic.woff static/fonts/alegreya-sans-latin-300italic.woff2 static/fonts/alegreya-sans-latin-400.woff static/fonts/alegreya-sans-latin-400.woff2 static/fonts/alegreya-sans-latin-400italic.woff static/fonts/alegreya-sans-latin-400italic.woff2 static/fonts/alegreya-sans-latin-500.woff static/fonts/alegreya-sans-latin-500.woff2 static/fonts/alegreya-sans-latin-500italic.woff static/fonts/alegreya-sans-latin-500italic.woff2 static/fonts/alegreya-sans-latin-700.woff static/fonts/alegreya-sans-latin-700.woff2 static/fonts/alegreya-sans-latin-700italic.woff static/fonts/alegreya-sans-latin-700italic.woff2 static/fonts/alegreya-sans-latin-800.woff static/fonts/alegreya-sans-latin-800.woff2 static/fonts/alegreya-sans-latin-800italic.woff static/fonts/alegreya-sans-latin-800italic.woff2 static/fonts/alegreya-sans-latin-900.woff static/fonts/alegreya-sans-latin-900.woff2 static/fonts/alegreya-sans-latin-900italic.woff static/fonts/alegreya-sans-latin-900italic.woff2 static/fonts/materialdesignicons-webfont.eot static/fonts/materialdesignicons-webfont.ttf static/fonts/materialdesignicons-webfont.woff static/fonts/materialdesignicons-webfont.woff2 static/img/arrow-up-small.png static/img/swh-donor.png static/img/swh-logo-white.svg static/img/swh-logo.png static/img/swh-logo.svg static/img/swh-spinner-small.gif static/img/swh-spinner.gif static/img/swh-vault.png static/img/icons/swh-logo-32x32.png static/img/icons/swh-logo-archive-180x180.png static/img/icons/swh-logo-archive-192x192.png static/img/icons/swh-logo-archive-270x270.png static/img/logos/bitbucket.png static/img/logos/cgit.png static/img/logos/cran.png static/img/logos/debian.png static/img/logos/elife.png static/img/logos/gitea.png static/img/logos/github.png static/img/logos/gitlab.png static/img/logos/gitorious.png static/img/logos/gnu.png static/img/logos/googlecode.png static/img/logos/guix.png static/img/logos/hal.png static/img/logos/heptapod.png static/img/logos/inria.jpg static/img/logos/ipol.png static/img/logos/launchpad.png static/img/logos/nixos.png static/img/logos/npm.png static/img/logos/opam.png static/img/logos/phabricator.png static/img/logos/pypi.png static/img/logos/sourceforge.png static/img/thirdParty/chosen-sprite.png static/img/thirdParty/chosen-sprite@2x.png static/js/admin.dd251562dae83eb019a5.js static/js/admin.dd251562dae83eb019a5.js.LICENSE.txt static/js/admin.dd251562dae83eb019a5.js.map static/js/auth.7381ff7d9581af98cd05.js static/js/auth.7381ff7d9581af98cd05.js.LICENSE.txt static/js/auth.7381ff7d9581af98cd05.js.map static/js/browse.947bb7896a305103ef07.js static/js/browse.947bb7896a305103ef07.js.LICENSE.txt static/js/browse.947bb7896a305103ef07.js.map static/js/d3.9fbc8c4f808d6305db8c.js static/js/d3.9fbc8c4f808d6305db8c.js.map static/js/guided_tour.9734aa27598765424c60.js static/js/guided_tour.9734aa27598765424c60.js.LICENSE.txt static/js/guided_tour.9734aa27598765424c60.js.map static/js/highlightjs.e1894dff356e09d44fbb.js static/js/highlightjs.e1894dff356e09d44fbb.js.LICENSE.txt static/js/highlightjs.e1894dff356e09d44fbb.js.map static/js/mathjax.82b6ebf86da778cadb7d.js static/js/mathjax.82b6ebf86da778cadb7d.js.map static/js/org.27a44f19269b37fa5fe6.js static/js/org.27a44f19269b37fa5fe6.js.map static/js/origin.e2879000cacbf25db65a.js static/js/origin.e2879000cacbf25db65a.js.map static/js/pdf.worker.min.js static/js/pdf.worker.min.js.LICENSE.txt static/js/pdfjs.0de3de7f552746c41e31.js static/js/pdfjs.0de3de7f552746c41e31.js.map static/js/revision.53acc2dea637a557682c.js static/js/revision.53acc2dea637a557682c.js.LICENSE.txt static/js/revision.53acc2dea637a557682c.js.map static/js/save.9c62d3ca29fa3ae18dc3.js static/js/save.9c62d3ca29fa3ae18dc3.js.LICENSE.txt static/js/save.9c62d3ca29fa3ae18dc3.js.map static/js/showdown.c33d171d25f3025a070e.js static/js/showdown.c33d171d25f3025a070e.js.LICENSE.txt static/js/showdown.c33d171d25f3025a070e.js.map static/js/vault.147cdb83270419445ab0.js static/js/vault.147cdb83270419445ab0.js.LICENSE.txt static/js/vault.147cdb83270419445ab0.js.map static/js/vendors.90725ea29eaa3e73ee0c.js static/js/vendors.90725ea29eaa3e73ee0c.js.LICENSE.txt static/js/vendors.90725ea29eaa3e73ee0c.js.map static/js/webapp.fdfedd73b82e041c3713.js static/js/webapp.fdfedd73b82e041c3713.js.LICENSE.txt static/js/webapp.fdfedd73b82e041c3713.js.map static/json/highlightjs-languages.json static/jssources/LICENSE.txt static/jssources/jslicenses.json static/jssources/@babel/runtime/LICENSE.txt static/jssources/@babel/runtime/helpers/esm/asyncToGenerator.js static/jssources/@babel/runtime/regenerator/index.js static/jssources/@sentry/browser/LICENSE.txt static/jssources/@sentry/browser/esm/backend.js static/jssources/@sentry/browser/esm/client.js static/jssources/@sentry/browser/esm/eventbuilder.js static/jssources/@sentry/browser/esm/helpers.js static/jssources/@sentry/browser/esm/parsers.js static/jssources/@sentry/browser/esm/sdk.js static/jssources/@sentry/browser/esm/tracekit.js static/jssources/@sentry/browser/esm/integrations/breadcrumbs.js static/jssources/@sentry/browser/esm/integrations/dedupe.js static/jssources/@sentry/browser/esm/integrations/globalhandlers.js static/jssources/@sentry/browser/esm/integrations/linkederrors.js static/jssources/@sentry/browser/esm/integrations/trycatch.js static/jssources/@sentry/browser/esm/integrations/useragent.js static/jssources/@sentry/browser/esm/transports/base.js static/jssources/@sentry/browser/esm/transports/fetch.js static/jssources/@sentry/browser/esm/transports/utils.js static/jssources/@sentry/browser/esm/transports/xhr.js static/jssources/@sentry/core/LICENSE.txt static/jssources/@sentry/core/esm/api.js static/jssources/@sentry/core/esm/basebackend.js static/jssources/@sentry/core/esm/baseclient.js static/jssources/@sentry/core/esm/integration.js static/jssources/@sentry/core/esm/request.js static/jssources/@sentry/core/esm/sdk.js static/jssources/@sentry/core/esm/version.js static/jssources/@sentry/core/esm/integrations/functiontostring.js static/jssources/@sentry/core/esm/integrations/inboundfilters.js static/jssources/@sentry/core/esm/transports/noop.js static/jssources/@sentry/hub/LICENSE.txt static/jssources/@sentry/hub/esm/hub.js static/jssources/@sentry/hub/esm/scope.js static/jssources/@sentry/hub/esm/session.js static/jssources/@sentry/minimal/LICENSE.txt static/jssources/@sentry/minimal/esm/index.js static/jssources/@sentry/types/LICENSE.txt static/jssources/@sentry/types/esm/severity.js static/jssources/@sentry/utils/LICENSE.txt static/jssources/@sentry/utils/esm/async.js static/jssources/@sentry/utils/esm/browser.js static/jssources/@sentry/utils/esm/dsn.js static/jssources/@sentry/utils/esm/env.js static/jssources/@sentry/utils/esm/error.js static/jssources/@sentry/utils/esm/global.js static/jssources/@sentry/utils/esm/instrument.js static/jssources/@sentry/utils/esm/is.js static/jssources/@sentry/utils/esm/logger.js static/jssources/@sentry/utils/esm/memo.js static/jssources/@sentry/utils/esm/misc.js static/jssources/@sentry/utils/esm/node.js static/jssources/@sentry/utils/esm/object.js static/jssources/@sentry/utils/esm/polyfill.js static/jssources/@sentry/utils/esm/promisebuffer.js static/jssources/@sentry/utils/esm/severity.js static/jssources/@sentry/utils/esm/stacktrace.js static/jssources/@sentry/utils/esm/status.js static/jssources/@sentry/utils/esm/string.js static/jssources/@sentry/utils/esm/supports.js static/jssources/@sentry/utils/esm/syncpromise.js static/jssources/@sentry/utils/esm/time.js static/jssources/admin-lte/LICENSE.txt static/jssources/admin-lte/dist/js/adminlte.js static/jssources/ansi_up/LICENSE.txt static/jssources/ansi_up/ansi_up.js static/jssources/assets/src/bundles/admin/deposit.js static/jssources/assets/src/bundles/admin/index.js static/jssources/assets/src/bundles/admin/origin-save.js static/jssources/assets/src/bundles/auth/index.js static/jssources/assets/src/bundles/browse/browse-utils.js static/jssources/assets/src/bundles/browse/index.js static/jssources/assets/src/bundles/browse/origin-search.js static/jssources/assets/src/bundles/browse/snapshot-navigation.js static/jssources/assets/src/bundles/browse/swhid-utils.js static/jssources/assets/src/bundles/guided_tour/index.js static/jssources/assets/src/bundles/origin/index.js static/jssources/assets/src/bundles/origin/utils.js static/jssources/assets/src/bundles/origin/visits-calendar.js static/jssources/assets/src/bundles/origin/visits-histogram.js static/jssources/assets/src/bundles/origin/visits-reporting.js static/jssources/assets/src/bundles/revision/diff-panel.ejs static/jssources/assets/src/bundles/revision/diff-utils.js static/jssources/assets/src/bundles/revision/index.js static/jssources/assets/src/bundles/revision/log-utils.js static/jssources/assets/src/bundles/save/artifact-form-row.ejs static/jssources/assets/src/bundles/save/index.js static/jssources/assets/src/bundles/vault/index.js static/jssources/assets/src/bundles/vault/vault-create-tasks.js static/jssources/assets/src/bundles/vault/vault-table-row.ejs static/jssources/assets/src/bundles/vault/vault-ui.js static/jssources/assets/src/bundles/vendors/elementsfrompoint-polyfill.js static/jssources/assets/src/bundles/vendors/index.js static/jssources/assets/src/bundles/webapp/badges.js static/jssources/assets/src/bundles/webapp/code-highlighting.js static/jssources/assets/src/bundles/webapp/history-counters.js static/jssources/assets/src/bundles/webapp/iframes.js static/jssources/assets/src/bundles/webapp/index.js static/jssources/assets/src/bundles/webapp/math-typesetting.js static/jssources/assets/src/bundles/webapp/notebook-rendering.js static/jssources/assets/src/bundles/webapp/pdf-rendering.js static/jssources/assets/src/bundles/webapp/readme-rendering.js static/jssources/assets/src/bundles/webapp/sentry.js static/jssources/assets/src/bundles/webapp/status-widget.js static/jssources/assets/src/bundles/webapp/webapp-utils.js static/jssources/assets/src/bundles/webapp/xss-filtering.js static/jssources/assets/src/thirdparty/jquery.tabSlideOut/LICENSE.txt static/jssources/assets/src/thirdparty/jquery.tabSlideOut/jquery.tabSlideOut.js static/jssources/assets/src/utils/constants.js static/jssources/assets/src/utils/d3.js static/jssources/assets/src/utils/functions.js static/jssources/assets/src/utils/highlightjs.js static/jssources/assets/src/utils/mathjax.js static/jssources/assets/src/utils/org.js static/jssources/assets/src/utils/scrolling.js static/jssources/assets/src/utils/showdown.js static/jssources/bootstrap/LICENSE.txt static/jssources/bootstrap/js/dist/alert.js static/jssources/bootstrap/js/dist/button.js static/jssources/bootstrap/js/dist/carousel.js static/jssources/bootstrap/js/dist/collapse.js static/jssources/bootstrap/js/dist/dropdown.js static/jssources/bootstrap/js/dist/modal.js static/jssources/bootstrap/js/dist/popover.js static/jssources/bootstrap/js/dist/scrollspy.js static/jssources/bootstrap/js/dist/tab.js static/jssources/bootstrap/js/dist/tooltip.js static/jssources/bootstrap/js/dist/util.js static/jssources/chosen-js/LICENSE.md static/jssources/chosen-js/chosen.jquery.js static/jssources/clipboard/LICENSE.txt static/jssources/clipboard/dist/clipboard.js static/jssources/core-js/LICENSE.txt static/jssources/core-js/internals/a-callable.js static/jssources/core-js/internals/a-constructor.js static/jssources/core-js/internals/a-possible-prototype.js static/jssources/core-js/internals/add-to-unscopables.js static/jssources/core-js/internals/advance-string-index.js static/jssources/core-js/internals/an-instance.js static/jssources/core-js/internals/an-object.js static/jssources/core-js/internals/array-buffer-native.js static/jssources/core-js/internals/array-buffer-non-extensible.js static/jssources/core-js/internals/array-buffer-view-core.js static/jssources/core-js/internals/array-buffer.js static/jssources/core-js/internals/array-copy-within.js static/jssources/core-js/internals/array-fill.js static/jssources/core-js/internals/array-for-each.js static/jssources/core-js/internals/array-from-constructor-and-list.js static/jssources/core-js/internals/array-from.js static/jssources/core-js/internals/array-includes.js static/jssources/core-js/internals/array-iteration.js static/jssources/core-js/internals/array-last-index-of.js static/jssources/core-js/internals/array-method-has-species-support.js static/jssources/core-js/internals/array-method-is-strict.js static/jssources/core-js/internals/array-reduce.js static/jssources/core-js/internals/array-slice-simple.js static/jssources/core-js/internals/array-slice.js static/jssources/core-js/internals/array-sort.js static/jssources/core-js/internals/array-species-constructor.js static/jssources/core-js/internals/array-species-create.js static/jssources/core-js/internals/base64-map.js static/jssources/core-js/internals/call-with-safe-iteration-closing.js static/jssources/core-js/internals/check-correctness-of-iteration.js static/jssources/core-js/internals/classof-raw.js static/jssources/core-js/internals/classof.js static/jssources/core-js/internals/clear-error-stack.js static/jssources/core-js/internals/collection-strong.js static/jssources/core-js/internals/collection-weak.js static/jssources/core-js/internals/collection.js static/jssources/core-js/internals/copy-constructor-properties.js static/jssources/core-js/internals/correct-is-regexp-logic.js static/jssources/core-js/internals/correct-prototype-getter.js static/jssources/core-js/internals/create-html.js static/jssources/core-js/internals/create-iterator-constructor.js static/jssources/core-js/internals/create-non-enumerable-property.js static/jssources/core-js/internals/create-property-descriptor.js static/jssources/core-js/internals/create-property.js static/jssources/core-js/internals/date-to-iso-string.js static/jssources/core-js/internals/date-to-primitive.js static/jssources/core-js/internals/define-iterator.js static/jssources/core-js/internals/define-well-known-symbol.js static/jssources/core-js/internals/descriptors.js static/jssources/core-js/internals/document-create-element.js static/jssources/core-js/internals/dom-exception-constants.js static/jssources/core-js/internals/dom-iterables.js static/jssources/core-js/internals/dom-token-list-prototype.js static/jssources/core-js/internals/engine-ff-version.js static/jssources/core-js/internals/engine-is-browser.js static/jssources/core-js/internals/engine-is-ie-or-edge.js static/jssources/core-js/internals/engine-is-ios-pebble.js static/jssources/core-js/internals/engine-is-ios.js static/jssources/core-js/internals/engine-is-node.js static/jssources/core-js/internals/engine-is-webos-webkit.js static/jssources/core-js/internals/engine-user-agent.js static/jssources/core-js/internals/engine-v8-version.js static/jssources/core-js/internals/engine-webkit-version.js static/jssources/core-js/internals/enum-bug-keys.js static/jssources/core-js/internals/error-stack-installable.js static/jssources/core-js/internals/error-to-string.js static/jssources/core-js/internals/export.js static/jssources/core-js/internals/fails.js static/jssources/core-js/internals/fix-regexp-well-known-symbol-logic.js static/jssources/core-js/internals/flatten-into-array.js static/jssources/core-js/internals/freezing.js static/jssources/core-js/internals/function-apply.js static/jssources/core-js/internals/function-bind-context.js static/jssources/core-js/internals/function-bind-native.js static/jssources/core-js/internals/function-bind.js static/jssources/core-js/internals/function-call.js static/jssources/core-js/internals/function-name.js static/jssources/core-js/internals/function-uncurry-this.js static/jssources/core-js/internals/get-built-in.js static/jssources/core-js/internals/get-iterator-method.js static/jssources/core-js/internals/get-iterator.js static/jssources/core-js/internals/get-method.js static/jssources/core-js/internals/get-substitution.js static/jssources/core-js/internals/global.js static/jssources/core-js/internals/has-own-property.js static/jssources/core-js/internals/hidden-keys.js static/jssources/core-js/internals/host-report-errors.js static/jssources/core-js/internals/html.js static/jssources/core-js/internals/ie8-dom-define.js static/jssources/core-js/internals/ieee754.js static/jssources/core-js/internals/indexed-object.js static/jssources/core-js/internals/inherit-if-required.js static/jssources/core-js/internals/inspect-source.js static/jssources/core-js/internals/install-error-cause.js static/jssources/core-js/internals/internal-metadata.js static/jssources/core-js/internals/internal-state.js static/jssources/core-js/internals/is-array-iterator-method.js static/jssources/core-js/internals/is-array.js static/jssources/core-js/internals/is-callable.js static/jssources/core-js/internals/is-constructor.js static/jssources/core-js/internals/is-data-descriptor.js static/jssources/core-js/internals/is-forced.js static/jssources/core-js/internals/is-integral-number.js static/jssources/core-js/internals/is-object.js static/jssources/core-js/internals/is-pure.js static/jssources/core-js/internals/is-regexp.js static/jssources/core-js/internals/is-symbol.js static/jssources/core-js/internals/iterate.js static/jssources/core-js/internals/iterator-close.js static/jssources/core-js/internals/iterators-core.js static/jssources/core-js/internals/iterators.js static/jssources/core-js/internals/length-of-array-like.js static/jssources/core-js/internals/math-expm1.js static/jssources/core-js/internals/math-fround.js static/jssources/core-js/internals/math-log10.js static/jssources/core-js/internals/math-log1p.js static/jssources/core-js/internals/math-sign.js static/jssources/core-js/internals/microtask.js static/jssources/core-js/internals/native-promise-constructor.js static/jssources/core-js/internals/native-symbol.js static/jssources/core-js/internals/native-url.js static/jssources/core-js/internals/native-weak-map.js static/jssources/core-js/internals/new-promise-capability.js static/jssources/core-js/internals/normalize-string-argument.js static/jssources/core-js/internals/not-a-regexp.js static/jssources/core-js/internals/number-is-finite.js static/jssources/core-js/internals/number-parse-float.js static/jssources/core-js/internals/number-parse-int.js static/jssources/core-js/internals/object-assign.js static/jssources/core-js/internals/object-create.js static/jssources/core-js/internals/object-define-properties.js static/jssources/core-js/internals/object-define-property.js static/jssources/core-js/internals/object-get-own-property-descriptor.js static/jssources/core-js/internals/object-get-own-property-names-external.js static/jssources/core-js/internals/object-get-own-property-names.js static/jssources/core-js/internals/object-get-own-property-symbols.js static/jssources/core-js/internals/object-get-prototype-of.js static/jssources/core-js/internals/object-is-extensible.js static/jssources/core-js/internals/object-is-prototype-of.js static/jssources/core-js/internals/object-keys-internal.js static/jssources/core-js/internals/object-keys.js static/jssources/core-js/internals/object-property-is-enumerable.js static/jssources/core-js/internals/object-prototype-accessors-forced.js static/jssources/core-js/internals/object-set-prototype-of.js static/jssources/core-js/internals/object-to-array.js static/jssources/core-js/internals/object-to-string.js static/jssources/core-js/internals/ordinary-to-primitive.js static/jssources/core-js/internals/own-keys.js static/jssources/core-js/internals/path.js static/jssources/core-js/internals/perform.js static/jssources/core-js/internals/promise-resolve.js static/jssources/core-js/internals/queue.js static/jssources/core-js/internals/redefine-all.js static/jssources/core-js/internals/redefine.js static/jssources/core-js/internals/regexp-exec-abstract.js static/jssources/core-js/internals/regexp-exec.js static/jssources/core-js/internals/regexp-flags.js static/jssources/core-js/internals/regexp-sticky-helpers.js static/jssources/core-js/internals/regexp-unsupported-dot-all.js static/jssources/core-js/internals/regexp-unsupported-ncg.js static/jssources/core-js/internals/require-object-coercible.js static/jssources/core-js/internals/same-value.js static/jssources/core-js/internals/set-global.js static/jssources/core-js/internals/set-species.js static/jssources/core-js/internals/set-to-string-tag.js static/jssources/core-js/internals/shared-key.js static/jssources/core-js/internals/shared-store.js static/jssources/core-js/internals/shared.js static/jssources/core-js/internals/species-constructor.js static/jssources/core-js/internals/string-html-forced.js static/jssources/core-js/internals/string-multibyte.js static/jssources/core-js/internals/string-pad-webkit-bug.js static/jssources/core-js/internals/string-pad.js static/jssources/core-js/internals/string-punycode-to-ascii.js static/jssources/core-js/internals/string-repeat.js static/jssources/core-js/internals/string-trim-forced.js static/jssources/core-js/internals/string-trim.js static/jssources/core-js/internals/task.js static/jssources/core-js/internals/this-number-value.js static/jssources/core-js/internals/to-absolute-index.js static/jssources/core-js/internals/to-index.js static/jssources/core-js/internals/to-indexed-object.js static/jssources/core-js/internals/to-integer-or-infinity.js static/jssources/core-js/internals/to-length.js static/jssources/core-js/internals/to-object.js static/jssources/core-js/internals/to-offset.js static/jssources/core-js/internals/to-positive-integer.js static/jssources/core-js/internals/to-primitive.js static/jssources/core-js/internals/to-property-key.js static/jssources/core-js/internals/to-string-tag-support.js static/jssources/core-js/internals/to-string.js static/jssources/core-js/internals/try-node-require.js static/jssources/core-js/internals/try-to-string.js static/jssources/core-js/internals/typed-array-constructor.js static/jssources/core-js/internals/typed-array-constructors-require-wrappers.js static/jssources/core-js/internals/typed-array-from-species-and-list.js static/jssources/core-js/internals/typed-array-from.js static/jssources/core-js/internals/typed-array-species-constructor.js static/jssources/core-js/internals/uid.js static/jssources/core-js/internals/use-symbol-as-uid.js static/jssources/core-js/internals/v8-prototype-define-bug.js static/jssources/core-js/internals/validate-arguments-length.js static/jssources/core-js/internals/well-known-symbol-wrapped.js static/jssources/core-js/internals/well-known-symbol.js static/jssources/core-js/internals/whitespaces.js static/jssources/core-js/internals/wrap-error-constructor-with-cause.js static/jssources/core-js/modules/es.aggregate-error.cause.js static/jssources/core-js/modules/es.aggregate-error.js static/jssources/core-js/modules/es.array-buffer.constructor.js static/jssources/core-js/modules/es.array-buffer.is-view.js static/jssources/core-js/modules/es.array-buffer.slice.js static/jssources/core-js/modules/es.array.at.js static/jssources/core-js/modules/es.array.concat.js static/jssources/core-js/modules/es.array.copy-within.js static/jssources/core-js/modules/es.array.every.js static/jssources/core-js/modules/es.array.fill.js static/jssources/core-js/modules/es.array.filter.js static/jssources/core-js/modules/es.array.find-index.js static/jssources/core-js/modules/es.array.find.js static/jssources/core-js/modules/es.array.flat-map.js static/jssources/core-js/modules/es.array.flat.js static/jssources/core-js/modules/es.array.for-each.js static/jssources/core-js/modules/es.array.from.js static/jssources/core-js/modules/es.array.includes.js static/jssources/core-js/modules/es.array.index-of.js static/jssources/core-js/modules/es.array.is-array.js static/jssources/core-js/modules/es.array.iterator.js static/jssources/core-js/modules/es.array.join.js static/jssources/core-js/modules/es.array.last-index-of.js static/jssources/core-js/modules/es.array.map.js static/jssources/core-js/modules/es.array.of.js static/jssources/core-js/modules/es.array.reduce-right.js static/jssources/core-js/modules/es.array.reduce.js static/jssources/core-js/modules/es.array.reverse.js static/jssources/core-js/modules/es.array.slice.js static/jssources/core-js/modules/es.array.some.js static/jssources/core-js/modules/es.array.sort.js static/jssources/core-js/modules/es.array.species.js static/jssources/core-js/modules/es.array.splice.js static/jssources/core-js/modules/es.array.unscopables.flat-map.js static/jssources/core-js/modules/es.array.unscopables.flat.js static/jssources/core-js/modules/es.data-view.js static/jssources/core-js/modules/es.date.get-year.js static/jssources/core-js/modules/es.date.now.js static/jssources/core-js/modules/es.date.set-year.js static/jssources/core-js/modules/es.date.to-gmt-string.js static/jssources/core-js/modules/es.date.to-iso-string.js static/jssources/core-js/modules/es.date.to-json.js static/jssources/core-js/modules/es.date.to-primitive.js static/jssources/core-js/modules/es.date.to-string.js static/jssources/core-js/modules/es.error.cause.js static/jssources/core-js/modules/es.error.to-string.js static/jssources/core-js/modules/es.escape.js static/jssources/core-js/modules/es.function.bind.js static/jssources/core-js/modules/es.function.has-instance.js static/jssources/core-js/modules/es.function.name.js static/jssources/core-js/modules/es.global-this.js static/jssources/core-js/modules/es.json.stringify.js static/jssources/core-js/modules/es.json.to-string-tag.js static/jssources/core-js/modules/es.map.js static/jssources/core-js/modules/es.math.acosh.js static/jssources/core-js/modules/es.math.asinh.js static/jssources/core-js/modules/es.math.atanh.js static/jssources/core-js/modules/es.math.cbrt.js static/jssources/core-js/modules/es.math.clz32.js static/jssources/core-js/modules/es.math.cosh.js static/jssources/core-js/modules/es.math.expm1.js static/jssources/core-js/modules/es.math.fround.js static/jssources/core-js/modules/es.math.hypot.js static/jssources/core-js/modules/es.math.imul.js static/jssources/core-js/modules/es.math.log10.js static/jssources/core-js/modules/es.math.log1p.js static/jssources/core-js/modules/es.math.log2.js static/jssources/core-js/modules/es.math.sign.js static/jssources/core-js/modules/es.math.sinh.js static/jssources/core-js/modules/es.math.tanh.js static/jssources/core-js/modules/es.math.to-string-tag.js static/jssources/core-js/modules/es.math.trunc.js static/jssources/core-js/modules/es.number.constructor.js static/jssources/core-js/modules/es.number.epsilon.js static/jssources/core-js/modules/es.number.is-finite.js static/jssources/core-js/modules/es.number.is-integer.js static/jssources/core-js/modules/es.number.is-nan.js static/jssources/core-js/modules/es.number.is-safe-integer.js static/jssources/core-js/modules/es.number.max-safe-integer.js static/jssources/core-js/modules/es.number.min-safe-integer.js static/jssources/core-js/modules/es.number.parse-float.js static/jssources/core-js/modules/es.number.parse-int.js static/jssources/core-js/modules/es.number.to-exponential.js static/jssources/core-js/modules/es.number.to-fixed.js static/jssources/core-js/modules/es.number.to-precision.js static/jssources/core-js/modules/es.object.assign.js static/jssources/core-js/modules/es.object.create.js static/jssources/core-js/modules/es.object.define-getter.js static/jssources/core-js/modules/es.object.define-properties.js static/jssources/core-js/modules/es.object.define-property.js static/jssources/core-js/modules/es.object.define-setter.js static/jssources/core-js/modules/es.object.entries.js static/jssources/core-js/modules/es.object.freeze.js static/jssources/core-js/modules/es.object.from-entries.js static/jssources/core-js/modules/es.object.get-own-property-descriptor.js static/jssources/core-js/modules/es.object.get-own-property-descriptors.js static/jssources/core-js/modules/es.object.get-own-property-names.js static/jssources/core-js/modules/es.object.get-prototype-of.js static/jssources/core-js/modules/es.object.has-own.js static/jssources/core-js/modules/es.object.is-extensible.js static/jssources/core-js/modules/es.object.is-frozen.js static/jssources/core-js/modules/es.object.is-sealed.js static/jssources/core-js/modules/es.object.is.js static/jssources/core-js/modules/es.object.keys.js static/jssources/core-js/modules/es.object.lookup-getter.js static/jssources/core-js/modules/es.object.lookup-setter.js static/jssources/core-js/modules/es.object.prevent-extensions.js static/jssources/core-js/modules/es.object.seal.js static/jssources/core-js/modules/es.object.set-prototype-of.js static/jssources/core-js/modules/es.object.to-string.js static/jssources/core-js/modules/es.object.values.js static/jssources/core-js/modules/es.parse-float.js static/jssources/core-js/modules/es.parse-int.js static/jssources/core-js/modules/es.promise.all-settled.js static/jssources/core-js/modules/es.promise.any.js static/jssources/core-js/modules/es.promise.finally.js static/jssources/core-js/modules/es.promise.js static/jssources/core-js/modules/es.reflect.apply.js static/jssources/core-js/modules/es.reflect.construct.js static/jssources/core-js/modules/es.reflect.define-property.js static/jssources/core-js/modules/es.reflect.delete-property.js static/jssources/core-js/modules/es.reflect.get-own-property-descriptor.js static/jssources/core-js/modules/es.reflect.get-prototype-of.js static/jssources/core-js/modules/es.reflect.get.js static/jssources/core-js/modules/es.reflect.has.js static/jssources/core-js/modules/es.reflect.is-extensible.js static/jssources/core-js/modules/es.reflect.own-keys.js static/jssources/core-js/modules/es.reflect.prevent-extensions.js static/jssources/core-js/modules/es.reflect.set-prototype-of.js static/jssources/core-js/modules/es.reflect.set.js static/jssources/core-js/modules/es.reflect.to-string-tag.js static/jssources/core-js/modules/es.regexp.constructor.js static/jssources/core-js/modules/es.regexp.dot-all.js static/jssources/core-js/modules/es.regexp.exec.js static/jssources/core-js/modules/es.regexp.flags.js static/jssources/core-js/modules/es.regexp.sticky.js static/jssources/core-js/modules/es.regexp.test.js static/jssources/core-js/modules/es.regexp.to-string.js static/jssources/core-js/modules/es.set.js static/jssources/core-js/modules/es.string.anchor.js static/jssources/core-js/modules/es.string.at-alternative.js static/jssources/core-js/modules/es.string.big.js static/jssources/core-js/modules/es.string.blink.js static/jssources/core-js/modules/es.string.bold.js static/jssources/core-js/modules/es.string.code-point-at.js static/jssources/core-js/modules/es.string.ends-with.js static/jssources/core-js/modules/es.string.fixed.js static/jssources/core-js/modules/es.string.fontcolor.js static/jssources/core-js/modules/es.string.fontsize.js static/jssources/core-js/modules/es.string.from-code-point.js static/jssources/core-js/modules/es.string.includes.js static/jssources/core-js/modules/es.string.italics.js static/jssources/core-js/modules/es.string.iterator.js static/jssources/core-js/modules/es.string.link.js static/jssources/core-js/modules/es.string.match-all.js static/jssources/core-js/modules/es.string.match.js static/jssources/core-js/modules/es.string.pad-end.js static/jssources/core-js/modules/es.string.pad-start.js static/jssources/core-js/modules/es.string.raw.js static/jssources/core-js/modules/es.string.repeat.js static/jssources/core-js/modules/es.string.replace-all.js static/jssources/core-js/modules/es.string.replace.js static/jssources/core-js/modules/es.string.search.js static/jssources/core-js/modules/es.string.small.js static/jssources/core-js/modules/es.string.split.js static/jssources/core-js/modules/es.string.starts-with.js static/jssources/core-js/modules/es.string.strike.js static/jssources/core-js/modules/es.string.sub.js static/jssources/core-js/modules/es.string.substr.js static/jssources/core-js/modules/es.string.sup.js static/jssources/core-js/modules/es.string.trim-end.js static/jssources/core-js/modules/es.string.trim-start.js static/jssources/core-js/modules/es.string.trim.js static/jssources/core-js/modules/es.symbol.async-iterator.js static/jssources/core-js/modules/es.symbol.description.js static/jssources/core-js/modules/es.symbol.has-instance.js static/jssources/core-js/modules/es.symbol.is-concat-spreadable.js static/jssources/core-js/modules/es.symbol.iterator.js static/jssources/core-js/modules/es.symbol.js static/jssources/core-js/modules/es.symbol.match-all.js static/jssources/core-js/modules/es.symbol.match.js static/jssources/core-js/modules/es.symbol.replace.js static/jssources/core-js/modules/es.symbol.search.js static/jssources/core-js/modules/es.symbol.species.js static/jssources/core-js/modules/es.symbol.split.js static/jssources/core-js/modules/es.symbol.to-primitive.js static/jssources/core-js/modules/es.symbol.to-string-tag.js static/jssources/core-js/modules/es.symbol.unscopables.js static/jssources/core-js/modules/es.typed-array.at.js static/jssources/core-js/modules/es.typed-array.copy-within.js static/jssources/core-js/modules/es.typed-array.every.js static/jssources/core-js/modules/es.typed-array.fill.js static/jssources/core-js/modules/es.typed-array.filter.js static/jssources/core-js/modules/es.typed-array.find-index.js static/jssources/core-js/modules/es.typed-array.find.js static/jssources/core-js/modules/es.typed-array.float32-array.js static/jssources/core-js/modules/es.typed-array.float64-array.js static/jssources/core-js/modules/es.typed-array.for-each.js static/jssources/core-js/modules/es.typed-array.from.js static/jssources/core-js/modules/es.typed-array.includes.js static/jssources/core-js/modules/es.typed-array.index-of.js static/jssources/core-js/modules/es.typed-array.int16-array.js static/jssources/core-js/modules/es.typed-array.int32-array.js static/jssources/core-js/modules/es.typed-array.int8-array.js static/jssources/core-js/modules/es.typed-array.iterator.js static/jssources/core-js/modules/es.typed-array.join.js static/jssources/core-js/modules/es.typed-array.last-index-of.js static/jssources/core-js/modules/es.typed-array.map.js static/jssources/core-js/modules/es.typed-array.of.js static/jssources/core-js/modules/es.typed-array.reduce-right.js static/jssources/core-js/modules/es.typed-array.reduce.js static/jssources/core-js/modules/es.typed-array.reverse.js static/jssources/core-js/modules/es.typed-array.set.js static/jssources/core-js/modules/es.typed-array.slice.js static/jssources/core-js/modules/es.typed-array.some.js static/jssources/core-js/modules/es.typed-array.sort.js static/jssources/core-js/modules/es.typed-array.subarray.js static/jssources/core-js/modules/es.typed-array.to-locale-string.js static/jssources/core-js/modules/es.typed-array.to-string.js static/jssources/core-js/modules/es.typed-array.uint16-array.js static/jssources/core-js/modules/es.typed-array.uint32-array.js static/jssources/core-js/modules/es.typed-array.uint8-array.js static/jssources/core-js/modules/es.typed-array.uint8-clamped-array.js static/jssources/core-js/modules/es.unescape.js static/jssources/core-js/modules/es.weak-map.js static/jssources/core-js/modules/es.weak-set.js static/jssources/core-js/modules/web.atob.js static/jssources/core-js/modules/web.btoa.js static/jssources/core-js/modules/web.dom-collections.for-each.js static/jssources/core-js/modules/web.dom-collections.iterator.js static/jssources/core-js/modules/web.dom-exception.constructor.js static/jssources/core-js/modules/web.dom-exception.stack.js static/jssources/core-js/modules/web.dom-exception.to-string-tag.js static/jssources/core-js/modules/web.immediate.js static/jssources/core-js/modules/web.queue-microtask.js static/jssources/core-js/modules/web.structured-clone.js static/jssources/core-js/modules/web.timers.js static/jssources/core-js/modules/web.url-search-params.js static/jssources/core-js/modules/web.url.js static/jssources/core-js/modules/web.url.to-json.js static/jssources/core-js/stable/index.js static/jssources/d3-array/LICENSE.txt static/jssources/d3-array/src/array.js static/jssources/d3-array/src/ascending.js static/jssources/d3-array/src/bin.js static/jssources/d3-array/src/bisect.js static/jssources/d3-array/src/bisector.js static/jssources/d3-array/src/constant.js static/jssources/d3-array/src/count.js static/jssources/d3-array/src/cross.js static/jssources/d3-array/src/cumsum.js static/jssources/d3-array/src/descending.js static/jssources/d3-array/src/deviation.js static/jssources/d3-array/src/difference.js static/jssources/d3-array/src/disjoint.js static/jssources/d3-array/src/every.js static/jssources/d3-array/src/extent.js static/jssources/d3-array/src/filter.js static/jssources/d3-array/src/fsum.js static/jssources/d3-array/src/greatest.js static/jssources/d3-array/src/greatestIndex.js static/jssources/d3-array/src/group.js static/jssources/d3-array/src/groupSort.js static/jssources/d3-array/src/identity.js static/jssources/d3-array/src/index.js static/jssources/d3-array/src/intersection.js static/jssources/d3-array/src/least.js static/jssources/d3-array/src/leastIndex.js static/jssources/d3-array/src/map.js static/jssources/d3-array/src/max.js static/jssources/d3-array/src/maxIndex.js static/jssources/d3-array/src/mean.js static/jssources/d3-array/src/median.js static/jssources/d3-array/src/merge.js static/jssources/d3-array/src/min.js static/jssources/d3-array/src/minIndex.js static/jssources/d3-array/src/mode.js static/jssources/d3-array/src/nice.js static/jssources/d3-array/src/number.js static/jssources/d3-array/src/pairs.js static/jssources/d3-array/src/permute.js static/jssources/d3-array/src/quantile.js static/jssources/d3-array/src/quickselect.js static/jssources/d3-array/src/range.js static/jssources/d3-array/src/reduce.js static/jssources/d3-array/src/reverse.js static/jssources/d3-array/src/scan.js static/jssources/d3-array/src/set.js static/jssources/d3-array/src/shuffle.js static/jssources/d3-array/src/some.js static/jssources/d3-array/src/sort.js static/jssources/d3-array/src/subset.js static/jssources/d3-array/src/sum.js static/jssources/d3-array/src/superset.js static/jssources/d3-array/src/ticks.js static/jssources/d3-array/src/transpose.js static/jssources/d3-array/src/union.js static/jssources/d3-array/src/variance.js static/jssources/d3-array/src/zip.js static/jssources/d3-array/src/threshold/freedmanDiaconis.js static/jssources/d3-array/src/threshold/scott.js static/jssources/d3-array/src/threshold/sturges.js static/jssources/d3-axis/LICENSE.txt static/jssources/d3-axis/src/axis.js static/jssources/d3-axis/src/identity.js static/jssources/d3-axis/src/index.js static/jssources/d3-color/LICENSE.txt static/jssources/d3-color/src/color.js static/jssources/d3-color/src/define.js static/jssources/d3-dispatch/LICENSE.txt static/jssources/d3-dispatch/src/dispatch.js static/jssources/d3-ease/LICENSE.txt static/jssources/d3-ease/src/cubic.js static/jssources/d3-format/LICENSE.txt static/jssources/d3-format/src/defaultLocale.js static/jssources/d3-format/src/exponent.js static/jssources/d3-format/src/formatDecimal.js static/jssources/d3-format/src/formatGroup.js static/jssources/d3-format/src/formatNumerals.js static/jssources/d3-format/src/formatPrefixAuto.js static/jssources/d3-format/src/formatRounded.js static/jssources/d3-format/src/formatSpecifier.js static/jssources/d3-format/src/formatTrim.js static/jssources/d3-format/src/formatTypes.js static/jssources/d3-format/src/identity.js static/jssources/d3-format/src/index.js static/jssources/d3-format/src/locale.js static/jssources/d3-format/src/precisionFixed.js static/jssources/d3-format/src/precisionPrefix.js static/jssources/d3-format/src/precisionRound.js static/jssources/d3-interpolate/LICENSE.txt static/jssources/d3-interpolate/src/array.js static/jssources/d3-interpolate/src/basis.js static/jssources/d3-interpolate/src/basisClosed.js static/jssources/d3-interpolate/src/color.js static/jssources/d3-interpolate/src/constant.js static/jssources/d3-interpolate/src/date.js static/jssources/d3-interpolate/src/number.js static/jssources/d3-interpolate/src/numberArray.js static/jssources/d3-interpolate/src/object.js static/jssources/d3-interpolate/src/piecewise.js static/jssources/d3-interpolate/src/rgb.js static/jssources/d3-interpolate/src/round.js static/jssources/d3-interpolate/src/string.js static/jssources/d3-interpolate/src/value.js static/jssources/d3-interpolate/src/transform/decompose.js static/jssources/d3-interpolate/src/transform/index.js static/jssources/d3-interpolate/src/transform/parse.js static/jssources/d3-path/LICENSE.txt static/jssources/d3-path/src/path.js static/jssources/d3-scale/LICENSE.txt static/jssources/d3-scale/src/band.js static/jssources/d3-scale/src/constant.js static/jssources/d3-scale/src/continuous.js static/jssources/d3-scale/src/diverging.js static/jssources/d3-scale/src/identity.js static/jssources/d3-scale/src/index.js static/jssources/d3-scale/src/init.js static/jssources/d3-scale/src/linear.js static/jssources/d3-scale/src/log.js static/jssources/d3-scale/src/nice.js static/jssources/d3-scale/src/number.js static/jssources/d3-scale/src/ordinal.js static/jssources/d3-scale/src/pow.js static/jssources/d3-scale/src/quantile.js static/jssources/d3-scale/src/quantize.js static/jssources/d3-scale/src/radial.js static/jssources/d3-scale/src/sequential.js static/jssources/d3-scale/src/sequentialQuantile.js static/jssources/d3-scale/src/symlog.js static/jssources/d3-scale/src/threshold.js static/jssources/d3-scale/src/tickFormat.js static/jssources/d3-scale/src/time.js static/jssources/d3-scale/src/utcTime.js static/jssources/d3-selection/LICENSE.txt static/jssources/d3-selection/src/array.js static/jssources/d3-selection/src/constant.js static/jssources/d3-selection/src/create.js static/jssources/d3-selection/src/creator.js static/jssources/d3-selection/src/index.js static/jssources/d3-selection/src/local.js static/jssources/d3-selection/src/matcher.js static/jssources/d3-selection/src/namespace.js static/jssources/d3-selection/src/namespaces.js static/jssources/d3-selection/src/pointer.js static/jssources/d3-selection/src/pointers.js static/jssources/d3-selection/src/select.js static/jssources/d3-selection/src/selectAll.js static/jssources/d3-selection/src/selector.js static/jssources/d3-selection/src/selectorAll.js static/jssources/d3-selection/src/sourceEvent.js static/jssources/d3-selection/src/window.js static/jssources/d3-selection/src/selection/append.js static/jssources/d3-selection/src/selection/attr.js static/jssources/d3-selection/src/selection/call.js static/jssources/d3-selection/src/selection/classed.js static/jssources/d3-selection/src/selection/clone.js static/jssources/d3-selection/src/selection/data.js static/jssources/d3-selection/src/selection/datum.js static/jssources/d3-selection/src/selection/dispatch.js static/jssources/d3-selection/src/selection/each.js static/jssources/d3-selection/src/selection/empty.js static/jssources/d3-selection/src/selection/enter.js static/jssources/d3-selection/src/selection/exit.js static/jssources/d3-selection/src/selection/filter.js static/jssources/d3-selection/src/selection/html.js static/jssources/d3-selection/src/selection/index.js static/jssources/d3-selection/src/selection/insert.js static/jssources/d3-selection/src/selection/iterator.js static/jssources/d3-selection/src/selection/join.js static/jssources/d3-selection/src/selection/lower.js static/jssources/d3-selection/src/selection/merge.js static/jssources/d3-selection/src/selection/node.js static/jssources/d3-selection/src/selection/nodes.js static/jssources/d3-selection/src/selection/on.js static/jssources/d3-selection/src/selection/order.js static/jssources/d3-selection/src/selection/property.js static/jssources/d3-selection/src/selection/raise.js static/jssources/d3-selection/src/selection/remove.js static/jssources/d3-selection/src/selection/select.js static/jssources/d3-selection/src/selection/selectAll.js static/jssources/d3-selection/src/selection/selectChild.js static/jssources/d3-selection/src/selection/selectChildren.js static/jssources/d3-selection/src/selection/size.js static/jssources/d3-selection/src/selection/sort.js static/jssources/d3-selection/src/selection/sparse.js static/jssources/d3-selection/src/selection/style.js static/jssources/d3-selection/src/selection/text.js static/jssources/d3-shape/LICENSE.txt static/jssources/d3-shape/src/arc.js static/jssources/d3-shape/src/area.js static/jssources/d3-shape/src/areaRadial.js static/jssources/d3-shape/src/array.js static/jssources/d3-shape/src/constant.js static/jssources/d3-shape/src/descending.js static/jssources/d3-shape/src/identity.js static/jssources/d3-shape/src/index.js static/jssources/d3-shape/src/line.js static/jssources/d3-shape/src/lineRadial.js static/jssources/d3-shape/src/math.js static/jssources/d3-shape/src/noop.js static/jssources/d3-shape/src/pie.js static/jssources/d3-shape/src/point.js static/jssources/d3-shape/src/pointRadial.js static/jssources/d3-shape/src/stack.js static/jssources/d3-shape/src/symbol.js static/jssources/d3-shape/src/curve/basis.js static/jssources/d3-shape/src/curve/basisClosed.js static/jssources/d3-shape/src/curve/basisOpen.js static/jssources/d3-shape/src/curve/bump.js static/jssources/d3-shape/src/curve/bundle.js static/jssources/d3-shape/src/curve/cardinal.js static/jssources/d3-shape/src/curve/cardinalClosed.js static/jssources/d3-shape/src/curve/cardinalOpen.js static/jssources/d3-shape/src/curve/catmullRom.js static/jssources/d3-shape/src/curve/catmullRomClosed.js static/jssources/d3-shape/src/curve/catmullRomOpen.js static/jssources/d3-shape/src/curve/linear.js static/jssources/d3-shape/src/curve/linearClosed.js static/jssources/d3-shape/src/curve/monotone.js static/jssources/d3-shape/src/curve/natural.js static/jssources/d3-shape/src/curve/radial.js static/jssources/d3-shape/src/curve/step.js static/jssources/d3-shape/src/link/index.js static/jssources/d3-shape/src/offset/diverging.js static/jssources/d3-shape/src/offset/expand.js static/jssources/d3-shape/src/offset/none.js static/jssources/d3-shape/src/offset/silhouette.js static/jssources/d3-shape/src/offset/wiggle.js static/jssources/d3-shape/src/order/appearance.js static/jssources/d3-shape/src/order/ascending.js static/jssources/d3-shape/src/order/descending.js static/jssources/d3-shape/src/order/insideOut.js static/jssources/d3-shape/src/order/none.js static/jssources/d3-shape/src/order/reverse.js static/jssources/d3-shape/src/symbol/circle.js static/jssources/d3-shape/src/symbol/cross.js static/jssources/d3-shape/src/symbol/diamond.js static/jssources/d3-shape/src/symbol/square.js static/jssources/d3-shape/src/symbol/star.js static/jssources/d3-shape/src/symbol/triangle.js static/jssources/d3-shape/src/symbol/wye.js static/jssources/d3-time/LICENSE.txt static/jssources/d3-time-format/LICENSE.txt static/jssources/d3-time-format/src/defaultLocale.js static/jssources/d3-time-format/src/index.js static/jssources/d3-time-format/src/isoFormat.js static/jssources/d3-time-format/src/isoParse.js static/jssources/d3-time-format/src/locale.js static/jssources/d3-time/src/day.js static/jssources/d3-time/src/duration.js static/jssources/d3-time/src/hour.js static/jssources/d3-time/src/index.js static/jssources/d3-time/src/interval.js static/jssources/d3-time/src/millisecond.js static/jssources/d3-time/src/minute.js static/jssources/d3-time/src/month.js static/jssources/d3-time/src/second.js static/jssources/d3-time/src/ticks.js static/jssources/d3-time/src/utcDay.js static/jssources/d3-time/src/utcHour.js static/jssources/d3-time/src/utcMinute.js static/jssources/d3-time/src/utcMonth.js static/jssources/d3-time/src/utcWeek.js static/jssources/d3-time/src/utcYear.js static/jssources/d3-time/src/week.js static/jssources/d3-time/src/year.js static/jssources/d3-timer/LICENSE.txt static/jssources/d3-timer/src/timeout.js static/jssources/d3-timer/src/timer.js static/jssources/d3-transition/LICENSE.txt static/jssources/d3-transition/src/active.js static/jssources/d3-transition/src/index.js static/jssources/d3-transition/src/interrupt.js static/jssources/d3-transition/src/selection/index.js static/jssources/d3-transition/src/selection/interrupt.js static/jssources/d3-transition/src/selection/transition.js static/jssources/d3-transition/src/transition/attr.js static/jssources/d3-transition/src/transition/attrTween.js static/jssources/d3-transition/src/transition/delay.js static/jssources/d3-transition/src/transition/duration.js static/jssources/d3-transition/src/transition/ease.js static/jssources/d3-transition/src/transition/easeVarying.js static/jssources/d3-transition/src/transition/end.js static/jssources/d3-transition/src/transition/filter.js static/jssources/d3-transition/src/transition/index.js static/jssources/d3-transition/src/transition/interpolate.js static/jssources/d3-transition/src/transition/merge.js static/jssources/d3-transition/src/transition/on.js static/jssources/d3-transition/src/transition/remove.js static/jssources/d3-transition/src/transition/schedule.js static/jssources/d3-transition/src/transition/select.js static/jssources/d3-transition/src/transition/selectAll.js static/jssources/d3-transition/src/transition/selection.js static/jssources/d3-transition/src/transition/style.js static/jssources/d3-transition/src/transition/styleTween.js static/jssources/d3-transition/src/transition/text.js static/jssources/d3-transition/src/transition/textTween.js static/jssources/d3-transition/src/transition/transition.js static/jssources/d3-transition/src/transition/tween.js static/jssources/datatables.net/License.txt static/jssources/datatables.net-bs4/License.txt static/jssources/datatables.net-bs4/js/dataTables.bootstrap4.js static/jssources/datatables.net/js/jquery.dataTables.js static/jssources/dompurify/LICENSE.txt static/jssources/dompurify/dist/purify.js static/jssources/email-validator/LICENSE.txt static/jssources/email-validator/index.js static/jssources/expose-loader/LICENSE.txt static/jssources/expose-loader/dist/runtime/getGlobalThis.js static/jssources/he/LICENSE-MIT.txt.txt static/jssources/he/he.js static/jssources/hex-rgb/index.js static/jssources/hex-rgb/license.txt static/jssources/highlight.js/LICENSE.txt static/jssources/highlight.js/es/index.js static/jssources/highlight.js/lib/core.js static/jssources/highlight.js/lib/index.js static/jssources/highlight.js/lib/languages/1c.js static/jssources/highlight.js/lib/languages/abnf.js static/jssources/highlight.js/lib/languages/accesslog.js static/jssources/highlight.js/lib/languages/actionscript.js static/jssources/highlight.js/lib/languages/ada.js static/jssources/highlight.js/lib/languages/angelscript.js static/jssources/highlight.js/lib/languages/apache.js static/jssources/highlight.js/lib/languages/applescript.js static/jssources/highlight.js/lib/languages/arcade.js static/jssources/highlight.js/lib/languages/arduino.js static/jssources/highlight.js/lib/languages/armasm.js static/jssources/highlight.js/lib/languages/asciidoc.js static/jssources/highlight.js/lib/languages/aspectj.js static/jssources/highlight.js/lib/languages/autohotkey.js static/jssources/highlight.js/lib/languages/autoit.js static/jssources/highlight.js/lib/languages/avrasm.js static/jssources/highlight.js/lib/languages/awk.js static/jssources/highlight.js/lib/languages/axapta.js static/jssources/highlight.js/lib/languages/bash.js static/jssources/highlight.js/lib/languages/basic.js static/jssources/highlight.js/lib/languages/bnf.js static/jssources/highlight.js/lib/languages/brainfuck.js static/jssources/highlight.js/lib/languages/c.js static/jssources/highlight.js/lib/languages/cal.js static/jssources/highlight.js/lib/languages/capnproto.js static/jssources/highlight.js/lib/languages/ceylon.js static/jssources/highlight.js/lib/languages/clean.js static/jssources/highlight.js/lib/languages/clojure-repl.js static/jssources/highlight.js/lib/languages/clojure.js static/jssources/highlight.js/lib/languages/cmake.js static/jssources/highlight.js/lib/languages/coffeescript.js static/jssources/highlight.js/lib/languages/coq.js static/jssources/highlight.js/lib/languages/cos.js static/jssources/highlight.js/lib/languages/cpp.js static/jssources/highlight.js/lib/languages/crmsh.js static/jssources/highlight.js/lib/languages/crystal.js static/jssources/highlight.js/lib/languages/csharp.js static/jssources/highlight.js/lib/languages/csp.js static/jssources/highlight.js/lib/languages/css.js static/jssources/highlight.js/lib/languages/d.js static/jssources/highlight.js/lib/languages/dart.js static/jssources/highlight.js/lib/languages/delphi.js static/jssources/highlight.js/lib/languages/diff.js static/jssources/highlight.js/lib/languages/django.js static/jssources/highlight.js/lib/languages/dns.js static/jssources/highlight.js/lib/languages/dockerfile.js static/jssources/highlight.js/lib/languages/dos.js static/jssources/highlight.js/lib/languages/dsconfig.js static/jssources/highlight.js/lib/languages/dts.js static/jssources/highlight.js/lib/languages/dust.js static/jssources/highlight.js/lib/languages/ebnf.js static/jssources/highlight.js/lib/languages/elixir.js static/jssources/highlight.js/lib/languages/elm.js static/jssources/highlight.js/lib/languages/erb.js static/jssources/highlight.js/lib/languages/erlang-repl.js static/jssources/highlight.js/lib/languages/erlang.js static/jssources/highlight.js/lib/languages/excel.js static/jssources/highlight.js/lib/languages/fix.js static/jssources/highlight.js/lib/languages/flix.js static/jssources/highlight.js/lib/languages/fortran.js static/jssources/highlight.js/lib/languages/fsharp.js static/jssources/highlight.js/lib/languages/gams.js static/jssources/highlight.js/lib/languages/gauss.js static/jssources/highlight.js/lib/languages/gcode.js static/jssources/highlight.js/lib/languages/gherkin.js static/jssources/highlight.js/lib/languages/glsl.js static/jssources/highlight.js/lib/languages/gml.js static/jssources/highlight.js/lib/languages/go.js static/jssources/highlight.js/lib/languages/golo.js static/jssources/highlight.js/lib/languages/gradle.js static/jssources/highlight.js/lib/languages/groovy.js static/jssources/highlight.js/lib/languages/haml.js static/jssources/highlight.js/lib/languages/handlebars.js static/jssources/highlight.js/lib/languages/haskell.js static/jssources/highlight.js/lib/languages/haxe.js static/jssources/highlight.js/lib/languages/hsp.js static/jssources/highlight.js/lib/languages/http.js static/jssources/highlight.js/lib/languages/hy.js static/jssources/highlight.js/lib/languages/inform7.js static/jssources/highlight.js/lib/languages/ini.js static/jssources/highlight.js/lib/languages/irpf90.js static/jssources/highlight.js/lib/languages/isbl.js static/jssources/highlight.js/lib/languages/java.js static/jssources/highlight.js/lib/languages/javascript.js static/jssources/highlight.js/lib/languages/jboss-cli.js static/jssources/highlight.js/lib/languages/json.js static/jssources/highlight.js/lib/languages/julia-repl.js static/jssources/highlight.js/lib/languages/julia.js static/jssources/highlight.js/lib/languages/kotlin.js static/jssources/highlight.js/lib/languages/lasso.js static/jssources/highlight.js/lib/languages/latex.js static/jssources/highlight.js/lib/languages/ldif.js static/jssources/highlight.js/lib/languages/leaf.js static/jssources/highlight.js/lib/languages/less.js static/jssources/highlight.js/lib/languages/lisp.js static/jssources/highlight.js/lib/languages/livecodeserver.js static/jssources/highlight.js/lib/languages/livescript.js static/jssources/highlight.js/lib/languages/llvm.js static/jssources/highlight.js/lib/languages/lsl.js static/jssources/highlight.js/lib/languages/lua.js static/jssources/highlight.js/lib/languages/makefile.js static/jssources/highlight.js/lib/languages/markdown.js static/jssources/highlight.js/lib/languages/mathematica.js static/jssources/highlight.js/lib/languages/matlab.js static/jssources/highlight.js/lib/languages/maxima.js static/jssources/highlight.js/lib/languages/mel.js static/jssources/highlight.js/lib/languages/mercury.js static/jssources/highlight.js/lib/languages/mipsasm.js static/jssources/highlight.js/lib/languages/mizar.js static/jssources/highlight.js/lib/languages/mojolicious.js static/jssources/highlight.js/lib/languages/monkey.js static/jssources/highlight.js/lib/languages/moonscript.js static/jssources/highlight.js/lib/languages/n1ql.js static/jssources/highlight.js/lib/languages/nestedtext.js static/jssources/highlight.js/lib/languages/nginx.js static/jssources/highlight.js/lib/languages/nim.js static/jssources/highlight.js/lib/languages/nix.js static/jssources/highlight.js/lib/languages/node-repl.js static/jssources/highlight.js/lib/languages/nsis.js static/jssources/highlight.js/lib/languages/objectivec.js static/jssources/highlight.js/lib/languages/ocaml.js static/jssources/highlight.js/lib/languages/openscad.js static/jssources/highlight.js/lib/languages/oxygene.js static/jssources/highlight.js/lib/languages/parser3.js static/jssources/highlight.js/lib/languages/perl.js static/jssources/highlight.js/lib/languages/pf.js static/jssources/highlight.js/lib/languages/pgsql.js static/jssources/highlight.js/lib/languages/php-template.js static/jssources/highlight.js/lib/languages/php.js static/jssources/highlight.js/lib/languages/plaintext.js static/jssources/highlight.js/lib/languages/pony.js static/jssources/highlight.js/lib/languages/powershell.js static/jssources/highlight.js/lib/languages/processing.js static/jssources/highlight.js/lib/languages/profile.js static/jssources/highlight.js/lib/languages/prolog.js static/jssources/highlight.js/lib/languages/properties.js static/jssources/highlight.js/lib/languages/protobuf.js static/jssources/highlight.js/lib/languages/puppet.js static/jssources/highlight.js/lib/languages/purebasic.js static/jssources/highlight.js/lib/languages/python-repl.js static/jssources/highlight.js/lib/languages/python.js static/jssources/highlight.js/lib/languages/q.js static/jssources/highlight.js/lib/languages/qml.js static/jssources/highlight.js/lib/languages/r.js static/jssources/highlight.js/lib/languages/reasonml.js static/jssources/highlight.js/lib/languages/rib.js static/jssources/highlight.js/lib/languages/roboconf.js static/jssources/highlight.js/lib/languages/routeros.js static/jssources/highlight.js/lib/languages/rsl.js static/jssources/highlight.js/lib/languages/ruby.js static/jssources/highlight.js/lib/languages/ruleslanguage.js static/jssources/highlight.js/lib/languages/rust.js static/jssources/highlight.js/lib/languages/sas.js static/jssources/highlight.js/lib/languages/scala.js static/jssources/highlight.js/lib/languages/scheme.js static/jssources/highlight.js/lib/languages/scilab.js static/jssources/highlight.js/lib/languages/scss.js static/jssources/highlight.js/lib/languages/shell.js static/jssources/highlight.js/lib/languages/smali.js static/jssources/highlight.js/lib/languages/smalltalk.js static/jssources/highlight.js/lib/languages/sml.js static/jssources/highlight.js/lib/languages/sqf.js static/jssources/highlight.js/lib/languages/sql.js static/jssources/highlight.js/lib/languages/stan.js static/jssources/highlight.js/lib/languages/stata.js static/jssources/highlight.js/lib/languages/step21.js static/jssources/highlight.js/lib/languages/stylus.js static/jssources/highlight.js/lib/languages/subunit.js static/jssources/highlight.js/lib/languages/swift.js static/jssources/highlight.js/lib/languages/taggerscript.js static/jssources/highlight.js/lib/languages/tap.js static/jssources/highlight.js/lib/languages/tcl.js static/jssources/highlight.js/lib/languages/thrift.js static/jssources/highlight.js/lib/languages/tp.js static/jssources/highlight.js/lib/languages/twig.js static/jssources/highlight.js/lib/languages/typescript.js static/jssources/highlight.js/lib/languages/vala.js static/jssources/highlight.js/lib/languages/vbnet.js static/jssources/highlight.js/lib/languages/vbscript-html.js static/jssources/highlight.js/lib/languages/vbscript.js static/jssources/highlight.js/lib/languages/verilog.js static/jssources/highlight.js/lib/languages/vhdl.js static/jssources/highlight.js/lib/languages/vim.js static/jssources/highlight.js/lib/languages/wasm.js static/jssources/highlight.js/lib/languages/wren.js static/jssources/highlight.js/lib/languages/x86asm.js static/jssources/highlight.js/lib/languages/xl.js static/jssources/highlight.js/lib/languages/xml.js static/jssources/highlight.js/lib/languages/xquery.js static/jssources/highlight.js/lib/languages/yaml.js static/jssources/highlight.js/lib/languages/zephir.js static/jssources/highlightjs-4d/LICENSE.txt static/jssources/highlightjs-4d/dist/4d.min.js static/jssources/highlightjs-alan/LICENSE.txt static/jssources/highlightjs-alan/dist/alan.min.js static/jssources/highlightjs-blade/LICENSE.txt static/jssources/highlightjs-blade/dist/blade.min.js static/jssources/highlightjs-chaos/LICENSE.txt static/jssources/highlightjs-chaos/dist/chaos.min.js static/jssources/highlightjs-chapel/LICENSE.txt static/jssources/highlightjs-chapel/dist/chapel.min.js static/jssources/highlightjs-cpcdos/LICENSE.txt static/jssources/highlightjs-cpcdos/dist/cpc-highlight.min.js static/jssources/highlightjs-cshtml-razor/LICENSE.txt static/jssources/highlightjs-cshtml-razor/dist/cshtml-razor.min.js static/jssources/highlightjs-cypher/LICENSE.txt static/jssources/highlightjs-cypher/dist/cypher.min.js static/jssources/highlightjs-dafny/LICENSE.txt static/jssources/highlightjs-dafny/dist/dafny.min.js static/jssources/highlightjs-dylan/LICENSE.txt static/jssources/highlightjs-dylan/dist/dylan.min.js static/jssources/highlightjs-eta/dist/eta.min.js static/jssources/highlightjs-extempore/LICENSE.txt static/jssources/highlightjs-extempore/dist/extempore.min.js static/jssources/highlightjs-gdscript/LICENSE.txt static/jssources/highlightjs-gdscript/dist/gdscript.min.js static/jssources/highlightjs-gf/LICENSE.txt static/jssources/highlightjs-gf/dist/gf.min.js static/jssources/highlightjs-graphql/LICENSE.txt static/jssources/highlightjs-graphql/graphql.js static/jssources/highlightjs-gsql/dist/gsql.min.js static/jssources/highlightjs-hlsl/LICENSE.txt static/jssources/highlightjs-hlsl/dist/hlsl.min.js static/jssources/highlightjs-jolie/LICENSE.txt static/jssources/highlightjs-jolie/dist/jolie.min.js static/jssources/highlightjs-lean/LICENSE.txt static/jssources/highlightjs-lean/src/lean.js static/jssources/highlightjs-line-numbers.js/LICENSE.txt static/jssources/highlightjs-line-numbers.js/src/highlightjs-line-numbers.js static/jssources/highlightjs-lox/LICENSE.md static/jssources/highlightjs-lox/dist/es/lox.mjs static/jssources/highlightjs-mirc/LICENSE.txt static/jssources/highlightjs-mirc/mirc.js static/jssources/highlightjs-modelica/LICENSE.txt static/jssources/highlightjs-modelica/modelica.js static/jssources/highlightjs-never/LICENSE.txt static/jssources/highlightjs-never/dist/never.min.js static/jssources/highlightjs-octave/LICENSE.txt static/jssources/highlightjs-octave/dist/highlightjs-octave.cjs.js static/jssources/highlightjs-oz/LICENSE.txt static/jssources/highlightjs-oz/dist/oz.min.js static/jssources/highlightjs-qsharp/dist/qsharp.min.js static/jssources/highlightjs-redbol/LICENSE.txt static/jssources/highlightjs-redbol/dist/redbol.min.js static/jssources/highlightjs-robot/LICENSE.txt static/jssources/highlightjs-robot/robot.js static/jssources/highlightjs-robots-txt/LICENSE.txt static/jssources/highlightjs-robots-txt/dist/robots-txt.min.js static/jssources/highlightjs-rpm-specfile/LICENSE.txt static/jssources/highlightjs-rpm-specfile/rpm-specfile.js static/jssources/highlightjs-sap-abap/LICENSE.txt static/jssources/highlightjs-sap-abap/dist/abap.min.js static/jssources/highlightjs-solidity/LICENSE.txt static/jssources/highlightjs-solidity/dist/solidity.min.js static/jssources/highlightjs-svelte/LICENSE.txt static/jssources/highlightjs-svelte/dist/svelte.min.js static/jssources/highlightjs-terraform/LICENSE.txt static/jssources/highlightjs-terraform/terraform.js static/jssources/highlightjs-xsharp/LICENSE.txt static/jssources/highlightjs-xsharp/dist/xsharp.min.js static/jssources/highlightjs-zenscript/LICENSE.txt static/jssources/highlightjs-zenscript/dist/zenscript.min.js static/jssources/highlightjs-zig/LICENSE.txt static/jssources/highlightjs-zig/dist/zig.min.js static/jssources/hightlightjs-papyrus/LICENSE.txt static/jssources/hightlightjs-papyrus/dist/papyrus.min.js static/jssources/html-encoder-decoder/LICENSE.txt static/jssources/html-encoder-decoder/lib/index.js static/jssources/iframe-resizer/LICENSE.txt static/jssources/iframe-resizer/index.js static/jssources/iframe-resizer/js/iframeResizer.contentWindow.js static/jssources/iframe-resizer/js/iframeResizer.js static/jssources/iframe-resizer/js/index.js static/jssources/internmap/LICENSE.txt static/jssources/internmap/src/index.js static/jssources/intro.js/intro.js static/jssources/intro.js/license.md static/jssources/iterate-object/LICENSE.txt static/jssources/iterate-object/lib/index.js static/jssources/jquery/LICENSE.txt static/jssources/jquery/dist/jquery.js static/jssources/js-cookie/LICENSE.txt static/jssources/js-cookie/dist/js.cookie.mjs static/jssources/js-year-calendar/LICENSE.txt static/jssources/js-year-calendar/dist/js-year-calendar.js static/jssources/mathjax/LICENSE.txt static/jssources/mathjax/es5/tex-mml-chtml.js static/jssources/notebookjs/LICENSE.txt static/jssources/notebookjs/notebook.js static/jssources/object-fit-images/license.txt static/jssources/object-fit-images/dist/ofi.common-js.js static/jssources/org/LICENSE.txt static/jssources/org/lib/org.js static/jssources/org/lib/org/lexer.js static/jssources/org/lib/org/node.js static/jssources/org/lib/org/parser.js static/jssources/org/lib/org/stream.js static/jssources/org/lib/org/converter/converter.js static/jssources/org/lib/org/converter/html.js static/jssources/pdfjs-dist/LICENSE.txt static/jssources/pdfjs-dist/build/pdf.js static/jssources/pdfjs-dist/build/pdf.worker.js static/jssources/popper.js/dist/esm/popper.js static/jssources/regenerator-runtime/LICENSE.txt static/jssources/regenerator-runtime/runtime.js static/jssources/regex-escape/LICENSE.txt static/jssources/regex-escape/lib/index.js static/jssources/script-loader/LICENSE.txt static/jssources/script-loader/addScript.js static/jssources/showdown/license.txt static/jssources/showdown/dist/showdown.js static/jssources/tslib/LICENSE.txt static/jssources/tslib/tslib.es6.js static/jssources/waypoints/licenses.txt.txt static/jssources/waypoints/lib/jquery.waypoints.js static/jssources/whatwg-fetch/LICENSE.txt static/jssources/whatwg-fetch/dist/fetch.umd.js static/xml/swh-opensearch.xml swh/__init__.py swh.web.egg-info/PKG-INFO swh.web.egg-info/SOURCES.txt swh.web.egg-info/dependency_links.txt swh.web.egg-info/requires.txt swh.web.egg-info/top_level.txt swh/web/__init__.py swh/web/config.py swh/web/gunicorn_config.py swh/web/manage.py swh/web/py.typed swh/web/urls.py swh/web/admin/__init__.py swh/web/admin/adminurls.py swh/web/admin/deposit.py swh/web/admin/origin_save.py swh/web/admin/urls.py swh/web/api/__init__.py swh/web/api/apidoc.py swh/web/api/apiresponse.py swh/web/api/apiurls.py swh/web/api/renderers.py swh/web/api/throttling.py swh/web/api/urls.py swh/web/api/utils.py swh/web/api/views/__init__.py swh/web/api/views/content.py swh/web/api/views/directory.py swh/web/api/views/graph.py swh/web/api/views/identifiers.py swh/web/api/views/metadata.py swh/web/api/views/origin.py swh/web/api/views/origin_save.py swh/web/api/views/ping.py swh/web/api/views/release.py swh/web/api/views/revision.py swh/web/api/views/snapshot.py swh/web/api/views/stat.py swh/web/api/views/utils.py swh/web/api/views/vault.py swh/web/auth/__init__.py swh/web/auth/apps.py +swh/web/auth/mailmap.py swh/web/auth/models.py swh/web/auth/utils.py swh/web/auth/views.py +swh/web/auth/management/__init__.py +swh/web/auth/management/commands/__init__.py +swh/web/auth/management/commands/sync_mailmaps.py swh/web/auth/migrations/0001_initial.py swh/web/auth/migrations/0002_remove_stored_tokens.py swh/web/auth/migrations/0003_delete_oidcuser.py +swh/web/auth/migrations/0004_usermailmap.py swh/web/auth/migrations/__init__.py swh/web/browse/__init__.py swh/web/browse/browseurls.py swh/web/browse/identifiers.py swh/web/browse/snapshot_context.py swh/web/browse/urls.py swh/web/browse/utils.py swh/web/browse/views/__init__.py swh/web/browse/views/content.py swh/web/browse/views/directory.py swh/web/browse/views/origin.py swh/web/browse/views/release.py swh/web/browse/views/revision.py swh/web/browse/views/snapshot.py swh/web/common/__init__.py swh/web/common/apps.py swh/web/common/archive.py swh/web/common/converters.py swh/web/common/exc.py swh/web/common/highlightjs.py swh/web/common/identifiers.py swh/web/common/middlewares.py swh/web/common/models.py swh/web/common/origin_save.py swh/web/common/origin_visits.py swh/web/common/query.py swh/web/common/swh_templatetags.py swh/web/common/typing.py swh/web/common/urlsindex.py swh/web/common/utils.py swh/web/common/management/__init__.py swh/web/common/management/commands/__init__.py swh/web/common/management/commands/refresh_savecodenow_statuses.py swh/web/common/migrations/0001_initial.py swh/web/common/migrations/0002_saveoriginrequest_visit_date.py swh/web/common/migrations/0003_saveoriginrequest_loading_task_status.py swh/web/common/migrations/0004_auto_20190204_1324.py swh/web/common/migrations/0005_remove_duplicated_authorized_origins.py swh/web/common/migrations/0006_rename_origin_type.py swh/web/common/migrations/0007_save_request_task_status_fix_typo.py swh/web/common/migrations/0008_save-code-now_indexes_20210106_1327.py swh/web/common/migrations/0009_saveoriginrequest_visit_status.py swh/web/common/migrations/0010_saveoriginrequest_user_id.py swh/web/common/migrations/0011_saveoriginrequest_user_ids.py swh/web/common/migrations/0012_saveoriginrequest_note.py swh/web/common/migrations/__init__.py swh/web/misc/__init__.py swh/web/misc/badges.py swh/web/misc/coverage.py swh/web/misc/fundraising.py swh/web/misc/iframe.py swh/web/misc/metrics.py swh/web/misc/origin_save.py swh/web/misc/urls.py swh/web/settings/__init__.py swh/web/settings/common.py swh/web/settings/development.py swh/web/settings/production.py swh/web/settings/tests.py swh/web/templates/error.html swh/web/templates/homepage.html swh/web/templates/layout.html swh/web/templates/login.html swh/web/templates/logout.html swh/web/templates/admin/deposit.html swh/web/templates/admin/origin-save.html swh/web/templates/api/api.html swh/web/templates/api/apidoc.html swh/web/templates/api/endpoints.html swh/web/templates/auth/profile.html swh/web/templates/browse/branches.html swh/web/templates/browse/browse.html swh/web/templates/browse/content.html swh/web/templates/browse/directory.html swh/web/templates/browse/help.html swh/web/templates/browse/layout.html swh/web/templates/browse/origin-visits.html swh/web/templates/browse/release.html swh/web/templates/browse/releases.html swh/web/templates/browse/revision-log.html swh/web/templates/browse/revision.html swh/web/templates/browse/search.html swh/web/templates/browse/vault-ui.html swh/web/templates/includes/branch-search.html swh/web/templates/includes/breadcrumbs.html swh/web/templates/includes/content-display.html swh/web/templates/includes/directory-display.html swh/web/templates/includes/empty-snapshot.html swh/web/templates/includes/global-modals.html swh/web/templates/includes/http-error.html swh/web/templates/includes/origin-search-form.html swh/web/templates/includes/readme-display.html swh/web/templates/includes/revision-info.html swh/web/templates/includes/show-metadata.html swh/web/templates/includes/show-swhids.html swh/web/templates/includes/snapshot-context.html swh/web/templates/includes/take-new-snapshot.html swh/web/templates/includes/top-navigation.html swh/web/templates/includes/vault-common.html swh/web/templates/includes/vault-create-tasks.html swh/web/templates/misc/coverage.html swh/web/templates/misc/fundraising-banner.html swh/web/templates/misc/iframe.html swh/web/templates/misc/jslicenses.html swh/web/templates/misc/origin-save.html swh/web/tests/__init__.py swh/web/tests/conftest.py swh/web/tests/create_test_admin.py swh/web/tests/create_test_users.py swh/web/tests/data.py swh/web/tests/django_asserts.py swh/web/tests/random_fixtures_test.py swh/web/tests/strategies.py swh/web/tests/test_create_users.py swh/web/tests/test_gunicorn_config.py swh/web/tests/test_migrations.py swh/web/tests/test_random_fixtures.py swh/web/tests/test_templates.py swh/web/tests/utils.py swh/web/tests/views.py swh/web/tests/admin/__init__.py swh/web/tests/admin/test_deposit.py swh/web/tests/admin/test_origin_save.py swh/web/tests/api/__init__.py swh/web/tests/api/test_api_lookup.py swh/web/tests/api/test_apidoc.py swh/web/tests/api/test_apiresponse.py swh/web/tests/api/test_apiurls.py swh/web/tests/api/test_throttling.py swh/web/tests/api/test_utils.py swh/web/tests/api/views/__init__.py swh/web/tests/api/views/test_content.py swh/web/tests/api/views/test_directory.py swh/web/tests/api/views/test_graph.py swh/web/tests/api/views/test_identifiers.py swh/web/tests/api/views/test_metadata.py swh/web/tests/api/views/test_origin.py swh/web/tests/api/views/test_origin_save.py swh/web/tests/api/views/test_ping.py swh/web/tests/api/views/test_release.py swh/web/tests/api/views/test_revision.py swh/web/tests/api/views/test_snapshot.py swh/web/tests/api/views/test_stat.py swh/web/tests/api/views/test_vault.py swh/web/tests/api/views/utils.py swh/web/tests/auth/__init__.py +swh/web/tests/auth/test_mailmap.py swh/web/tests/auth/test_utils.py swh/web/tests/auth/test_views.py swh/web/tests/browse/__init__.py swh/web/tests/browse/test_snapshot_context.py swh/web/tests/browse/test_utils.py swh/web/tests/browse/views/__init__.py swh/web/tests/browse/views/test_content.py swh/web/tests/browse/views/test_directory.py swh/web/tests/browse/views/test_identifiers.py swh/web/tests/browse/views/test_origin.py swh/web/tests/browse/views/test_release.py swh/web/tests/browse/views/test_revision.py swh/web/tests/browse/views/test_snapshot.py swh/web/tests/common/__init__.py swh/web/tests/common/test_archive.py swh/web/tests/common/test_converters.py swh/web/tests/common/test_django_command.py swh/web/tests/common/test_highlightjs.py swh/web/tests/common/test_identifiers.py swh/web/tests/common/test_middlewares.py swh/web/tests/common/test_origin_save.py swh/web/tests/common/test_origin_visits.py swh/web/tests/common/test_query.py swh/web/tests/common/test_templatetags.py swh/web/tests/common/test_utils.py swh/web/tests/misc/__init__.py swh/web/tests/misc/test_badges.py swh/web/tests/misc/test_coverage.py swh/web/tests/misc/test_fundraising.py swh/web/tests/misc/test_iframe.py swh/web/tests/misc/test_metrics.py swh/web/tests/misc/test_origin_save.py swh/web/tests/resources/contents/code/LICENSE swh/web/tests/resources/contents/code/extensions/test.R swh/web/tests/resources/contents/code/extensions/test.abnf swh/web/tests/resources/contents/code/extensions/test.adb swh/web/tests/resources/contents/code/extensions/test.adoc swh/web/tests/resources/contents/code/extensions/test.ahk swh/web/tests/resources/contents/code/extensions/test.aj swh/web/tests/resources/contents/code/extensions/test.applescript swh/web/tests/resources/contents/code/extensions/test.as swh/web/tests/resources/contents/code/extensions/test.au3 swh/web/tests/resources/contents/code/extensions/test.awk swh/web/tests/resources/contents/code/extensions/test.bas swh/web/tests/resources/contents/code/extensions/test.bat swh/web/tests/resources/contents/code/extensions/test.bf swh/web/tests/resources/contents/code/extensions/test.bnf swh/web/tests/resources/contents/code/extensions/test.bsl swh/web/tests/resources/contents/code/extensions/test.cal swh/web/tests/resources/contents/code/extensions/test.capnp swh/web/tests/resources/contents/code/extensions/test.ceylon swh/web/tests/resources/contents/code/extensions/test.clj swh/web/tests/resources/contents/code/extensions/test.cls swh/web/tests/resources/contents/code/extensions/test.cmake swh/web/tests/resources/contents/code/extensions/test.coffee swh/web/tests/resources/contents/code/extensions/test.cpp swh/web/tests/resources/contents/code/extensions/test.cr swh/web/tests/resources/contents/code/extensions/test.cs swh/web/tests/resources/contents/code/extensions/test.css swh/web/tests/resources/contents/code/extensions/test.d swh/web/tests/resources/contents/code/extensions/test.dart swh/web/tests/resources/contents/code/extensions/test.dcl swh/web/tests/resources/contents/code/extensions/test.dfm swh/web/tests/resources/contents/code/extensions/test.diff swh/web/tests/resources/contents/code/extensions/test.do swh/web/tests/resources/contents/code/extensions/test.dts swh/web/tests/resources/contents/code/extensions/test.dust swh/web/tests/resources/contents/code/extensions/test.ebnf swh/web/tests/resources/contents/code/extensions/test.elm swh/web/tests/resources/contents/code/extensions/test.ep swh/web/tests/resources/contents/code/extensions/test.erb swh/web/tests/resources/contents/code/extensions/test.erl swh/web/tests/resources/contents/code/extensions/test.ex swh/web/tests/resources/contents/code/extensions/test.f90 swh/web/tests/resources/contents/code/extensions/test.feature swh/web/tests/resources/contents/code/extensions/test.flix swh/web/tests/resources/contents/code/extensions/test.fs swh/web/tests/resources/contents/code/extensions/test.gcode swh/web/tests/resources/contents/code/extensions/test.glsl swh/web/tests/resources/contents/code/extensions/test.gml swh/web/tests/resources/contents/code/extensions/test.gms swh/web/tests/resources/contents/code/extensions/test.go swh/web/tests/resources/contents/code/extensions/test.golo swh/web/tests/resources/contents/code/extensions/test.gradle swh/web/tests/resources/contents/code/extensions/test.groovy swh/web/tests/resources/contents/code/extensions/test.gss swh/web/tests/resources/contents/code/extensions/test.haml swh/web/tests/resources/contents/code/extensions/test.hbs swh/web/tests/resources/contents/code/extensions/test.hs swh/web/tests/resources/contents/code/extensions/test.hsp swh/web/tests/resources/contents/code/extensions/test.html swh/web/tests/resources/contents/code/extensions/test.hx swh/web/tests/resources/contents/code/extensions/test.hy swh/web/tests/resources/contents/code/extensions/test.ini swh/web/tests/resources/contents/code/extensions/test.ino swh/web/tests/resources/contents/code/extensions/test.java swh/web/tests/resources/contents/code/extensions/test.jl swh/web/tests/resources/contents/code/extensions/test.js swh/web/tests/resources/contents/code/extensions/test.json swh/web/tests/resources/contents/code/extensions/test.kt swh/web/tests/resources/contents/code/extensions/test.lasso swh/web/tests/resources/contents/code/extensions/test.lc swh/web/tests/resources/contents/code/extensions/test.ldif swh/web/tests/resources/contents/code/extensions/test.leaf swh/web/tests/resources/contents/code/extensions/test.less swh/web/tests/resources/contents/code/extensions/test.lisp swh/web/tests/resources/contents/code/extensions/test.ll swh/web/tests/resources/contents/code/extensions/test.ls swh/web/tests/resources/contents/code/extensions/test.lsl swh/web/tests/resources/contents/code/extensions/test.lua swh/web/tests/resources/contents/code/extensions/test.m swh/web/tests/resources/contents/code/extensions/test.md swh/web/tests/resources/contents/code/extensions/test.mel swh/web/tests/resources/contents/code/extensions/test.mk swh/web/tests/resources/contents/code/extensions/test.ml swh/web/tests/resources/contents/code/extensions/test.moon swh/web/tests/resources/contents/code/extensions/test.nim swh/web/tests/resources/contents/code/extensions/test.nix swh/web/tests/resources/contents/code/extensions/test.nsi swh/web/tests/resources/contents/code/extensions/test.p swh/web/tests/resources/contents/code/extensions/test.pbi swh/web/tests/resources/contents/code/extensions/test.pde swh/web/tests/resources/contents/code/extensions/test.php swh/web/tests/resources/contents/code/extensions/test.pl swh/web/tests/resources/contents/code/extensions/test.pony swh/web/tests/resources/contents/code/extensions/test.pp swh/web/tests/resources/contents/code/extensions/test.properties swh/web/tests/resources/contents/code/extensions/test.proto swh/web/tests/resources/contents/code/extensions/test.ps1 swh/web/tests/resources/contents/code/extensions/test.py swh/web/tests/resources/contents/code/extensions/test.q swh/web/tests/resources/contents/code/extensions/test.qml swh/web/tests/resources/contents/code/extensions/test.rb swh/web/tests/resources/contents/code/extensions/test.re swh/web/tests/resources/contents/code/extensions/test.rib swh/web/tests/resources/contents/code/extensions/test.rs swh/web/tests/resources/contents/code/extensions/test.rsc swh/web/tests/resources/contents/code/extensions/test.s swh/web/tests/resources/contents/code/extensions/test.sas swh/web/tests/resources/contents/code/extensions/test.scad swh/web/tests/resources/contents/code/extensions/test.scala swh/web/tests/resources/contents/code/extensions/test.sci swh/web/tests/resources/contents/code/extensions/test.scm swh/web/tests/resources/contents/code/extensions/test.scss swh/web/tests/resources/contents/code/extensions/test.sh swh/web/tests/resources/contents/code/extensions/test.sl swh/web/tests/resources/contents/code/extensions/test.smali swh/web/tests/resources/contents/code/extensions/test.sml swh/web/tests/resources/contents/code/extensions/test.sqf swh/web/tests/resources/contents/code/extensions/test.st swh/web/tests/resources/contents/code/extensions/test.stan swh/web/tests/resources/contents/code/extensions/test.styl swh/web/tests/resources/contents/code/extensions/test.subunit swh/web/tests/resources/contents/code/extensions/test.swift swh/web/tests/resources/contents/code/extensions/test.tap swh/web/tests/resources/contents/code/extensions/test.tcl swh/web/tests/resources/contents/code/extensions/test.tex swh/web/tests/resources/contents/code/extensions/test.thrift swh/web/tests/resources/contents/code/extensions/test.ts swh/web/tests/resources/contents/code/extensions/test.v swh/web/tests/resources/contents/code/extensions/test.vala swh/web/tests/resources/contents/code/extensions/test.vb swh/web/tests/resources/contents/code/extensions/test.vbs swh/web/tests/resources/contents/code/extensions/test.vhd swh/web/tests/resources/contents/code/extensions/test.vim swh/web/tests/resources/contents/code/extensions/test.wl swh/web/tests/resources/contents/code/extensions/test.xml swh/web/tests/resources/contents/code/extensions/test.xqy swh/web/tests/resources/contents/code/extensions/test.yml swh/web/tests/resources/contents/code/extensions/test.zep swh/web/tests/resources/contents/code/filenames/.htaccess swh/web/tests/resources/contents/code/filenames/CMakeLists.txt swh/web/tests/resources/contents/code/filenames/Dockerfile swh/web/tests/resources/contents/code/filenames/Makefile swh/web/tests/resources/contents/code/filenames/access.log swh/web/tests/resources/contents/code/filenames/httpd.conf swh/web/tests/resources/contents/code/filenames/nginx.conf swh/web/tests/resources/contents/code/filenames/nginx.log swh/web/tests/resources/contents/code/filenames/pf.conf swh/web/tests/resources/contents/code/filenames/resolv.conf swh/web/tests/resources/contents/other/extensions/bash-cheatsheet.pdf swh/web/tests/resources/contents/other/extensions/public.gpg swh/web/tests/resources/contents/other/extensions/swh-logo.jpeg swh/web/tests/resources/contents/other/extensions/swh-logo.png swh/web/tests/resources/contents/other/extensions/swh-logo.webp swh/web/tests/resources/contents/other/extensions/swh-spinner.gif swh/web/tests/resources/contents/other/extensions/word2vec.ipynb swh/web/tests/resources/http_esnode1.internal.softwareheritage.org/swh_workers-*__search swh/web/tests/resources/repos/highlightjs-line-numbers.js.zip swh/web/tests/resources/repos/highlightjs-line-numbers.js_visit2.zip swh/web/tests/resources/repos/libtess2.zip swh/web/tests/resources/repos/repo_with_submodules.tgz \ No newline at end of file diff --git a/swh.web.egg-info/requires.txt b/swh.web.egg-info/requires.txt index 4d46a9d3..cda0fd14 100644 --- a/swh.web.egg-info/requires.txt +++ b/swh.web.egg-info/requires.txt @@ -1,49 +1,50 @@ beautifulsoup4 cryptography django<3 django-cors-headers django-js-reverse djangorestframework django-webpack-loader docutils htmlmin iso8601 lxml prometheus-client pybadges>=2.2.1 pygments python-magic>=0.4.0 python-memcached pyyaml requests sentry-sdk typing-extensions psycopg2<2.9 swh.auth[django]>=0.5.3 swh.core>=0.0.95 swh.counters>=0.5.1 swh.indexer>=0.4.1 swh.model>=2.6.3 swh.scheduler>=0.7.0 swh.search>=0.2.0 swh.storage>=0.31.0 swh.vault>=1.0.0 [testing] decorator djangorestframework-stubs django-stubs django-test-migrations hypothesis -pytest +pytest<7.0.0 pytest-django pytest-mock +pytest-postgresql requests-mock!=1.9.0,!=1.9.1 swh.core[http]>=0.0.95 swh.loader.git>=0.8.0 swh-scheduler[testing]>=0.5.0 swh.storage>=0.1.1 types-docutils types-psycopg2 types-pyyaml types-requests diff --git a/swh/web/auth/mailmap.py b/swh/web/auth/mailmap.py new file mode 100644 index 00000000..378e90e2 --- /dev/null +++ b/swh/web/auth/mailmap.py @@ -0,0 +1,54 @@ +# Copyright (C) 2022 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 django.conf.urls import url +from django.http.response import HttpResponse, HttpResponseForbidden +from rest_framework import serializers +from rest_framework.decorators import api_view +from rest_framework.request import Request +from rest_framework.response import Response + +from swh.web.auth.models import UserMailmap +from swh.web.auth.utils import MAILMAP_PERMISSION + + +class UserMailmapSerializer(serializers.ModelSerializer): + class Meta: + model = UserMailmap + fields = "__all__" + + +@api_view(["POST"]) +def profile_add_mailmap(request: Request) -> HttpResponse: + if not request.user.has_perm(MAILMAP_PERMISSION): + return HttpResponseForbidden() + + UserMailmap.objects.create(user_id=str(request.user.id), **request.data) + mm = UserMailmap.objects.get( + user_id=str(request.user.id), from_email=request.data.get("from_email") + ) + return Response(UserMailmapSerializer(mm).data) + + +@api_view(["POST"]) +def profile_update_mailmap(request: Request) -> HttpResponse: + if not request.user.has_perm(MAILMAP_PERMISSION): + return HttpResponseForbidden() + + UserMailmap.objects.update(user_id=str(request.user.id), **request.data) + mm = UserMailmap.objects.get( + user_id=str(request.user.id), from_email=request.data.get("from_email") + ) + return Response(UserMailmapSerializer(mm).data) + + +urlpatterns = [ + url(r"^profile/mailmap/add$", profile_add_mailmap, name="profile-mailmap-add",), + url( + r"^profile/mailmap/update$", + profile_update_mailmap, + name="profile-mailmap-update", + ), +] diff --git a/swh/web/auth/management/__init__.py b/swh/web/auth/management/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/swh/web/auth/management/commands/__init__.py b/swh/web/auth/management/commands/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/swh/web/auth/management/commands/sync_mailmaps.py b/swh/web/auth/management/commands/sync_mailmaps.py new file mode 100644 index 00000000..00f109c1 --- /dev/null +++ b/swh/web/auth/management/commands/sync_mailmaps.py @@ -0,0 +1,118 @@ +# Copyright (C) 2022 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 + +import psycopg2 +import psycopg2.extensions +from psycopg2.extras import execute_values + +from django.core.management.base import BaseCommand +from django.db import transaction +from django.db.models import F +from django.db.models.query import QuerySet +from django.utils import timezone + +from swh.web.auth.models import UserMailmap + +DISABLE_MAILMAPS_QUERY = """\ +UPDATE person + SET displayname = NULL + FROM (VALUES %s) AS emails (email) + WHERE person.email = emails.email +""" + +REFRESH_MAILMAPS_QUERY = """\ +UPDATE person + SET displayname = displaynames.displayname + FROM (VALUES %s) AS displaynames (email, displayname) + WHERE + person.email = displaynames.email + AND person.displayname IS DISTINCT FROM displaynames.displayname +""" + + +class Command(BaseCommand): + help = "Synchronize the mailmaps with swh.storage" + + def add_arguments(self, parser): + parser.add_argument("storage_dbconn", type=str) + parser.add_argument( + "--perform", + action="store_true", + help="Perform actions (instead of the default dry-run)", + ) + + def disable_mailmaps( + self, + storage_db: psycopg2.extensions.connection, + mailmaps: "QuerySet[UserMailmap]", + ): + """Return the SQL to disable a set of mailmaps""" + + execute_values( + storage_db.cursor(), + DISABLE_MAILMAPS_QUERY, + ((mailmap.from_email.encode("utf-8"),) for mailmap in mailmaps), + ) + + def refresh_mailmaps( + self, + storage_db: psycopg2.extensions.connection, + mailmaps: "QuerySet[UserMailmap]", + ): + + execute_values( + storage_db.cursor(), + REFRESH_MAILMAPS_QUERY, + ( + ( + mailmap.from_email.encode("utf-8"), + mailmap.full_display_name.encode("utf-8"), + ) + for mailmap in mailmaps + ), + ) + + def handle(self, *args, **options): + verified_mailmaps = UserMailmap.objects.filter(from_email_verified=True) + + # Always refresh display names for person entries with known emails + to_refresh = verified_mailmaps.filter(display_name_activated=True) + + # Only remove display_names if they've been deactivated since they've last been + # processed + to_disable = verified_mailmaps.filter( + display_name_activated=False, + mailmap_last_processing_date__lt=F("last_update_date"), + ) + + process_start = timezone.now() + with transaction.atomic(): + self.stdout.write( + "%d mailmaps to disable, %d mailmaps to refresh%s" + % ( + to_disable.count(), + to_refresh.count(), + (" (dry run)" if not options["perform"] else ""), + ) + ) + + with psycopg2.connect(options["storage_dbconn"]) as db: + self.disable_mailmaps(db, to_disable.select_for_update()) + self.refresh_mailmaps(db, to_refresh.select_for_update()) + if not options["perform"]: + db.rollback() + else: + db.commit() + + if options["perform"]: + updated = to_disable.update( + mailmap_last_processing_date=process_start + ) + to_refresh.update(mailmap_last_processing_date=process_start) + else: + updated = to_disable.count() + to_refresh.count() + + self.stdout.write( + self.style.SUCCESS(f"Synced {updated} mailmaps to swh.storage database") + ) diff --git a/swh/web/auth/migrations/0004_usermailmap.py b/swh/web/auth/migrations/0004_usermailmap.py new file mode 100644 index 00000000..86f25499 --- /dev/null +++ b/swh/web/auth/migrations/0004_usermailmap.py @@ -0,0 +1,45 @@ +# Copyright (C) 2022 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 django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ("swh_web_auth", "0003_delete_oidcuser"), + ] + + operations = [ + migrations.CreateModel( + name="UserMailmap", + fields=[ + ( + "id", + models.AutoField( + auto_created=True, + primary_key=True, + serialize=False, + verbose_name="ID", + ), + ), + ("user_id", models.CharField(max_length=50, null=True)), + ("from_email", models.TextField(unique=True, null=False)), + ("from_email_verified", models.BooleanField(default=False)), + ( + "from_email_verification_request_date", + models.DateTimeField(null=True), + ), + ("display_name", models.TextField(null=False)), + ("display_name_activated", models.BooleanField(default=False)), + ("to_email", models.TextField(null=True)), + ("to_email_verified", models.BooleanField(default=False)), + ("to_email_verification_request_date", models.DateTimeField(null=True)), + ("mailmap_last_processing_date", models.DateTimeField(null=True)), + ("last_update_date", models.DateTimeField(auto_now=True)), + ], + options={"db_table": "user_mailmap",}, + ), + ] diff --git a/swh/web/auth/models.py b/swh/web/auth/models.py index 5ac29aea..6d9b1b47 100644 --- a/swh/web/auth/models.py +++ b/swh/web/auth/models.py @@ -1,20 +1,93 @@ -# Copyright (C) 2020 The Software Heritage developers +# Copyright (C) 2020-2022 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 django.db import models class OIDCUserOfflineTokens(models.Model): """ Model storing encrypted bearer tokens generated by users. """ user_id = models.CharField(max_length=50) creation_date = models.DateTimeField(auto_now_add=True) offline_token = models.BinaryField() class Meta: app_label = "swh_web_auth" db_table = "oidc_user_offline_tokens" + + +class UserMailmapManager(models.Manager): + """A queryset manager which defers all :class:`models.DateTimeField` fields, to avoid + resetting them to an old value involuntarily.""" + + @classmethod + def deferred_fields(cls): + try: + return cls._deferred_fields + except AttributeError: + cls._deferred_fields = [ + field.name + for field in UserMailmap._meta.get_fields() + if isinstance(field, models.DateTimeField) and not field.auto_now + ] + return cls._deferred_fields + + def get_queryset(self): + return super().get_queryset().defer(*self.deferred_fields()) + + +class UserMailmap(models.Model): + """ + Model storing mailmap settings submitted by users. + """ + + user_id = models.CharField(max_length=50, null=True) + """Optional user id from Keycloak""" + + from_email = models.TextField(unique=True, null=False) + """Email address to find author in the archive""" + + from_email_verified = models.BooleanField(default=False) + """Indicates if the from email has been verified""" + + from_email_verification_request_date = models.DateTimeField(null=True) + """Last from email verification request date""" + + display_name = models.TextField(null=False) + """Display name to use for the author instead of the archived one""" + + display_name_activated = models.BooleanField(default=False) + """Indicates if the new display name should be used""" + + to_email = models.TextField(null=True) + """Optional new email to use in the display name instead of the archived one""" + + to_email_verified = models.BooleanField(default=False) + """Indicates if the to email has been verified""" + + to_email_verification_request_date = models.DateTimeField(null=True) + """Last to email verification request date""" + + mailmap_last_processing_date = models.DateTimeField(null=True) + """Last mailmap synchronisation date with swh-storage""" + + last_update_date = models.DateTimeField(auto_now=True) + """Last date that mailmap model was updated""" + + class Meta: + app_label = "swh_web_auth" + db_table = "user_mailmap" + + # Defer _date fields by default to avoid updating them by mistake + objects = UserMailmapManager() + + @property + def full_display_name(self) -> str: + if self.to_email is not None and self.to_email_verified: + return "%s <%s>" % (self.display_name, self.to_email) + else: + return self.display_name diff --git a/swh/web/auth/utils.py b/swh/web/auth/utils.py index e213a714..341d0f06 100644 --- a/swh/web/auth/utils.py +++ b/swh/web/auth/utils.py @@ -1,96 +1,97 @@ -# Copyright (C) 2020-2021 The Software Heritage developers +# Copyright (C) 2020-2022 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 base64 import urlsafe_b64encode from typing import List from cryptography.fernet import Fernet from cryptography.hazmat.backends import default_backend from cryptography.hazmat.primitives import hashes from cryptography.hazmat.primitives.kdf.pbkdf2 import PBKDF2HMAC from django.http.request import HttpRequest OIDC_SWH_WEB_CLIENT_ID = "swh-web" SWH_AMBASSADOR_PERMISSION = "swh.ambassador" API_SAVE_ORIGIN_PERMISSION = "swh.web.api.save_origin" ADMIN_LIST_DEPOSIT_PERMISSION = "swh.web.admin.list_deposits" +MAILMAP_PERMISSION = "swh.web.mailmap" def _get_fernet(password: bytes, salt: bytes) -> Fernet: """ Instantiate a Fernet system from a password and a salt value (see https://cryptography.io/en/latest/fernet/). Args: password: user password that will be used to generate a Fernet key derivation function salt: value that will be used to generate a Fernet key derivation function Returns: The Fernet system """ kdf = PBKDF2HMAC( algorithm=hashes.SHA256(), length=32, salt=salt, iterations=100000, backend=default_backend(), ) key = urlsafe_b64encode(kdf.derive(password)) return Fernet(key) def encrypt_data(data: bytes, password: bytes, salt: bytes) -> bytes: """ Encrypt data using Fernet system (symmetric encryption). Args: data: input data to encrypt password: user password that will be used to generate a Fernet key derivation function salt: value that will be used to generate a Fernet key derivation function Returns: The encrypted data """ return _get_fernet(password, salt).encrypt(data) def decrypt_data(data: bytes, password: bytes, salt: bytes) -> bytes: """ Decrypt data using Fernet system (symmetric encryption). Args: data: input data to decrypt password: user password that will be used to generate a Fernet key derivation function salt: value that will be used to generate a Fernet key derivation function Returns: The decrypted data """ return _get_fernet(password, salt).decrypt(data) def privileged_user(request: HttpRequest, permissions: List[str] = []) -> bool: """Determine whether a user is authenticated and is a privileged one (e.g ambassador). This allows such user to have access to some more actions (e.g. bypass save code now review, access to 'archives' type...). A user is considered as privileged if he is a staff member or has any permission from those provided as parameters. Args: request: Input django HTTP request permissions: list of permission names to determine if user is privileged or not Returns: Whether the user is privileged or not. """ user = request.user return user.is_authenticated and ( user.is_staff or any([user.has_perm(perm) for perm in permissions]) ) diff --git a/swh/web/auth/views.py b/swh/web/auth/views.py index ecd3ff94..28dc14e7 100644 --- a/swh/web/auth/views.py +++ b/swh/web/auth/views.py @@ -1,187 +1,193 @@ -# Copyright (C) 2020 The Software Heritage developers +# Copyright (C) 2020-2022 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 import json from typing import Any, Dict, Union, cast from cryptography.fernet import InvalidToken from django.conf.urls import url from django.contrib.auth.decorators import login_required from django.core.paginator import Paginator from django.http import HttpRequest from django.http.response import ( HttpResponse, HttpResponseBadRequest, HttpResponseForbidden, HttpResponseRedirect, JsonResponse, ) from django.shortcuts import render from django.views.decorators.http import require_http_methods from swh.auth.django.models import OIDCUser from swh.auth.django.utils import keycloak_oidc_client from swh.auth.django.views import get_oidc_login_data, oidc_login_view from swh.auth.django.views import urlpatterns as auth_urlpatterns from swh.auth.keycloak import KeycloakError, keycloak_error_message from swh.web.auth.models import OIDCUserOfflineTokens from swh.web.auth.utils import decrypt_data, encrypt_data from swh.web.common.exc import ForbiddenExc from swh.web.common.utils import reverse from swh.web.config import get_config +from .mailmap import urlpatterns as mailmap_urlpatterns + def oidc_generate_bearer_token(request: HttpRequest) -> HttpResponse: if not request.user.is_authenticated or not isinstance(request.user, OIDCUser): return HttpResponseForbidden() redirect_uri = reverse("oidc-generate-bearer-token-complete", request=request) return oidc_login_view( request, redirect_uri=redirect_uri, scope="openid offline_access" ) def oidc_generate_bearer_token_complete(request: HttpRequest) -> HttpResponse: if not request.user.is_authenticated or not isinstance(request.user, OIDCUser): raise ForbiddenExc("You are not allowed to generate bearer tokens.") if "error" in request.GET: raise Exception(request.GET["error"]) login_data = get_oidc_login_data(request) oidc_client = keycloak_oidc_client() oidc_profile = oidc_client.authorization_code( code=request.GET["code"], code_verifier=login_data["code_verifier"], redirect_uri=login_data["redirect_uri"], ) user = cast(OIDCUser, request.user) token = oidc_profile["refresh_token"] secret = get_config()["secret_key"].encode() salt = user.sub.encode() encrypted_token = encrypt_data(token.encode(), secret, salt) OIDCUserOfflineTokens.objects.create( user_id=str(user.id), offline_token=encrypted_token ).save() return HttpResponseRedirect(reverse("oidc-profile") + "#tokens") def oidc_list_bearer_tokens(request: HttpRequest) -> HttpResponse: if not request.user.is_authenticated or not isinstance(request.user, OIDCUser): return HttpResponseForbidden() tokens = OIDCUserOfflineTokens.objects.filter(user_id=str(request.user.id)) tokens = tokens.order_by("-creation_date") length = int(request.GET["length"]) page = int(request.GET["start"]) / length + 1 paginator = Paginator(tokens, length) tokens_data = [ {"id": t.id, "creation_date": t.creation_date.isoformat()} for t in paginator.page(int(page)).object_list ] table_data: Dict[str, Any] = {} table_data["recordsTotal"] = len(tokens_data) table_data["draw"] = int(request.GET["draw"]) table_data["data"] = tokens_data table_data["recordsFiltered"] = len(tokens_data) return JsonResponse(table_data) def _encrypted_token_bytes(token: Union[bytes, memoryview]) -> bytes: # token has been retrieved from a PosgreSQL database if isinstance(token, memoryview): return token.tobytes() else: return token @require_http_methods(["POST"]) def oidc_get_bearer_token(request: HttpRequest) -> HttpResponse: if not request.user.is_authenticated or not isinstance(request.user, OIDCUser): return HttpResponseForbidden() try: data = json.loads(request.body.decode("ascii")) user = cast(OIDCUser, request.user) token_data = OIDCUserOfflineTokens.objects.get(id=data["token_id"]) secret = get_config()["secret_key"].encode() salt = user.sub.encode() decrypted_token = decrypt_data( _encrypted_token_bytes(token_data.offline_token), secret, salt ) refresh_token = decrypted_token.decode("ascii") # check token is still valid oidc_client = keycloak_oidc_client() oidc_client.refresh_token(refresh_token) return HttpResponse(refresh_token, content_type="text/plain") except InvalidToken: return HttpResponse(status=401) except KeycloakError as ke: error_msg = keycloak_error_message(ke) if error_msg in ( "invalid_grant: Offline session not active", "invalid_grant: Offline user session not found", ): error_msg = "Bearer token has expired, please generate a new one." return HttpResponseBadRequest(error_msg, content_type="text/plain") @require_http_methods(["POST"]) def oidc_revoke_bearer_tokens(request: HttpRequest) -> HttpResponse: if not request.user.is_authenticated or not isinstance(request.user, OIDCUser): return HttpResponseForbidden() try: data = json.loads(request.body.decode("ascii")) user = cast(OIDCUser, request.user) for token_id in data["token_ids"]: token_data = OIDCUserOfflineTokens.objects.get(id=token_id) secret = get_config()["secret_key"].encode() salt = user.sub.encode() decrypted_token = decrypt_data( _encrypted_token_bytes(token_data.offline_token), secret, salt ) oidc_client = keycloak_oidc_client() oidc_client.logout(decrypted_token.decode("ascii")) token_data.delete() return HttpResponse(status=200) except InvalidToken: return HttpResponse(status=401) @login_required(login_url="/oidc/login/", redirect_field_name="next_path") def _oidc_profile_view(request: HttpRequest) -> HttpResponse: return render(request, "auth/profile.html") -urlpatterns = auth_urlpatterns + [ - url( - r"^oidc/generate-bearer-token/$", - oidc_generate_bearer_token, - name="oidc-generate-bearer-token", - ), - url( - r"^oidc/generate-bearer-token-complete/$", - oidc_generate_bearer_token_complete, - name="oidc-generate-bearer-token-complete", - ), - url( - r"^oidc/list-bearer-token/$", - oidc_list_bearer_tokens, - name="oidc-list-bearer-tokens", - ), - url( - r"^oidc/get-bearer-token/$", - oidc_get_bearer_token, - name="oidc-get-bearer-token", - ), - url( - r"^oidc/revoke-bearer-tokens/$", - oidc_revoke_bearer_tokens, - name="oidc-revoke-bearer-tokens", - ), - url(r"^oidc/profile/$", _oidc_profile_view, name="oidc-profile",), -] +urlpatterns = ( + auth_urlpatterns + + [ + url( + r"^oidc/generate-bearer-token/$", + oidc_generate_bearer_token, + name="oidc-generate-bearer-token", + ), + url( + r"^oidc/generate-bearer-token-complete/$", + oidc_generate_bearer_token_complete, + name="oidc-generate-bearer-token-complete", + ), + url( + r"^oidc/list-bearer-token/$", + oidc_list_bearer_tokens, + name="oidc-list-bearer-tokens", + ), + url( + r"^oidc/get-bearer-token/$", + oidc_get_bearer_token, + name="oidc-get-bearer-token", + ), + url( + r"^oidc/revoke-bearer-tokens/$", + oidc_revoke_bearer_tokens, + name="oidc-revoke-bearer-tokens", + ), + url(r"^oidc/profile/$", _oidc_profile_view, name="oidc-profile",), + ] + + mailmap_urlpatterns +) diff --git a/swh/web/common/archive.py b/swh/web/common/archive.py index e9e877f6..97b92f5e 100644 --- a/swh/web/common/archive.py +++ b/swh/web/common/archive.py @@ -1,1420 +1,1420 @@ # Copyright (C) 2015-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 collections import defaultdict import itertools import os import re from typing import Any, Dict, Iterable, Iterator, List, Optional, Set, Tuple, Union from urllib.parse import urlparse from swh.model import hashutil from swh.model.model import OriginVisit, Revision from swh.model.swhids import CoreSWHID, ObjectType from swh.storage.algos import diff, revisions_walker from swh.storage.algos.origin import origin_get_latest_visit_status from swh.storage.algos.snapshot import snapshot_get_latest, snapshot_resolve_alias from swh.vault.exc import NotFoundExc as VaultNotFoundExc from swh.web import config from swh.web.common import converters, query from swh.web.common.exc import NotFoundExc from swh.web.common.typing import ( OriginInfo, OriginMetadataInfo, OriginVisitInfo, PagedResult, ) search = config.search() storage = config.storage() vault = config.vault() idx_storage = config.indexer_storage() counters = config.counters() MAX_LIMIT = 50 # Top limit the users can ask for def _first_element(lst): """Returns the first element in the provided list or None if it is empty or None""" return next(iter(lst or []), None) def lookup_multiple_hashes(hashes): """Lookup the passed hashes in a single DB connection, using batch processing. Args: An array of {filename: X, sha1: Y}, string X, hex sha1 string Y. Returns: The same array with elements updated with elem['found'] = true if the hash is present in storage, elem['found'] = false if not. """ hashlist = [hashutil.hash_to_bytes(elem["sha1"]) for elem in hashes] content_missing = storage.content_missing_per_sha1(hashlist) missing = [hashutil.hash_to_hex(x) for x in content_missing] for x in hashes: x.update({"found": True}) for h in hashes: if h["sha1"] in missing: h["found"] = False return hashes def lookup_expression(expression, last_sha1, per_page): """Lookup expression in raw content. Args: expression (str): An expression to lookup through raw indexed content last_sha1 (str): Last sha1 seen per_page (int): Number of results per page Yields: ctags whose content match the expression """ limit = min(per_page, MAX_LIMIT) ctags = idx_storage.content_ctags_search( expression, last_sha1=last_sha1, limit=limit ) for ctag in ctags: ctag = converters.from_swh(ctag, hashess={"id"}) ctag["sha1"] = ctag["id"] ctag.pop("id") yield ctag def lookup_hash(q: str) -> Dict[str, Any]: """Check if the storage contains a given content checksum and return it if found. Args: q: query string of the form Returns: Dict with key found containing the hash info if the hash is present, None if not. """ algo, hash_ = query.parse_hash(q) found = _first_element(storage.content_find({algo: hash_})) if found: content = converters.from_content(found.to_dict()) else: content = None return {"found": content, "algo": algo} def search_hash(q: str) -> Dict[str, bool]: """Search storage for a given content checksum. Args: q: query string of the form Returns: Dict with key found to True or False, according to whether the checksum is present or not """ algo, hash_ = query.parse_hash(q) found = _first_element(storage.content_find({algo: hash_})) return {"found": found is not None} def _lookup_content_sha1(q: str) -> Optional[bytes]: """Given a possible input, query for the content's sha1. Args: q: query string of the form Returns: binary sha1 if found or None """ algo, hash_ = query.parse_hash(q) if algo != "sha1": hashes = _first_element(storage.content_find({algo: hash_})) if not hashes: return None return hashes.sha1 return hash_ def lookup_content_ctags(q): """Return ctags information from a specified content. Args: q: query string of the form Yields: ctags information (dict) list if the content is found. """ sha1 = _lookup_content_sha1(q) if not sha1: return None ctags = list(idx_storage.content_ctags_get([sha1])) if not ctags: return None for ctag in ctags: yield converters.from_swh(ctag, hashess={"id"}) def lookup_content_filetype(q): """Return filetype information from a specified content. Args: q: query string of the form Yields: filetype information (dict) list if the content is found. """ sha1 = _lookup_content_sha1(q) if not sha1: return None filetype = _first_element(list(idx_storage.content_mimetype_get([sha1]))) if not filetype: return None return converters.from_filetype(filetype.to_dict()) def lookup_content_language(q): """Always returns None. This used to return language information from a specified content, but this is currently disabled. Args: q: query string of the form Yields: language information (dict) list if the content is found. """ return None def lookup_content_license(q): """Return license information from a specified content. Args: q: query string of the form Yields: license information (dict) list if the content is found. """ sha1 = _lookup_content_sha1(q) if not sha1: return None licenses = list(idx_storage.content_fossology_license_get([sha1])) if not licenses: return None license_dicts = [license.to_dict() for license in licenses] for license_dict in license_dicts: del license_dict["id"] lic = { "id": sha1, "facts": license_dicts, } return converters.from_swh(lic, hashess={"id"}) def lookup_origin(origin: OriginInfo) -> OriginInfo: """Return information about the origin matching dict origin. Args: origin: origin's dict with 'url' key Returns: origin information as dict. """ origin_urls = [origin["url"]] if origin["url"]: # handle case when user provided an origin url with a trailing # slash while the url in storage does not have it (e.g. GitHub) if origin["url"].endswith("/"): origin_urls.append(origin["url"][:-1]) # handle case when user provided an origin url without a trailing # slash while the url in storage have it (e.g. Debian source package) else: origin_urls.append(f"{origin['url']}/") try: # handle case where the "://" character sequence was mangled into ":/" parsed_url = urlparse(origin["url"]) if ( parsed_url.scheme and not parsed_url.netloc and origin["url"].startswith(f"{parsed_url.scheme}:/") and not origin["url"].startswith(f"{parsed_url.scheme}://") ): origin_urls.append( origin["url"].replace( f"{parsed_url.scheme}:/", f"{parsed_url.scheme}://" ) ) except Exception: pass origins = [o for o in storage.origin_get(origin_urls) if o is not None] if not origins: msg = "Origin with url %s not found!" % origin["url"] raise NotFoundExc(msg) return converters.from_origin(origins[0].to_dict()) def lookup_origins( page_token: Optional[str], limit: int = 100 ) -> PagedResult[OriginInfo]: """Get list of archived software origins in a paginated way. Origins are sorted by id before returning them Args: origin_from (int): The minimum id of the origins to return origin_count (int): The maximum number of origins to return Returns: Page of OriginInfo """ page = storage.origin_list(page_token=page_token, limit=limit) return PagedResult( [converters.from_origin(o.to_dict()) for o in page.results], next_page_token=page.next_page_token, ) def lookup_origin_snapshots(origin: OriginInfo) -> List[str]: """Return ids of the snapshots of an origin. Args: origin: origin's dict with 'url' key Returns: List of unique snapshot identifiers in hexadecimal format resulting from the visits of the origin. """ return [ snapshot.hex() for snapshot in storage.origin_snapshot_get_all(origin["url"]) ] def search_origin( url_pattern: str, use_ql: bool = False, limit: int = 50, with_visit: bool = False, visit_types: Optional[List[str]] = None, page_token: Optional[str] = None, ) -> Tuple[List[OriginInfo], Optional[str]]: """Search for origins whose urls contain a provided string pattern or match a provided regular expression. Args: url_pattern: the string pattern to search for in origin urls use_ql: whether to use swh search query language or not limit: the maximum number of found origins to return with_visit: Whether origins with no visit are to be filtered out visit_types: Only origins having any of the provided visit types (e.g. git, svn, pypi) will be returned page_token: opaque string used to get the next results of a search Returns: list of origin information as dict. """ if page_token: assert isinstance(page_token, str) if search: if use_ql: page_result = search.origin_search( query=url_pattern, page_token=page_token, with_visit=with_visit, visit_types=visit_types, limit=limit, ) else: page_result = search.origin_search( url_pattern=url_pattern, page_token=page_token, with_visit=with_visit, visit_types=visit_types, limit=limit, ) origins = [converters.from_origin(ori_dict) for ori_dict in page_result.results] else: # Fallback to swh-storage if swh-search is not configured search_words = [re.escape(word) for word in url_pattern.split()] if len(search_words) >= 7: url_pattern = ".*".join(search_words) else: pattern_parts = [] for permut in itertools.permutations(search_words): pattern_parts.append(".*".join(permut)) url_pattern = "|".join(pattern_parts) page_result = storage.origin_search( url_pattern, page_token=page_token, with_visit=with_visit, limit=limit, visit_types=visit_types, regexp=True, ) origins = [converters.from_origin(ori.to_dict()) for ori in page_result.results] return (origins, page_result.next_page_token) def search_origin_metadata( fulltext: str, limit: int = 50 ) -> Iterable[OriginMetadataInfo]: """Search for origins whose metadata match a provided string pattern. Args: fulltext: the string pattern to search for in origin metadata limit: the maximum number of found origins to return Returns: Iterable of origin metadata information for existing origins """ results = [] if ( search and config.get_config()["search_config"]["metadata_backend"] == "swh-search" ): page_result = search.origin_search(metadata_pattern=fulltext, limit=limit,) matches = idx_storage.origin_intrinsic_metadata_get( [r["url"] for r in page_result.results] ) else: matches = idx_storage.origin_intrinsic_metadata_search_fulltext( conjunction=[fulltext], limit=limit ) matches = [match.to_dict() for match in matches] origins = storage.origin_get([match["id"] for match in matches]) for origin, match in zip(origins, matches): if not origin: continue match["from_revision"] = hashutil.hash_to_hex(match["from_revision"]) del match["id"] results.append(OriginMetadataInfo(url=origin.url, metadata=match)) return results def lookup_origin_intrinsic_metadata(origin_url: str) -> Dict[str, Any]: """Return intrinsic metadata for origin whose origin matches given origin. Args: origin_url: origin url Raises: NotFoundExc when the origin is not found Returns: origin metadata. """ origins = [origin_url] origin_info = storage.origin_get(origins)[0] if not origin_info: raise NotFoundExc(f"Origin with url {origin_url} not found!") match = _first_element(idx_storage.origin_intrinsic_metadata_get(origins)) result = {} if match: result = match.metadata return result def _to_sha1_bin(sha1_hex): _, sha1_git_bin = query.parse_hash_with_algorithms_or_throws( sha1_hex, ["sha1"], "Only sha1_git is supported." # HACK: sha1_git really ) return sha1_git_bin def _check_directory_exists(sha1_git, sha1_git_bin): if len(list(storage.directory_missing([sha1_git_bin]))): raise NotFoundExc("Directory with sha1_git %s not found" % sha1_git) def lookup_directory(sha1_git): """Return information about the directory with id sha1_git. Args: sha1_git as string Returns: directory information as dict. """ empty_dir_sha1 = "4b825dc642cb6eb9a060e54bf8d69288fbee4904" if sha1_git == empty_dir_sha1: return [] sha1_git_bin = _to_sha1_bin(sha1_git) _check_directory_exists(sha1_git, sha1_git_bin) directory_entries = storage.directory_ls(sha1_git_bin) return map(converters.from_directory_entry, directory_entries) def lookup_directory_with_path(sha1_git: str, path: str) -> Dict[str, Any]: """Return directory information for entry with specified path w.r.t. root directory pointed by sha1_git Args: sha1_git: sha1_git corresponding to the directory to which we append paths to (hopefully) find the entry path: the relative path to the entry starting from the root directory pointed by sha1_git Returns: Directory entry information as dict. Raises: NotFoundExc if the directory entry is not found """ sha1_git_bin = _to_sha1_bin(sha1_git) _check_directory_exists(sha1_git, sha1_git_bin) paths = path.strip(os.path.sep).split(os.path.sep) queried_dir = storage.directory_entry_get_by_path( sha1_git_bin, [p.encode("utf-8") for p in paths] ) if not queried_dir: raise NotFoundExc( f"Directory entry with path {path} from root directory {sha1_git} not found" ) return converters.from_directory_entry(queried_dir) def lookup_release(release_sha1_git: str) -> Dict[str, Any]: """Return information about the release with sha1 release_sha1_git. Args: release_sha1_git: The release's sha1 as hexadecimal Returns: Release information as dict. Raises: ValueError if the identifier provided is not of sha1 nature. """ sha1_git_bin = _to_sha1_bin(release_sha1_git) release = _first_element(storage.release_get([sha1_git_bin])) if not release: raise NotFoundExc(f"Release with sha1_git {release_sha1_git} not found.") return converters.from_release(release) def lookup_release_multiple(sha1_git_list) -> Iterator[Optional[Dict[str, Any]]]: """Return information about the releases identified with their sha1_git identifiers. Args: sha1_git_list: A list of release sha1_git identifiers Returns: Iterator of Release metadata information as dict. Raises: ValueError if the identifier provided is not of sha1 nature. """ sha1_bin_list = [_to_sha1_bin(sha1_git) for sha1_git in sha1_git_list] releases = storage.release_get(sha1_bin_list) for r in releases: if r is not None: yield converters.from_release(r) else: yield None def lookup_revision(rev_sha1_git) -> Dict[str, Any]: """Return information about the revision with sha1 revision_sha1_git. Args: revision_sha1_git: The revision's sha1 as hexadecimal Returns: Revision information as dict. Raises: ValueError if the identifier provided is not of sha1 nature. NotFoundExc if there is no revision with the provided sha1_git. """ sha1_git_bin = _to_sha1_bin(rev_sha1_git) revision = storage.revision_get([sha1_git_bin])[0] if not revision: raise NotFoundExc(f"Revision with sha1_git {rev_sha1_git} not found.") return converters.from_revision(revision) def lookup_revision_multiple(sha1_git_list) -> Iterator[Optional[Dict[str, Any]]]: """Return information about the revisions identified with their sha1_git identifiers. Args: sha1_git_list: A list of revision sha1_git identifiers Yields: revision information as dict if the revision exists, None otherwise. Raises: ValueError if the identifier provided is not of sha1 nature. """ sha1_bin_list = [_to_sha1_bin(sha1_git) for sha1_git in sha1_git_list] revisions = storage.revision_get(sha1_bin_list) for revision in revisions: if revision is not None: yield converters.from_revision(revision) else: yield None def lookup_revision_message(rev_sha1_git) -> Dict[str, bytes]: """Return the raw message of the revision with sha1 revision_sha1_git. Args: revision_sha1_git: The revision's sha1 as hexadecimal Returns: Decoded revision message as dict {'message': } Raises: ValueError if the identifier provided is not of sha1 nature. NotFoundExc if the revision is not found, or if it has no message """ sha1_git_bin = _to_sha1_bin(rev_sha1_git) revision = storage.revision_get([sha1_git_bin])[0] if not revision: raise NotFoundExc(f"Revision with sha1_git {rev_sha1_git} not found.") if not revision.message: raise NotFoundExc(f"No message for revision with sha1_git {rev_sha1_git}.") return {"message": revision.message} def _lookup_revision_id_by(origin, branch_name, timestamp): def _get_snapshot_branch(snapshot, branch_name): snapshot = lookup_snapshot( visit["snapshot"], branches_from=branch_name, branches_count=10, branch_name_exclude_prefix=None, ) branch = None if branch_name in snapshot["branches"]: branch = snapshot["branches"][branch_name] return branch if isinstance(origin, int): origin = {"id": origin} elif isinstance(origin, str): origin = {"url": origin} else: raise TypeError('"origin" must be an int or a string.') from swh.web.common.origin_visits import get_origin_visit visit = get_origin_visit(origin, visit_ts=timestamp) branch = _get_snapshot_branch(visit["snapshot"], branch_name) rev_id = None if branch and branch["target_type"] == "revision": rev_id = branch["target"] elif branch and branch["target_type"] == "alias": branch = _get_snapshot_branch(visit["snapshot"], branch["target"]) if branch and branch["target_type"] == "revision": rev_id = branch["target"] if not rev_id: raise NotFoundExc( "Revision for origin %s and branch %s not found." % (origin.get("url"), branch_name) ) return rev_id def lookup_revision_by(origin, branch_name="HEAD", timestamp=None): """Lookup revision by origin, snapshot branch name and visit timestamp. If branch_name is not provided, lookup using 'HEAD' as default. If timestamp is not provided, use the most recent. Args: origin (Union[int,str]): origin of the revision branch_name (str): snapshot branch name timestamp (str/int): origin visit time frame Returns: dict: The revision matching the criterions Raises: NotFoundExc if no revision corresponds to the criterion """ rev_id = _lookup_revision_id_by(origin, branch_name, timestamp) return lookup_revision(rev_id) def lookup_revision_log(rev_sha1_git, limit): """Lookup revision log by revision id. Args: rev_sha1_git (str): The revision's sha1 as hexadecimal limit (int): the maximum number of revisions returned Returns: list: Revision log as list of revision dicts Raises: ValueError: if the identifier provided is not of sha1 nature. swh.web.common.exc.NotFoundExc: if there is no revision with the provided sha1_git. """ lookup_revision(rev_sha1_git) sha1_git_bin = _to_sha1_bin(rev_sha1_git) - revision_entries = storage.revision_log([sha1_git_bin], limit) + revision_entries = storage.revision_log([sha1_git_bin], limit=limit) return map(converters.from_revision, revision_entries) def lookup_revision_log_by(origin, branch_name, timestamp, limit): """Lookup revision by origin, snapshot branch name and visit timestamp. Args: origin (Union[int,str]): origin of the revision branch_name (str): snapshot branch timestamp (str/int): origin visit time frame limit (int): the maximum number of revisions returned Returns: list: Revision log as list of revision dicts Raises: swh.web.common.exc.NotFoundExc: if no revision corresponds to the criterion """ rev_id = _lookup_revision_id_by(origin, branch_name, timestamp) return lookup_revision_log(rev_id, limit) def lookup_revision_with_context_by( origin, branch_name, timestamp, sha1_git, limit=100 ): """Return information about revision sha1_git, limited to the sub-graph of all transitive parents of sha1_git_root. sha1_git_root being resolved through the lookup of a revision by origin, branch_name and ts. In other words, sha1_git is an ancestor of sha1_git_root. Args: - origin: origin of the revision. - branch_name: revision's branch. - timestamp: revision's time frame. - sha1_git: one of sha1_git_root's ancestors. - limit: limit the lookup to 100 revisions back. Returns: Pair of (root_revision, revision). Information on sha1_git if it is an ancestor of sha1_git_root including children leading to sha1_git_root Raises: - BadInputExc in case of unknown algo_hash or bad hash. - NotFoundExc if either revision is not found or if sha1_git is not an ancestor of sha1_git_root. """ rev_root_id = _lookup_revision_id_by(origin, branch_name, timestamp) rev_root_id_bin = hashutil.hash_to_bytes(rev_root_id) rev_root = storage.revision_get([rev_root_id_bin])[0] return ( converters.from_revision(rev_root) if rev_root else None, lookup_revision_with_context(rev_root, sha1_git, limit), ) def lookup_revision_with_context( sha1_git_root: Union[str, Dict[str, Any], Revision], sha1_git: str, limit: int = 100 ) -> Dict[str, Any]: """Return information about revision sha1_git, limited to the sub-graph of all transitive parents of sha1_git_root. In other words, sha1_git is an ancestor of sha1_git_root. Args: sha1_git_root: latest revision. The type is either a sha1 (as an hex string) or a non converted dict. sha1_git: one of sha1_git_root's ancestors limit: limit the lookup to 100 revisions back Returns: Information on sha1_git if it is an ancestor of sha1_git_root including children leading to sha1_git_root Raises: BadInputExc in case of unknown algo_hash or bad hash NotFoundExc if either revision is not found or if sha1_git is not an ancestor of sha1_git_root """ sha1_git_bin = _to_sha1_bin(sha1_git) revision = storage.revision_get([sha1_git_bin])[0] if not revision: raise NotFoundExc(f"Revision {sha1_git} not found") if isinstance(sha1_git_root, str): sha1_git_root_bin = _to_sha1_bin(sha1_git_root) revision_root = storage.revision_get([sha1_git_root_bin])[0] if not revision_root: raise NotFoundExc(f"Revision root {sha1_git_root} not found") elif isinstance(sha1_git_root, Revision): sha1_git_root_bin = sha1_git_root.id else: sha1_git_root_bin = sha1_git_root["id"] - revision_log = storage.revision_log([sha1_git_root_bin], limit) + revision_log = storage.revision_log([sha1_git_root_bin], limit=limit) parents: Dict[str, List[str]] = {} children = defaultdict(list) for rev in revision_log: rev_id = rev["id"] parents[rev_id] = [] for parent_id in rev["parents"]: parents[rev_id].append(parent_id) children[parent_id].append(rev_id) if revision.id not in parents: raise NotFoundExc(f"Revision {sha1_git} is not an ancestor of {sha1_git_root}") revision_d = revision.to_dict() revision_d["children"] = children[revision.id] return converters.from_revision(revision_d) def lookup_directory_with_revision(sha1_git, dir_path=None, with_data=False): """Return information on directory pointed by revision with sha1_git. If dir_path is not provided, display top level directory. Otherwise, display the directory pointed by dir_path (if it exists). Args: sha1_git: revision's hash. dir_path: optional directory pointed to by that revision. with_data: boolean that indicates to retrieve the raw data if the path resolves to a content. Default to False (for the api) Returns: Information on the directory pointed to by that revision. Raises: BadInputExc in case of unknown algo_hash or bad hash. NotFoundExc either if the revision is not found or the path referenced does not exist. NotImplementedError in case of dir_path exists but do not reference a type 'dir' or 'file'. """ sha1_git_bin = _to_sha1_bin(sha1_git) revision = storage.revision_get([sha1_git_bin])[0] if not revision: raise NotFoundExc(f"Revision {sha1_git} not found") dir_sha1_git_bin = revision.directory if dir_path: paths = dir_path.strip(os.path.sep).split(os.path.sep) entity = storage.directory_entry_get_by_path( dir_sha1_git_bin, list(map(lambda p: p.encode("utf-8"), paths)) ) if not entity: raise NotFoundExc( "Directory or File '%s' pointed to by revision %s not found" % (dir_path, sha1_git) ) else: entity = {"type": "dir", "target": dir_sha1_git_bin} if entity["type"] == "dir": directory_entries = storage.directory_ls(entity["target"]) or [] return { "type": "dir", "path": "." if not dir_path else dir_path, "revision": sha1_git, "content": list(map(converters.from_directory_entry, directory_entries)), } elif entity["type"] == "file": # content content = _first_element(storage.content_find({"sha1_git": entity["target"]})) if not content: raise NotFoundExc(f"Content not found for revision {sha1_git}") content_d = content.to_dict() if with_data: data = storage.content_get_data(content.sha1) if data: content_d["data"] = data return { "type": "file", "path": "." if not dir_path else dir_path, "revision": sha1_git, "content": converters.from_content(content_d), } elif entity["type"] == "rev": # revision revision = storage.revision_get([entity["target"]])[0] return { "type": "rev", "path": "." if not dir_path else dir_path, "revision": sha1_git, "content": converters.from_revision(revision) if revision else None, } else: raise NotImplementedError("Entity of type %s not implemented." % entity["type"]) def lookup_content(q: str) -> Dict[str, Any]: """Lookup the content designed by q. Args: q: The release's sha1 as hexadecimal Raises: NotFoundExc if the requested content is not found """ algo, hash_ = query.parse_hash(q) c = _first_element(storage.content_find({algo: hash_})) if not c: hhex = hashutil.hash_to_hex(hash_) raise NotFoundExc(f"Content with {algo} checksum equals to {hhex} not found!") return converters.from_content(c.to_dict()) def lookup_content_raw(q: str) -> Dict[str, Any]: """Lookup the content defined by q. Args: q: query string of the form Returns: dict with 'sha1' and 'data' keys. data representing its raw data decoded. Raises: NotFoundExc if the requested content is not found or if the content bytes are not available in the storage """ c = lookup_content(q) content_sha1_bytes = hashutil.hash_to_bytes(c["checksums"]["sha1"]) content_data = storage.content_get_data(content_sha1_bytes) if content_data is None: algo, hash_ = query.parse_hash(q) raise NotFoundExc( f"Bytes of content with {algo} checksum equals " f"to {hashutil.hash_to_hex(hash_)} are not available!" ) return converters.from_content({"sha1": content_sha1_bytes, "data": content_data}) def stat_counters(): """Return the stat counters for Software Heritage Returns: A dict mapping textual labels to integer values. """ res = {} if counters and config.get_config()["counters_backend"] == "swh-counters": res = counters.get_counts( ["origin", "revision", "content", "directory", "release", "person"] ) else: res = storage.stat_counters() return res def _lookup_origin_visits( origin_url: str, last_visit: Optional[int] = None, limit: int = 10 ) -> Iterator[OriginVisit]: """Yields the origin origins' visits. Args: origin_url (str): origin to list visits for last_visit (int): last visit to lookup from limit (int): Number of elements max to display Yields: OriginVisit for that origin """ limit = min(limit, MAX_LIMIT) page_token: Optional[str] if last_visit is not None: page_token = str(last_visit) else: page_token = None visit_page = storage.origin_visit_get( origin_url, page_token=page_token, limit=limit ) yield from visit_page.results def lookup_origin_visits( origin: str, last_visit: Optional[int] = None, per_page: int = 10 ) -> Iterator[OriginVisitInfo]: """Yields the origin origins' visits. Args: origin: origin to list visits for Yields: Dictionaries of origin_visit for that origin """ for visit in _lookup_origin_visits(origin, last_visit=last_visit, limit=per_page): visit_status = storage.origin_visit_status_get_latest(origin, visit.visit) yield converters.from_origin_visit( {**visit_status.to_dict(), "type": visit.type} ) def lookup_origin_visit_latest( origin_url: str, require_snapshot: bool = False, type: Optional[str] = None, allowed_statuses: Optional[List[str]] = None, ) -> Optional[OriginVisitInfo]: """Return the origin's latest visit Args: origin_url: origin to list visits for type: Optional visit type to filter on (e.g git, tar, dsc, svn, hg, npm, pypi, ...) allowed_statuses: list of visit statuses considered to find the latest visit. For instance, ``allowed_statuses=['full']`` will only consider visits that have successfully run to completion. require_snapshot: filter out origins without a snapshot Returns: The origin visit info as dict if found """ visit_status = origin_get_latest_visit_status( storage, origin_url, type=type, allowed_statuses=allowed_statuses, require_snapshot=require_snapshot, ) return ( converters.from_origin_visit(visit_status.to_dict()) if visit_status else None ) def lookup_origin_visit(origin_url: str, visit_id: int) -> OriginVisitInfo: """Return information about visit visit_id with origin origin. Args: origin: origin concerned by the visit visit_id: the visit identifier to lookup Yields: The dict origin_visit concerned """ visit = storage.origin_visit_get_by(origin_url, visit_id) visit_status = storage.origin_visit_status_get_latest(origin_url, visit_id) if not visit: raise NotFoundExc( f"Origin {origin_url} or its visit with id {visit_id} not found!" ) return converters.from_origin_visit({**visit_status.to_dict(), "type": visit.type}) def lookup_snapshot_sizes( snapshot_id: str, branch_name_exclude_prefix: Optional[str] = "refs/pull/" ) -> Dict[str, int]: """Count the number of branches in the snapshot with the given id Args: snapshot_id (str): sha1 identifier of the snapshot Returns: dict: A dict whose keys are the target types of branches and values their corresponding amount """ snapshot_id_bin = _to_sha1_bin(snapshot_id) snapshot_sizes = dict.fromkeys(("alias", "release", "revision"), 0) branch_counts = storage.snapshot_count_branches( snapshot_id_bin, branch_name_exclude_prefix.encode() if branch_name_exclude_prefix else None, ) # remove possible None key returned by snapshot_count_branches # when null branches are present in the snapshot branch_counts.pop(None, None) snapshot_sizes.update(branch_counts) return snapshot_sizes def lookup_snapshot( snapshot_id: str, branches_from: str = "", branches_count: int = 1000, target_types: Optional[List[str]] = None, branch_name_include_substring: Optional[str] = None, branch_name_exclude_prefix: Optional[str] = "refs/pull/", ) -> Dict[str, Any]: """Return information about a snapshot, aka the list of named branches found during a specific visit of an origin. Args: snapshot_id: sha1 identifier of the snapshot branches_from: optional parameter used to skip branches whose name is lesser than it before returning them branches_count: optional parameter used to restrain the amount of returned branches target_types: optional parameter used to filter the target types of branch to return (possible values that can be contained in that list are `'content', 'directory', 'revision', 'release', 'snapshot', 'alias'`) branch_name_include_substring: if provided, only return branches whose name contains given substring branch_name_exclude_prefix: if provided, do not return branches whose name starts with given pattern Raises: NotFoundExc if the given snapshot_id is missing Returns: A dict filled with the snapshot content. """ snapshot_id_bin = _to_sha1_bin(snapshot_id) if storage.snapshot_missing([snapshot_id_bin]): raise NotFoundExc(f"Snapshot with id {snapshot_id} not found!") partial_branches = storage.snapshot_get_branches( snapshot_id_bin, branches_from.encode(), branches_count, target_types, branch_name_include_substring.encode() if branch_name_include_substring else None, branch_name_exclude_prefix.encode() if branch_name_exclude_prefix else None, ) return ( converters.from_partial_branches(partial_branches) if partial_branches else None ) def lookup_latest_origin_snapshot( origin: str, allowed_statuses: List[str] = None ) -> Optional[Dict[str, Any]]: """Return information about the latest snapshot of an origin. .. warning:: At most 1000 branches contained in the snapshot will be returned for performance reasons. Args: origin: URL or integer identifier of the origin allowed_statuses: list of visit statuses considered to find the latest snapshot for the visit. For instance, ``allowed_statuses=['full']`` will only consider visits that have successfully run to completion. Returns: A dict filled with the snapshot content. """ snp = snapshot_get_latest( storage, origin, allowed_statuses=allowed_statuses, branches_count=1000 ) return converters.from_snapshot(snp.to_dict()) if snp is not None else None def lookup_snapshot_alias( snapshot_id: str, alias_name: str ) -> Optional[Dict[str, Any]]: """Try to resolve a branch alias in a snapshot. Args: snapshot_id: hexadecimal representation of a snapshot id alias_name: name of the branch alias to resolve Returns: Target branch information or None if the alias does not exist or target a dangling branch. """ resolved_alias = snapshot_resolve_alias( storage, _to_sha1_bin(snapshot_id), alias_name.encode() ) return ( converters.from_swh(resolved_alias.to_dict(), hashess={"target"}) if resolved_alias is not None else None ) def lookup_revision_through(revision, limit=100): """Retrieve a revision from the criterion stored in revision dictionary. Args: revision: Dictionary of criterion to lookup the revision with. Here are the supported combination of possible values: - origin_url, branch_name, ts, sha1_git - origin_url, branch_name, ts - sha1_git_root, sha1_git - sha1_git Returns: None if the revision is not found or the actual revision. """ if ( "origin_url" in revision and "branch_name" in revision and "ts" in revision and "sha1_git" in revision ): return lookup_revision_with_context_by( revision["origin_url"], revision["branch_name"], revision["ts"], revision["sha1_git"], limit, ) if "origin_url" in revision and "branch_name" in revision and "ts" in revision: return lookup_revision_by( revision["origin_url"], revision["branch_name"], revision["ts"] ) if "sha1_git_root" in revision and "sha1_git" in revision: return lookup_revision_with_context( revision["sha1_git_root"], revision["sha1_git"], limit ) if "sha1_git" in revision: return lookup_revision(revision["sha1_git"]) # this should not happen raise NotImplementedError("Should not happen!") def lookup_directory_through_revision(revision, path=None, limit=100, with_data=False): """Retrieve the directory information from the revision. Args: revision: dictionary of criterion representing a revision to lookup path: directory's path to lookup. limit: optional query parameter to limit the revisions log (default to 100). For now, note that this limit could impede the transitivity conclusion about sha1_git not being an ancestor of. with_data: indicate to retrieve the content's raw data if path resolves to a content. Returns: The directory pointing to by the revision criterions at path. """ rev = lookup_revision_through(revision, limit) if not rev: raise NotFoundExc("Revision with criterion %s not found!" % revision) return (rev["id"], lookup_directory_with_revision(rev["id"], path, with_data)) def _vault_request(vault_fn, bundle_type: str, swhid: CoreSWHID, **kwargs): try: return vault_fn(bundle_type, swhid, **kwargs) except VaultNotFoundExc: return None def vault_cook(bundle_type: str, swhid: CoreSWHID, email=None): """Cook a vault bundle. """ return _vault_request(vault.cook, bundle_type, swhid, email=email) def vault_fetch(bundle_type: str, swhid: CoreSWHID): """Fetch a vault bundle. """ return _vault_request(vault.fetch, bundle_type, swhid) def vault_progress(bundle_type: str, swhid: CoreSWHID): """Get the current progress of a vault bundle. """ return _vault_request(vault.progress, bundle_type, swhid) def diff_revision(rev_id): """Get the list of file changes (insertion / deletion / modification / renaming) for a particular revision. """ rev_sha1_git_bin = _to_sha1_bin(rev_id) changes = diff.diff_revision(storage, rev_sha1_git_bin, track_renaming=True) for change in changes: change["from"] = converters.from_directory_entry(change["from"]) change["to"] = converters.from_directory_entry(change["to"]) if change["from_path"]: change["from_path"] = change["from_path"].decode("utf-8") if change["to_path"]: change["to_path"] = change["to_path"].decode("utf-8") return changes class _RevisionsWalkerProxy(object): """ Proxy class wrapping a revisions walker iterator from swh-storage and performing needed conversions. """ def __init__(self, rev_walker_type, rev_start, *args, **kwargs): rev_start_bin = hashutil.hash_to_bytes(rev_start) self.revisions_walker = revisions_walker.get_revisions_walker( rev_walker_type, storage, rev_start_bin, *args, **kwargs ) def export_state(self): return self.revisions_walker.export_state() def __next__(self): return converters.from_revision(next(self.revisions_walker)) def __iter__(self): return self def get_revisions_walker(rev_walker_type, rev_start, *args, **kwargs): """ Utility function to instantiate a revisions walker of a given type, see :mod:`swh.storage.algos.revisions_walker`. Args: rev_walker_type (str): the type of revisions walker to return, possible values are: ``committer_date``, ``dfs``, ``dfs_post``, ``bfs`` and ``path`` rev_start (str): hexadecimal representation of a revision identifier args (list): position arguments to pass to the revisions walker constructor kwargs (dict): keyword arguments to pass to the revisions walker constructor """ # first check if the provided revision is valid lookup_revision(rev_start) return _RevisionsWalkerProxy(rev_walker_type, rev_start, *args, **kwargs) def lookup_object(object_type: ObjectType, object_id: str) -> Dict[str, Any]: """ Utility function for looking up an object in the archive by its type and id. Args: object_type (str): the type of object to lookup, either *content*, *directory*, *release*, *revision* or *snapshot* object_id (str): the *sha1_git* checksum identifier in hexadecimal form of the object to lookup Returns: Dict[str, Any]: A dictionary describing the object or a list of dictionary for the directory object type. Raises: swh.web.common.exc.NotFoundExc: if the object could not be found in the archive BadInputExc: if the object identifier is invalid """ if object_type == ObjectType.CONTENT: return lookup_content(f"sha1_git:{object_id}") elif object_type == ObjectType.DIRECTORY: return {"id": object_id, "content": list(lookup_directory(object_id))} elif object_type == ObjectType.RELEASE: return lookup_release(object_id) elif object_type == ObjectType.REVISION: return lookup_revision(object_id) elif object_type == ObjectType.SNAPSHOT: return lookup_snapshot(object_id) else: raise ValueError(f"Unexpected object type variant: {object_type}") def lookup_missing_hashes(grouped_swhids: Dict[str, List[bytes]]) -> Set[str]: """Lookup missing Software Heritage persistent identifier hash, using batch processing. Args: A dictionary with: keys: object types values: object hashes Returns: A set(hexadecimal) of the hashes not found in the storage """ missing_hashes = [] for obj_type, obj_ids in grouped_swhids.items(): if obj_type == ObjectType.CONTENT: missing_hashes.append(storage.content_missing_per_sha1_git(obj_ids)) elif obj_type == ObjectType.DIRECTORY: missing_hashes.append(storage.directory_missing(obj_ids)) elif obj_type == ObjectType.REVISION: missing_hashes.append(storage.revision_missing(obj_ids)) elif obj_type == ObjectType.RELEASE: missing_hashes.append(storage.release_missing(obj_ids)) elif obj_type == ObjectType.SNAPSHOT: missing_hashes.append(storage.snapshot_missing(obj_ids)) missing = set( map(lambda x: hashutil.hash_to_hex(x), itertools.chain(*missing_hashes)) ) return missing def lookup_origins_by_sha1s(sha1s: List[str]) -> Iterator[Optional[OriginInfo]]: """Lookup origins from the sha1 hash values of their URLs. Args: sha1s: list of sha1s hexadecimal representation Yields: origin information as dict """ sha1s_bytes = [hashutil.hash_to_bytes(sha1) for sha1 in sha1s] origins = storage.origin_get_by_sha1(sha1s_bytes) for origin in origins: yield converters.from_origin(origin) diff --git a/swh/web/tests/auth/test_mailmap.py b/swh/web/tests/auth/test_mailmap.py new file mode 100644 index 00000000..6cbe3bab --- /dev/null +++ b/swh/web/tests/auth/test_mailmap.py @@ -0,0 +1,288 @@ +# Copyright (C) 2022 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 io import StringIO +from typing import Dict + +from psycopg2.extras import execute_values +import pytest + +from django.core.management import call_command +from django.db import transaction + +from swh.model.model import Person +from swh.web.auth.models import UserMailmap +from swh.web.auth.utils import MAILMAP_PERMISSION +from swh.web.common.utils import reverse +from swh.web.tests.utils import check_api_post_response, create_django_permission + + +@pytest.fixture +def mailmap_user(regular_user): + regular_user.user_permissions.add(create_django_permission(MAILMAP_PERMISSION)) + return regular_user + + +@pytest.mark.django_db(transaction=True) +@pytest.mark.parametrize("view_name", ["profile-mailmap-add", "profile-mailmap-update"]) +def test_mailmap_endpoints_anonymous_user(api_client, view_name): + url = reverse(view_name) + check_api_post_response(api_client, url, status_code=403) + + +@pytest.mark.django_db(transaction=True) +def test_mailmap_endpoints_user_with_permission(api_client, mailmap_user): + api_client.force_login(mailmap_user) + for view_name in ("profile-mailmap-add", "profile-mailmap-update"): + url = reverse(view_name) + check_api_post_response( + api_client, + url, + data={"from_email": "bar@example.org", "display_name": "bar"}, + status_code=200, + ) + + +@pytest.mark.django_db(transaction=True) +def test_mailmap_endpoints_error_response(api_client, mailmap_user): + api_client.force_login(mailmap_user) + for view_name in ("profile-mailmap-add", "profile-mailmap-update"): + url = reverse(view_name) + resp = check_api_post_response(api_client, url, status_code=500) + assert "exception" in resp.data + + +def populate_mailmap(): + for (verified, activated) in ( + (False, False), + (False, True), + (True, False), + (True, True), + ): + verified_str = "V" if verified else "" + activated_str = "A" if activated else "" + UserMailmap.objects.create( + from_email=f"from_email{verified_str}{activated_str}@example.com", + display_name=f"Display Name {verified_str} {activated_str}".strip(), + from_email_verified=verified, + display_name_activated=activated, + ) + + +def call_sync_mailmaps(*args) -> str: + out = StringIO() + err = StringIO() + + call_command("sync_mailmaps", *args, stdout=out, stderr=err) + + out.seek(0) + err.seek(0) + assert err.read() == "" + return out.read() + + +MAILMAP_KNOWN_FULLNAMES = ( + "Original Name ", + "Original Name V ", + "Original Name A ", + "Original Name V A ", + "Original Name V A 2 ", + "Original Name V A 3 ", +) + + +MAILMAP_KNOWN_PEOPLE = tuple( + Person.from_fullname(f.encode()) for f in MAILMAP_KNOWN_FULLNAMES +) + + +def init_stub_storage_db(postgresql): + cur = postgresql.cursor() + cur.execute( + """ + CREATE TABLE person ( + fullname bytea PRIMARY KEY, + name bytea, + email bytea, + displayname bytea + ) + """ + ) + execute_values( + cur, + "INSERT INTO person (fullname, name, email) VALUES %s", + (p.to_dict() for p in MAILMAP_KNOWN_PEOPLE), + template="(%(fullname)s, %(name)s, %(email)s)", + ) + cur.execute("CREATE INDEX ON person (email)") + postgresql.commit() + cur.close() + + return postgresql.dsn + + +def get_displaynames(postgresql) -> Dict[str, str]: + with postgresql.cursor() as cur: + cur.execute( + "SELECT fullname, displayname FROM person WHERE displayname IS NOT NULL" + ) + + return {bytes(f).decode("utf-8"): bytes(d).decode("utf-8") for (f, d) in cur} + + +@pytest.mark.django_db(transaction=True) +def test_sync_mailmaps_dry_run(postgresql): + with transaction.atomic(): + populate_mailmap() + + dsn = init_stub_storage_db(postgresql) + + out = call_sync_mailmaps(dsn) + + assert "(dry run)" in out + assert "Synced 1 mailmaps to swh.storage database" in out + + assert get_displaynames(postgresql) == {} + + assert ( + UserMailmap.objects.filter( + from_email_verified=True, + display_name_activated=True, + mailmap_last_processing_date__isnull=False, + ).count() + == 0 + ) + + +@pytest.mark.django_db(transaction=True) +def test_sync_mailmaps_perform(postgresql): + with transaction.atomic(): + populate_mailmap() + + dsn = init_stub_storage_db(postgresql) + + out = call_sync_mailmaps("--perform", dsn) + + assert "(dry run)" not in out + assert "Synced 1 mailmaps to swh.storage database" in out + + expected_displaynames = { + "Original Name V A ": "Display Name V A", + "Original Name V A 2 ": "Display Name V A", + "Original Name V A 3 ": "Display Name V A", + } + + assert get_displaynames(postgresql) == expected_displaynames + + assert ( + UserMailmap.objects.filter( + from_email_verified=True, + display_name_activated=True, + mailmap_last_processing_date__isnull=False, + ).count() + == 1 + ) + + +@pytest.mark.django_db(transaction=True) +def test_sync_mailmaps_with_to_email(postgresql): + with transaction.atomic(): + populate_mailmap() + + dsn = init_stub_storage_db(postgresql) + + call_sync_mailmaps("--perform", dsn) + + expected_displaynames = { + "Original Name V A ": "Display Name V A", + "Original Name V A 2 ": "Display Name V A", + "Original Name V A 3 ": "Display Name V A", + } + + assert get_displaynames(postgresql) == expected_displaynames + + # Add a non-valid to_email + with transaction.atomic(): + for mailmap in UserMailmap.objects.filter( + from_email_verified=True, display_name_activated=True + ): + mailmap.to_email = "to_email@example.com" + mailmap.save() + + call_sync_mailmaps("--perform", dsn) + + assert get_displaynames(postgresql) == expected_displaynames + + # Verify the relevant to_email + with transaction.atomic(): + for mailmap in UserMailmap.objects.filter( + from_email_verified=True, display_name_activated=True + ): + mailmap.to_email_verified = True + mailmap.save() + + call_sync_mailmaps("--perform", dsn) + + new_displayname = "Display Name V A " + expected_displaynames = { + "Original Name V A ": new_displayname, + "Original Name V A 2 ": new_displayname, + "Original Name V A 3 ": new_displayname, + } + + assert get_displaynames(postgresql) == expected_displaynames + + +@pytest.mark.django_db(transaction=True) +def test_sync_mailmaps_disable(postgresql): + """Check that disabling a mailmap only happens once""" + with transaction.atomic(): + populate_mailmap() + + dsn = init_stub_storage_db(postgresql) + + # Do the initial mailmap sync + call_sync_mailmaps("--perform", dsn) + + assert len(get_displaynames(postgresql)) == 3 + + updated = 0 + # Disable a display name + with transaction.atomic(): + # Cannot use update() because `last_update_date` would not be updated + for mailmap in UserMailmap.objects.filter( + from_email_verified=True, display_name_activated=True + ): + mailmap.display_name_activated = False + + mailmap.save() + updated += 1 + + assert updated == 1 + + # Sync mailmaps again + out = call_sync_mailmaps("--perform", dsn) + assert "1 mailmaps to disable" in out + + assert get_displaynames(postgresql) == {} + + # Update a displayname by hand + with postgresql.cursor() as cur: + cur.execute( + "UPDATE person SET displayname='Manual Display Name' " + "WHERE fullname='Original Name V A '" + ) + + expected_displaynames = { + "Original Name V A ": "Manual Display Name" + } + + assert get_displaynames(postgresql) == expected_displaynames + + # Sync mailmaps one last time. No mailmaps should be disabled + out = call_sync_mailmaps("--perform", dsn) + assert "0 mailmaps to disable" in out + + assert get_displaynames(postgresql) == expected_displaynames