Download tasks/change/environment/reference/clone/backend/__init__.py from TIGER-Lab/WebsiteBench: direct link, hf CLI and curl.
- Browser
- Download file 809 Bytes
-
https://huggingface.co/datasets/TIGER-Lab/WebsiteBench/resolve/main/tasks/change/environment/reference/clone/backend/__init__.py
- Command line
-
hf download hf://datasets/TIGER-Lab/WebsiteBench/tasks/change/environment/reference/clone/backend/__init__.py
-
curl -L -o __init__.py https://huggingface.co/datasets/TIGER-Lab/WebsiteBench/resolve/main/tasks/change/environment/reference/clone/backend/__init__.py
809 Bytes
| """Persistent backend package for the Change.org offline clone (stage R3). | |
| The whole storage contract lives in ``db.py`` (self-contained module, no | |
| relative imports, loadable via ``importlib`` from ``clone/app.py``): | |
| * sqlite3 in WAL mode under ``CLAWBENCH_DATA_DIR`` (default: the | |
| site-local ``data/`` directory OUTSIDE the ``clone/`` candidate root), | |
| * ordered ``schema_migrations`` (``0001`` initial schema -> ``0002`` | |
| additive comments + optimistic row version), | |
| * deterministic seed (captured petitions as ordinary rows, incl. one | |
| victory and one closed petition), persisted sessions, signatures with | |
| derived counts + goal ladder, comments, supporter updates. | |
| Everything remains a local fixture: no production Change.org account, | |
| mutation, network call, or real audience is ever involved. | |
| """ | |