|
Download README.md from PiotrSty/code-search-net-python-permissive: direct link, hf CLI and curl.
- Browser
- Download file 2.41 kB
-
https://huggingface.co/datasets/PiotrSty/code-search-net-python-permissive/resolve/main/README.md
- Command line
-
hf download hf://datasets/PiotrSty/code-search-net-python-permissive/README.md
-
curl -L -o README.md https://huggingface.co/datasets/PiotrSty/code-search-net-python-permissive/resolve/main/README.md
2.41 kB
| license: other | |
| language: | |
| - en | |
| tags: | |
| - code | |
| - python | |
| - code-search-net | |
| - permissive | |
| - function-documentation | |
| pretty_name: CodeSearchNet Python (permissive licences only) | |
| size_categories: | |
| - 100K<n<1M | |
| configs: | |
| - config_name: default | |
| data_files: | |
| - split: train | |
| path: code_search_net_python.parquet | |
| # CodeSearchNet Python — permissive licences only | |
| Working copy (2026-12-05). Derived from the official | |
| [`code-search-net/code_search_net`](https://huggingface.co/datasets/code-search-net/code_search_net) | |
| `python` configuration, keeping only repositories whose audited SPDX licence is | |
| permissive. | |
| - **289,457 rows**, **3,408 repositories** | |
| - **408,109,489 characters**, **91,672,340 tokens** | |
| (tiktoken `cl100k_base`) | |
| - parquet `213,678,070` bytes (zstd), 20 columns | |
| - splits: train 262,453 · validation 14,202 · test 12,802 | |
| - removed **81,347** non-permissive rows and | |
| **86,655** rows without a detected licence. | |
| - audit cap: 4,517 repos audited | |
| (87.1% of rows); | |
| 483 selected repos | |
| (8,566 rows) not audited and dropped. | |
| Full datasheet: [`datasheet.md`](./datasheet.md). | |
| ## Licences (rows) | |
| | SPDX | rows | % | | |
| |---|---:|---:| | |
| | `MIT` | 130,531 | 45.1% | | |
| | `Apache-2.0` | 100,626 | 34.8% | | |
| | `BSD-3-Clause` | 43,179 | 14.9% | | |
| | `BSD-2-Clause` | 11,810 | 4.1% | | |
| | `ISC` | 2,223 | 0.8% | | |
| | `WTFPL` | 525 | 0.2% | | |
| | `BSL-1.0` | 247 | 0.1% | | |
| | `CC0-1.0` | 239 | 0.1% | | |
| | `Zlib` | 77 | 0.0% | | |
| ## Schema | |
| ``` | |
| id, repo, path, func_name, url, split, language, docstring, code, text, | |
| token_count, doc_chars, code_chars, license_basis, source, added, | |
| record_sha256, license, license_class, license_source | |
| ``` | |
| `text` = docstring + `\n\n` + code. `id` is unique. `record_sha256` is the | |
| canonical per-row SHA-256. | |
| ## Rights | |
| - Every retained row has an audited permissive SPDX licence in `license` | |
| (`license_class == "permissive"`, `license_source` = GitHub licence URL). | |
| - No copyleft and no `NOASSERTION`/`unknown`. | |
| - Permissive is not obligation-free: Apache-2.0 requires NOTICE/attribution; | |
| MIT/BSD require the copyright notice. This is not legal advice. | |
| ## Not checked | |
| - Whether GitHub's LICENSE-file detection matches the repo's actual terms. | |
| - Notice/attribution preservation for Apache-2.0/BSD rows. | |
| - Cross-corpus dedup against other code corpora. | |
| - PII in code/docstrings; no scrubber was run. | |