Datasets:
Update Pro README with cleaning and license improvements
Browse files123456789101112131415161718192021222324252627282930313233---configs:- config_name: repo_split_balanceddata_files:- split: trainpath: repo_split_balanced/train-*- split: validationpath: repo_split_balanced/validation-*- split: testpath: repo_split_balanced/test-*- config_name: random_shuffledata_files:- split: trainpath: random_shuffle/train-*- split: validationpath: random_shuffle/validation-*- split: testpath: random_shuffle/test-*task_categories:- text-retrievallanguage:- en- zh---# ArkTS Code Docstring ProThis version contains open-source ArkTS function-comment pairs from repositories with more than zero stars. License/copyright headers and code-only documentation are removed. Documentation shorter than five characters is excluded.Queries and complete function texts are globally unique after cleaning.- `repo_split_balanced`: repository-isolated by normalized `nwo` across platforms and approximately 80%/10%/10% by example count.- `random_shuffle`: shuffled with seed `20260714` and split 80%/10%/10%.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106---configs:- config_name: repo_split_balanceddata_files:- split: trainpath: repo_split_balanced/train-*- split: validationpath: repo_split_balanced/validation-*- split: testpath: repo_split_balanced/test-*- config_name: random_shuffledata_files:- split: trainpath: random_shuffle/train-*- split: validationpath: random_shuffle/validation-*- split: testpath: random_shuffle/test-*task_categories:- text-retrievallanguage:- en- zh---# ArkTS-CodeSearch-Pro: A Cleaned and License-Aware ArkTS Dataset[Original Dataset](https://huggingface.co/datasets/hreyulog/arkts-code-docstring) | [Pro Dataset](https://huggingface.co/datasets/hreyulog/arkts-code-docstring-pro) | [Paper](https://huggingface.co/papers/2602.05550) | [Evaluation Code](https://github.com/hreyulog/retrieval_eval) | [Dataset Processing Code](https://github.com/hreyulog/arkts-codesearch)This dataset is an improved version of [ArkTS-CodeSearch](https://huggingface.co/datasets/hreyulog/arkts-code-docstring). It contains function-level information from ArkTS (`.ets`) projects, including function source code, docstrings, AST representations, and repository metadata. It is intended for code retrieval, code understanding, and AST-based research.Compared with the original dataset, this Pro version provides the following improvements:- **License-aware collection**: only repositories with locally identified open-source licenses are included. The supported license families include Apache-2.0, MIT, BSD, GPL, LGPL, and MPL.- **Repository quality filtering**: only repositories with more than zero stars are retained.- **Comment normalization**: comment delimiters such as `//`, `/*`, `*/`, and leading `*` are removed from the docstrings.- **Noise removal**: copyright/license headers, code-only comments, and cleaned docstrings shorter than five characters are excluded.- **Stronger deduplication**: complete function texts and cleaned queries are globally unique.- **Repository-isolated evaluation**: `repo_split_balanced` groups repositories by normalized `nwo` across GitHub, Gitee, and GitCode, preventing the same cross-platform repository name from appearing in multiple splits.- **Stable split sizes**: both configurations are approximately 80%/10%/10%.The final dataset contains **31,164 examples**, all extracted from `.ets` files. The `sha` column was removed because commit SHA metadata was unavailable for most source repositories; `function_sha` is retained as a function-content identifier.## Dataset StructureThe dataset provides two configurations:- `repo_split_balanced`: repository-level split with normalized `nwo` repository isolation. It contains 24,932 training, 3,116 validation, and 3,116 test examples.- `random_shuffle`: globally shuffled split with seed `20260714`. It contains 24,931 training, 3,117 validation, and 3,116 test examples.## Features / Columns| Field | Type | Description ||-------|------|------------|| `nwo` | string | Repository name || `path` | string | `.ets` file path || `language` | string | Programming language (`arkts`) || `identifier` | string | Function identifier / name || `docstring` | string | Cleaned, normalized function documentation || `function` | string | Original function source code || `ast_function` | string | AST representation generated with tree-sitter-arkts || `obf_function` | string | Legacy obfuscated-function field; currently equal to `function` || `url` | string | Repository or source-code URL when available || `function_sha` | string | Function-content identifier || `source` | string | Code source platform (GitHub / Gitee / GitCode) |## Usage```pythonfrom datasets import load_dataset# Repository-isolated configurationdataset = load_dataset("hreyulog/arkts-code-docstring-pro",name="repo_split_balanced",)# Random-shuffle configurationrandom_dataset = load_dataset("hreyulog/arkts-code-docstring-pro",name="random_shuffle",)print(dataset["train"][0])print(dataset["train"].features)```### License ConfigurationAll included repositories were selected from locally identified open-source repositories. Users must still comply with the individual upstream repository licenses and attribution requirements. This Pro dataset does not grant a new license over the source code.## CitationIf you use this dataset in your research, please cite the following paper:```bibtex@misc{he2026arktscodesearchopensourcearktsdataset,title={ArkTS-CodeSearch: A Open-Source ArkTS Dataset for Code Retrieval},author={Yulong He and Artem Ermakov and Sergey Kovalchuk and Artem Aliev and Dmitry Shalymov},year={2026},eprint={2602.05550},archivePrefix={arXiv},primaryClass={cs.SE},url={https://arxiv.org/abs/2602.05550},}```
README.md+106-33