SWHForest: A Structural Curation and Search Layer for Large-Scale Code Corpora

计算机科学 解析 上传 情报检索 编码(集合论) 源代码 图层(电子) 水准点(测量) 工作流程 管道(软件) 数据库 文件格式 匹配(统计) 元数据 语言模型 子串 自然语言处理 人工智能 集合(抽象数据类型) 数据文件 SQL语言 平面文件数据库 索引(排版) 事务日志 万维网 程序设计语言 滤波器(信号处理) 传播 纳克 计算机文件 钥匙(锁) 接口(物质) 重写 自然语言
作者
Federico Pennino,Andrea Gurioli,Maurizio Gabbrielli,Paolo Ferragina
出处
期刊:Cornell University - arXiv [arXiv]
标识
DOI:10.48550/arxiv.2611.11439
摘要

Pre-training code language models relies on massive code corpora usually streamed over the internet. However, researchers rarely need a multi-terabyte archive in its entirety; instead, their workflow centers on curated subsets: selecting well-documented files, filtering out repetitive boilerplate, auditing for benchmark contamination, or retrieving specific code patterns. Yet, because modern corpora are typically published as file pointers and basic attributes rather than source text, no general structural layer exists to select which files to download: curating a subset requires downloading and parsing millions of files first just to discard most of them. We present SWHForest, an open-source framework and public dataset that provides this missing structural layer for any pointer-based corpus without redistributing source code. A single pass over the archive parses each file into an AST and immediately discards the source text, keeping only its structural summary. Queried locally or exposed by archive providers as a server-side filtering API, SWHForest selects matching files first (via SQL or index intersection) and downloads only surviving candidates. Across the ten largest languages of Stack-Edu (52.1M unique files, 341M definitions), SWHForest answers curation queries in milliseconds while cutting downloads by 46-72%, reducing live structural searches from hours of per-language streaming to seconds or minutes.
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
QuestYonder发布了新的文献求助10
1秒前
WangAlexander发布了新的文献求助10
1秒前
干饭选手又困了完成签到 ,获得积分10
2秒前
叶子完成签到,获得积分10
3秒前
4秒前
木羽完成签到 ,获得积分10
4秒前
4秒前
大吃发布了新的文献求助10
4秒前
tangj4001完成签到,获得积分20
5秒前
JamesPei的应助被吃花采纳,获得10
5秒前
qinwuwu完成签到 ,获得积分10
6秒前
6秒前
舒心千筹发布了新的文献求助10
7秒前
8秒前
xiaoxiao完成签到,获得积分10
8秒前
小李完成签到,获得积分10
8秒前
675675发布了新的文献求助10
11秒前
11秒前
11秒前
北北完成签到 ,获得积分10
12秒前
12秒前
TK完成签到,获得积分10
12秒前
阿孟孟完成签到 ,获得积分10
13秒前
14秒前
XYH发布了新的文献求助10
15秒前
夏凉发布了新的文献求助10
15秒前
15秒前
舒心千筹发布了新的文献求助10
16秒前
成就的冰双完成签到,获得积分10
17秒前
XUE的应助被云岫采纳,获得10
17秒前
淅川发布了新的文献求助10
17秒前
00发布了新的文献求助10
17秒前
无极微光的应助被zzz采纳,获得20
18秒前
柚子苏完成签到,获得积分10
18秒前
zmm发布了新的文献求助50
18秒前
cdercder的应助被沉静的傲之采纳,获得10
18秒前
19秒前
20秒前
20秒前
20秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
METTL3-Mediated m6A Modification of PSAT1 mRNA Promotes HER2-Positive Breast Cancer Resistance to Trastuzumab 1000
The Martian climate revisited : atmosphere and environment of a desert planet 600
Bonding in Metal(IV) Hexafluorides Examined Using Fluorine K-edge X-ray Absorption Spectroscopy 500
Trend and Out-of-Trend Analysis for Pharmaceutical Quality and Manufacturing Using Minitab 500
初発骨髄異形成腫瘍におけるIPSS-RとIPSS-Mの比較:単施設での検討 500
Sleisenger and Fordtran's Gastrointestinal and Liver Disease - 2 Volume Set Pathophysiology, Diagnosis, Management 500
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 计算机科学 工程类 有机化学 化学工程 生物化学 物理 复合材料 内科学 催化作用 光电子学 人工智能 细胞生物学 无机化学 物理化学 数学
热门帖子
关注 科研通微信公众号,转发送积分 8232795
求助须知:如何正确求助?哪些是违规求助? 9609376
关于积分的说明 22049374
捐赠科研通 7845574
什么是DOI,文献DOI怎么找? 3451041
关于科研通互助平台的介绍 2570906
邀请新用户注册赠送积分活动 2500098