Lupa: A Framework for Large Scale Analysis of the Programming Language Usage

Anna Vlasova, Maria Tigina, Ilya Vlasov, Anastasiia Birillo, Yaroslav Golubev +1 more
3/17/2022
cs.PLcs.SE

Official code: JetBrains-Research/Lupa (30 stars, Jupyter Notebook, Apache-2.0, last commit 2023-06-27).

Abstract

In this paper, we present Lupa - a framework for large-scale analysis of the programming language usage. Lupa is a command line tool that uses the power of the IntelliJ Platform under the hood, which gives it access to powerful static analysis tools used in modern IDEs.

Show full abstract

The tool supports custom analyzers that process the rich concrete syntax tree of the code and can calculate its various features: the presence of entities, their dependencies, definition-usage chains, etc. Currently, Lupa supports analyzing Python and Kotlin, but can be extended to other languages supported by IntelliJ-based IDEs. We explain the internals of the tool, show how it can be extended and customized, and describe an example analysis that we carried out with its help: analyzing the syntax of ranges in Kotlin.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

A framework for the large scale analysis of programming language usage.

306Jupyter Notebook, PythonApr 2, 20213 years agoApache-2.0

Similar Papers

Cite this paper

@article{vlasova2022lupa,
  title  = {Lupa: A Framework for Large Scale Analysis of the Programming Language Usage},
  author = {Anna Vlasova and Maria Tigina and Ilya Vlasov and Anastasiia Birillo and Yaroslav Golubev and Timofey Bryksin},
  year   = {2022},
  eprint = {2203.09658},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2203.09658}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2203.09658.svg)](https://codeofpaper.com/paper/2203.09658)

Discussion