Hidden GemsCode & software

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

Federico Pennino, Andrea Gurioli, Maurizio Gabbrielli et al. · 2026 · arXiv:2611.11439

Why it's a gem

  • Code is public (github.com/halykoss/swhforest, 0 stars)
  • Releases weights, data or a benchmark
  • A concrete result in the abstract (72%)
  • Clear method and findings
  • Useful to people building AI products (Code & software)
  • From academic or independent labs (University of Bologna, Scuola Superiore Sant'Anna)
  • No upvotes on Hugging Face Papers yet

Abstract

From the arXiv abstract, may be trimmed

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.

Ask the paper

Answers come from the paper summary and abstract.

Ask anything about “SWHForest: A Structural Curation and Search Layer for Large-Scale Code Corpora”, or start with one of these:

Closest matches across the feed and every collection, by shared words in titles, topics and abstracts.