Datasets:
Update README.md
Browse files
README.md
CHANGED
|
@@ -12,7 +12,11 @@ tags:
|
|
| 12 |
- peft
|
| 13 |
- lora
|
| 14 |
- qlora
|
| 15 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
---
|
| 17 |
# Spring Boot Code Completion Dataset
|
| 18 |
|
|
@@ -36,4 +40,31 @@ pretty_name: java
|
|
| 36 |
"output": "代码补全部分(completion)",
|
| 37 |
"source_file": "原始文件路径",
|
| 38 |
"priority": 1 或 2 // 2 表示含有 Spring Boot 典型特征
|
| 39 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
- peft
|
| 13 |
- lora
|
| 14 |
- qlora
|
| 15 |
+
- code-dataset
|
| 16 |
+
- instruction-tuning
|
| 17 |
+
pretty_name: SpringBoot-Code-Completion-Dataset-zh
|
| 18 |
+
size_categories:
|
| 19 |
+
- 100K<n<1M
|
| 20 |
---
|
| 21 |
# Spring Boot Code Completion Dataset
|
| 22 |
|
|
|
|
| 40 |
"output": "代码补全部分(completion)",
|
| 41 |
"source_file": "原始文件路径",
|
| 42 |
"priority": 1 或 2 // 2 表示含有 Spring Boot 典型特征
|
| 43 |
+
}
|
| 44 |
+
提取与清洗流程
|
| 45 |
+
|
| 46 |
+
从 GitHub 采集 90 个典型 Spring Boot 项目
|
| 47 |
+
使用 javalang 进行 AST 解析,提取方法/类级代码片段及 application 配置
|
| 48 |
+
多维度 Spring Boot 特征检测(注解、接口实现、包路径、类名后缀等)标记 priority
|
| 49 |
+
清洗:精确 MD5 去重 + SentenceTransformer + FAISS 相似度去重(阈值 0.95)+ priority 2 优先保护
|
| 50 |
+
长度过滤:input > 50 字符,output > 20 字符
|
| 51 |
+
划分:80% 训练 / 10% 验证 / 10% 测试
|
| 52 |
+
|
| 53 |
+
使用方式
|
| 54 |
+
Pythonfrom datasets import load_dataset
|
| 55 |
+
|
| 56 |
+
dataset = load_dataset("您的用户名/springboot-code-completion-dataset")
|
| 57 |
+
# 或指定子集
|
| 58 |
+
train = dataset["train"]
|
| 59 |
+
许可
|
| 60 |
+
本数据集仅限学术研究与非商业用途使用。原始代码来源于 GitHub 开源项目,请遵守各项目原许可协议。
|
| 61 |
+
引用
|
| 62 |
+
如果在论文中使用,请引用本仓库:
|
| 63 |
+
text@misc{唯一2026-springboot-dataset,
|
| 64 |
+
author = {唯一},
|
| 65 |
+
title = {Spring Boot Code Completion Dataset},
|
| 66 |
+
year = {2026},
|
| 67 |
+
publisher = {Hugging Face},
|
| 68 |
+
howpublished = {\url{https://huggingface.co/datasets/您的用户名/springboot-code-completion-dataset}}
|
| 69 |
+
}
|
| 70 |
+
欢迎反馈与合作!
|