Download legex/config.py from legexbenchmark/code: direct link, hf CLI and curl.
- Browser
- Download file 978 Bytes
-
https://huggingface.co/datasets/legexbenchmark/code/resolve/main/legex/config.py
- Command line
-
hf download hf://datasets/legexbenchmark/code/legex/config.py
-
curl -L -o config.py https://huggingface.co/datasets/legexbenchmark/code/resolve/main/legex/config.py
978 Bytes
| """Runtime configuration. Override via .env.""" | |
| from datetime import date | |
| from pathlib import Path | |
| from pydantic_settings import BaseSettings, SettingsConfigDict | |
| class Settings(BaseSettings): | |
| model_config = SettingsConfigDict(env_file=".env", extra="ignore") | |
| date_start: date = date(2015, 1, 1) | |
| date_end: date = date(2025, 12, 31) | |
| sample_n: int = 130 | |
| sample_seed: int = 0 | |
| judilibre_client_id: str = "" | |
| judilibre_client_secret: str = "" | |
| hf_token: str = "" | |
| data_dir: Path = Path("data") | |
| dist_dir: Path = Path("dist") | |
| drive_folder_url: str = ( | |
| "https://drive.google.com/drive/folders/1tqrKAVuu40EI2WaHn039XOq66B3fnZZB" | |
| ) | |
| def raw_dir(self) -> Path: | |
| return self.data_dir / "raw" | |
| def processed_dir(self) -> Path: | |
| return self.data_dir / "processed" | |
| def template(self) -> Path: | |
| return self.data_dir / "Vorlage.xlsx" | |
| settings = Settings() | |