Revizor: A Data-Driven Approach to Automate Frequent Code Changes Based on Graph Matching

Oleg Smirnov, Artyom Lobanov, Yaroslav Golubev, Elena Tikhomirova, Timofey Bryksin
8/25/2021
cs.SE

Official code: JetBrains-Research/revizor (8 stars, Kotlin, Apache-2.0, last commit 2021-06-12).

Abstract

Many code changes that developers make in their projects are repeated and constitute recurrent change patterns. It is of interest to collect such patterns from the version history of open-source repositories and suggest the most useful of them as quick fixes.

Show full abstract

In this paper, we present Revizor - a tool aimed to build custom plugins for PyCharm, a popular Python IDE. A Revizor-based plugin can take change patterns and highlight potential places for their application in the developer's code editor. If the developer accepts the quick fix, the plugin automatically performs the edit. Our approach uses a graph-based representation of code changes, which allows it to support complex distributed code patterns. Experienced developers have also rated the usability and the performance of such Revizor-based plugin positively. The source code of the tool and test plugin prototype are available on GitHub: https://github.com/JetBrains-Research/revizor. A demonstration video with a short tool description can be found on YouTube: https://youtu.be/5eLs14nco7E.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

A data-driven PyCharm plugin for code enhancement using graph patterns.

81Kotlin, PythonJul 20, 20205 years agoApache-2.0

Similar Papers

Cite this paper

@article{smirnov2021revizor,
  title  = {Revizor: A Data-Driven Approach to Automate Frequent Code Changes Based on Graph Matching},
  author = {Oleg Smirnov and Artyom Lobanov and Yaroslav Golubev and Elena Tikhomirova and Timofey Bryksin},
  year   = {2021},
  eprint = {2108.11199},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2108.11199}
}

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/2108.11199.svg)](https://codeofpaper.com/paper/2108.11199)

Discussion