Overwatch: learning patterns in code edit sequences
Authors:
- Yuhao ZhangYZYuhao Zhang
- Yasharth BajpaiYBYasharth Bajpai
- Priyanshu GuptaPGPriyanshu Gupta
- Ameya KetkarAKAmeya Ketkar
- Miltiadis AllamanisMAMiltiadis Allamanis
- Titus BarikTBTitus Barik
- Sumit GulwaniSGSumit Gulwani
- Arjun RadhakrishnaARArjun Radhakrishna
- Mohammad RazaMRMohammad Raza
- Gustavo SoaresGSGustavo Soares
- Ashish TiwariATAshish Tiwari
Open Access
- 31 October 2022
- journal article
- research article
- Published by Association for Computing Machinery (ACM) in Proceedings of the ACM on Programming Languages
- Vol. 6 (OOPSLA2) , 395-423
Abstract
Integrated Development Environments (IDEs) provide tool support to automate many source code editing tasks. Traditionally, IDEs use only the spatial context, i.e., the location where the developer is editing, to generate candidate edit recommendations. However, spatial context alone is often not sufficient to confidently predict the developer’s next edit, and thus IDEs generate many suggestions at a location. Therefore, IDEs generally do not actively offer suggestions and instead, the developer is usually required to click on a specific icon or menu and then select from a large list of potential suggestions. As a consequence, developers often miss the opportunity to use the tool support because they are not aware it exists or forget to use it. To better understand common patterns in developer behavior and produce better edit recommendations, we can additionally use the temporal context, i.e., the edits that a developer was recently performing. To enable edit recommendations based on temporal context, we present Overwatch, a novel technique for learning edit sequence patterns from traces of developers’ edits performed in an IDE. Our experiments show that Overwatch has 78% precision and that Overwatch not only completed edits when developers missed the opportunity to use the IDE tool support but also predicted new edits that have no tool support in the IDE.Keywords
All Related Versions
This publication has 26 references indexed in Scilit:
- The Coding Manual for Qualitative Researchers (3rd edition)Qualitative Research in Organizations and Management: An International Journal, 2017
- Coding In-depth Semistructured InterviewsSociological Methods & Research, 2013
- Use, disuse, and misuse of automated refactorings2012
- WitchDoctor: IDE support for real-time auto-completion of refactorings2012
- Is It Dangerous to Use Version Control Histories to Study Source Code Evolution?2012
- Sydit2011
- An Algorithm for Strongly Connected Component Analysis in n log n Symbolic StepsFormal Methods in System Design, 2006
- MUC-4 evaluation metrics1992
- Efficient algorithms for agglomerative hierarchical clustering methodsJournal of Classification, 1984
- Information Retrieval, 2nd ed. C.J. Van Rijsbergen. London: Butterworths; 1979: 208 pp. Price: $32.50Journal of the American Society for Information Science, 1979