|
Download README.md from PiotrSty/code-search-net-java: direct link, hf CLI and curl.
- Browser
- Download file 3.38 kB
-
https://huggingface.co/datasets/PiotrSty/code-search-net-java/resolve/main/README.md
- Command line
-
hf download hf://datasets/PiotrSty/code-search-net-java/README.md
-
curl -L -o README.md https://huggingface.co/datasets/PiotrSty/code-search-net-java/resolve/main/README.md
3.38 kB
| license: other | |
| language: | |
| - en | |
| tags: | |
| - code | |
| - java | |
| - code-search-net | |
| - function-documentation | |
| pretty_name: CodeSearchNet Java (open-licence functions + docstrings) | |
| size_categories: | |
| - 100K<n<1M | |
| configs: | |
| - config_name: default | |
| data_files: | |
| - split: train | |
| path: code_search_net_java.parquet | |
| # CodeSearchNet Java — open-licence functions + docstrings | |
| 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) | |
| Java configuration, **filtered to repositories with a detected open-source | |
| licence** (SPDX). Rows from repositories with `NOASSERTION`/`unknown` were | |
| removed. | |
| - **448,859 rows**, **4,414 repositories** (from 4,769 audited; removed | |
| 47,818 rows / 355 repos with no detected licence) | |
| - **420,219,315 characters**, **89,685,927 tokens** | |
| (tiktoken `cl100k_base`) | |
| - parquet `227,936,538` bytes (zstd), 20 columns | |
| - splits: train 414,713 · validation 13,560 · test 20,586 | |
| ## Licences (rows) | |
| | SPDX | rows | % | | |
| |---|---:|---:| | |
| | `Apache-2.0` | 264,874 | 59.0% | | |
| | `MIT` | 52,732 | 11.7% | | |
| | `LGPL-2.1` | 33,890 | 7.6% | | |
| | `EPL-2.0` | 23,189 | 5.2% | | |
| | `GPL-3.0` | 14,632 | 3.3% | | |
| | `AGPL-3.0` | 14,325 | 3.2% | | |
| | `LGPL-3.0` | 11,920 | 2.7% | | |
| | `GPL-2.0` | 10,543 | 2.3% | | |
| | `BSD-3-Clause` | 10,322 | 2.3% | | |
| | `BSD-2-Clause` | 5,480 | 1.2% | | |
| | `MulanPSL-2.0` | 2,631 | 0.6% | | |
| | `EPL-1.0` | 2,109 | 0.5% | | |
| | `MPL-2.0` | 1,233 | 0.3% | | |
| | `ISC` | 772 | 0.2% | | |
| | `Zlib` | 117 | 0.0% | | |
| | `WTFPL` | 57 | 0.0% | | |
| | `EUPL-1.2` | 20 | 0.0% | | |
| | `Artistic-2.0` | 13 | 0.0% | | |
| Class mix: permissive 334,367 · weak-copyleft 72,341 · strong-copyleft 39,500 · other 2,651. All retained rows carry a detected open-source licence; | |
| permissive is the largest class, but weak/strong copyleft (LGPL/EPL/GPL/AGPL) | |
| remain and carry notice/source obligations. | |
| ## 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. | |
| ## Collection | |
| - Official CodeSearchNet Java shards, concatenated. | |
| - Filters: code ≥ 20 chars, text ≥ 100 chars, exact-code dedup, and the | |
| open-licence filter above. | |
| - Per-repo audit: GitHub REST `/repos/{owner}/{repo}/license` over 4,769 | |
| repositories (2026-12-05); full table in `repo_licenses.jsonl`. | |
| ## Rights | |
| - **Upstream**: CodeSearchNet, Apache-2.0 dataset; re-distribution is permitted, | |
| but the upstream "permissive" filter is not exhaustive (AGPL/GPL/LGPL/EPL are | |
| present). | |
| - **Per-row licence**: `license` (SPDX), `license_class`, `license_source` are | |
| audited per repository and joined into every row. | |
| - **Removed**: 47,818 rows from 355 repositories without a | |
| detected open licence (`NOASSERTION`/`unknown`). | |
| - **Not release-ready as a single licence**: copyleft rows require their | |
| notice/source obligations. A permissive-only slice is | |
| `license_class == "permissive"`. | |
| ## Not checked | |
| - Whether GitHub's LICENSE-file detection matches the repo's actual terms. | |
| - Notice/source obligations for EPL, LGPL, GPL and AGPL rows. | |
| - Cross-corpus dedup against other code corpora. | |