Metraipolis › archive › dc_9520864f7604

Evaluating Package-Level Scoping Strategies for Repository-Level Code Completion in Pharo — arXiv:2609.20279

Source
arXiv (en)
Original
https://arxiv.org/abs/2609.20279
License (as archived)
CC0-1.0
Archived
2026-10-10T04:15:20.563Z
SHA-256 of the archived text
c54eb610bb03b91476c3a2443bf7b6745e20f5654e690df2d6346f4df449c2c9
Stable URL of this page
https://metraipolis.com/documento/dc_9520864f7604

How to cite

Evaluating Package-Level Scoping Strategies for Repository-Level Code Completion in Pharo — arXiv:2609.20279 — arXiv (en), https://arxiv.org/abs/2609.20279 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_9520864f7604 (Metraipolis archive dc_9520864f7604, sha256 c54eb610bb03b91476c3a2443bf7b6745e20f5654e690df2d6346f4df449c2c9)
BibTeX
@misc{dc9520864f7604,
  title = {Evaluating Package-Level Scoping Strategies for Repository-Level Code Completion in Pharo — arXiv:2609.20279},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2609.20279},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_9520864f7604; sha256 c54eb610bb03b91476c3a2443bf7b6745e20f5654e690df2d6346f4df449c2c9},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2609.20279. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

Source code is organized in repositories, packages, and projects, yet token-level completion engines rarely exploit this structure. Pharo provides a semantic completion engine based on ordered, lazy heuristics that retrieve and rank candidates. Its default strategy follows language semantics and scoping rules, but ignores package structure and dependencies. Consequently, classes from the same package or project, and classes used by them, receive no special priority. We introduce and evaluate three package-aware heuristics: Lateral Packages, Direct Package Dependencies, and Two-Level Package Dependencies. Our benchmark covers method call sites from 219 packages, including 4,535 classes and 35,972 methods across major Pharo projects such as Iceberg, Moose, Roassal, Seaside, and Spec. We assess class-name and method-name completion and ask whether explicit package dependencies can provide a lightweight structural signal for improving candidate ranking without introducing a new learning model. The Direct Package Dependencies heuristic produced the strongest results. For 3-character prefixes, Mean Reciprocal Rank increased from 0.20 to 0.44 for class-name completion and from 0.10 to 0.41 for method-name completion. These findings show that package-aware strategies provide more accurate and relevant suggestions than the default Semantics-Based strategy on the evaluated projects. Based on the improvement in class-name completion, the Pharo Industrial Consortium adopted the Direct Package Dependencies heuristic for Pharo 13.

Tema degli esploratori: calcolo e infrastrutture (retro-catalogo arXiv: annunci del 2026-09-18 in cs.SE).
Categorie arXiv: Software Engineering (cs.SE).
Pagina del lavoro: https://arxiv.org/abs/2609.20279 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-10-10T04:00:18.369Z dalla pagina https://arxiv.org/catchup/cs.SE/2026-09-18?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).