# Licensing This dataset combines two layers under **different** licenses. Read both before reuse. ## 1. Tooling and packaging — Apache-2.0 The database schema, the FAISS index, the BM25 index, the embeddings, the Parquet packaging, and this dataset card are released under the **Apache License 2.0**, consistent with the canonical Zenodo record (DOI [10.5281/zenodo.20586256](https://doi.org/10.5281/zenodo.20586256)). ## 2. Source snippets (the `code` field) — upstream free/open-source licenses The `code` values in `snippets.db` and in the Parquet shards are **excerpts derived from upstream MediaWiki / Wikimedia repositories**. Each excerpt remains under **the license of its origin repository** — predominantly **GPL-2.0-or-later**, with some MIT, BSD, Apache-2.0, and others. The Apache-2.0 grant in section 1 does **not** relicense this upstream code. There is **no per-row `license` column** in the data. Instead, **every entity carries a Software Heritage identifier (`swhid`)** with an `origin=` qualifier (and `lines=` range). This lets you resolve the exact upstream repository, revision, and file — and therefore the authoritative license and copyright — via: - Software Heritage: - the `origin=` repository URL embedded in each SWHID. ## Caveats - Snippets are **fragments** (individual functions, types, or templates) and may not carry the original file's license header or copyright notice. **Consult the origin repository before redistributing or reusing** a snippet. - If you are a copyright holder and believe a snippet should not be redistributed here, please open an issue on the GitHub repository () or contact the author; it will be removed promptly. ## Summary | Layer | License | |---|---| | Schema, indexes, embeddings, packaging, card | Apache-2.0 | | `code` snippets | Upstream FOSS licenses (predominantly GPL-2.0-or-later); resolve per entity via `swhid` |